Repository navigation
Fix structure tree cleanup when flattening form fields - #1800
andreasrosdalw merged 5 commits into
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 21 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Thanks for working on #1673! All builds, CodeQL and CodeFactor pass, but two quality gates fail: Codacy Static Code Analysis and SonarCloud Code Analysis. Codacy: 2 new issues (0 allowed), both in
|
|
|
Hi @andreasrosdal, Addressed the review feedback in the latest commit.
Verified with Thanks for the review! |



Description
Fixes [#1673](#1673): Radio buttons and checkboxes are not correctly rendered in Adobe Acrobat after form flattening.
Previously, flattening AcroForm fields removed widget annotations but left stale
/OBJRreferences in the structure tree and corresponding/StructParententries in the ParentTree.This change:
/StructParentkeys during form flattening.Testing
mvn -pl openpdf-core -Dtest=PdfStamperImpTest testmvn -pl openpdf-core testBoth passed successfully.