Repository navigation
Build the PDF with PDFKiln instead of wkhtmltopdf 0.12.4 - #1305
Open
Jamalofski wants to merge 1 commit into
Open
Jamalofski wants to merge 1 commit into
Jamalofski wants to merge 1 commit into
Conversation
Member
|
I assume this means we can stop pinning Ubuntu 24.04? |
Author
|
Yes: the same 1.5.1 package installs on |
Member
|
I would be opposed to switching to a vibe-coded third-party project for this. I'd rather use either headless Chromium directly, or using something like Playwright. |
Author
|
Fair enough, it's your call. In case it helps with Playwright, two things I ran into testing wrc 1.9.0 under Chromium:
Feel free to close this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The deploy workflow builds the PDF of the Regulations with wkhtmltopdf 0.12.4, from 2017; wkhtmltopdf is archived and has had no release since 2020. This installs PDFKiln 1.5.1 instead, a drop-in replacement that keeps wkhtmltopdf's command line and renders with a current Chromium (MIT, https://github.com/pdfkiln/pdfkiln). It follows the hardening of #1303: a pinned release, its SHA-256 checked, no new action. The Debian package installs
/usr/bin/wkhtmltopdf, whichwrccalls, and the AppArmor profile Chromium's sandbox needs on ubuntu-24.04.Tested with the three lines as written, on Ubuntu 24.04 with wrc 1.9.0, as a user without root:
wrc --target=pdfgives 30 pages as with wkhtmltopdf 0.12.4 and 0.12.6, the same 26 bookmarks and the page numbers. Page breaks fall a few lines apart on some pages, as Chromium's line heights differ slightly from Qt's.Disclosure: I maintain PDFKiln.