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

script for metadata

svelasco
Registered: May 8 2007
Posts: 27

Hi, Is it possible to write some sort of macro/script which would search for a specific word in a document ("Title"), then take the text string after it (ie. the actual title of the document) and copy that to the correct field of the pdf metadata ? It would make updating our pdf collection muuuch easier, and easier searches also. Thank you !

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, in fact I do exactly this sort of thing all the time. Take a look at the document object funcion "getPageNthWord()" It takes a bit of programming to get this to work because you have to also look at the page and word geometry to figure out what words are in the title, as opposed to what words are in the header/footer and main text.

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