PdfDocumentRemovePages Method (Int32, Int32)

Removes a range of pages from the PDF

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
Syntax
public PdfDocument RemovePages(
	int StartIndex,
	int EndIndex
)

Parameters

StartIndex
Type: SystemInt32
The start index. Note: Page 1 has index 0
EndIndex
Type: SystemInt32
The end index. Note: The last page has index PageCount -1

Return Value

Type: PdfDocument
Returns this PdfDocument object, allowing for a 'fluent' (LINQ like) chained in-line code style
See Also
Download DLL or Install with Nuget