Repository navigation
Offer: Free page-by-page review of changed reference PDFs on every PR #2262
ndbroadbent
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there! I've built VisualCI, which is a service that compares PDFs page by page between commits, and I'd like to offer it to fpdf2 for free.
VisualCI is open source (Apache-2.0), so you're welcome to self-host it as well.
assert_pdf_equalalready catches every change to a reference PDF, andscripts/compare-changed-pdfs.pyshows the changed ones beside master. That script runs locally, though, so a reviewer only sees the new PDF if they check out the branch and run it. VisualCI could do the same on every pull request: it renders each changed reference PDF (and the images in docs/), shows it side by side with master and a diff, and lets you approve or reject the change.Here's a demo from a fork. I replayed the merged "rect: round the corners named in round_corners" PR, and VisualCI shows its three updated reference PDFs and the docs image, with each corner that moved boxed: https://app.visualci.com/visualcihq/fpdf2/builds/3 (the fork's PR: visualcihq#1). The other 141 files in the build were unchanged. The workflow runs in under a minute, because it only uploads the PDFs that are already committed; it doesn't need to run the tests.
It's free for open source projects, and I'd be happy to send the setup as a PR: one workflow file and a short script.
Thanks for your time, and for all your work on fpdf2!
All reactions