ImageGear Professional for Windows ActiveX
InsertPages Method

Description:

Inserts PageCount pages from Doc2 into the current document. All annotations as well as anything else associated with the page (such as a thumbnail image) are copied from the Doc2 pages to the new pages in the current document. This method does not insert the data, if the current document equals Doc2. The InsertFlags parameter controls whether bookmarks and threads are inserted along with the specified pages.

Syntax:

      InsertPages(AfterPage As Long, Doc2 As IGPDFDoc, StartPage As
Long, PageCount As Long, InsertFlags As enumIGPDFInsertFlags) 

Parameters:

Name Description
AfterPage The page number in the current document after which pages from Doc2 are inserted. The first page is 0. If IG_PDF_BEFORE_FIRST_PAGE is used, the pages are inserted before the first page in the current document. Use IG_PDF_LAST_PAGE to insert pages after the last page in the current document.
Doc2 The document containing the pages that are inserted into the current document.
StartPage The page number of the first page in Doc2 to insert into the current document. The first page is 0.
PageCount The number of pages in Doc2 to insert into the current document. Use IG_PDF_ALL_PAGES to insert all pages from Doc2 into the current document.
InsertFlags Flags that determine what additional information is copied from Doc2 into the current document. An OR of enumIGPDFInsertFlags constants:
  • IG_PDF_INSERT_BOOKMARKS - Inserts bookmarks as well as pages. The bookmark tree of Doc2 is merged into the bookmark tree of the current document by copying it as a new first-level subtree of the current document's bookmark tree root, of which it becomes the last child. If the current document has no bookmark tree, it acquires one identical to the bookmark tree from Doc2.
  • IG_PDF_INSERT_THREADS - Inserts threads as well as pages.
  • IG_PDF_INSERT_ALL - Inserts document data from pages.

Return Value:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback