rudi Posted February 5, 2019 Posted February 5, 2019 (edited) Hello, what's the best practice to print for a PDF document a given number of copies to Windows' default printer, in *ONE* print job, without creating "n" separate print jobs? _Shellexecute($PDF,"","","print") will just print one copy per call. If there is a possibility to pass a "page count", I missed it. _FilePrint() basically just makes use of the line above. Additional Information: All printers are either Xerox 80xx Printing Systems or HP 2xxx Desktop Printers. SumatraPDF seems to be an approach, ... $PDF="C:\temp\Some-PDF-Sample-File.pdf" $Sumatra="z:\SumatraPDF.EXE" ; this will print 5 copies with *ONE* print job ShellExecute($Sumatra,'-print-to-default -print-settings "5x,fit" "' & $PDF & '"',"","open",@SW_HIDE) ... I'd just prefer to solve this task without the need of an extra program as SumatraPDF.EXE Any suggestions appreciated, Rudi. Edited February 5, 2019 by rudi added FIT to sumatra options, this way scaling is activated to fit the paper size Earth is flat, pigs can fly, and Nuclear Power is SAFE!
jguinch Posted February 5, 2019 Posted February 5, 2019 (edited) I think there is no way to print a PDF without any external tool. Sumatra is for me the best way. Using the portable version, you can FileInstall it with some config files if needed. Edited February 5, 2019 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
rudi Posted February 5, 2019 Author Posted February 5, 2019 @jguinch Okay, then I'll leave it, as it is (Z: is a network drive always available) Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now