ExifTool Forum

General => Metadata => Topic started by: PaulaC on December 07, 2012, 12:15:01 PM

Title: PDF Metadada Upload from file?
Post by: PaulaC on December 07, 2012, 12:15:01 PM
Hi Phil, just started using exiftool. Its great !

I got 500 PDF files that need metadata added from a current excel file.

This works for an idividual file:

exiftool -Title="This is the Title" -Author="Paula" -Creator="Paula -Subject="PDF Metadata" testfile.pdf

Can I use a file (csv, txt) as an input parameter,so that I can do a batch metadata load?

I saw something for .jpg  in the documentation but cant figure it out for PDF on Windows.


Thanks!
Title: Re: PDF Metadada Upload from file?
Post by: Phil Harvey on December 07, 2012, 12:26:37 PM
Yes.  First, figure out what tags you want to change, then issue a command like this:

exiftool -title -creator -csv FILES > out.csv

Then look closely at the format of the "out.csv" file.  If you can produce a file with exactly the same structure, but with the values you want to write, this command will do the writing:

exiftool -csv=out.csv FILES

where FILES is the same list of file and/or directory names as in the first command (or a subset of these files;  only the files specified on the command line will be modified).

- Phil