THotPDF.ExtractLoadedPagesToPDF Method
Method summary: THotPDF.ExtractLoadedPagesToPDF Method
Declaration
function ExtractLoadedPagesToPDF(const PageRange: string; const OutputPath: TFileName): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
PageRange | One-based page range such as 1,3-4; an empty value selects all pages |
OutputPath | Destination PDF file path |
Return value
Returns True when at least one selected page is written to the destination file
Usage notes
- PageRange uses one-based page numbers and an empty value selects all pages
- OutputPath must be non-empty and the loaded source must contain at least one page
Related APIs
- THotPDF
- THPDFPage
- Contents