Intent to prototype: Use SkPDF as our default print-to-pdf back-end

226 views
Skip to first unread message

Emilio Cobos Álvarez

unread,
Feb 27, 2026, 2:15:38 PMFeb 27
to dev-pl...@mozilla.org
Hi all,

In bug 2020017, I plan to start testing the SkPDF back-end on Nightly builds for print-to-pdf output.

This will allow us to eventually get rid of mozcairo (which is the current back-end). Note that GTK3 might still use system Cairo in some cases. More importantly, this also unblocks improvements on generating more accessible PDFs (bug 1657973).

Ideally this doesn't have any user-visible behavior change, but it might need some tuning. In my limited testing, the size of the generated PDFs seems reasonable, and the print quality is good, but of course there are tons of documents you can print out there... :)

This is behind the pref `print.experimental.skpdf` (and soon `print.skpdf.image-encoding-quality` for jpeg encoding quality). Please file bugs on either print quality, PDF file size, or missing functionality against bug 1372506.

Let me know if there's any concern with proceeding.

Thanks a lot,
 -- Emilio

Emilio Cobos Álvarez

unread,
Jun 30, 2026, 11:50:07 AM (10 days ago) Jun 30
to dev-pl...@mozilla.org
This took a while to land (due to other priorities and blockers that came up), but it has stuck now. Let me know if you see pdf generation issues on Nightly.

Also note that for actual print output we still use Cairo in some places, see bug 2036950 for some context.

Thanks,
 -- Emilio
Reply all
Reply to author
Forward
0 new messages