Lines that vanish is a somewhat unsolved problem at "low" resolutions, even in the 2.0 version. There's no setting from outside, and the settings from "inside" (i.e. change the PDFBox source code in PageDrawer.java, look for setRenderingHint) can have other unpleasant surprises.

Tilman

Am 29.06.2015 um 16:00 schrieb Kirk, Kenneth:
Well after checking further I found that the problem was in the scaling after 
the image was created.  I wanting to scale it to 200 dpi using ImageIO and that 
is where the size discrepancy came about.  If I leave it at 72 dpi it's okay.  
One other problem I having is generating a image from a PDF page with lines 
that are light gray.  When rendering the page as ImageType.BINARY the lines 
drops them out completely when the image rendered.  I have to render it as RBG 
first and make an extra call to convert to black and white which slow the 
process way down.  It seems the threshold value need to be manipulated but I'm 
not sure where one changes that at.

-----Original Message-----
From: Tilman Hausherr [mailto:[email protected]]
Sent: Friday, June 26, 2015 3:51 PM
To: [email protected]
Subject: Re: image Resolution

Why not just use the dpi parameter when rendering?

Tilman

Am 26.06.2015 um 21:43 schrieb Kirk, Kenneth:
I'm sure this question has been asked before but I wasn't on the list when it 
was.  I have PDFs that I need to convert to images.  Most are 8.5x11.  Some are 
8.5 x 3.5.  My problem is figuring out the resolution when I save them as 
200dpi tiff images.  I made some assumptions that held true until I encountered 
PDFs that deviated from the those assumptions.  Although I can assume all PDFs 
are 8.5 inch wide and therefore I can deduce the resolution based of the width 
of the actually page I don't want to assume anything but calculate the 
resolution base on what I can get from the PDF structure itself.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to