Image Viewer CP ActiveX Control

PDFEditMergeEx

 

Combine two PDF Files from specific pages into a single multi page PDF File without displaying or decoding any of the images.
 

Public Function PDFEditMergeEx( _
   ByVal strSource1File  As String, _
   ByVal iSource1StartPage As Integer _
   ByVal iSource1EndPage As Integer _
   ByVal strSource2File  As String, _
   ByVal strSource2StartPage  As Integer, _
   ByVal strSource2EndPage  As Integer, _
   ByVal strOutputFile  As String
) As Bool

 

Parameter

strSource1File
The source of first PDF File.

iSource1StartPage
Specifies start of page number for first PDF File. The first page is 0.

iSource1EndPage
Specifies end of page number for second PDF File. -1 mean total count of the pages.

strSource2File
The source of second PDF File.

iSource2StartPage
Specifies start of page number for second PDF File. The first page is 0.

iSource2EndPage
Specifies end of page number for second PDF File. -1 mean total count of the pages.


strOutputFile
The output PDF File.


Return Value
Return true if successful, otherwise return false.


Example

   

Visual Basic Syntax
ImageViewer1.PDFEditMergeEx"c:\first.pdf", 0, 1,"c:\second.pdf", 0,-1,"c:\output.pdf"