javapdfbox

I use pdfbox PDFRenderer.renderImage render pdf to image failed. The result image is not same with which pdf shows


I use pdfbox PDFRenderer.renderImage render pdf to image failed. The result image is not same with which pdf shows. Maybe some background colors are not rendered to image. origina pdf file: pdf address

  1. the expecting image:

the expecting image:

  1. the actual output image is :

failed image


Solution

  • This bug was related to an unusual combination of gray JPEG, separation colorspace, ICC colorspace and LAB colorspace has been fixed in PDFBOX-5778 and the fix will be part of the next versions (2.0.31 and 3.0.2). In the meantime, snapshot builds can be downloaded here (2.0.31) and here (3.0.2).