Repository navigation
Open
Description
Moved from #613 (item 28), where it was measured and written up. The text below is that item as posted.
#613 item 28. A PDF/A-2u document with any form field fails veraPDF rule 6.2.11.4.1-1
- The form's
/DRfont and every widget appearance use the Standard-14 Helvetica:PdfDocument.cs:969callsUseFont(Standard14.Helvetica)andAcroFormBuilder.cs:43-46writes its dictionary. I did not read the font dictionary builder for a font program; the result below is what shows there is none embedded. - Measured on the fix(kernel): write whole reals outside int32 as reals, and form text as text strings #646 head f6fff0b with veraPDF 1.30.4, this Windows machine: three documents with
Conformance = PdfConformance.PdfA2u, a title, one page and one text field each. The field was nameda b(ASCII space), thenaU+00A0b, thenxU+0080y, with the name also used as the value (U+0080 replaced byq). All three failed withisCompliant="false"and one failed rule,6.2.11.4.1-1. A variant build without the Kernel: An integral PdfReal above int.MaxValue is written as an out-of-range integer token #639 number change printed the same for the three. The plain-ASCII name fails too, so the failure does not depend on the characters. - Not measured: main (by reading, the form code path is the same), PDF/A-2b and 2a, check boxes, choice fields and push buttons, a document that embeds a font elsewhere, and what
PdfPreflightreports for the same file. - Matters because
Savewrites a file declared PDF/A-2u that the reference validator rejects, with no exception and no word in the remarks of the fiveAdd*methods. ISO 19005-2, 6.2.11.4.1 (read on a licensed copy earlier in the v2.4 work, not re-read here) requires embedded fonts, with no exemption for the 14 standard fonts. - Suggested direction: either document that a form cannot yet be PDF/A-2, or refuse the combination at
Save. The lasting fix is the one in Kernel: AcroForm appearance streams encode field text through WinAnsi, so a value outside WinAnsi throws at save #648 (v2.5): a font for the appearance that can be embedded, the same one that would draw characters outside WinAnsi. - Proposed milestone: v2.4 for the documentation or the refusal, since users writing PDF/A forms hit it; v2.5 for the font, with the appearance issue.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Tim81 commentedon Nov 29, 2026
The audit of the form output measured this on origin/main b2791ba with veraPDF 1.30.4, one field per file, the claim set and
Languageset:So the failure is not specific to 2u or to any characters: every PDF/A level and PDF/UA-1 fail it for every field kind, because the form's
/DRfont and every appearance use the unembedded Helvetica, and the check box and radio appearances use ZapfDingbats. A signed file with no other field passes all four flavours (the signature widget has no appearance and no font).The second rule is the Standard 14 class of #711: ZapfDingbats has no ToUnicode map, and veraPDF fails it under 2u, 2a and ua1 but not 2b (6.2.11.7.2 and 7.21.7 are not in the 2b profile).
The "document that a form cannot yet be PDF/A-2" direction in the issue covers all three of the PDF/A flavours and PDF/UA-1.
Tests:
ConformanceAuditG6Tests.Iso19005_2_6_2_11_4_1_AFormFieldUsesAnEmbeddedFontOrTheSaveRefusesIt(skipped, a refusal meets it) andIso19005_2_6_2_11_7_2_AFormFileHasAToUnicodeMapForTheFontsItDrawsWith(skipped); the pinIso19005_2_PinsTodayTheFormFileFailsExactlyTheRulesTheGapRowsNamerecords the table.test: pin form and signature field output to its ISO clauses (#779)