Injecting fields not populated
Friday, January 11, 2019 at 04:50amHi Team,
Need your quick help. I am sending the package to eSL along with injecting fields, but fields are not populated.
Below is the code snippet I used:
InputStream is = new ByteArrayInputStream(docAsBytes);
DocumentBuilder db= newDocumentWithName(name)
.fromStream(is, DocumentType.PDF)
.enableExtraction()
.atIndex(index);
for (Map loanDetail : loanDetails) {
db.withInjectedField(FieldBuilder.textField()
.withName("«"+(String)loanDetail.get("FieldName")+"»")
.withValue((String)loanDetail.get("FieldValue")));
}
doc=db.build();
Kindly revert as soon as you can and let me know if any additional info required.
Reply to: Injecting fields not populated
Friday, January 11, 2019 at 05:13am{fieldName}>>
. I also tried at my own side and it seems characters like "" and ">>" in form name can't be recognized by doc engine. As a quick test, can you remove them both in your PDF and code and try again? Duo