Release v2.0.0
Release v2.0.0
Changelog
Breaking
- Configuration structure: Signature config must be under the
signaturenode (global box options +configsby alias). AcroForm config must be under a singleacroformnode (replacingacroform_editorandacroform_configs). Container parameters are renamed:nowo_pdf_signable.default_box_*,.configs→nowo_pdf_signable.signature.*;nowo_pdf_signable.acroform_editor.*,nowo_pdf_signable.acroform_configs→nowo_pdf_signable.acroform.*,nowo_pdf_signable.acroform.configs. See UPGRADING for migration steps and examples.
Added
- Signature config under
signaturenode: Global box defaults and named configs by alias (default aliasdefault). Use form optionconfig: 'alias'to apply. Container parameters:nowo_pdf_signable.signature.*andnowo_pdf_signable.signature.configs. See UPGRADING. - AcroForm config under single
acroformnode: Replacesacroform_editorandacroform_configs. Platform options, editor defaults,default_config_alias, andconfigsby alias. Container parameters:nowo_pdf_signable.acroform.*andnowo_pdf_signable.acroform.configs. See UPGRADING. - AcroForm editor translations: All UI strings in the AcroForm editor panel (demo templates) are now translatable. New translation keys under
acroform_editor.*(domainnowo_pdf_signable): page title, config header, form errors intro, close aria, panel title, draft intro (with HTML), document key label/placeholder, fields label, fields from PDF, refresh button, draft label/placeholder/title, load/save/clear buttons. Translations added for all 12 locales (EN, ES, FR, DE, CA, IT, NL, PT, CS, PL, RU, TR). Demo templatesacroform_editor.html.twig(Symfony 7 and 8) use|trans({}, 'nowo_pdf_signable')for every user-facing string. - AcroForm editor config (Type): New options under the
acroformnode to control the edit-field modal from the bundle config:label_mode('input'|'choice'): label as free text or select with predefined options plus "Other".label_choices(string[]): list of label options whenlabel_modeis'choice'(each entry: string or"value|Label").label_other_text(string): text for the "Other" option in the label select (default'Other').show_field_rect(bool, defaulttrue): whenfalse, the coordinates (rect) input is hidden in the edit-field modal.font_sizes(int[]): allowed font sizes in pt; empty = number input (1–72); non-empty = select with these values.font_families(string[]): allowed font families; empty = built-in list; non-empty = select with these options (each entry: string or"value|Label").
See CONFIGURATION and ACROFORM.
- Demo — AcroForm section: New dedicated "AcroForm" section in the demo nav and home index (Symfony 7 and 8) with six demos: AcroForm editor (default), AcroForm editor — Label as dropdown, AcroForm editor — Coordinates hidden, AcroForm editor — Custom font options, AcroForm editor — All options, AcroForm editor (min field size 24 pt).
- AcroForm apply — font family in PDF: The edit-field modal allows editing font size and font family for text/textarea fields. These values are now sent in the patch payload when applying to the PDF;
AcroFormFieldPatchincludesfontFamily; the Python apply script (apply_acroform_patches.py) sets the default appearance (/DA) with both font size and family, mapping common names (Arial, Helvetica, Times New Roman, Courier New, sans-serif, serif, monospace) to standard PDF fonts. See ACROFORM_BACKEND_EXTENSION and ACROFORM.
Changed
- (None.)
Fixed
- (None.)
Documentation
- Unified AcroForm docs: Single ACROFORM guide; ACROFORM_FLOWS for flow diagrams; ACROFORM_BACKEND_EXTENSION for backend. Removed redundant ACROFORM_EDITOR.md and ACROFORM_EDITOR_UX.md.
- Documentation in English: README, ACROFORM, ACROFORM_FLOWS, and EVENTS frontend section translated to English; ROADMAP updated with AcroForm section and doc links.
- Code comments in English: Spanish comments in
assets/acroform-editor.ts,assets/pdf-signable.scss, andscripts/PoC/run_poc.pytranslated to English.
For upgrade steps from 1.5.x, see UPGRADING.