THotPDF.ReplaceLoadedPage Method
Replaces one loaded page with a deep copy of a page from another THotPDF instance while preserving the order of all other pages
Declaration
procedure ReplaceLoadedPage(SourceDoc: THotPDF; SourcePageIndex, DestPageIndex: Integer);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
SourceDoc | Source THotPDF instance containing the page to copy |
SourcePageIndex | Zero-based source page index |
DestPageIndex | Zero-based destination page index in the current loaded document |
Return value
This member does not return a value
Usage notes
- SourceDoc must remain alive until the copy completes
- Invalid source or destination indexes raise an exception