PDFCreator Help
 
 

Adobe Reader stays open when a script is used to combine PDFs.

After printing PDF files with Adobe Acrobat Reader, the program window will not close anymore. This behaviour can't be be influenced by the user. There are two workarounds for this:

  1. You can use an alternative application to print the PDF file, i.e. Foxit Reader
  2. Many tasks as merging PDF files can be achieved with the pdfforge.dll located in the PlugIns folder of the installation directory. This can be accessed with .Net languages or via a COM Class.

Here's an example in C# that shows how to merge two PDF files:

PDF pdf = new pdfforge.PDF.PDF();
string[] TestPDFFiles = new string[2];
TestPDFFiles[0] = Path.Combine(TempPath, "TestPDFFile1.pdf");
TestPDFFiles[1] = Path.Combine(TempPath, "TestPDFFile2.pdf");
pdf.MergePDFFiles(ref files, "MergedFile.pdf", false);