How to set the paper size by PDFPrint Command Line application?

PDFPrint - I have tried the newest version 3.1 and the -paper setting does not work. I specify 11x17 and that does not work. I also want to try the SDK version of PDFPrint but cannot get that to work.

Customer
-------------------------------------
Please run following command lines to print your PDF file to try again, can you print your PDF file properly with Letter paper size?

pdfprint.exe -printer "YourPrinter" -paper "612x792pt" -printermargins D:\input.pdf

pdfprint.exe -printer "YourPrinter" -paper "11x17in" -printermargins D:\input.pdf

VeryPDF
-------------------------------------
Printing letter size works fine, always has. It won't print 11x17 though, it comes out on letter. Is there something else I can try?

Customer
-------------------------------------
You may run following command line to try again,

pdfprint.exe -printer "YourPrinter" -paper 17 -printermargins D:\input.pdf

"-paper 17" is the DMPAPER_11X17, 11x17 in, we hoping this option will useful to you.

VeryPDF
-------------------------------------
I have tried that setting and it doesn't work for a couple of printers here. I have also tried forcing the use of the 11x17 tray and that doesn't work either.

I have tried every setting I can think of to make it print 11x17 and it won't.

Do you have any other suggestions?

Customer
-------------------------------------
You may use "-paper 3" to try again, can you work fine with "-paper 3" option?

pdfprint.exe -printer "YourPrinter" -paper 3 -printermargins D:\input.pdf

You can also run following command lines to try again, we hoping the following command lines will useful to you,

pdfprint.exe -shell C:\test.pdf
pdfprint.exe -shell2 C:\test.pdf

VeryPDF
-------------------------------------
No, I tried the "-paper 3" option and that doesn't work either. The shell option is not useful to us either. I built a program that calls yours to print pdfs from a queue in an automated fashion. This has to work with no user input.

I don't understand why the "-paper 17" works on some of the printers and not all of them.

Customer
-------------------------------------
We suggest you may by following steps to try again,

1. Please run following command line to prompt the user Printer Dialog and save the printer settings to a disk file,

pdfprint.exe -savedevmode D:\printer.dat -printer "Your Printer Name"

2. In the Printer Dialog, you can set following options, such as,

set "Duplex" option to "Top-Top" or others;
set default paper tray to "Tray 3" or others;
set the paper size to "11x17" or others;
set other options that you want;

click "OK" to close Printer Dialog, you will get a D:\printer.dat file,

3. Please run following command line to load the devmode from disk file and set it to printer,

pdfprint.exe -loaddevmode D:\printer.dat -printer "Your Printer Name" D:\input.pdf

4. OK, you will able to print your PDF file with correct options.

We hoping above solution will helpful to you, please to try.

VeryPDF

See Also:

Windows Standard Paper Types:

http://www.verypdf.com/artprint/document-converter/index.htm

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!