> On 2 Nov 2015, at 13:30, Manfred Pock <[email protected]> wrote: > > Hi, > > Am 02.11.2015 um 21:27 schrieb John Hewson: >>> On 2 Nov 2015, at 08:35, Manfred Pock <[email protected]> wrote: >>> >>> Hi, >>> >>> we render a image with the pdfbox-renderer: >>> >>> for example >>> renderImageWithDPI(Pi_pageIdx, 250, ImageType.RGB); >>> >>> 250dpi, is a good value beetween performance and rendering quality >> That’s a pretty high DPI, I’d expect PDFBox to take a while to render that. >> Is there any way you can reduce the DPI? > Not really, if you will use some zooming features like fit do screen width > and so one, you need this dpi value. We have also tried it with lower dpi > value, there ist not so an big difference.
Just to be clear I’m not saying that this is a high DPI in general, but it’s high for PDFBox, if your goal is rendering performance. It sounds like you might be rendering the document at an excessive DPI and then scaling-down the BufferedImage - if so you’d be better of rendering at a lower DPI. Try rendering at a tiny DPI, such as 25, you should see great performance - if not, there might be something specific to that PDF file which is causing PDFBox problems. — John >>> and we show the bufferedimage in java (we also cache the image that we >>> don't need to rerender it always) >> PDFBox isn’t really fast enough for real-time rendering, such as a PDF >> viewer in AWT / Swing. >> >> — John > > That are not good news. We have also testet other free java-pdf-libaries, > some are faster, but they don't have the same rendering quality and no one > can view so many kinds of pdf as pdfbox. There is pdfbox especial great. > > BR, Manfred > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
