Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.0.2
-
None
-
None
-
Windows 7
Java 1.8.0_102
Description
Rendering a page with the method renderImage(int pageIndex, float scale) in PDFRenderer with a scale factor < 1 (e.g 0.5) the image renders only 0.5 of the actual content
try { File file = new File("input.pdf"); PDDocument document = PDDocument.load(file); PDFRenderer renderer = new PDFRenderer(document); BufferedImage image = renderer.renderImage(0, .5f); ImageIO.write(image, "png", new File("output.png")); } catch (IOException e) { e.printStackTrace(); }
Attachments
Attachments
Issue Links
- is duplicated by
-
PDFBOX-3381 PDF rendering regression
- Closed