My application generates between 35 and 55 PDF files of which I have to automatically print four copies.
All these files are in a single folder.
My requirement i
Adobe Reader is only capable of printing a single copy directly. However, nothing prevents you from looping and printing it 4 times. It may take longer, though, since the document has to be sent to the printer four times.
From the Acrobat SDK Developer FAQ:
AcroRd32.exe /t path "printername" "drivername" "portname"— Start Adobe Reader and print a file while suppressing the Print dialog box. The path must be fully specified.The four parameters of the
/toption evaluate topath,printername,drivername, andportname(all strings).
printername— The name of your printer.
drivername— Your printer driver’s name, as it appears in your printer’s properties.
portname— The printer’s port.portnamecannot contain any "/" characters; if it does, output is routed to the default port for that printer.
So you can probably use something like this:
for %%F in (*.pdf) do (
for /L %%i in (1,1,4) do (
AcroRd32.exe /t "%%~fF" "printername" "drivername" "portname"
)
)
Just insert the appropriate values for the missing arguments.