Clean field (.pdf) not with "??" question mark

Started by andy95, January 12, 2020, 12:35:15 PM

Previous topic - Next topic

andy95

Hello.
I have this code:

Quoteexiftool -ext pdf -overwrite_original -xmp-pdf:Producer="" -XMP-xmp:CreatorTool="" -pdf:Creator="" -pdf:Producer="" -r test\

The fields should actually be empty but two question marks appear. What can you do that the fields are empty?

Thanks for your help.

StarGeek

Quote from: andy95 on January 12, 2020, 12:35:15 PM
exiftool -ext pdf -overwrite_original -xmp-pdf:Producer="" -XMP-xmp:CreatorTool="" -pdf:Creator="" -pdf:Producer="" -r test\

The fields should actually be empty but two question marks appear. What can you do that the fields are empty?

Use regular quotes ", not fancy quotes "
(or use no  quotes at all -XMP-xmp:CreatorTool= )

The command line treats fancy quotes as if they were regular characters, not quotes.  If you are copy/pasting from a word processor or Google docs, they will "help" you by changing regular quotes to fancy quotes.  If you are on a Mac, there's a setting that "helps" you in this way as well.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

andy95

Wonderful - That is what I was looking for!

Big thanks  StarGeek! :)

Small mistake - Great impact


Phil Harvey

Note that the quotes are completely unnecessary in this command (as StarGeek mentioned).  Either with or without the quotes, these tags will be deleted since the value is empty.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).