THotPDF.InsertLoadedBlankPage Method
Inserts a blank page with the requested point dimensions at a zero-based position in the loaded document
Declaration
function InsertLoadedBlankPage(PageIndex: Integer; Width, Height: Single): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageIndex | Zero-based insertion position from 0 through the current loaded page count |
Width | Positive page width in PDF points |
Height | Positive page height in PDF points |
Return value
Returns the zero-based index of the inserted page
Usage notes
- Use PageIndex = LoadedPageCount to append a page
- Non-positive dimensions or an out-of-range position raise an exception