It doesn’t look like you are using a printing job.
http://doc.4d.com/4Dv15/4D/15.6/OPEN-PRINTING-JOB.301-3818590.en.html

Does using one make any difference?

                GET PRINT OPTION(Destination option;$saveDestination;$savePath)
                SET PRINT OPTION(Destination option;2;$tFullDocumentPath)

                OPEN PRINTING JOB
                WP PRINT($WriteArea;wk 4D Write Pro layout)
                CLOSE PRINTING JOB

                SET PRINT OPTION(Destination option;$saveDestination;$savePath)

I am not sure if it will help with the corrupt PDF or not, but encapsulating 
the print operation in a printing job has been the suggested way of printing 
since v11.

-Tim



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to