Command line print prints to wrong bin and prints with a margin #4758
Replies: 1 comment
-
For commercial printing I personally would suggest use Ghostscript as Acrobat Reader is not approved for such use but GhostScript is from the same Artifex Licensed support channel as SumatraPDF core MuPDF, but is specifically designed for the task, and works differently thus far better at controlling printer spooling etc. When using SumatraPDF as a blind driver it has limitations so for the scaling ensure the settings file print option is set to None
Close SumatraPDF before save setting and check by manual print that the default print dialog is showing "original" page size NOT Fit or Shrink so that all 3 options can set on command line without any run time override. However SuumatraPDF only passes a few instructions to Windows which has its own driver settings Thus Fit, Shrink and NoScale are the only command line scaling options (apart from page size) as set by Windows Print Management. As for which bin/tray is used again that depends on print driver default naming and any localised renaming so may not be as simple as "Bin1" or "Tray1" Windows Printing has the option of remember last printer settings which is outside of SumatraPDFs control as it uses the core SYSTEM PRINTER Defaults that Windows Print manager provides on starting the exe. If you switch to GhostScript consider -sDEVICE= any suitable driver type OTHER than mswinpr2. |
Beta Was this translation helpful? Give feedback.
-
Would someone be able to help me?
I have two PDF documents. Each pdf has one page inside. One is created from a text file, and the other is a scanned page.
Both printed ok to the printer if I use sumatraPDF application (file open, print)
If I do command line print, the text pdf file prints ok but the scanned page is sent to the open tray above the main tray and there is a 1 and 1/4 inch left margin which causes the right side of the scanned page to be clipped
this is my dos command for the second pdf
sumatrapdf.exe -print-to "Brother MFC-8710DW Printer" "c:\data\doc2.pdf" (not working)
sumatrapdf.exe -print-settings "fit" -print-to "Brother MFC-8710DW Printer" "c:\data\doc2.pdf" (still not working)
The Brother MFC-8710DW has not setting for bin1 or manual feed (bin2)
Due to business workflow, I need command line print as there will be a loop that pairs the printing of the text and the scanned together. There will be hundreds of these pairs.
Beta Was this translation helpful? Give feedback.
All reactions