Account


Earned badges

Achievement: Latest Unlocked

Topic Started

Topics
Hello there, I am trying to send two documents to be signed by the same person.
Hello, I have run into some problems signing PDFs: 1- I was trying to have multiple signature on the same document for the same email and I was not able to do that.

Replies Created

Reply to: PDF signature

0 votes
here is the code, below, it is pretty standard I guess. we need to use iText because of the operations around the PDF. I may be able to find a way around it, but I prefer to just send it as is if it is possible. is there a way that it can recongnize the field names just the way they are? thanks, `SignatureBuilder signatureBuilder = signatureFor(email); // if field name is not null, try to extract the // coordinates from the filed. otherwise rely on // the data in the signature to set the page and position // of the signature fields. if(fields != null && fieldName != null){ field = fields.get(signature.getFieldName()); if(field != null){ Position p = field.getPositions().get(0); signatureBuilder.onPage(p.getPage()>0?p.getPage()-1:p.getPage()); signatureBuilder.atPosition(p.getX(), p.getY()); signatureBuilder.withSize(p.getWidth(), p.getHeight()); fieldNameIsValid = true; } } // if field name did not successfully identify the // coordinates, then rely on the signature itself for // the signature coordinates and page number. if(!fieldNameIsValid){ signatureBuilder.onPage(Integer.parseInt(signature.getPageNum())); signatureBuilder.atPosition( Integer.parseInt(signature.getXCoordinate()), Integer.parseInt(signature.getYCoordinate())); } documentBuilder.withSignature( signatureBuilder); SignerBuilder signerBuilder = newSignerWithEmail( email ); signerBuilder.withCustomId(signature.getId()); signerBuilder.withFirstName(signature.getFirstName()); signerBuilder.withLastName(signature.getLastName()); packageBuilder.withSigner(signerBuilder);`

Subscriptions

Topics Replies Freshness Views Users
Hello there, I am trying to send two documents to be signed by the same person.
2 7 years 8 months ago 26
Profile picture for user mwilliams
Hello, I have run into some problems signing PDFs: 1- I was trying to have multiple signature on the same document for the same email and I was not able to do that.
3 8 years 4 months ago 30
Profile picture for user harishaidary

Code Share

This user has not submitted any code shares.

Subscriptions Release Notes

This user is not subscribed to any release notes.