XFA IsSigned?

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.
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

XFA IsSigned?

Post by zarkogajic »

Hi Support,

Re: viewtopic.php?f=62&t=34599

How do I know if a document (XFA) is signed or not via SDK?

I see there's "FormSig_HasSignature" - but am not sure how to use it (and if this is to be used)....

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

Re: XFA IsSigned?

Post by Sasha - Tracker Dev Team »

Hello žarko,

We don't support digital signatures in the XFA.
But, this is what can be done via the Structure level:
  • For static XFA, you can search for the Signature field in the fields list and look whether there is a /V key in it's dictionary.
  • For dynamic XFA, this is not guaranteed, but in some cases this should work.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Thanks Alex, I'll give it a shot.

Btw, how do I know if there's a signature on a non-XFA PDF?

-žarko
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Ping...

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

Re: XFA IsSigned?

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

From what I see by using search on the sdkhelp wiki, there is a IPXC_Document::HasDigitalSigns method.

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

Re: XFA IsSigned?

Post by zarkogajic »

HI Alex,

Ah, I've been using wrong search terms :)

Thanks!

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

XFA IsSigned?

Post by Sasha - Tracker Dev Team »

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

Re: XFA IsSigned?

Post by zarkogajic »

Hi Support,

I know you do not support displaying signatures on XFA documents …

I at least need to know if a document is signed or not.

For this purpose I’m using the IPXC_Document.HasDigitalSigns(false) as suggested here.

I have two dynamic XFA documents, both have signature.

However, for one of them the HasDigitalSigns returns false.

Any other way (never mind how complex or crazy) I can check if a XFA is signed (if the above cannot be fixed)?


-žarko