Grbabus
Grbabus

Reputation: 21

pdftoprinter.exe Orientation page command

I need page orientation to landscape with a command through pdftoprinter.exe, does anyone know what parameter?

Dim retval
retval = Shell(App.Path & "\PDFtoPrinter.EXE C:\_GR\VB6\TEstePDF_Printer\pdfs\teste*.pdf ", 0)

Upvotes: 2

Views: 1274

Answers (1)

Jannick Breunis
Jannick Breunis

Reputation: 343

If you want to change the orientation, you can use the advise given on the documentation of using the dat-file created by PDF-Xchange viewer:

By default, this system uses these printing options as set in PDF-XChange Viewer: Scaling is set to None; Auto-rotate Sheets; Auto-centre pages in sheets; and Choose paper source by PDF-page size. If you want to change any of these, or choose any other options, download and install PDF-XChange Viewer; open a PDF file, go to the Print menu, set your desired options (and, just to be certain, print the file). Then go to the Edit menu and choose Export All Settings to Data File... Accept the suggested filename, "PDF-XChange Viewer Settings.dat", and save the file to a convenient location. Move or copy the file to the same folder with PDFtoPrinter.exe. When you next run PDFtoPrinter.exe it will use the settings saved in that file.

Found here.

Mind that:
Move or copy the file to the same folder with PDFtoPrinter.exe.

Upvotes: 2

Related Questions