ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: GeoVan on March 05, 2024, 10:41:17 AM

Title: Remove exif data from the IMAGES (jpg) that are EMBEDDED inside a pdf file
Post by: GeoVan on March 05, 2024, 10:41:17 AM
Removing metadata from a PDF, as it is well known, the command are:
exiftool -all:all= input.pdf    --> Provided we want to remove the metadata from the input.pdf
And to make the changes irreversible, qpdf tool can help as follow:
qpdf --linearize input.pdf output.pdf

My question is little different - i want to remove exif data from the IMAGES (jpg) that are EMBEDED inside the pdf file.

Is there a way (what command to use) in order to can remove exif metadata from all the embedded images that are inside a PDF document, please?
Title: Re: Remove exif data from the IMAGES (jpg) that are EMBEDDED inside a pdf file
Post by: StarGeek on March 05, 2024, 10:50:22 AM
Exiftool can't edit files that are embedded in a PDF.  Exiftool uses the incremental update feature (https://www.debenu.com/kb/incremental-updates/) of PDFs which doesn't change the previous data, which is why it must be re-liniarized to finalize the changes.

A previous post on the subject
Quote from: Phil Harvey on August 12, 2019, 08:20:40 AM2. 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.
Title: Re: Remove exif data from the IMAGES (jpg) that are EMBEDDED inside a pdf file
Post by: GeoVan on March 05, 2024, 02:20:07 PM
If you know, is there any other tool that can be used in order to remove exif metadata from all the embedded images that are inside a PDF document, please?
Title: Re: Remove exif data from the IMAGES (jpg) that are EMBEDDED inside a pdf file
Post by: StarGeek on March 05, 2024, 03:07:40 PM
Offhand, I don't know of a free way to do so.  Adobe Acrobat Pro (subscription) appears to be able to (https://helpx.adobe.com/acrobat/using/pdf-properties-metadata.html#view_object_metadata_acrobat_pro).