THPDFRTFImportOptions Record

Page geometry, input limits, OLE handling and cancellation controls for RTF import

Declaration

THPDFRTFImportOptions= record
  PageWidth: Single;
  PageHeight: Single;
  MarginLeft: Single;
  MarginTop: Single;
  MarginRight: Single;
  MarginBottom: Single;
  MaxInputBytes: Int64;
  MaxCharacters: Integer;
  MaxPages: Integer;
  MaxMetafileBytes: Int64;
  UseCurrentPage: boolean;
  AllowOLE: boolean;
  CancellationToken: THPDFCancellationToken;
  class function Default: THPDFRTFImportOptions; static;
end;

Unit

HPDFDoc

Fields

FieldPurpose
PageWidthTarget page width in points; 595 by default
PageHeightTarget page height in points; 842 by default
MarginLeftLeft margin in points; 54 by default
MarginTopTop margin in points; 54 by default
MarginRightRight margin in points; 54 by default
MarginBottomBottom margin in points; 54 by default
MaxInputBytesCap on the input size; 16 MiB by default
MaxCharactersCap on the character count; 4000000 by default
MaxPagesCap on rendered pages; 1000 by default
MaxMetafileBytesCap on per-page metafile size; 256 MiB by default
UseCurrentPageWhen true the first rendered page goes onto the document's current page rather than adding a fresh one; true by default
AllowOLEWhen false, input that contains OLE content is turned away with risInvalidInput; false by default
CancellationTokenOptional token that brings a long import to a stop with risCancelled; nil by default

Usage notes

Related APIs