ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: Schnulli227 on July 12, 2016, 04:33:28 AM

Title: Bug: command "remove all the tags" doesn't work (PDF)
Post by: Schnulli227 on July 12, 2016, 04:33:28 AM
I used a this command: "exiftool -all:all=" to remove the XMP tags in a PDF-file => doesn't work.

Results:
- the file size increases
- the XMP tags are still inside

How could I fix this? What did I do wrong?

1) My OS:
Windows 7

2) The ExifTool version you are using:
10.22

3) The specific command line you are using:
exiftool -all:all= filename.pdf

4) The console output from the command:
Warning: [minor] ExifTool PDF edits are reversible. Deleted tags may be recovered! - filename.pdf
    1 image files updated
-- press RETURN --



Title: Re: Bug: command "remove all the tags" doesn't work (PDF)
Post by: Phil Harvey on July 12, 2016, 07:34:26 AM
Read the text at the top of the PDF tags documentation (https://exiftool.org/TagNames/PDF.html) for an explanation.  The minor warning you got is supposed to be a hint.

- Phil

Edit:  Also see this post (https://exiftool.org/forum/index.php/topic,3943.msg27738.html#msg27738) for a way to make these changes permanent.
Title: Re: Bug: command "remove all the tags" doesn't work (PDF)
Post by: Schnulli227 on July 12, 2016, 12:10:10 PM
This means a lot of XMP tags are still inside :'(.

These XMP tags contain a lot of sensible data.
Is there a possibility to extend ExifTool to remove all XMP tags?
Or can you suggest another tool which is able to remove all XMP tags?

Title: Re: Bug: command "remove all the tags" doesn't work (PDF)
Post by: Hayo Baan on July 12, 2016, 01:13:52 PM
If it is just one file you need to clean of its metadata, you could edit the file with a hex editor and overwrite the info with e.g., spaces. If you're on a Mac, you could perhaps create a Quartz filter that removes the metadata and apply that to the file (haven't tried this, but I think there is a Quartz filter step that allows you to do this). Otherwise there is, of course, Adobe Acrobat.
Title: Re: Bug: command "remove all the tags" doesn't work (PDF)
Post by: Phil Harvey on July 12, 2016, 04:10:00 PM
Quote from: Schnulli227 on July 12, 2016, 12:10:10 PM
Is there a possibility to extend ExifTool to remove all XMP tags?
Or can you suggest another tool which is able to remove all XMP tags?

Check the link my edit above.

- Phil
Title: Re: Bug: command "remove all the tags" doesn't work (PDF)
Post by: Schnulli227 on July 22, 2016, 12:14:41 PM
Quote from: Phil Harvey on July 12, 2016, 04:10:00 PM
Quote from: Schnulli227 on July 12, 2016, 12:10:10 PM
Is there a possibility to extend ExifTool to remove all XMP tags?
Or can you suggest another tool which is able to remove all XMP tags?

Check the link my edit above.

- Phil

Thanks Phil, with the link you provided all worked.  :)