[英]How to create a pdf from tiff image using PDFBox for Android?
我有一个Android应用程序,使用PDFBox从图像创建一个pdf,但它在图像是tiff格式时不起作用。是不是可以使用PDFBox从tiff图像创建一个PDF?
You can use PDImageXObject.createFromFile(...) to let the library decide which is the best option to convert your image in a PDImageXObject
, starting with the 2.XX release of PDFBox. 您可以使用PDImageXObject.createFromFile(...)让库决定哪个是在
PDImageXObject
转换图像的最佳选项,从PDFBox的PDImageXObject
版本开始。
You can read here to get some help on this, there is a code sample which you can adapt to your needs. 您可以在这里阅读以获得一些帮助,有一个代码示例,您可以根据自己的需要进行调整。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.