How can I easily remove all comments and annotations (added with Foxit Reader) from all the PDFs in a folder?
|
|
I think you can do that most easily by "refrying" the PDF. Refrying means: first convert the file to PostScript, then convert the PostScript back to PDF. Usually refrying is frowned upon, because usually you loose quality and some content. In your case you want to loose the content. The re-frying can be done with Ghostscript (and the helper batch files shipping with it -- download the
|
|||||||||
|
|
Providing you're on a Unix system:
This is a hack that removes all |
|||||||||||
|
|
OK, you said you'd also consider a commercial solution.... I'd recommend you try callas pdfToolbox. It's available for Windows and Mac OS X. (They have a CLI for Linux as well, but you can only use pre-configured "profiles" with it. With the Windows GUI, you can create your custom profiles and re-use them with the Linux CLI, though. The pdfToolbox has lots and lots and lots of way to manipulate and fix many, many individual PDF problems. One of the "Fixups" is to remove all annotations. You don't need to shell out any money to test it first; callas gives out 14days trial licenses for free. |
|||||
|