Author Topic: Exiftool and "CreateDate" by PDF files?  (Read 2115 times)

andy95

  • Jr. Member
  • **
  • Posts: 11
Exiftool and "CreateDate" by PDF files?
« on: May 25, 2014, 04:44:55 AM »
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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16885
    • ExifTool Home Page
Re: Exiftool and "CreateDate" by PDF files?
« Reply #1 on: May 25, 2014, 06:40:57 AM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

andy95

  • Jr. Member
  • **
  • Posts: 11
Re: Exiftool and "CreateDate" by PDF files?
« Reply #2 on: May 25, 2014, 07:48:57 AM »
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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16885
    • ExifTool Home Page
Re: Exiftool and "CreateDate" by PDF files?
« Reply #3 on: May 25, 2014, 09:31:07 AM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

andy95

  • Jr. Member
  • **
  • Posts: 11
Re: Exiftool and "CreateDate" by PDF files?
« Reply #4 on: May 25, 2014, 09:49:35 AM »
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

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16885
    • ExifTool Home Page
Re: Exiftool and "CreateDate" by PDF files?
« Reply #5 on: May 25, 2014, 09:56:08 AM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

andy95

  • Jr. Member
  • **
  • Posts: 11
Re: Exiftool and "CreateDate" by PDF files?
« Reply #6 on: May 25, 2014, 10:12:10 AM »
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