arun_thipparthi | Posts: 4

Injecting fields not populated

0 votes
Hi 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.

Duo_Liang | Posts: 3776

Reply to: Injecting fields not populated

0 votes
Hi arun, For the first glance, it looks like you are naming your PDF form {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

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