pdfsizeopt icon indicating copy to clipboard operation
pdfsizeopt copied to clipboard

Add ability to disable metadata

Open rbrito opened this issue 6 years ago • 3 comments

Hi, @pts.

I see that, in its current form, pdfsizeopt doesn't discard metadata that is embedded in a PDF document.

For instance, if I start with the file minimal.pdf and run Ghostscript's ps2pdf14 on it, I get the following file: minimal.pdf.pdf.

If I postprocess the resulting file above with pdfsizeopt, I get something like: minimal.pdf.pso.pdf which, when uncompressed with pdftk, gives the following: minimal.pdf.pso.unc.pdf.

If you inspect this later file, you can see that the XML-formatted metadata is there. It would be great to have this removed from the file with a run of pdfsizeopt.

Thanks,

Rogério Brito.

rbrito avatar Apr 12 '18 10:04 rbrito