XFA IsSigned?

PDF-XChange Editor SDK for Developers

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

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: 1462
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 - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: XFA IsSigned?

Post by Sasha - PDF-XChange »

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

Re: XFA IsSigned?

Post by zarkogajic »

Ping...

Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: XFA IsSigned?

Post by Sasha - PDF-XChange »

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: 1462
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 - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

XFA IsSigned?

Post by Sasha - PDF-XChange »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1462
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
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: XFA IsSigned?

Post by Stefan - PDF-XChange »

Hello zarkogajic,

Can you please share with us the file that returns False for IPXC_Document.HasDigitalSigns?
I suspect our devs will need the sample to be able to check why we return false on that one.
If sensitive - please e-mail the document instead of uploading it here.

Kind regards,
Stefan
zarkogajic
User
Posts: 1462
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Hi Stefan

Ok, will send via email ...

-žarko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: XFA IsSigned?

Post by Stefan - PDF-XChange »

Hello zarkogajic,

Thanks for the files! Got them and passed them on to our developers. I've removed the copy of the mail from my machine and the mail server. As soon as my colleague finishes testing - he will remove his copies of the files as well!

Kind regards,
Stefan
zarkogajic
User
Posts: 1462
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Hi,

Any news here?

-žarko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: XFA IsSigned?

Post by Stefan - PDF-XChange »

Hello zarkogajic,

I got an update from our devs that for now we still do not support signatures in XFAs however we are working on and should make such a feature available soon!

Kind regards,
Stefan
zarkogajic
User
Posts: 1462
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Hi Stefan,
we still do not support signatures in XFAs however we are working on and should make such a feature available soon
"Such a feature" means:

1. proper result of the IPXC_Document.HasDigitalSigns, AND/OR
2. display of signatures in XFA's

?

-žarko
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

Re: XFA IsSigned?

Post by Stefan - PDF-XChange »

Hello zarkogajic,

My colleague's exact words were:
"do not support signing/signatures in XFA forms yet. Should be available soon" - so I would assume that the answer to your above enquiry would be both!

Kind regards,
Stefan
zarkogajic
User
Posts: 1462
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Hi Stefan,

Good, good :)

User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19826
Joined: Mon Jan 12, 2009 8:07 am
Contact:

XFA IsSigned?

Post by Stefan - PDF-XChange »

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

Re: XFA IsSigned?

Post by zarkogajic »

Hi Support,

I see 10.3.1.387 mentions "Improved support of XFA documents." in the changes list.

Unfortunately, display of the signature in a XFA is still not supported.

-žarko
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10963
Joined: Wed Jan 03, 2018 6:52 pm

Re: XFA IsSigned?

Post by Daniel - PDF-XChange »

Hello, zarkogajic

indeed, while we do hope it can come along soon as Stefan said, we still do not have a solid timeline for it. This function has been on our radar and in gradual development for a few years now, so it may still be some months, though hopefully not that long.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
zarkogajic
User
Posts: 1462
Joined: Thu Sep 05, 2019 12:35 pm

Re: XFA IsSigned?

Post by zarkogajic »

Hi Dan

Ok, thanks.

User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10963
Joined: Wed Jan 03, 2018 6:52 pm

XFA IsSigned?

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply