Mass Change PDF Documents

Bit of a strange one but I wonder if anyone has done this before, We have a lot of PDF documents that contain a value in the Author field in Document Properties, now I need to strip this out of all the PDF's so ideally it's blank.  Has anyone done this before or can anyone recommend a way to do this on mass?

Any Help most welcome...

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Giovanni HewardCommented:
Yes, try pdftk

pdftk in.pdf dump_data output report.txt

Open in new window

Find and remove hidden content

Use the Remove Hidden Information feature to find and remove content from a document that you don’t want, such as hidden text, metadata, comments, and attachments. When you remove items, additional items are automatically removed from the document. Items that are removed include digital signatures, document information added by third-party plug-ins and applications, and special features that enable Adobe Reader users to review, sign, and fill PDF documents.
To examine every PDF for hidden content before you close it or send it in e-mail, specify that option in the Documents preferences using the Preferences dialog box.

    Choose Tools > Protection > Remove Hidden Information. If you don’t see the Protection panel, see the instructions for adding panels at Task panes.

    If items are found, they are listed in the Remove Hidden Information panel with a selected check box beside each item.
    Make sure that the check boxes are selected only for the items that you want to remove from the document. (See Remove Hidden Information options.)
    Click Remove to delete selected items from the file, and click OK.
    Choose File > Save, and specify a filename and location. If you don’t want to overwrite the original file, save the file to a different name, location, or both.

The selected content is permanently removed when you save the file. If you close the file without saving it, repeat this process, making sure to save the file.
Remove Hidden Information options

    Metadata includes information about the document and its contents, such as the author’s name, keywords, and copyright information, used by search utilities. To view metadata, choose File > Properties.
Giovanni HewardCommented:
To update on an automated (mass) scale, try the following:

1. Create text file containing replacement metadata

InfoKey: Author
InfoValue: Anonymous

2. Run pdftk in the following fashion

pdftk "input.pdf" update_info data.txt output "output.pdf"

3. Automate on a large scale, use this batch script as a template

for /f "delims=" %%f in ('dir *.pdf /s/a/b') do (
     pdftk "%%f" update_info data.txt output "%%f"

Open in new window

To delete the author metadata completely, your data.txt file should look like this:

InfoKey: Author

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jamie786Author Commented:
Perfect exactly what I needed.... had to tweek the batch command but it seems to work perfectly well many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.