HPDFBuildHeadlessRichLayoutAppearanceWithWorkspace

function HPDFBuildHeadlessRichLayoutAppearanceWithWorkspace(Root: THPDFHeadlessRichTextNode;
  const Families: THPDFHeadlessRichTextFontFamilies; FirstObjectNumber,MaximumObjects: Integer;
  const Appearance: THPDFHeadlessTextAppearanceOptions;
  const Layout: THPDFHeadlessRichLayoutOptions;
  Workspace: THPDFWorkspaceAdmission): THPDFHeadlessTextAppearance;

Declared in HPDFHeadlessRichTextLayout

Builds the rich layout appearance with the existing tree, family, image, span, geometry and object-limit contracts while carrying one admission owner through planning and nested appearance generation

Borrowed admission

Workspace is a borrowed THPDFWorkspaceAdmission; keep it alive for the entire call and do not reset its cumulative ledger during a failed attempt or retry

Pass nil to retain the original call behavior without a borrowed workspace; the original function signature remains available

Admission occurs before the implemented allocations or generated identities; bounded copy and operation checkpoints can also call Reserve(0)

An exception raised by the owner remains the operation failure; cleanup must remain possible after cancellation and must not replace that exception

The caller owns the returned THPDFHeadlessTextAppearance; completed output streams detach from the generation owner before returning, so reading or freeing the result does not require the owner to remain alive

Writing to returned streams after generation is outside this generation-admission contract; the caller remains responsible for such later mutations

See HPDFBuildHeadlessRichLayoutAppearance for the unchanged input and output contract

See workspace admission and native runtimes for ledger categories and lifetime boundaries