cameronofoluwa | Posts: 16

Multiple EAs using same text

0 votes

Hello,

I am currently involved in a project that consolidates multiple documents into a single, large PDF file.

Each original document within this PDF includes the text "CL-SIG," which indicates where a signature box should be placed.

For example, we might have 50 smaller PDFs that we have combined into one large PDF. This results in 50 instances of the "CL-SIG" text throughout the document.

I need to insert a signature block at each of these 50 locations, whilst also ensuring that signing one block applies the signature to all of them.

A challenge we face is the variable number of PDFs involved, ranging from a minimum of 2 to a maximum of 100, as defined by the project scope.

Is there a straightforward way to accomplish this using the ApexSDK?

 

The example below is how we currently attach a single signature block

// Signature Block/Approvals
OneSpanAPIObjects.ExtractAnchor signatureEa = new OneSpanAPIObjects.ExtractAnchor();
signatureEa.text = 'CL-SIG';
signatureEa.index = 0;
signatureEa.width = 100;
signatureEa.height = 50;
signatureEa.anchorPoint = OneSpanAPIObjects.AnchorPoint.TOPLEFT;
signatureEa.characterIndex = 0;
signatureEa.leftOffset = 0;
signatureEa.topOffset = 0;

OneSpanAPIObjects.Field signature = new OneSpanAPIObjects.Field();
signature.type = 'SIGNATURE';
signature.subtype = 'CAPTURE';
signature.extractAnchor = signatureEa;
signature.name = 'Signature';
signature.width = 100;
signature.height = 50;
approval.fields.add(signature);


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