Skip to content

Normalize Acrobat checkbox style metadata#168

Open
nonprofittechy wants to merge 2 commits into
mainfrom
quinten/acrobat-checkbox-style-captions
Open

Normalize Acrobat checkbox style metadata#168
nonprofittechy wants to merge 2 commits into
mainfrom
quinten/acrobat-checkbox-style-captions

Conversation

@nonprofittechy

Copy link
Copy Markdown
Member

Summary

  • rewrite ReportLab's legacy checkbox caption codes to the Acrobat-native /MK /CA values for generated checkbox widgets
  • keep the existing appearance streams intact so the rendered checkbox mark does not change
  • add a regression test covering cross and star checkbox styles

Testing

  • python -m pytest formfyxer/tests/test_pdf_labeling_rules.py -q
  • python -m mypy formfyxer --config-file pyproject.toml
  • python -m build

nonprofittechy and others added 2 commits June 5, 2026 20:29
ReportLab writes legacy /MK /CA caption codes for some checkbox styles, which leaves Acrobat's field editor showing the wrong style even though the appearance stream renders correctly. Rewrite those generated checkbox captions to Acrobat-native values before copying the fields into the destination PDF, and add a regression test covering the affected styles.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant