Code Samples - Document Converter Pro

Example 17: Split an existing PDF file into single pages - PHP Copy 

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

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

     $RVal = $DC->splitPDF("c:\\users\\public\\test.pdf", "c:\\users\\public\\out\\");

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

   ?>