How to prevent recovering metadata when using ExifTool?
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Forest of Spells Looping
--
Chapters
00:00 How To Prevent Recovering Metadata When Using Exiftool?
00:29 Accepted Answer Score 15
01:03 Answer 2 Score 4
01:17 Thank you
--
Full question
https://superuser.com/questions/1482619/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#privacy #metadata #exiftool
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT
Music by Eric Matyas
https://www.soundimage.org
Track title: Forest of Spells Looping
--
Chapters
00:00 How To Prevent Recovering Metadata When Using Exiftool?
00:29 Accepted Answer Score 15
01:03 Answer 2 Score 4
01:17 Thank you
--
Full question
https://superuser.com/questions/1482619/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#privacy #metadata #exiftool
#avk47
ACCEPTED ANSWER
Score 15
The author of exiftool looked into zeroing out the data in August 2019 and has decided that against it.
It is harder than I had hoped to simply zero out the existing metadata.
The solution wouldn't be complete because there could already be unused objects containing old metadata in the original PDF, and ExifTool wouldn't be able to zero out these.
It has been advertised that ExifTool PDF edits are reversible, and some users may be relying on this feature.
See this thread on the exiftool forums.
The use of qpdf or similar programs to re-linearize after using exiftool is still how exiftool's author suggests to fully remove all metadata.
ANSWER 2
Score 4
Following the previous answer, here is what is suggested in the exiftool forum to remove PDF metadata:
#!/usr/bin/env bash
# Strip metadata and re-linearise:
exiftool -all= -overwrite_original "$1"
mv "$1" /tmp/temp.pdf
qpdf --linearize /tmp/temp.pdf "$1"