DeletePages Method

Top  Previous  Next

The DeletePages method deletes specific pages from the PDF document.

 

 

 

Syntax

 

 

[VC++]

void DeletePages(LPCTSTR PageRange)

 

[CS]

public abstract new void DeletePages ( String PageRange )

 

[VB]

Sub DeletePages(PageRange As String)

 

 

Parameters

 

 

PageRange

[in] Range of page numbers to be deleted. 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.

 

 

 

Exceptions Raised

 

 

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