Skip to content

Kernel forms: a PDF/A-2u document with any form field fails veraPDF rule 6.2.11.4.1-1 #671

Open

Description

@Tim81

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 /DR font and every widget appearance use the Standard-14 Helvetica: PdfDocument.cs:969 calls UseFont(Standard14.Helvetica) and AcroFormBuilder.cs:43-46 writes 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 named a b (ASCII space), then a U+00A0 b, then x U+0080 y, with the name also used as the value (U+0080 replaced by q). All three failed with isCompliant="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 PdfPreflight reports for the same file.
  • Matters because Save writes a file declared PDF/A-2u that the reference validator rejects, with no exception and no word in the remarks of the five Add* 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.

Activity

  1. Tim81 commented on Nov 29, 2026

    @Tim81
    OwnerAuthor

    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 Language set:

    claim field failed rules
    PDF/A-2b text, check box, radio group, combo, push button 6.2.11.4.1-1 (push button also 6.3.3-3)
    PDF/A-2u, PDF/A-2a text, combo 6.2.11.4.1-1
    PDF/A-2u, PDF/A-2a check box, radio group 6.2.11.4.1-1 and 6.2.11.7.2-1
    PDF/UA-1 text, combo, push button 7.21.4.1-1 (and 7.18.1-3, 7.18.4-1, see the new issue for 7.18)
    PDF/UA-1 check box, radio group 7.21.4.1-1 and 7.21.7-1 (and the same 7.18 rules)

    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 /DR font 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) and Iso19005_2_6_2_11_7_2_AFormFileHasAToUnicodeMapForTheFontsItDrawsWith (skipped); the pin Iso19005_2_PinsTodayTheFormFileFailsExactlyTheRulesTheGapRowsName records the table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions