AcroForm vs XFA — Why Both Fail Government Portal Validators
Government portals reject both AcroForm and XFA interactive PDFs, but for different reasons. Understanding the difference helps you fix the right problem.
The Two Types of Interactive PDF
When a government portal rejects your PDF with "invalid file type", "document malformed", or "interactive form fields not allowed", it is detecting one of two structures inside your PDF: AcroForm or XFA. Both appear identical to a human viewer — you see a filled-in form — but they are structurally different, and government portals reject both, though for different technical reasons.
AcroForm — The Older Standard
AcroForm (Adobe Acrobat Forms) is the original PDF form standard, introduced in PDF 1.2 (1996). An AcroForm PDF contains a /AcroForm entry in the PDF catalog dictionary. This entry holds widget annotations — the field definitions — mapped to specific page locations.
When you type into a PDF form created in Microsoft Word, LibreOffice, or early Adobe tools, you are filling AcroForm fields. When you download a bank statement with your name and account number pre-filled, it is likely an AcroForm document.
Government portal validators — USCIS myUSCIS, IRCC ePortal, UKVI Visa4UK, IRS Document Upload Tool — scan for the /AcroForm key in the PDF catalog. If it exists, the portal rejects the upload, even if no fields are visible or unfilled.
Fix: AcroForm fields can be properly flattened. Flattening removes the /AcroForm entry from the catalog and converts each widget annotation's current appearance into page content. The text you typed becomes locked, static content. The portal validator no longer sees any form structure.
XFA — The Proprietary Adobe Format That Always Fails
XFA (XML Forms Architecture) is a proprietary Adobe format introduced in 2003, embedded inside PDF as an XML data stream. XFA forms look like PDFs but are structurally a different document type wrapped inside a PDF container. The actual content — layout, fields, data — is defined in the XML stream, not in standard PDF page content objects.
XFA PDFs are created by Adobe LiveCycle Designer and used extensively by governments, banks, and institutions in South Asia, the Middle East, and East Africa for issuing official documents. Police certificates from India (some states), financial statements from certain Pakistani and Nigerian banks, and employment letters from Gulf region employers are commonly XFA documents.
Why XFA always fails: Government portals cannot process XFA at all. The validator expects standard PDF page content streams — and XFA PDFs do not have them in the expected format. The portal sees the XFA XML stream and rejects the document as "unsupported format" or "document could not be processed."
Fix: XFA cannot be simply flattened the way AcroForm fields can. The XFA XML stream must be rendered and converted into proper PDF page content. UploadReadyPDF handles this automatically — the XFA form is rendered, the content extracted, and a standard PDF 1.4 document produced with static page content that passes every major government portal validator.
How to Tell Which Type You Have
Open your PDF in a browser (Chrome, Edge, or Firefox). If the browser displays a warning like "This PDF contains interactive form fields" or if you can click and type into fields, you have either AcroForm or XFA.
To distinguish: if the PDF renders correctly in Chrome's built-in viewer with all content visible, it is likely AcroForm. If Chrome shows a blank document or displays "Please wait..." with no content, it is almost certainly XFA — Chrome cannot render XFA and shows a blank page.
Government Portals That Reject Both AcroForm and XFA
- USCIS myUSCIS portal — rejects both, error: "Document malformed" or "File type not supported"
- IRCC ePortal — rejects both, error: "Invalid file type" or "Upload failed"
- UKVI Visa4UK — rejects both, error: "Interactive form fields are not allowed"
- IRS Document Upload Tool — rejects both, error: "File type not supported"
- France-Visas.gouv.fr — rejects both, plus enforces 2 MB limit
- Germany VIDEX — rejects XFA outright, AcroForm fields must be flattened