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

Javascript object to import metadata through xmp file

vaasu
Registered: Nov 9 2008
Posts: 1

Hi all,

I am trying to import metadata into the pdf file by perl script. In that using GetJSObject to do it.

$jso = $pddoc->GetJSObject;
$jso->metadata($xmp_data);

here $xmp_data contains xmp file data. i am getting error like this

Win32::OLE(0.1709) error 0x80010105. "The server threw an exception" in METHOD/PROPERTYGET "metadata"

OR is there any other way to set the metadata ie. custom data into the pdf file.
If anybody have idea, please share it. It's urgent task for me....

Thanks,
Vaasu

My Product Information:
Acrobat Pro 7.0, Windows
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi Vaasu,

Not sure if this will apply for how you want to do this, but here are two articles on applying/getting/setting metadata in PDFs-

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/auto_insert_metadata/

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/get_set_metadata/

Hope this helps,

Dimitri
WindJack Solutions
www.windjack.com
www.pdfscripting.com