These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

remove metadata

lucianopilla
Registered: Oct 18 2007
Posts: 76
Answered

hi thom,
i search abaut remove metadata with javascript but i haven't found anything.
is there a way to remove metadata with javascript.
the only method i found it was to set "setting option" of pdf optimizer but it doesn't work with my documents. I'd like to delete metadata in a several documents with a bath sequence written in javascript.
Best regards

Adding intelligence to documents

My Product Information:
Acrobat Pro 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You cannot remove the MetaData entirely. Acrobat insists on putting a minimum of it in every document. But you can clear all the fields you want.

try running this code from the console window

metadata = ""

This will clear out just about everything.


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

lucianopilla
Registered: Oct 18 2007
Posts: 76
I try it by a batch sequence and it seems to work as i wanted.
Thanks Thom

Adding intelligence to documents