ImageGear Professional v18.2 > API Reference Guide > PDF Component API Reference > PDF Component Objects > General Objects > IGPDFDoc Object > IGPDFDoc Methods > InsertPages Method |
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.
InsertPages(AfterPage As Long, Doc2 As IGPDFDoc, StartPage As
Long, PageCount As Long, InsertFlags As enumIGPDFInsertFlags)
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:
|
None