Exiftool and "CreateDate" by PDF files?

Started by andy95, May 25, 2014, 04:44:55 AM

Previous topic - Next topic

andy95

Hallo.
If found this:
exiftool -filename -createdate -T -w+! %d/out.txt -r DIR

and I can write the createdate from all my "pdf files" to out.txt
This is nice.

But my problem is that I will the createdate from my "pdf file" for the file date.
Can exiftool rename the file with the createdate?
How I can make it? Thanks for your help and sorry for my bad english.

Phil Harvey

Yes, ExifTool can rename any file using the values of any extracted tags.

See this page for details.

- 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 ($).

andy95

Thank's Phil for your help. I have no found answer of my question under filename.html.
Please see the attachment. I look for  rename the the pdf file.

Example:
test.pdf -> 25.05.2014 (date properties)
New:
test.pdf -> 27.08.2009
This is the Createdate from the pdf file by
exiftool -filename -createdate -T -w+! %d/out.txt -r DIR

What is the right command for rename the file date from createdate.


Phil Harvey

Sorry, I thought you wanted to change the FileName.

But it seems you want to copy the CreateDate to FileModifyDate:

exiftool "-filemodifydate<createdate" test.pdf

- 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 ($).

andy95

I have tested the command with 5 or more pdf files but all pdfs get a error message...
Please see the attachments. Thanks.

Phil Harvey

Your exiftool installation is corrupt.  Please follow these instructions to uninstall, then re-install exiftool.  Often it is sufficient to just delete the temporary files and re-run exiftool.

- 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 ($).

andy95

Yes, that is it. A new "Install" and this help. No error messages.
Big thanks for your help and for this very nice toll! Very, very much.
Bye Andy