Add BufferedImage to PDFBox document

后端 未结 3 541
生来不讨喜
生来不讨喜 2020-12-14 23:59

In my current project, I try to add a BufferedImage to a PDFBox document. More specificly, I use an image from a JFreeChart. My code looks like thi

3条回答
  •  Happy的楠姐
    2020-12-15 00:27

    Two things stand out:

    • Do not swallow exceptions.

    • Do use ChartUtilities to render the image in a suitable format, as suggested here.

提交回复
热议问题