You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by John Planow <jp...@parchment.com> on 2016/10/17 23:00:23 UTC

[PDFBox 2.0.3] PDFRenderer.renderImageWithDPI Text Upside-Down and Out of Position

I've just migrated to PDFBox 2.0.3 (from 1.8.x) for some PDF to image
conversion we're doing. In my initial testing, I'm seeing some of the text
rendered upside-down and out of position when I use this method:


public BufferedImage renderImageWithDPI(int pageIndex,
                               float dpi,
                               ImageType imageType)
                               throws IOException


The PDF and resulting image file are attached.

This looks suspiciously similar to issues people have had with
PDPageContentStream
<http://stackoverflow.com/questions/27919436/pdfbox-pdpagecontentstreams-append-mode-misbehaving>,
but in this case, I don't know of any way to mess with the graphics context
during rendering.

Is this a bug in the PDFBox library? Regardless, is there any way to
workaround it?

With gratitude,
John

--

*JOHN PLANOW *| SOFTWARE DEVELOPER
jplanow@parchment.com
direct 916.367.6868 ext. 1623
3000 Lava Ridge Court, Suite 210, Roseville, CA 95661
*Parchment *| Turn Credentials Into Opportunities
www.parchment.com