Printing PDF from the Command Line using the Adobe PDF Library with Datalogics Extensions

Sample of the Week:


Part of my job as the Evangelist at Datalogics is to scour the Acrobat SDK Forums and try to help people understand how to use the Adobe PDF Library instead of Adobe Acrobat or Reader when they need Acrobat functionality… but they need it to run on a server or via the command line.

One of the questions that I still come across with alarming frequency and is the cause of some of the most frustrated complaints aimed at Adobe relates to command line printing from Reader. It seems that many enterprises have build mission-critical, server-based functionality around unsupported features in Adobe Reader and then get in trouble when Reader updates or Adobe changes how Reader works.

Adobe Reader just wasn’t engineered for this use case.

Instead, use the Adobe PDF Library, the same technology that Adobe uses to build Acrobat and Reader. The Gist below demonstrates the use of the the Adobe PDF Library with Datalogics Extensions to print a PDF file without any user dialogs. The code contains comments on how to set some common print parameters.

To get started with printing PDF from the command line in a reliable and consistent way, download this Gist and request an evaluation copy of Adobe PDF Library from Datalogics.



 

Share this post with your friends

Get instant access to the latest PDF news, tips and tricks!

Do you want monthly updates on the latest document technology trends?

By submitting the form, you agree to receive marketing emails from Datalogics. You may unsubscribe at any time. 

Like what you're reading?

Get Datalogics blogs sent right to your inbox!

By submitting the form, you agree to receive marketing emails from Datalogics. You may unsubscribe at any time.