Retrieve pRegions from IPXV_DocHighlightItem  SOLVED

PDF-XChange Editor SDK for Developers

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

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: 670
Joined: Thu Sep 05, 2019 12:35 pm

Retrieve pRegions from IPXV_DocHighlightItem

Post by zarkogajic » Thu Feb 06, 2020 11:24 am

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

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

Re: Retrieve pRegions from IPXV_DocHighlightItem  SOLVED

Post by Sasha - Tracker Dev Team » Sat Feb 08, 2020 8:10 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

zarkogajic
User
Posts: 670
Joined: Thu Sep 05, 2019 12:35 pm

Re: Retrieve pRegions from IPXV_DocHighlightItem

Post by zarkogajic » Sat Feb 08, 2020 11:00 am

Hi Alex,

Good enough, thanks.


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

Re: Retrieve pRegions from IPXV_DocHighlightItem

Post by Sasha - Tracker Dev Team » Sat Feb 08, 2020 3:37 pm

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply