Repository navigation
[api-minor] Support form field flattening in saveDocument (bug 2075337) - #22446
calixteman wants to merge 2 commits into
Conversation
Viewer previewCommit 44adeff (build logs).
Previews are removed when the PR closes and may be pruned after 30 days without an update. |
Merging this PR will improve performance by 12.76%
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22446 +/- ##
==========================================
+ Coverage 90.58% 90.62% +0.03%
==========================================
Files 276 277 +1
Lines 68671 69138 +467
==========================================
+ Hits 62203 62653 +450
- Misses 6468 6485 +17
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:
|
3b826ce to
684cb2e
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.
684cb2e to
44adeff
Compare
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.