pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: [PDFBox 2.0.3] PDFRenderer.renderImageWithDPI Text Upside-Down and Out of Position
Date Tue, 18 Oct 2016 06:39:11 GMT
Hello John,

This works in the unreleased 2.0.4
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.4-SNAPSHOT/

I suspect that this is related to the PDFBOX-3000 issue, although your 
file doesn't have transparency groups, but one of the changes was 
related to rotated pages (yours is).

Tilman


Am 18.10.2016 um 01:37 schrieb John Planow:
> 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 <mailto:jplanow@parchment.com>
> direct916.367.6868**ext.1623
> 3000 Lava Ridge Court, Suite 210, Roseville, CA 95661
> *Parchment *|**Turn Credentials Into Opportunities
> www.parchment.com <http://www.parchment.com/>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message