Print PDFs from Batch?

Posted on 2006-04-14
Last Modified: 2008-01-09
I've scoured the forum here looking for a way to do this.  So far, I haven't seen quite what I'm looking for.

I have a program that is automatically generating PDF files and spitting them out into the folder.  Once that process is finished, this program has the capability to call a batch file and do...whatever I want it to do.  What I am wanting it to do is to print the PDF file that was just created.

I tried to use the print command (print /d:\\server\printer "G:\path\PDF\*.pdf") but I keep getting errors that the paper size is invalid (I have set the printer default to 11x17, but it keeps corrupting it somehow using this process).  

I have Acrobat Pro 7 and am printing to a PS printer.

Thanks in advance.
Question by:Ziggie013
    LVL 11

    Accepted Solution


    Maybe this will help?
    "C:\Program Files\Adobe\Acrobat 7.0\Reader\AcroRd32.exe" /p /h "G:\path\PDF\*.pdf"
    LVL 1

    Author Comment

    Perfect, you rock!

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
    Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe INTRODUCTION This article presents a solution to a question (…
    Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now