Kosta

Validate PackageDocument before Package Create or Create&Send

0 votes
Hello Team, I have a scenario where I create and send a PackageDocument from a dynamically provided PDF document and I add a number of signatures based on a text-anchor. In case when the provided PDF does not have all required text-anchors I get an EslException: Document Cannot be Flattened and result with a Package in DRAFT state. Instead of having above scenario and having to clean up unsuccessful DRAFT packages, would it be possible if we get some kind of EslClient validation which we can trigger before we send the Create&Send request? For example:
try {
   eslClient.validatePackageDocument();
} catch (EslException e) {
   //ECHO there was problem with Package set up!!!
   System.out.println(e.getMessage());
}
Thus we will be able to catch any kind of returned error: Missing text-anchor(s); wrong document character(s); missing Package specific entries etc., before we actually call the code to Create or Create&Send corresponding package. Thank you in advance.

Reply to: Validate PackageDocument before Package Create or Create&Send

0 votes
Hi Kosta, Your request has been declined by our product managers. Their reason being that this open up unnecessary and potentially excessive usage of the service for no real additional value.
Haris Haidary OneSpan Technical Consultant

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