Page 1 of 1

IPXC_Annotation.Type values

Posted: Tue Mar 14, 2017 9:02 pm
by mmasood
Hi,

I am trying to determine different types of annotations contained within a pdf file. The article that is on the help site:

https://sdkhelp.pdf-xchange.com/vie ... ation_Type

does not have any information on what different types returned could be.

Can I get the list of the possible return values the Type property returns?

Regards,
M

Re: IPXC_Annotation.Type values

Posted: Wed Mar 15, 2017 6:32 am
by Sasha - Tracker Dev Team
Hello mmasood,

The values themselves should be taken from the PDF specification and converted to ULONG using StrToAtom method. For example:

Code: Select all

ULONG atom = pxsInst.StrToAtom("Circle");
Cheers,
Alex

Re: IPXC_Annotation.Type values

Posted: Thu Mar 16, 2017 2:45 pm
by mmasood
Hi Alex,

I have a PDF file that has an invalid signature. When I open up the file I get the warning "At least one signature is invalid."

I have looked at the annotation and it is a Widget. My question is that is there a way with the Core Api that I can know that there is a warning related to Widget?

Regards,
M

Re: IPXC_Annotation.Type values

Posted: Fri Mar 17, 2017 12:39 pm
by Sasha - Tracker Dev Team
Hello mmasood,

As far as I know, you can't do that through the Core API. What you can do is get the IPXC_FormFild from the Widget Annotation. And check it's type - in your case it should be the FFT_Signature. Though you won't be able to see whether this warning is related to this widget, if I understood you correctly.

Cheers,
Alex