TextArea show text on one line
Saturday, April 20, 2019 at 12:58pmI'm wondering how I can make the text area name "Commentaire" in the pdf filled correctly.
The text in the document does not appear correctly and is always on one line.
I'm using a code similar to this :
var documentBuilder = DocumentBuilder.NewDocumentNamed("Formulaire d'adhésion")
.FromStream(pdfFileStream, DocumentType.PDF)
.WithExtractionType(ExtractionType.ACROFIELDS)
.EnableExtraction()
.WithInjectedField(FieldBuilder.TextArea().WithName("Commentaire").WithValidation(fieldValidatorString).WithValue(comments));
Reply to: TextArea show text on one line
Monday, April 22, 2019 at 03:19pmReply to: TextArea show text on one line
Tuesday, April 23, 2019 at 05:42pmReply to: TextArea show text on one line
Thursday, November 11, 2021 at 09:27pmHi Team,
Even i created invisible signature for your package owner, Textarea is no wrap, meaning TextArea show text on one line
I am using a below code
.withSignature(SignatureBuilder .signatureFor(sender) .atPosition(0, 0).withSize(0,0) .withField(FieldBuilder.textArea().withName("text") .withSize(250,200).atPosition(0,700) .withValue("By providing my e-signature below, I hereby certify this document to be a true and complete copy of the original as sighted by me")));
Reply to: Hi Team, Even i…
Friday, November 12, 2021 at 09:06amHi elavarasan097,
Great to hear from you!
Not sure how your code is different from mine, but below code seems gives me the expected output:
EslClient eslClient = new EslClient(API_KEY, API_URL);
DocumentPackage pkg = PackageBuilder.newPackageNamed("Sample Package")
.withSigner(SignerBuilder.newSignerWithEmail("your_sender_email")
.withFirstName("duo")
.withLastName("liang"))
.withDocument(DocumentBuilder.newDocumentWithName("Document1")
.fromFile("path_to_doc")
.withId("Document1")
.withSignature(SignatureBuilder.signatureFor("your_sender_email")
.atPosition(1,1) //seems I can no longer set position as (0,0)
.withSize(0,0)
.withField(FieldBuilder.textArea()
.withName("text")
.withSize(250,200)
.atPosition(0,700)
.withValue("By providing my e-signature below, I hereby certify this document to be a true and complete copy of the original as sighted by me")
)
)
)
.withStatus(PackageStatus.SENT)
.build();
PackageId packageId = eslClient.createPackageOneStep(pkg);
eslClient.signDocuments(packageId);
And the document after signing looks like this:
Duo