Hello.
I have two same pdf files with different -XMP-xmp:Createdate value(s).
exiftool -XMP-xmp:Createdate "test1.pdf" "test2.pdf"
How can I transfer the "-XMP-xmp:Createdate" from test1.pdf to test2.pdf (with overwriting)?
==================================
OK. I found it:
exiftool -ext pdf -overwrite_original -tagsFromFile "test1.pdf" -XMP-xmp:Createdate>-XMP-xmp:Createdate "test2.pdf"
Quote from: andy95 on January 19, 2020, 09:19:03 AM
exiftool -ext pdf -overwrite_original -tagsFromFile "test1.pdf" -XMP-xmp:Createdate>-XMP-xmp:Createdate "test2.pdf"
Close. You don't need the redirect, just need to name the tag you want copied.
exiftool -ext pdf -overwrite_original -tagsFromFile "test1.pdf" -XMP-xmp:Createdate "test2.pdf"Also, for future reference, you need quotes around any part of the command that has a less/greater than sign and you don't include the dash in the second part (e.g.
"-XMP-xmp:Createdate>XMP-xmp:Createdate").
Thanks again "StarGeek" for the information.
Exiftool is a very nice tool.
Regards.