title: How to convert an HTML content to PDF without losing the formatting using Java?
body: <p>I have some HTML content (including formatting tags such as <code>strong</code>, images etc).In my Java code,  I want to convert this HTML content into a PDF document without losing the HTML formatting.</p>
  
  <p>Is there anyway to do it in Java (using iText or any other library)?</p>