 <p>You can use generic tags on chunks:</p> <ol> <li>Set the tag on relevant chunks</li> <li>Create a class that extends <code>PdfPageEventHelper</code> and add it to the writer</li> <li>Write the code that makes the underlining job on the <code>onGenericTag</code> method </li> <li>In the <code>onGenericTag</code> method you have the surrounding rect of the chunk: you can draw a line directly on the PdfContentByte using a dashed style or whatever style you desire.</li> </ol>