Are the JBIG2 and JPX plugins in your classpaths? Did you see any log messages? Did you activate logging?

Tilman

Am 12.01.2022 um 22:46 schrieb Jeremy Young:
The attached pdf is the first page referred to in this link from Gunnar Brand.
https://www.mail-archive.com/users@pdfbox.apache.org/msg11980.html
When I render this page in pdfbox 2.0.24 I get a blank page using code similar 
to below, which works for documents which are not using masks.
PDDocument document = PDDocument.load(fileAsByteArray)
PDFRenderer renderer =new PDFRenderer(document);

// configuring renderer for best image RenderingHints hints =new 
RenderingHints(null);
hints.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_SPEED);
hints.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
hints.put(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
renderer.setRenderingHints(hints);

// render relevant the pages into memory BufferedImage bufferedImage = 
renderer.renderImage(0,5, ImageType.BINARY);
I have tried with/without the hints and with different scales and image types.
Any ideas what's going wrong here?
Thanks.

LIKEZERO Limited is a limited company registered in Scotland with registered number SC651418. Our registered office is at Quartermile One, 15 Lauriston Place, Edinburgh, United Kingdom, EH3 9EP

This email is intended solely for the addressee and may contain confidential information. If you have received this message in error, please immediately and permanently delete it. Do not use, copy or disclose the information contained in this message or in any attachment.

This email is not in any way intended to create a binding contract.

We may monitor and record emails for security reasons and for monitoring compliance with internal policies.


---------------------------------------------------------------------
To unsubscribe, e-mail:users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail:users-h...@pdfbox.apache.org

Reply via email to