THPDFRTFImportOptions Record

Page geometry, input limits, OLE 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; the default is 595
PageHeightTarget page height in points; the default is 842
MarginLeftLeft margin in points; the default is 54
MarginTopTop margin in points; the default is 54
MarginRightRight margin in points; the default is 54
MarginBottomBottom margin in points; the default is 54
MaxInputBytesInput size cap; the default is 16 MiB
MaxCharactersCharacter count cap; the default is 4000000
MaxPagesRendered page cap; the default is 1000
MaxMetafileBytesPer-page metafile size cap; the default is 256 MiB
UseCurrentPageWhen true the first rendered page goes onto the document's current page instead of adding a fresh one; default true
AllowOLEWhen false, input that contains OLE content is rejected with risInvalidInput; default false
CancellationTokenOptional token that stops a long import with risCancelled; nil by default

Usage notes

Related APIs