You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticvoidmain(String[] args) {
System.out.println("Parse Hello World");
// step 1: creation of a document-objecttry (Documentdocument = newDocument()) {
PdfWriter.getInstance(document, newFileOutputStream("test.pdf"));
// step 2: we open the documentdocument.open();
// step 3: parsing the HTML document to convert it in PDFHtmlParser.parse(document, ParseHelloHtml.class.getClassLoader().getResourceAsStream("com/lowagie/examples/html/test.html"));
} catch (DocumentException | IOExceptionde) {
System.err.println(de.getMessage());
}
}
Html is following.
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"/><title>Title</title></head><body><p>This is a test.</p></body></html>
Current behavior
Expected behavior
I think it should change line at least.
The text was updated successfully, but these errors were encountered:
My html has title and after parsing, the title is in the first line of body. I think at least it should change a line.
To Reproduce
The code is the same as sample ParseHelloHtml.java.
Html is following.
Current behavior

Expected behavior

I think it should change line at least.
The text was updated successfully, but these errors were encountered: