How can I print a PDF file?

  • Thread starter Thread starter A.M-SG
  • Start date Start date
A

A.M-SG

Hi,

What would be the best way to print a pdf file?

The pdf file is located on my local hard drive. Can I also print it on my
non-default printer?

Thank you,
Alan
 
Alan,

You might be able to print it through the command line, by passing a
flag to automate Adobe Acrobat. Either that, or you will need some third
party control to do this. I am not sure if Acrobat can be automated or
controlled somehow through an API. You might want to look into that option
as well.

Hope this helps.
 
Hi,

As Nicholas says, there are several options. Check the following document:

http://partners.adobe.com/public/developer/en/acrobat/sdk/pdf/intro_to_sdk/DeveloperFAQ.pdf

a) You can launch AcrobatReader from your application, using
System.Diagnostics.Process.Start(). Acrobat Reader includes a flag, /t, that
allows you to specify the document to print as well as the printer name:

AcroRd32.exe /t path "printername" "drivername" "portname"

This only requires AcroRd32 to be installed on the client

b) You can use the Acrobat SDK (license required)

Regards - Octavio
 
Back
Top