wjat777

Validate document before call SendPackage

0 votes

Hi,

 

We are using this method to create an package

 DocumentBuilder documentBuilder = DocumentBuilder.NewDocumentNamed(doc.DocumentTitle)
                    .FromStream(new MemoryStream(doc.DocumentFile), DocumentType.PDF)
                    .WithId(doc.DocID)
                    .WithExtractionType(ExtractionType.TEXT_TAGS)
                    .EnableExtraction();

 

the problem is: some files don't contains the tag {{*esl:Signer1:Signature:size(200,20),offset(0,-11)}}

Have a way to validate this before call SendPackage?

We not found in the Package created with method CreatePackage the approvals list.

 

the version of SDK is OpenSpanSign.Sdk (11.47.0)

 

 

 


Reply to: Validate document before call SendPackage

1 votes

Hi wjat777,

 

Thanks for your post! I don't think there's a validation method to check if the text tags extraction is successful. But you can:

(1)Name the signature field by this syntax:

{{*esl_sig1:Signer1:Signature:size(200,20),offset(0,-11)}}

(2)Before the final sending, get the package, loop through all documents, and check if there's a signature with the same name. (If the text tags is the only method to place signature, validate by count of signatures without checking the name should also work)

 

Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Validate document before call SendPackage

0 votes

Thanks for your answer.

 

Can you give a sample code for this

(1)Name the signature field by this syntax: {{*esl_sig1:Signer1:Signature:size(200,20),offset(0,-11)}}

We can't implement your suggestion.

 

 

Thanks


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off