THPDFHeadlessDocument.ImportRichFormDataToFile

function ImportRichFormDataToFile(const FileName: string;
  const Bytes: SysUtils.TBytes; Format: THPDFHeadlessFormDataFormat;
  const Fonts: THPDFHeadlessRichTextFonts;
  const AppearanceOptions: THPDFHeadlessTextAppearanceOptions;
  const Options: THPDFHeadlessFormDataOptions): Integer;

Transactionally imports FDF RV and XFDF value-richtext alongside ordinary scalar fields, regenerates actual widget appearances, and atomically publishes an independent incremental PDF

Fonts supplies independently selected regular, bold, italic and bold-italic font programs; every style used by the imported content requires its corresponding font bytes and glyphs

The rich value supplies the actual mixed-content text and supported visual styles; the saved V is rebuilt from that text, and RV becomes the canonical XHTML emitted by the native run composer

A missing scalar value is derived from the rich value; a supplied scalar fallback value may differ, but arrays or PDF name values cannot accompany a rich value

AppearanceOptions supplies the body default font size and existing layout, shaping and spacing settings; explicit rich font-size styles override the default

A zero AppearanceOptions.FontSize retains the decoder's twelve-point body default; each resulting rich run has a concrete font size

The return value counts changed terminal fields, including style-only changes; equivalent noncanonical and canonical rich markup is idempotent when both its text and supported visual styles match the current value

An unchanged read-only rich field preserves its original RV and source revision; a different supported style with the same scalar text still enforces the read-only constraint

Read-only fields, MaxLen, actual AES permissions, authenticated signature policies, source aliases, cancellation and bounds retain the transaction and destination-preservation behavior of ImportFormDataToFile

The source object graph and source encryption key remain unchanged; all borrowed encryption state is authenticated against the matching private revision graph before any updates

Supported XHTML style profile · Scalar importer · Interchange overview