Print order Command line interface. We have an application that needs to print multiple PDF documents as a in the correct order in package.

Wish:
We have an application that needs to print multiple documents as a in the correct order in package.

The documents within that package must be printed on different types of paper.
The package should roll as 1 stack of sequential pages from the printer.

Solution:
For the package, a bat file is generated containing the various print commands in sequence(including -loaddev for the selection of the correct paper-tray) . Each command contains information for the desired paper type.
Under Windows XP, it worked OK!

Example:
C:\pdfprint.exe "-color 2 -printer" Color-COA "-loaddevmode" path ... \ CTX_Color_Exportverklar_C.cfg "path ... \ 20170515_47225_134.pdf
C:\pdfprint.exe "-wtext" DUPLICATE "-color 2 -printer" Color-COA "-loaddevmode \ CTX_Kleur_Exportverklar_D.cfg" 20170515_47225_135.pdf
C:\pdfprint.exe "-color 2 -printer" Color-COA "-loaddevmode" CTX_Kleur_Exportverklar_A.cfg "20170515_47225_136.pdf
C:\pdfprint.exe "-color 2 -printer" Color-COA "-loaddevmode CTX_Kleur_Exportverklar_C.cfg" 20170515_47225_137.pdf
C:\pdfprint.exe "-wtext" DUPLICATE "-color 2-printer" Color-COA "-loaddevmode" CTX_Kleur_Exportverklar_D.cfg "20170515_47225_138.pdf
C:\pdfprint.exe "-wtext" DUPLICATE "-color 2-printer" Color-COA "-loaddevmode" CTX_Color_Exportverklar_D.cfg "20170515_47225_139.pdf

Problem:
Under Windows 7, the order is no longer guaranteed. Smaller documents seem to creep on larger documents. The reason is that the spooler software seems asynchronous to work with the print command issuer (pdfprint.exe).

Kindly advice us how to deal with this. Is there a printing option to return the spooler to synchronous mode again ?

Best regards,
Customer
---------------------------------------------
You may add "-checkjobstatus" option to try again, this option will check print job's status after you send a print job to printer,

-checkjobstatus : check status for print jobs

for example,

C:\pdfprint.exe -checkjobstatus "-color 2 -printer" Color-COA "-loaddevmode" path ... \ CTX_Color_Exportverklar_C.cfg "path ... \ 20170515_47225_134.pdf
C:\pdfprint.exe -checkjobstatus "-wtext" DUPLICATE "-color 2 -printer" Color-COA "-loaddevmode \ CTX_Kleur_Exportverklar_D.cfg" 20170515_47225_135.pdf
C:\pdfprint.exe -checkjobstatus "-color 2 -printer" Color-COA "-loaddevmode" CTX_Kleur_Exportverklar_A.cfg "20170515_47225_136.pdf
C:\pdfprint.exe -checkjobstatus "-color 2 -printer" Color-COA "-loaddevmode CTX_Kleur_Exportverklar_C.cfg" 20170515_47225_137.pdf
C:\pdfprint.exe -checkjobstatus "-wtext" DUPLICATE "-color 2-printer" Color-COA "-loaddevmode" CTX_Kleur_Exportverklar_D.cfg "20170515_47225_138.pdf
C:\pdfprint.exe -checkjobstatus "-wtext" DUPLICATE "-color 2-printer" Color-COA "-loaddevmode" CTX_Color_Exportverklar_D.cfg "20170515_47225_139.pdf

We hope "-checkjobstatus" parameter will solve this problem to you, please give it a try.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

This entry was posted in PDF Print and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!