AppendPagesFrom Method

Top  Previous  Next

The AppendPagesFrom method is used to append pages from a PDF document to the currently loaded PDF document.

 

 

 

Syntax

 

 

[VC++]

void AppendPagesFrom(LPCTSTR FileName, LPCTSTR PageRange)

 

[CS]

public abstract new void AppendPagesFrom ( String FileName , String PageRange )

 

[VB]

Sub AppendPagesFrom(FileName As String, PageRange As String)

 

 

 

 

Parameters

 

 

FileName

[in] Name of the PDF document from where the pages to be appended.

 

 

PageRange

[in] The range of pages to be appended, 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 between the range of 1 to 5 and individual pages 8 and 9 are considered.

 

 

 

Exceptions Raised

 

 

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

 

 

 

 

See Tutorial-AppendPages