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

Saving searches

bgurnett
Registered: Apr 1 2007
Posts: 7

Could I join in the request below as I too am trying to find a way of saving searches to human readable form [indexes as well]
 
====
Ask an expert
Subject: Search with result saved
Asked by: msstrend
Date: Tue, Mar 27, 2007
Categories: Accessibility, Automation and Scripting, Importing and Exporting, Javascript, Productivity
 
Q: Is it possible to save result of a search in a word or notepad?
 
A: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.
— Answered by Thom Parker on Tue, Mar 27, 2007
Thom Parker is the president of WindJack Solutions, a software developer and a self-described adventurer. He's also a prolific contributor to the Acrobat Community.

My Product Information:
Acrobat Pro 7.0.9, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The answer is already given above.

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