InsertPagesFrom Method

Top  Previous  Next

The InsertPagesFrom method is used to insert pages from any PDF document to the currently loaded PDF document after a specified page.

 

 

 

Syntax

 

 

[VC++]

void InsertPagesFrom(LPCTSTR FileName, LPCTSTR Pages, long InsertAfterPage)

 

[CS]

public abstract new void InsertPagesFrom ( String FileName , String PageRange , Int32 InsertAfterPage )

 

[VB]

Sub InsertPagesFrom(FileName As String, Pages As String, InsertAfterPage As Long)

 

 

Parameters

 

 

FileName

[in] Indicates the file name of the source PDF document.

 

PageRange

[in] The range of pages to be inserted to the current PDF document. It can be indicated in the following ways:

 

 

 

1, 2, 5, 8, 9----> Each individual page is considered.

 

 

 

1 - 5----> All pages that fall between the range of 1 to 5 are considered.

 

 

 

1 - 5, 8, 9----> All pages that fall between the range of 1 to 5 and individual pages 8 and 9 are considered.

 

 

 

InsertAfterPage

[in] Specifies page number after which the pages are to be inserted to the currently loaded PDF document (destination document).

 

 

 

Exceptions Raised

 

 

An Exception EInvalidPageError is thrown if an invalid page range is specified.