iText convert only wanted HTML part to PDF
I was trying to convert an HTML to PDF file using iText with Java. However my PDF file has an area with different color cause by tag <body> background property. The PDF file should have all-white background same as the <div class=’container’> class. Is there any way to only convert <div class=’container’> to PDF to achieve it instead of changing <body> background to white?