TPDFPageRangePages
Native Pascal, workflow preparation
Description
TPDFPageRangePages is the ordered page-number vector of the native helpers in PDFlibPageRanges.pas. It is an ordinary dynamic array of Integer, one-based and in selection order; PLTryParsePageRangeList fills it from range text and PLCombinePageSelections builds it from two selections.
PLBatchPageSelection, PLAnalyzePageSelection and PLCompactPageRangeList consume it. The ordered page plan section of WorkflowDataTools shows how parsing, combining and batching fit together.
Syntax
Delphi
TPDFPageRangePages = Array Of Integer;Remarks
Page numbers are one-based; the combine, analyse, batch and compaction functions raise EConvertError for a zero or negative entry, while the parser returns False and fills its error record.
The array does not have to be sorted or unique: TPDFPageRangeOptions decides whether parsing sorts entries and keeps duplicates, and combining always deduplicates its own result.
A zero-length array is valid and describes an empty selection, for which analysis reports zero counts and no runs.
It is a plain dynamic array with no class ownership, so the helpers return new arrays and never modify their inputs.
See also
WorkflowDataTools, TPDFPageSelectionBatches, TPDFPageSelectionAnalysis, TPDFPageSelectionOperation