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

Search with result saved

msstrend
Registered: Mar 15 2007
Posts: 53

Is it possible to save result of a search in a word or notepad?

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
If you mean the results of the Search object in Acrobat JavaScript, No. The results aren't even available to JavaScript. You can however do a search using the "doc.pageGetNthWord()" function, collect and save the results to a text string. Saving it to a ".doc" or ".txt" file is more difficult. The easy way is to save the result text is to write it to an embedded file. Then have the user save it. Or you could get fancy and use the result data to create a new PDF with the Report Object. Then save it to a doc or text file on the users system with the conversion settings in the "doc.saveAs()" function.

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

msstrend
Registered: Mar 15 2007
Posts: 53
Thank u very much Thom.

It will be really helpful if you give me a sample code for the above.

Saravanakumar