Fork me on GitHub

DEPLOY AND OPERATE

Your fonts.
Your processing policy.

Configure trusted instance settings separately from document requests. Keep runtime default policies, resource limits and the distinction between production and development intact.

Available in 0.5.0-alpha.7. Use its matching production or development Playground deployment kit. Earlier releases do not gain the native engine automatically; update the image version before using them.

Qualified paragraph borders and passive VML/DrawingML lines are supported, including bounded solid, dashed, dotted and double strokes. Arbitrary shapes, drawing effects and unsupported line combinations still fail explicitly. Consult the line support profile ↗ and use the Playground source inspection tools to locate a rejection.

Fonts: preserve, supply or embed

In 0.5.0-alpha.7, font filenames remain arbitrary, but the requested family and face must match the actual font. Extended designs such as Aptos Display or Calibri Light keep their precise family and cannot silently stand in for their base family. Regular, bold, italic and boldItalic remain separate faces. Supply the exact required design; see the font family guide.

Default DOCX output preserves template font references. For custom fonts, mount a readable, flat directory of standalone TTF/OTF faces at /opt/nuaforma/custom-fonts using the kit's custom-fonts directory, then restart. GET /api/v1/capabilities lists the provider's available bundled/mounted fonts. Private request uploads are not exposed in that catalog.

To embed the fonts actually used by a supported DOCX document, select DOCX output with these options inside your complete request envelope:

DOCX output selection
"output": {
  "format": "docx",
  "options": {
    "fontMode": "embed",
    "fontSelection": "used"
  }
}

This is not restricted to Arial-like fonts: supported effective families and regular/bold/italic/boldItalic faces are resolved after template expansion. Unused catalog fonts are not embedded. Explicit declarations take precedence over mounted fonts, then bundled fonts; already embedded faces are retained. Missing faces, ambiguous identities, unsupported font-resolution constructs and prohibited embedding fail explicitly, without silent substitution. Font availability is not a guarantee of glyph coverage or support for every Word feature.

For request-private fonts, declare each fonts entry with its family, face and logical resource ID, then attach its bytes as multipart resource.<id>. The Playground can prepare these declarations and uploads, or select automatic used-font embedding when supported. Fonts are never installed globally. Follow the font and embedding reference for the exact supported profile, bounds and permissions.

One malformed mounted font no longer disables every otherwise usable font. Rejected files are excluded and logged safely; a request that requires an unavailable or conflicting face still fails. Fix the file and restart to refresh the immutable catalog. Existing valid embedded fonts and explicit request resources retain their documented precedence.

Diagnose templates without exposing production data

Production API errors remain restricted. Explicit NUAFORMA_MODE=development enables fixed application-owned rejection explanations and remediation for recognized conditions. Internal logging uses request IDs for correlation; development logging may contain document content and field values. It is not safe to enable casually with confidential data.

The separate Playground container enables development mode and shows conspicuous warnings. It is not the production image. Configure your own authentication/TLS gateway and log access controls; arbitrary extension errors are not forwarded as public explanations. See the logging and privacy guide.

Bounded PDF concurrency

NUAFORMA_PDF_PARALLELISM defaults to 1 and accepts 1 through 8. This operator setting controls concurrent PDF runtime processes per provider instance; it is not a per-request option or the HTTP admission limit. Requests may wait for slots. Increasing it requires CPU, memory, process-limit and temporary-storage headroom; eight is not a recommended default. Read the short processing trials and their limitations and size against your own documents.

Native PDF fonts and watermarks

Native PDF embeds the supplied used font faces and enforces technical embedding permissions. Supply every required family/face through the catalog or explicit request resources; source-embedded DOCX fonts are outside the current native import profile. Standard PDF, PDF/A-2b and PDF/A-3b accept requested text watermarks. PDF/A-1b refuses every requested watermark, including fully opaque text.

PDF/A validation stays on by default

An absent NUAFORMA_PDFA_VALIDATION or exact true enables per-document veraPDF conformance validation. Only exact false disables that stage; empty, whitespace, alternate-case and unknown values fail startup. This trusted instance setting cannot be changed by request JSON or a template.

With validation disabled, PDF/A conformance is not checked by NuaForma. Output is generated using the requested profile, and the operator owns downstream conformance checking. Capabilities report the active policy separately from available formats; the Playground shows a warning, not a request-level switch.

PDFBox structural, active-content and embedded-font checks remain mandatory, as do profile restrictions, private files, bounded validator processes, cancellation and processing limits. Disabling veraPDF does not disable security or permit unsupported PDF/A-1b transparency. Standard PDF and DOCX retain their behavior. Default deployment examples keep validation enabled.

Optional Compose instance settings
environment:
  # Keep the other environment entries from the complete kit.
  NUAFORMA_PDFA_VALIDATION: "true"
  NUAFORMA_PDF_PARALLELISM: "1"

Retain the complete deployment kit, runtime default security policies and mounts. Host compatibility must be checked through capabilities: a healthy HTTP service alone does not prove PDF availability. No unrestricted OpenShift compatibility is claimed. See the service configuration reference and PDF profile and fidelity limits.