SetDocumentPartPageRange
Document parts, variable data, PDF 2.0
Description
Assigns an inclusive page range to an empty part and converts it into a leaf
Syntax
Delphi
Function TPDFlib.SetDocumentPartPageRange(PartID, StartPage, EndPage: Integer): Integer;DLL
int DLSetDocumentPartPageRange(int InstanceID, int PartID, int StartPage, int EndPage);ActiveX
Function PDFlib::SetDocumentPartPageRange(PartID As Long, StartPage As Long, EndPage As Long) As LongParameters
| PartID | An empty root or child part in the selected hierarchy |
|---|---|
| StartPage, EndPage | Inclusive one-based page range |
Return values
Returns 1 on success or 0 when the part has children, already has a range, lies outside the hierarchy, or any page is already assigned
Remarks
This method enables a valid one-level hierarchy by assigning the complete page range directly to the root part