Highlighting search terms within PDF files

Post Reply
vallinem
Posts: 37
Joined: Wed Oct 03, 2001 6:32 pm

Highlighting search terms within PDF files

Post by vallinem »

We're using the default search form; when I have a search where the results include PDF files, when I click on the PDF file different things happen depending on the PC.
1) PC 1: Adobe opens and takes me to the beginning of the file
2) PC 2: Adobe opens and takes me to the point in the file where the search term is; generally it highlights the actual search term, but in one case it highlights the line above the search term. Also, the highlight color is so dark that you can't really read the search term through it.

Is this something we can control at all through Webinator, or is it a client-specific problem?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Highlighting search terms within PDF files

Post by mark »

It's mostly under the control of adobe's pdf plugin in your web browser. Make sure you have a recent version of the plugin. You can get it for free from www.adobe.com.

There's a way to set the hilight color in the search script, but in our experience, adobe mostly ignores it. In the search script there's a call to "pdfxml" to generate the word postitions for hilighting. The 3rd argument "#00FF00" is the color. You can try changing it. A PC display with few colors (256 or less) may be beyond hope of getting a readable color.
doran
Posts: 50
Joined: Tue Jun 06, 2000 1:37 pm

Highlighting search terms within PDF files

Post by doran »

josmani
Posts: 53
Joined: Tue Jun 03, 2003 3:38 am

Highlighting search terms within PDF files

Post by josmani »

I would like to do hit-highlighting on PDF documents that I store in one of my database table. I am also storing the extracts of the PDFs in another column (using anytotxt).

Can I use "pdfxml" to do this? I do not use Webinator.
User avatar
John
Site Admin
Posts: 2622
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Highlighting search terms within PDF files

Post by John »

Yes you can. Looking over the Webinator scripts for pdfhi and pdfxml may help show how it can be used. Basically you add #xml=URL to the url where the URL points back to the script that outputs the result of pdfxml on the column you stored.
John Turnbull
Thunderstone Software
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Highlighting search terms within PDF files

Post by jgdoke »

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Highlighting search terms within PDF files

Post by mark »

The hostname for the pdf hilight seems wrong. It has "usmkeapln002.rockwellautomation.com" whereas your search is performed on "www.rockwellautomation.com". usmkeapln002 doesn't resolve and www doesn't understand the request. Are you republishing the results? If so you need to modify that hostname to resolve to a url that will get the highlight info from the search server.

http://usmkeapln002.rockwellautomation. ... 45d7461b5b
jgdoke
Posts: 167
Joined: Wed Jul 14, 2004 10:52 am

Highlighting search terms within PDF files

Post by jgdoke »

User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Highlighting search terms within PDF files

Post by mark »

Post Reply