Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
in reply to: PD4ML Evaluation License – Serial number? April 6, 2020 at 15:54#33905
This thread can be closed. It works when compiling and running outside eclipse. Sorry for pestering you!
All the best,
Andersin reply to: PD4ML Evaluation License – Serial number? April 6, 2020 at 14:39in reply to: PD4ML Evaluation License – Serial number? April 6, 2020 at 14:32in reply to: PD4ML Evaluation License – Serial number? April 6, 2020 at 14:28#33901Thanks 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 -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
