Use platform print-to-PDF for FreeText appearances (bug 1794809) - #21858
Use platform print-to-PDF for FreeText appearances (bug 1794809)#21858calixteman wants to merge 1 commit into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #21858 +/- ##
==========================================
- Coverage 90.26% 90.20% -0.07%
==========================================
Files 264 265 +1
Lines 67287 67414 +127
==========================================
+ Hits 60739 60809 +70
- Misses 6548 6605 +57
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:
|
f4c3e33 to
ffb5cc0
Compare
PDF.js creates FreeText appearances with Helvetica and WinAnsiEncoding. It cannot generate a matching appearance when Helvetica cannot encode the text. Add a Firefox-only `printToPDF` callback to `saveDocument`. The worker batches serialized FreeText entries and imports one generated PDF page per appearance. The single-PDF batch preserves resources shared across pages. Copy each page's resources and content without reserializing retained operators. Drop marked-content operators because their metadata belongs to the generated PDF.
ffb5cc0 to
c3c21fa
Compare
|
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/7717739676a8b52/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/058aff0e55f02cc/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/7717739676a8b52/output.txt Total script time: 19.04 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/058aff0e55f02cc/output.txt Total script time: 24.20 mins
|
PDF.js creates FreeText appearances with Helvetica and WinAnsiEncoding. It cannot generate a matching appearance when Helvetica cannot encode the text.
Add a Firefox-only
printToPDFcallback tosaveDocument. The worker batches serialized FreeText entries and imports one generated PDF page per appearance. The single-PDF batch preserves resources shared across pages.Copy each page's resources and content without reserializing retained operators. Drop marked-content operators because their metadata belongs to the generated PDF.