How to restore printer options to previous settings after PDF printing?

Hello!

We have been running the VeryPDF PDFPrint Command Line Tool since this summer. It is working very well but we are having an issue with it that I hope you can help me with.

We use the following command to print and we use it in a developed program:

-printer "[printer]" -copies [antal] -setcopyto
-printermargins -useembedfont "[file]"

The program itself is working very well but after we have begun to use this we have had issues with users running this application. After the users have been using this application, sometimes something happens. When you try to print from another application, completely separate from the pdfprint like Word, Excel and the ERP System, every print job gets a number of copies.

For example, if the pdfprint command had the parameter -copies 5 -setcopyto, every print job that comes after that and from another application gets 5 copies. If you print from the PDFPrint, it always prints the selected amount.

The only solution we have found to reset the multiple copies is to clear the user profile on the computer, and then everything is working again, at least until something happens again.

My main question is what the parameter -setcopyto does more technically. In the readme it says "set '-copies' value to printer instead of print it several times" and I'm just wondering if it sets the copies value in the printer driver or what it really does.

Have you heard of this problem before?

Best regards,
Customer
--------------------------------------------------

image
Sorry for the delay, we recently experienced an Email Server problem, so we couldn't see your email in time, sorry for this matter.

Yes, "-setcopyto" does set the value of "-copies" option to target printer directly, if you wish this option be restored after the end of printing, you can add "-restoreprinter" option, for example,

pdfprint.exe -printer "PDFcamp Printer" -setcopyto -copies 3 -paper 9 -restoreprinter C:\input.pdf

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!