removePage

public final void removePage(int index)

Removes a page from the PDF document at the specified index. The page is permanently removed from the document. If you need to preserve the original document, make a copy before performing this operation.

Parameters

index

The zero-based index of the page to remove.