English | 日本
PDF Java
Shopping CartContact Us
Knowledgebase
BCL easy PDF SDK

How to print PDF to PDF with easy PDF API?

Last Updated: 3/13/2014

You can print a PDF to PDF with easy PDF API simply by using Printer.PrintJob.PrintOut(), however there are some issues with Printing PDFs. Specifically, the Printing will fail if an instance of Adobe Reader or Adobe Acrobat is currently open and running. easy PDF SDK needs to open Adobe Reader in order to print the file, and because of the way Adobe Reader is programmed it does not respond to our easy PDF SDK attempting to close the instance of Adobe Reader. If you intend to print multiple PDF files to PDF, you will need to close all of the Adobe Reader Processes opened by the previous conversion before you start on the next one.

For C#, this is relatively simple with easy PDF API, and uses the following code:

Process[] processes = Process.GetProcessesByName("AcroRd32");
foreach (Process proc in processes)
{
   proc.CloseMainWindow();
   proc.WaitForExit();
}

PDF SDK Knowledgebase
 
BCL
© 1993 - , BCL Technologies.
All other trademarks are the property of their respective owners.