iOS - validate if a signature field is signed.

27 views
Skip to first unread message

Contato StudioMoob

unread,
Dec 23, 2016, 5:33:49 PM12/23/16
to PDFTron PDFNet SDK
Hello,

I'm trying to check if a required signature field is signed, but when I iterate over the doc fields and get the signature value is always null. It happens too in Complete Reader Sample. Below a sample code I'm using.

if let iterator = self.pdfCtrl.getDoc().getFieldIterator()
{
while iterator.hasNext()
{
if let field = iterator.current()
{
if field.getType() == e_ptsignature
{
if field.getValue() != nil
{
print("Valid")
}
}
}

iterator.next()
}
}

Ryan

unread,
Jan 3, 2017, 12:56:24 PM1/3/17
to PDFTron PDFNet SDK
What is null? The field.GetValue result is always null, even for a signed digital signature?

If so, how do you know it is signed?
Does this happen with any document, or only specific ones?
Reply all
Reply to author
Forward
0 new messages