This topic contains 1 reply, has 2 voices, and was last updated by  Duo_Liang 2 months, 1 week ago.

  • Author
    Posts
  • Participant
    arun_thipparthi
    Newbie
    Member since: 11.07.2018
    Number of posts: 5

    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<String, Object> 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.

    Keymaster
    Duo_Liang
    Guru
    Member since: 14.06.2018
    Number of posts: 691

    Score

    0

    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


    Duo Liang
    OneSpan Junior Technical Evangelist

You must be logged in to reply to this topic.