Code Samples - Document Converter Pro

Example 15: Merge 2 existing PDF files - PHP Copy 

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
   <?php

     $DC = New COM("Neevia.docConverter");

     $RVal = $DC->mergePDF("c:\\users\\public\\file1.pdf", "c:\\users\\public\\file2.pdf", "c:\\users\\public\\out.pdf");

     if ($RVal != 0) {
       echo "There was an error merging the documents !!!";
     }else{
       echo "Done !!!";
     }

   ?>