|
Combine two PDF Files into a single multi page PDF File without displaying or decoding any of the images and create the bookmarks.
Public Function PDFEditMergeWithBookmarks( _ ByVal strSource1File As String, _ ByVal strSource2File As String, _ ByVal strOutputFile As String, _ ByVal strBookmarkRootTitle As String, _ ByVal strSource1OutlineTitle As String, _ ByVal strSource2OutlineTitle As String ) As Bool
|
Parameter
strSource1File The source of first PDF File.
strSource2File The source of second PDF File.
strOutputFile The output PDF File.
strBookmarkRootTitle The title of root bookmark, if this value is empty, it will use default title named "Merged Document"
strSource1OutlineTitle The title of outline item 1, if this value is empty, it will use the file name of first PDF file.
strSource2OutlineTitle The title of outline item 2, if this value is empty, it will use the file name of second PDF file.
Return Value Return true if successful, otherwise return false.
Example
|
Visual Basic Syntax ImageViewer1.PDFEditMergeWithBookmarks "c:\first.pdf", "c:\second.pdf", "c:\output.pdf", "My Document", "Chapter1", "Chapter2"
|
|
|