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 from risSuccess through the limit, cancellation, and render error codes |
InputBytes | Size of the RTF input that was handed to the import |
CharacterCount | Character count reported by the RichEdit before rendering starts |
FirstCharacter | First character position of the rendered range (0) |
LastCharacter | Character position reached by the last rendered chunk |
PagesRendered | Number of metafile pages produced from the RichEdit formatting engine |
PagesAdded | Number of pages actually added to the document; the first one may be the current page |
MetafileBytes | Encoded size of all metafiles written into the PDF |
ContainsOLE | True when the input was found to contain OLE content |
Truncated | True when a character, page, or progress limit stopped the import before the end of the input |
Usage notes
- The import fills this record even when it fails, so always check
Statusbefore trusting the counters PagesAddedcan be one less thanPagesRenderedwhenUseCurrentPagedirects the first page onto the existing pageTruncatedwithrisCharacterLimitorrisPageLimittells you which cap to raise inTHPDFRTFImportOptions