Jump to content

Print PDF to default printer, certain number without generating "n" separate printjobs


rudi
 Share

Recommended Posts

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 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!

Link to comment
Share on other sites

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 by jguinch
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...