CCALI / a2jdat

This repo hosts the distributable production version of the A2J Document Assembly Tool (DAT). The document assembly tool is an optional piece of software used for producing pdf documents at the end of A2J Author Guided Interviews.
https://www.a2jauthor.org
Other
3 stars 1 forks source link

automatically flatten pdfs #133

Open tobiasnteireho opened 1 year ago

tobiasnteireho commented 1 year ago

automatically flatten pdfs to avoid issues with loading. This may be done with a command line tool like unoconv or ghostscript

tobiasnteireho commented 8 months ago

From this https://unix.stackexchange.com/questions/162922/is-there-a-way-to-flatten-a-pdf-image-from-the-command-line

This looks like the most promising though is not the top answer

gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ -dPreserveAnnots=false \ -sOutputFile=document_flat.pdf document_original.pdf