Text highlight annotations

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
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Text highlight annotations

Post by jusWest »

Hello!

I am trying to catch most anotations by scanning the document for them.

I am catching theese for now based on the IPXC_AnnotData_xxx I found in the docs

Code: Select all

            uint nTextBox = pSInt.StrToAtom("FreeText");
            uint nCaret = pSInt.StrToAtom("Caret");
            uint nLine = pSInt.StrToAtom("Line");
            uint nMarkup = pSInt.StrToAtom("Markup");
            uint nPoly = pSInt.StrToAtom("Poly");
            uint nPopup = pSInt.StrToAtom("Popup");
            uint nSquareCircle = pSInt.StrToAtom("SquareCircle");
            uint nText = pSInt.StrToAtom("Text");
            uint nTextMarkup = pSInt.StrToAtom("TextMarkup");
            uint nInk = pSInt.StrToAtom("Ink");
            uint nFileAttachmentAtom = pSInt.StrToAtom("FileAttachment");
            uint nRichMediaAtom = pSInt.StrToAtom("RichMedia");
            uint nSoundAtom = pSInt.StrToAtom("Sound");
            uint nWatermarkAtom = pSInt.StrToAtom("Watermark");
            uint nWidgetAtom = pSInt.StrToAtom("Widget");
            uint nStampAtom = pSInt.StrToAtom("Stamp");
            uint n3DAtom = pSInt.StrToAtom("3D");
            uint nRedaction = pSInt.StrToAtom("Redaction");
            uint nLink = pSInt.StrToAtom("Link");
 
But I cant seem to catch the Highligt text annotations.

I cant find that in the docs either

How can I catch that annotation?
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Text highlight annotations

Post by zarkogajic »

Hi

"Highlight" ?

p.s.
Not "Highligt"


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

Re: Text highlight annotations

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

Thanks for the assistance :)
Basically, if you copy the logic from the CoreAPIDemo application and remove the unneeded stuff - you should be OK without the typos :)
Also, you can do the ID gathering into an enum as it's being done in the FullDemo application - less chances to miss something.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: Text highlight annotations

Post by jusWest »

:oops: :P :D

This has not been my best week has it :lol: :lol:

Thanks guys, and have a good weekend.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Text highlight annotations

Post by Sasha - Tracker Dev Team »

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