PDF file created by PrintPDFBuilder is corrupted in NX managed mode which does not happen in NX Native mode.
The reason is due to the setting below:
printPDFBuilder1.Append = True
When the Append is set to False as below:
printPDFBuilder1.Append = False
The problem goes away.