Note that acrobat reader will have to have the "Enable search highlights from external highlight server" option checked in preferences. (note: xfdf is not real "XML" despite the similarity) This will hilight 5 chars on page 15 starting at position 3583. The hilite.aspx page will return something like the following to hilite words in the document: Here I used a guid key that I previously saved in the session with the hilite xfdf value.
Then it will query the web site to get the xfdf data for hilighting: dtSea ch PDF search Highlighter P ug-in for dobe Reader and Adobe Acr bat License Agreement Copyrig 1991-2011 dtSearch Corp. The PDF will appear in the frame, it will show the toolbar, hide the navpane & status bars and fit page to horizontal. I had a look at the Acrobat SDK but don't see how we can use it (it's terribly documented).Īcrobat uses a plugin to hilite terms, and requires a fdf stream to indicate the words to hilite.Īssuming you know the page# and word# on the page to hilight, here is one way to do it: But the combination of both parameters - which we would need - doesn't work.ĭoes anyone have an idea how jumping to a page and highlighting a search term in a PDF document could work? The open parameters for Acrobat Reader allow for either searching a PDF document (with hit highlighting) OR jumping to a specific page. What we wanted is a way to highlight the search term on the specific page in the PDF. Therefore the user has to look on his own to find the search term on the page. If the user now clicks on such a hyperlink, he directly jumps to that page.īut now the user has the problem that the search term isn't highlighted on the page. Each of these pages is represented as a hyperlink. We are using lucene within a web application to search in a great number of PDF documents.Ī list of search results is presented to the user.Įach search result represents one PDF document and shows the user on which page the search term was found.