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"); } }