Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

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

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...