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

Highlight Text in PDF

meetmanu
Registered: Mar 12 2007
Posts: 9

Hi,
 
I am buliding a search engine of our publications. I have converted a book of 10000 pages into PDF. All the files are indexed and it displays the respective page for the search term.
 
Now the user wants that the search term should be highlighted in the PDF file. The file is created with only print allow option.
 
My Question is can the search term passed through a php file to pdf can be highlighted? If yes, then please let me know how ....
 
best regards

My Product Information:
Acrobat Standard 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, the search words can be placed in the URL that opens the PDF. You need the PDFOpenParams document. It's on this web page.

[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]

Select the "Documentation" tab and scroll to the bottom of the page.

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

lailai23
Registered: Sep 25 2007
Posts: 5
hi, Thom,
I have been working with the "PDF Open Parameter" document for several days, but it not works well to me yet.
My problems is as below:

1. the "search=" parameter can not work when I try to sent a Japanese/Chinese keyword. I tried to change the input value to the encode of Unicode, it works but shows like "\u30xd\u30ef" in Acrobat Find input box.

2. the "search=" and "page=" parameter can not work together. is it possible to use a "search=" in a particular page?

3. the "highlight=" parameter can not work... is there any sample or document about it in detail?
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Search and Page are mutually exclusive. You cannot search only a single page.

I don't know how the command line parameters work with Japanese characters. I'm not sure Adobe ever thought about this one.

Your best source of information on these details is Adobe Technical Support.

Just as a side note. I don't think the command line parameters are well used. It's entirely possible that they have not been debugged or updated in years.

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

lailai23
Registered: Sep 25 2007
Posts: 5
hi, thomp,

Appreciate so much for the quick response.
I will try the Technical Support as you adviced. Thanks!
styleepop
Registered: Feb 17 2010
Posts: 3
Hi Dear Mr.Thomp,

You look like an expert who can solve my problem. I have a situation like search for text in pdf documents through ASP.NET(3.5) + Acrobat SDK9 and highlight all the matching words in PDF document. Please guide me how i can do that as i am struggling with my dead line..im quite nervous.
Please help at the earliest.
thanks in advance..
TonyPotter
Registered: Feb 1 2010
Posts: 85
You can highlight PDF contents using PDF X-change Viewer. It works well.

I will try my best to help you in PDF converison fields, objectively and Neutral.