HTML to PDF / DOCX / RTF Java converter library Forums PD4ML Forums Technical questions / Troubleshooting Editable PDF not working with specialized name attributes

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #33699

    Hi PD4ML,

    We are using 4.0.6 latest snapshot with license.
    We are trying to generate editable PDF, but we are seeing some exceptions.

    Markup being used:
    <input type=’checkbox’ value=’true’ name=’$Test’ />
    <input type=’radio’ name=’$Test1′ value=’UI’>

    Java Code:
    pd4ml.generateForms(true, “”);

    Exceptions seen:
    Whenever the name attribute value contains “$”, we are seeing pd4ml exceptions as below
    Exception in thread “main” java.lang.NullPointerException
    at com.pd4ml.pdf.builder.e.o00000(y:1112)
    at com.pd4ml.pdf.builder.e.o00000(y:1968)
    at com.pd4ml.html.doc.render.n.o00000(y:977)
    at com.pd4ml.html.doc.render.nb.o00000(y:3497)
    at com.pd4ml.html.doc.render.p.o00000(y:301)
    at com.pd4ml.PD4ML.writePDF(y:3080)
    at Test.TestJar.main(

    Rekha Tavvala


    The issue is going to be fixed with today’s nightly build.

    Please note: As names like “$Test” are invalid from HTML spec perspective, they are internally substituted with something like “invalid-name”. So even “$Test” and “$Test1” are different, internally they named identically and may cause unexpected radio button grouping in some contexts.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.