News for hackers. Stuff that matters.
Re:What is the smallest possible valid PDF? by e12e on Saturday March 21, 2020 @12:22AM (#22644426)
> Acrobat opens it

Unfortunately, this is a valid measure of a "valid Pdf" - it doesn't mean the Pdf will work in other readers.

I've had some luck with qpdf --check - as far as I can recall, I've not seen problems with a file that passes.

http://qpdf.sourceforge.net/files/qpdf-manual.html#ref.testi...

Also worth looking into is mutools with its --clean option.

There are no comments on this comment yet.