Highlight PDF Hits

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

ashley3289
User
Posts: 37
Joined: Wed Feb 10, 2010 10:58 pm

Highlight PDF Hits

Post by ashley3289 »

I am evaluating the ActiveX Viewer SDK. If I provide it with an highlight file as described in this document http://partners.adobe.com/public/develo ... Format.pdf can it highlight the corresponding words in the document. As an example I have uploaded a sample pdf that contains the word "telephone" and I have a corresponding highlight file that tells acrobat what words to highlight within the document.

<XML>
<Body units=characters color=#ff00ff mode=active version=2>
<Highlight>
<loc pg=1 pos=13 len=10>
<loc pg=1 pos=586 len=10>
<loc pg=1 pos=777 len=10>
<loc pg=1 pos=925 len=10>
<loc pg=1 pos=1031 len=10>
<loc pg=1 pos=1279 len=10>
<loc pg=2 pos=21 len=9>
<loc pg=2 pos=665 len=10>
<loc pg=2 pos=1002 len=10>
<loc pg=3 pos=281 len=10>
<loc pg=3 pos=477 len=9>
</Highlight>
</Body>
</XML>
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Highlight PDF Hits

Post by Vasyl - PDF-XChange »

Hi, ashley3289.

This feature will be added into the new version(V3).
Your patience is appreciated.

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
ashley3289
User
Posts: 37
Joined: Wed Feb 10, 2010 10:58 pm

Re: Highlight PDF Hits

Post by ashley3289 »

Thanks for your reply. When do you think the new version will be available? Also I saw the following in the help file. Could I use this to highlight more than one group of characters at a time as a work around until the other feature is released in the next version.

For example (in pseudocode):
...
// highlight first 10 characters on first page, violet, 65% opacity:
DoVerb("Documents[0].Pages[0].Text", "Highlight",
DataIn(0, 10, #800080, 0.65), DataOut, 0);
// highlight all characters on first page:
DoVerb("Documents[0].Pages[0].Text", "Highlight", DataIn(0, -1), DataOut, 0);
...
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Highlight PDF Hits

Post by Vasyl - PDF-XChange »

Hi, ashley3289

Yes, you can use this method for highlighting groups of characters.

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.