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

xmp javascript

lucianopilla
Registered: Oct 18 2007
Posts: 76
Answered

is there a way to pass values into custom info panel with javascript?

Adding intelligence to documents

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, Look up the "doc.info" property in the Acrobat JavaScript Reference. This is the object that represents the custom metadata.

For example, to a custom entry named "Company", you could use this code:

this.info.Company = "WindJack Solutions, Inc.";

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
is it the same for passing value in this panel?
[img]http://www.gridero.it/download/pilla/imga.jpg[/img]
i tested that values inserted into this panel are indexed by catalog but i'm not be able to pass values directly.
i'd like to have some suggest about.
Thanks thomp

Adding intelligence to documents

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
No, these values are part of the XMP metadata spec. If you want to change them you will have to parse and reset the PDF's metadata. You can do this from the "doc.metadata" property. There's an example in the Acrobat JavaScript Reference, look up "metadata".

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