Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: PD4ML Evaluation License – Serial number?
    #33905

    This thread can be closed. It works when compiling and running outside eclipse. Sorry for pestering you!

    All the best,
    Anders

    in reply to: PD4ML Evaluation License – Serial number?
    #33903

    Actually it creates a pdf file, which is not empty, see attachment, but it’s blank in my pdf reader.

    //Anders

    Attachments:
    You must be logged in to view attached files.
    in reply to: PD4ML Evaluation License – Serial number?
    #33902

    BTW, the version i try is pd4ml-4.0.7.jar

    //Anders

    in reply to: PD4ML Evaluation License – Serial number?
    #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

Viewing 4 posts - 1 through 4 (of 4 total)