SplitDocumentByOutline
Page manipulation
Description
Splits the document at its outline entries
Syntax
Delphi
Function SplitDocumentByOutline(MaxLevel: Integer; Const NameTemplate: WideString): Integer;Parameters
| MaxLevel | Outline depth that defines split points; 1 cuts at top-level bookmarks |
|---|---|
| NameTemplate | Output path template; %p receives the section sequence number |
Return value
The number of files written
Remarks
Each section starts at its bookmark page and ends before the next split point; the last section runs to the final page. The document must have been loaded from a file