Re: Printing PDF's from the Command Prompt



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



Relevant Pages

  • Re: Printing PDFs from the Command Prompt
    ... 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 ... I need to be able print to multiple printers. ...
    (comp.lang.tcl)
  • Re: PDF printing in C# ?
    ... > I have a list of pdf files, and for each pdf I execute the command: ... The problem is that Adobe has change the behavior of Acrobat Reader! ... queue. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [SLE] How-To
    ... I tried the command: ... PDF files have structure that goes far beyond being a simple sequence of ... Adobe Acrobat runs well under CrossOver Office, ... Acrobat isn't cheap, though CrossOver ...
    (SuSE)
  • "Incorrect structure found in PDF file"
    ... Illustrator, then reorganizing these pages in Acrobat. ... Document>> Delete Pages menu command in Acrobat I get the error message ... "An incorrect structure was found in the PDF file", ...
    (comp.text.pdf)
  • Re: merging pdfs automatically with keeping bookmarks and so on
    ... command line) with keeping the bookmarks of both documents, ... Command lines are a terribly old fashioned ... Acrobat supports a lot of automation through OLE. ... The Acrobat SDK should have been your first stop...! ...
    (comp.text.pdf)