PDFBox Pdf to Image losing QR Code “ColorSpace Pattern doesn't provide a non-stroking color”

落花浮王杯 提交于 2019-11-27 08:43:22

问题


Similar to this SO PDFBox - PDF to Image losing barcode

The PDF in question: https://drive.google.com/file/d/0B13zTPQR9uxscXRMWjhsZ0doa00/view?usp=sharing

There is minimal text, and a medium sized QR Code. I have tried many different solutions to convert this PDF page to an image using PDFBox/ImageIO, but so far the QR Code is always missing from the result.

When I use PDFBox's PDFImageWriter I get this log:

ColorSpace Pattern doesn't provide a non-stroking color, using white instead!

I'm thinking that pertains to the QR Code.

Is this expected behavior? Can someone else confirm PDFBox cannot copy the QR Code from this PDF? Is there any way to convert this to an image using Java or PDFBox?

来源:https://stackoverflow.com/questions/28589477/pdfbox-pdf-to-image-losing-qr-code-colorspace-pattern-doesnt-provide-a-non-str

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!