Validate document before call SendPackage
Wednesday, August 3, 2022 at 12:30pmHi,
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
Wednesday, August 3, 2022 at 12:42pmHi 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
Reply to: Validate document before call SendPackage
Wednesday, August 3, 2022 at 02:05pmThanks for your answer.
Can you give a sample code for this
We can't implement your suggestion.
Thanks