Transfer from one pdf file to another pdf file "Createdate" value(s)

Started by andy95, January 19, 2020, 09:19:03 AM

Previous topic - Next topic

andy95

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"



StarGeek

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").
* 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

Thanks again "StarGeek" for the information.
Exiftool is a very nice tool.
Regards.