Account
I am a
Developer
Product(s)
Earned badges
Achievement: Latest Unlocked
Replies
Topics Started
Preferences
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
Tuesday, December 22, 2015 at 07:24amhere 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 | |
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 |
Subscriptions Release Notes
This user is not subscribed to any release notes.