#33901

Thanks for your prompt reply. Below my simple main method that generates a blank pdf document. Runing with java SDK 1.8.

public static void main(String[] args) {
try {
PD4ML pd4ml = new PD4ML();
String html = “<html><body>Hello World!</body></html>”;
ByteArrayInputStream bais = new ByteArrayInputStream(html.getBytes());
pd4ml.readHTML(bais);
File pdf = File.createTempFile(“result”, “.pdf”);
FileOutputStream fos = new FileOutputStream(pdf);
pd4ml.writePDF(fos);
Desktop.getDesktop().open(pdf);
} catch (InvokeException | IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Getting some warnings as below during execution:
(evince:9270): Poppler-WARNING **: 16:25:30.061: Unsupported Annot Type
(evince:9270): Poppler-WARNING **: 16:25:30.061: Unsupported Annot Type
** (evince:9270): WARNING **: 16:25:30.061: Unimplemented annotation: POPPLER_ANNOT_UNKNOWN, please post a bug report in Evince issue tracker (https://gitlab.gnome.org/GNOME/evince/issues) with a testcase.
(evince:9270): Poppler-WARNING **: 16:25:30.061: Unsupported Annot Type

All the best,
Anders