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 running from risSuccess through the limit, cancellation and render error codes
InputBytesSize of the RTF input that was handed over to the import
CharacterCountCharacter count as reported by the RichEdit before rendering starts
FirstCharacterFirst character position of the rendered range, namely 0
LastCharacterCharacter position the last rendered chunk reached
PagesRenderedNumber of metafile pages the RichEdit formatting engine produced
PagesAddedNumber of pages actually added to the document; the first of these may be the current page
MetafileBytesEncoded size of every metafile written into the PDF
ContainsOLETrue where the input was found to contain OLE content
TruncatedTrue where a character, page or progress limit stopped the import before the end of the input

Usage notes

Related APIs