THPDFRTFImportStatistics Record
Reports status, input size, character range, rendered page counts and truncation for an RTF import run
Declaration
THPDFRTFImportStatistics= record
Status: THPDFRTFImportStatus;
InputBytes: Int64;
CharacterCount: Integer;
FirstCharacter: Integer;
LastCharacter: Integer;
PagesRendered: Integer;
PagesAdded: Integer;
MetafileBytes: Int64;
ContainsOLE: boolean;
Truncated: boolean;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
Status | Final verdict running from risSuccess through the limit, cancellation and render error codes |
InputBytes | Size of the RTF input that was handed over to the import |
CharacterCount | Character count as reported by the RichEdit before rendering starts |
FirstCharacter | First character position of the rendered range, namely 0 |
LastCharacter | Character position the last rendered chunk reached |
PagesRendered | Number of metafile pages the RichEdit formatting engine produced |
PagesAdded | Number of pages actually added to the document; the first of these may be the current page |
MetafileBytes | Encoded size of every metafile written into the PDF |
ContainsOLE | True where the input was found to contain OLE content |
Truncated | True where a character, page or progress limit stopped the import before the end of the input |
Usage notes
- The import fills this record even where it fails, so always check
Statusbefore trusting the counters PagesAddedcan run one behindPagesRenderedwhereUseCurrentPagedirects the first page onto the existing pageTruncatedtogether withrisCharacterLimitorrisPageLimittells you which cap to raise inTHPDFRTFImportOptions