ImageGear for .NET
InsertPages Method
See Also  Send Feedback
ImageGear21.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDFDocument Class : InsertPages Method




precedingIndex
The page number in the current document after which pages from source document are inserted. The first page is 0. If BEFORE_FIRST_PAGE is used, the pages are inserted before the first page in the current document. Use LAST_PAGE to insert pages after the last page in the current document.
document
The source document containing the pages that are inserted into the current document.
startPage
The page number of the first page in source document to insert into the current document. The first page is 0.
pageCount
The number of pages in source document to insert into the current document. Use ALL_PAGES to insert all pages from source document into the current document.
options
Options that determine what additional information is copied from source document into the current document. An OR of ImGearPDFInsertFlagsconstants:

BOOKMARKS - Inserts bookmarks as well as pages. The bookmark tree of source document 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 source document.

THREADS - Inserts threads as well as pages.

ALL - Inserts document data from pages.

Glossary Item Box

Inserts pages from given document into the current document.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

precedingIndex
The page number in the current document after which pages from source document are inserted. The first page is 0. If BEFORE_FIRST_PAGE is used, the pages are inserted before the first page in the current document. Use LAST_PAGE to insert pages after the last page in the current document.
document
The source document containing the pages that are inserted into the current document.
startPage
The page number of the first page in source document to insert into the current document. The first page is 0.
pageCount
The number of pages in source document to insert into the current document. Use ALL_PAGES to insert all pages from source document into the current document.
options
Options that determine what additional information is copied from source document into the current document. An OR of ImGearPDFInsertFlagsconstants:

BOOKMARKS - Inserts bookmarks as well as pages. The bookmark tree of source document 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 source document.

THREADS - Inserts threads as well as pages.

ALL - Inserts document data from pages.

See Also

©2013. Accusoft Corporation. All Rights Reserved.