THPDFHeadlessDocument.SavePreparedEmbeddedFormDataFDFToFile

function SavePreparedEmbeddedFormDataFDFToFile(const FileName: string;
  Input: THPDFHeadlessPreparedEmbeddedFDF;
  const Fonts: THPDFHeadlessRichTextFonts;
  const AppearanceOptions: THPDFHeadlessTextAppearanceOptions;
  Families: PHPDFHeadlessRichTextFontFamilies = nil): THPDFHeadlessEmbeddedFDFChanges;

Applies the held typed fields and optional annotation projection to an independent prepared revision, then atomically publishes the PDF without selecting or decoding the package again

The returned THPDFHeadlessEmbeddedFDFChanges reports Fields and Annotations separately; annotation-only changes still publish even when the field count is zero

Fonts provides the regular, bold, italic and bold-italic programs; optional Families supplies configured named families through the existing rich appearance profile

The plan must belong to this document, its source lifetime must remain valid and it must not have committed; non-nil appearance cancellation tokens must match the document token

Field permissions, certification, field locks, signature integrity and annotation policy are checked against the actual prepared destination; no field or annotation is published if the complete operation fails

Success marks the plan committed and prevents its reuse for another save; failure leaves the plan uncommitted, with all prior cumulative budget charges retained

A complete no-op preserves the exact current revision bytes; the destination must be a nonempty path without NUL and must not alias the loaded source

The loaded document is unchanged by this save; free the plan and explicitly load the output to adopt the published revision

Prepare the input · Package overview