Read Acrobat format actions when detecting fillable fields

Featurekamo-internal
Shipped
5 Agosti 2026, 23:52 UTC
Author
kamo
Commit
743b438

Acrobat stores a field's intended format as JavaScript in /AA, which pdf.js surfaces as actions.Format. That is the author's declaration rather than a guess off the field name, so it now outranks the name/caption heuristic: - AFNumber_Format -> currency when it carries a currency string, else number - AFDate_Format/AFDate_FormatEx -> date, AFTime_Format -> time - AFPercent_Format -> number - AFSpecial_Format(n) -> zip / zip+4 / phone / SSN - a Calculate action means the field is computed, so it imports read-only Also: a signature or initial widget thinner than the control needs now grows upward from its bottom edge, since a PDF signature field is often only as tall as the printed rule it sits on and ink belongs above the line; and a pure XFA document is reported as such instead of reading as "no fillable fields", because its fields live in XML that AcroForm detection cannot see. Verified against real pdf.js 4.10.38 alongside the unit suite.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei