View Full Version : How to use Acrobat's PrintPagesSilent function

10-09-2006, 08:09 AM
Hey guys,

I'm trying to print multiple pages of a PDF file to multiple PDF files (1 page per file) with different names (the names will be taken from cells). This will be in Excel VBA automating Acrobat for me. I don't have a problem with getting the active document....but I'm not sure how to print specific pages as PDF files with Acrobat's objects, methods, etc...and to set the names to what I need them to be.

I was looking at the PrintPagesSilent function which (in the object browser) states:

Function PrintPagesSilent(nFirstPage As Long, nLastPage As Long, _
nPSLevel As Long, bBinaryOk As Long, bShrinkToFit As Long) As Long
'Member of Acrobat.CAcroAVDoc
'Prints a specified range of pages without displaying any dialog box.

Is this what I want to be using for what I need? How do I set the name? How do I set the printer to print as PDF files?

...I have a feeling I'm going in the wrong direction.....:think:

And by the way, what's the difference between CAcroAVDoc and CAcroPDDoc?

Thanks for any info