Printing in Adobe Acrobat Pro 7.0

Is there a way to script a pdf to print in Acrobat
and specify Tabloid or letter paper and number of copies?

Acrobat can be difficult to script as far as printing. This shell script may or may not work for you. It doesn’t give you a lot of control but you can indicate the number of copies and page size.

--set PathToFile to However_You_Want_To_Choose_Your_File
set PDFPrintSetUp to "Printer_Name" --as it appears in Printer List but replace spaces with an underscore
set PathToDesktop to path to the desktop as text
set thisPath to POSIX path of file (PathToDesktop & PathToFile) as string
set theShell to ("lpr -P " & PDFPrintSetUp & " " & thisPath & " -#2 -o media=letter")
do shell script theShell

Thanks,

I modified it a little.

--set PathToFile to mac path to file
set PDFPrintSetUp to "printer_Name" --as it appears in Printer List but repace space with an underscore
set PDFPageSize to "Tabloid" -- desire page size
set thisPath to POSIX path of file PathToFile
set theShell to ("lpr -P " & PDFPrintSetUp & " " & thisPath & " -#2 -o media=" & PDFPageSize)
do shell script theShell

Any idea how to center the pdf on the page?
And how to make it print at 600dpi?

Thanks for the help.

You can access the print params in Acrobat through JavaScript, I am currently trying to work a solution this way but I’ve only just started with Java and my progress is slow. If I get anything working I will post back.

I tried that already. Although javascript has more control than applescript it
does’nt let you state number of copies and set paper size to letter or tabloid.

The shell script almost does everything. The only problem I have is the pdf is
off center on the print out. I have been told from the cups website
that it is a apple problem.
This was the response.
“Apple’s cgpdfto* filter is not supporting the standard CUPS semantics.”
Apparently apple wrote their own version of cgpdftops.
And do not use the cups filter.

They told me to report it to apple.
So that is where I am at now.

When I find a solution I’ll post it here.

Thanks for trying.