Re: Printing PDF's from the Command Prompt
- From: David Gravereaux <davygrvy@xxxxxxxxx>
- Date: Sat, 29 Sep 2007 13:21:23 -0700
Mark Case wrote:
I need to print a PDF document from a scheduled task - I know that Acrobat
has a couple of command line switches to do this, but in my testing, the
Acrobat application dialog starts and stays open even after the document
prints. Is there a library callable from Tcl that will allow me to do this?
In addition, I need to be able print to multiple printers.
How about ghostscript? It's 100% commandline if you want it to be.
gswin32c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=mswinpr2
-sOutputFile="%printer%printer_name" -dNoCancel -f yourFile.pdf
Where printer_name is exactly as it appears in the Printers control panel,
including spaces.
I wish GS was better documented as it is incredibly powerful. Even a simple
'rotate 90 degrees' is this added bit of bizzaro: -c "<</Orientation 3>>
setpagedevice"
Attachment:
signature.asc
Description: OpenPGP digital signature
- References:
- Printing PDF's from the Command Prompt
- From: Mark Case
- Printing PDF's from the Command Prompt
- Prev by Date: Re: Simple parser for C/C++
- Next by Date: Re: tsv::object
- Previous by thread: Printing PDF's from the Command Prompt
- Next by thread: Re: Printing PDF's from the Command Prompt
- Index(es):
Relevant Pages
|