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.