← All demos

XFA Flatten

Upload an XFA form (e.g. an IRS or immigration PDF). PDFluent detects the XFA structure, runs FormCalc scripting, flattens it to a standard static PDF, and renders every page for preview — entirely in WebAssembly. Download the result instantly.

Runs in WebAssembly — your file never leaves your browser
Drop a PDF here, or click to browse
Any PDF — stays in your browser
XFA flattening runs entirely in WebAssembly — your file never leaves your browser

About this demo

XFA (XML Forms Architecture) is Adobe's dynamic form format, deprecated in PDF 2.0 but still what tax authorities and immigration offices issue their forms in. An XFA form isn't a static page — it carries its own layout rules and a scripting language called FormCalc, so most PDF readers show either a blank page or raw XML instead of the form.

Flattening runs the form's layout and its FormCalc scripts once, then bakes the result into a plain static PDF that any reader can open, print, or archive. This demo does exactly that: upload an XFA form and it detects the structure, runs the scripting, flattens it, and renders every resulting page for preview, entirely inside your browser via WebAssembly. Nothing is uploaded to a server — the same code that runs here ships in the SDK.

The two-form case: an IRS or USCIS form with calculated fields, or an internal LiveCycle form migrated years ago that nobody wants to touch — flattening turns either into a document you can hand to someone without asking what PDF reader they use.