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

FieldPurpose
StatusFinal verdict from risSuccess through the limit, cancellation, and render error codes
InputBytesSize of the RTF input that was handed to the import
CharacterCountCharacter count reported by the RichEdit before rendering starts
FirstCharacterFirst character position of the rendered range (0)
LastCharacterCharacter position reached by the last rendered chunk
PagesRenderedNumber of metafile pages produced from the RichEdit formatting engine
PagesAddedNumber of pages actually added to the document; the first one may be the current page
MetafileBytesEncoded size of all metafiles written into the PDF
ContainsOLETrue when the input was found to contain OLE content
TruncatedTrue when a character, page, or progress limit stopped the import before the end of the input

Usage notes

Related APIs