TXFAHeadlessPDFResult

Unit: HPDFXFAHeadless

TXFAHeadlessPDFResult = record
  PagesCreated, FieldsCreated, DrawsCreated, ObjectsCreated: Integer;
  GlyphUnits, BytesWritten: Integer;
  FlattenResult: TXFAFlattenResult;
end;

PagesCreated counts native page objects, FieldsCreated counts emitted widget instances, DrawsCreated counts emitted static draws and ObjectsCreated includes all native indirect graph and appearance objects

Every radio member contributes one FieldsCreated instance, whilst its shared native parent contributes to ObjectsCreated; therefore FieldsCreated can exceed the logical field count returned by a native PDF reader

Each consumed text, vector or image draw contributes one DrawsCreated instance; an image's native Image XObject, optional soft mask and placement Form XObject each contribute to ObjectsCreated

GlyphUnits counts aggregate visible text UTF-16 code units; BytesWritten is the exact prepared PDF length successfully handed to the destination stream

A Boolean widget's scalar caption is counted once and shares its actual embedded appearance across off, on and neutral states; hidden, inactive and invisible captions consume no glyph units

FlattenResult retains the existing XFA flatten statistics; its Warnings points at the caller-supplied list or is nil when the adapter used an internal temporary list

The adapter owns no resources through this record; caller-owned warning lists remain the caller's property

HPDFXFAWriteHeadlessPDF returns this record only after destination writing succeeds