Sample Header Ad - 728x90

Is there a way to flatten a .pdf image from the command line?

39 votes
8 answers
37254 views
In GIMP, I can import a PDF, and use the GUI to flatten it (if it was made with many layers) by selecting Flatten Image in the Image dropdown menu. I can then export the PDF with a new filename. I would like to automate this. Is there some way to do it via the terminal?
Asked by generic_user (637 rep)
Oct 19, 2014, 12:20 AM
Last activity: Jul 26, 2025, 01:31 PM