HtmlParser from iText : HTML Parser « PDF « Java Tutorial






import java.io.FileOutputStream;

import com.lowagie.text.Document;
import com.lowagie.text.html.HtmlParser;
import com.lowagie.text.pdf.PdfWriter;

public class MainClass {
  public static void main(String[] args) throws Exception {
    Document document = new Document();
    PdfWriter.getInstance(document, new FileOutputStream("html1.pdf"));
    HtmlParser.parse(document, "example.html");
  }
}








29.66.HTML Parser
29.66.1.HtmlParser from iText
29.66.2.Parsing Html
29.66.3.Parsing Html Snippets