

For example to do a PDF export with LibreOffice Writer and keep metadata, we need to disable "Reduce image resolution" (an answer also mentioned that we need to enable "Lossless compression" but I did not need it: ). But images metadata is not always present in PDF files. Note: this solution does not clean metadata of embedded resources like images unlike the tool mat2 shared in another answer (except when using lightweight mode: ). You can then check the properties of the file in your PDF viewer to see if the metadata is restored. So the command will be something like exiftool -PDF-update:all= inputfile. Used to securely edit metadata in PDF files. Update with -PDF-update:all=) because the original information is If you want to try to recover the hidden / removed metadata from PDF files, the man page explains how to do it:Ĭhanges to PDF files by ExifTool are reversible (by deleting the So if you really want to delete the metadata from PDF files so it cannot be recovered instead of just hiding it, you should use the command qpdf -linearize in.pdf out.pdf afterwards. Using the "qpdf" utility with this command: "qpdf -linearize in.pdf (However,Īfter running ExifTool the old information may be removed permanently Old information is never actually deleted from the file. While this would normally beĬonsidered an advantage, it is a potential security problem because


Deleted tags mayĪnd by looking for the error message on a search engine, I found with a link to that mentions:Īll metadata edits are reversible. Warning: ExifTool PDF edits are reversible. When using the command exiftool -all= inputfile shared here on PDF files, I got this message:
