Retrieve pRegions from IPXV_DocHighlightItem  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Retrieve pRegions from IPXV_DocHighlightItem

Post by zarkogajic »

Hi support,

When using the IPXV_DocHighlighter, the Add method accepts pRegions (and other parameters) which I set to IPXC_QuadsF, and returns IPXV_DocHighlightItem.

This all works well.

Question: is there a way to retrieve pRegions back from the created IPXV_DocHighlightItem ?

Why: I'm allowing the user to select various pieces of text in the document and upon selection I highlight them. When "finished" I want to do something to the highlighted regions - say underline (similar to what the Search Pane's "Underline Search Results" does).

p.s.
I could, of course, have an internal list of highlight items storing along the used IPXC_QuadsF - but I'm expecting there's a way to extract that somehow from the IPXV_DocHighlighter (?).

-žarko
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Retrieve pRegions from IPXV_DocHighlightItem  SOLVED

Post by Sasha - Tracker Dev Team »

Hello žarko,

I'm afraid that you will have to store your added highlight regions in your inner structures as you are doing now.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Retrieve pRegions from IPXV_DocHighlightItem

Post by zarkogajic »

Hi Alex,

Good enough, thanks.

Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Retrieve pRegions from IPXV_DocHighlightItem

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply