Print command and  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Locked
uweih
User
Posts: 1
Joined: Tue Apr 13, 2021 7:33 am

Print command and

Post by uweih »

I want to print pdfs to a printer from a batchfile.

PDFXEdit /print:printer="Brother MFC-7360N Printer (Service)";pages=1 "C:\1\my test dokument.pdf"

For tests I use this command:

PDFXEdit /print:showui=yes;printer="Brother MFC-7360N Printer (Service)";pages=1 "C:\1\(20210407) Beispiel duenne Bauteillinien (2-1588-00).pdf"

I see the pdf is outside the printing area.

The documents are A3 and A4 and from and what is larger / smaller should be printed on one of these two formats.

The printer should select the appropriate sheet size.

Before printing, options must be set:

Select Paper Size by Document's Page Size
Auto-rotate page on paper
Fit to Printer Margins? For everything that is not exactly A4 or A3.

With SumatraPDF this works:

"C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -print-to %1 %3 -exit-on-print

%1 is the printer. %3 is the pdf to print.

For a printer only din a4:

C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe" -print-to %1 -print-settings "paper=a4,fit" %3 -exit-on-print
Willy Van Nuffel
User
Posts: 2342
Joined: Wed Jan 18, 2006 12:10 pm

Re: Print command and  SOLVED

Post by Willy Van Nuffel »

In the PDF-XChange Editor on-line manual, at Command Line Options, you can see what is available for "/print":
https://help.pdf-xchange.com/pdfxe9c/command-line-options_ed.html

If "default=yes" then the most recent Print-settings of PDF-XChange Editor will be used.

If this is not possible, then I am afraid that you will have to use PDF-XChange Tools instead.
(A valid license is required to generate resulting PDF's without publicity stamps)
By using Advanced > Print Document > Print Document > All Options, in PDF-Tools, you can set all the options that you like.
Attachments
PDF-Tools - Print Document 01.png
PDF-Tools - Print Document 02.png
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Print command and

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Locked