THPDFPageAssemblySource Record
Names one input document, its optional password, and the page range for collated page assembly
Declaration
THPDFPageAssemblySource= record
FileName: TFileName;
Password: AnsiString;
PageRange: string;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
FileName | Path of the source PDF opened with LoadFromFile during assembly |
Password | Optional password forwarded to LoadFromFile; leave empty for unprotected documents |
PageRange | Range expression parsed with HPDFParsePageRange against the source page count; an empty string selects all pages |
Usage notes
- Pass an array of these records to
AssembleCollatedPages; sources are visited round by round so their pages interleave in the target document - An empty
PageRangeis replaced with1-Nusing the source page count, so whole documents are appended by default - The file must exist on every open; a missing file raises an error that names the source index and the open count reached so far