I have a program that produces pdfs, and I'd like to write tests for that output. I care about the "look" of the pdfs, but I don't really mind the internal structure. E.g., I'd surely like to detect if for some reason some wrong font snuck in, or some spaces changed in rather large-ish ways. I'd be fine with false positives sometimes, but I'd rather like to avoid false negatives.
Yeah that was my idea for image_compare, I just wasn't really sure if that's a good idea or if there a caveats I'm not seeing... not sure about playwrite, it's not a web app. Or am I missing something?
It seems you want to compare rendered outputs, and you can do it. Playwrite is a browser automation toolkit. And for some historical reason web browsers are the most practical way to produce images from pdf programmatically.
Oh ok, thanks for that, but I can already programmatically generate those images without resorting to a browser, so that's fine.
I was more wondering about pitfalls in image comparison I guess, as for which algorithm/similarity measure to use and how good that will work... will give crates.io: Rust Package Registry a shot I think.