Repository navigation
Support flattening in Firefox save events (bug 2075337) - #22449
calixteman wants to merge 5 commits into
Conversation
Viewer previewCommit 6e70b5f (build logs).
Previews are removed when the PR closes and may be pruned after 30 days without an update. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22449 +/- ##
==========================================
+ Coverage 90.57% 90.63% +0.06%
==========================================
Files 276 277 +1
Lines 68671 69309 +638
==========================================
+ Hits 62197 62819 +622
- Misses 6474 6490 +16
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will degrade performance by 1.93%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
dfad087 to
0b1c7a5
Compare
Add flatten and intent options to draw supported annotation appearances into page content. Use print or display visibility. Keep the widgets and the interactive annotations. Android 14's PdfRenderer calls PDFium without FPDF_ANNOT [1]. [1] https://android.googlesource.com/platform/frameworks/base/+/refs/tags/android-14.0.0_r1/libs/hwui/jni/pdf/PdfRenderer.cpp
With `flatten: true`, also draw the widgets, generating their appearances from the stored values, and remove the ones hidden for the intent. Prune the removed fields from the AcroForm, and remove it when no page widget remains, unless it declares signatures. Add a "non-forms" value to keep the form fields.
In a flat parent tree, replace the OBJR of a flattened annotation with a marked-content reference to its drawing in the page content. For other readable parent trees, only remove the OBJR.
Reuse the save path to flatten extracted pages. Remap pending form edits to copied annotations and reload with the encryption source's password. Rebuild the PDF to discard the unflattened revision.
Forward flatten and intent through saving and extraction, including unedited PDFs. Run WillPrint/DidPrint for print flattening.
0b1c7a5 to
6e70b5f
Compare
Forward flatten and intent through saving and extraction, including unedited PDFs. Run WillPrint/DidPrint for print flattening.