Image Viewer CP ActiveX Control

PDFEditSplit

 

 Split a multipage PDF file into two PDF file at the position specified by the iStartFromPageNo parameter.
 

Public Function PDFEditSplit( _
   ByVal strSource1File  As String, _
   ByVal iStartFromPageNo  As Integer, _
   ByVal strOutputFile1  As String ,_
   ByVal strOutputFile2  As String
) As Bool

 

Parameter

strSourceFile
The source of PDF File.

iStartFromPageNo
The Position where the source PDF file will be split.

strOutputFile1
The new PDF File 1 generated after the split.

strOutputFile2
The new PDF File 2 generated after the split.


Return Value
Return true if successful, otherwise return false.


Example

   

Visual Basic Syntax
ImageViewer1.PDFEditMerge "c:\source.pdf", 1,"c:\split1.pdf","c:\split2.pdf"