JFREECHART和PDFBOX
如何将jfreechart
添加为pdfbox中的png/jpeg?我尝试使用PDXObject Image,但它在项目中目前使用的1.8.11版中不可用。请帮助我使用示例代码和版本。
How to add JFreeChart
as png/jpeg in PDFBox? I tried using PDXObject image, but its not available in version 1.8.11 which is currently used in the project. Kindly help me with the sample code and version.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在1.8。*用于JPG的 pdjpeg
pdpixelMap
pdjpeg 。它们使用new
实现。但是,您不仅应该更新到1.8.16,还应迁移到2.0.26。In 1.8.* the classes to be used are
PDJpeg
for jpg andPDPixelMap
for png. They are instanciated withnew
. But you should really update, not just to 1.8.16, but migrate to 2.0.26.