ImageGear .NET - Updated
InsertPages Method




ImageGear24.Formats.Pdf Assembly > ImageGear.Formats.PDF Namespace > ImGearPDFDocument Class : InsertPages Method
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.
The source document containing the pages that are inserted into the current document.
The page number of the first page in source document to insert into the current document. The first page is 0.
The number of pages in source document to insert into the current document. Use ImGearPDFPageRange.ALL_PAGES to insert all pages from source document into the current document.
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.

Inserts pages from given document into the current document.
Syntax
'Declaration
 
Public Sub InsertPages( _
   ByVal precedingIndex As Integer, _
   ByVal document As ImGearPDFDocument, _
   ByVal startPage As Integer, _
   ByVal pageCount As Integer, _
   ByVal options As ImGearPDFInsertFlags _
) 
'Usage
 
Dim instance As ImGearPDFDocument
Dim precedingIndex As Integer
Dim document As ImGearPDFDocument
Dim startPage As Integer
Dim pageCount As Integer
Dim options As ImGearPDFInsertFlags
 
instance.InsertPages(precedingIndex, document, startPage, pageCount, options)
public void InsertPages( 
   int precedingIndex,
   ImGearPDFDocument document,
   int startPage,
   int pageCount,
   ImGearPDFInsertFlags options
)
public: void InsertPages( 
   int precedingIndex,
   ImGearPDFDocument* document,
   int startPage,
   int pageCount,
   ImGearPDFInsertFlags options
) 
public:
void InsertPages( 
   int precedingIndex,
   ImGearPDFDocument^ document,
   int startPage,
   int pageCount,
   ImGearPDFInsertFlags options
) 

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 ImGearPDFPageRange.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

Reference

ImGearPDFDocument Class
ImGearPDFDocument Members
ImGearPDFInsertFlags Enumeration