THotPDF.DeleteLoadedPage Method
Deletes a page from a loaded document, removing it from the /Pages /Kids array and the internal page array
Declaration
procedure DeleteLoadedPage(PageIndex: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based index of the loaded page to delete |
Return value
This member does not return a value
Usage notes
- Raises an exception if deleting the page would leave the document with zero pages
- Use THotPDF.CopyLoadedPage or THotPDF.AddLoadedBlankPage when the page count needs to stay above zero