You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/08/05 22:36:05 UTC
[jira] [Issue Comment Deleted] (PDFBOX-2917) PDF to Image,
faint/dim Images
[ https://issues.apache.org/jira/browse/PDFBOX-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr updated PDFBOX-2917:
------------------------------------
Comment: was deleted
(was: Please attach the PDF.)
> PDF to Image, faint/dim Images
> ------------------------------
>
> Key: PDFBOX-2917
> URL: https://issues.apache.org/jira/browse/PDFBOX-2917
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Environment: Windows 8.1, jdk1.8.0_51, jre1.8.0_51
> Reporter: Samuil Goranov
> Priority: Trivial
> Labels: images, newbie
> Attachments: saved0.png, selection.pdf
>
>
> {code:title=pdftoimage.java|borderStyle=solid}
> PDDocument document = null;
> File file = new File("F:\\Projects\\java\\pdfbox\\complete.pdf");
> document = PDDocument.load( file );
> try {
> // retrieve image
> BufferedImage bi = new PDFRenderer(document).renderImageWithDPI( 0 , 150, ImageType.RGB );
> File outputfile = new File("saved0.png");
> ImageIO.write(bi, "png", outputfile);
> } catch (IOException e) {
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org