Comment 12 for bug 1564249

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Jay, QPDF could be used for identifying whether a file contains forms or not. See

https://bugs.linuxfoundation.org/show_bug.cgi?id=1315

nad there comment #9 with the link to

https://github.com/smilingthax/pdfformflatten

This code identifies PDFs with forms but does not actually flatten them. pdftopdf could use this and if a form is found pass the PDF through Ghostscript/Poppler/MuPDF to flatten it and after that do the usual QPDF treatment of pdftopdf.