[ 
https://issues.apache.org/jira/browse/PDFBOX-1608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14086848#comment-14086848
 ] 

Tilman Hausherr commented on PDFBOX-1608:
-----------------------------------------

You can set the resolution like this:
{code}
new PDFRenderer(document).renderImageWithDPI(page, dpi, ImageType.RGB);
{code}
Btw I realize you're hijacking a resolved issue. Please ask "howto" questions 
on the user list; if something is not rendering correctly, open a new issue, 
and attach your PDF and the rendered image, if possible.

> Rendering problem with Java 7 update 21
> ---------------------------------------
>
>                 Key: PDFBOX-1608
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1608
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.1
>            Reporter: Jason Goodwin
>            Assignee: Andreas Lehmkühler
>             Fix For: 2.0.0
>
>         Attachments: HoulihansVeggieMenu-java7_11.jpg, 
> HoulihansVeggieMenu-java7_21.jpg, HoulihansVeggieMenu.pdf
>
>
> Since updating to Java 1.7.0_21 converting PDFs to images is not working as 
> it did under prior versions of Java. I'm not sure what might be causing this, 
> but I am attaching an example one page PDF and resulting converted images 
> that shows the effect. Basically, for some PDFs the text is no longer 
> rendering. The sample image output was from running the PDFToImage utility on 
> the command line with two different versions of Java.
> Console output from the PDFToImage is the same from both versions of Java:
> May 22, 2013 10:52:37 AM org.apache.pdfbox.pdmodel.font.PDSimpleFont 
> drawString
> WARNING: Changing font on < > from <BHHPND+Wingdings-Regular> to the default 
> font
> May 22, 2013 10:52:37 AM org.apache.pdfbox.util.PDFStreamEngine 
> processOperator
> INFO: unsupported/disabled operation: BDC
> May 22, 2013 10:52:37 AM org.apache.pdfbox.util.PDFStreamEngine 
> processOperator
> INFO: unsupported/disabled operation: EMC
> May 22, 2013 10:52:37 AM org.apache.pdfbox.pdmodel.font.PDTrueTypeFont 
> getawtFont
> INFO: Can't read the embedded font BHHPND+HelveticaNeue-Bold
> May 22, 2013 10:52:38 AM org.apache.pdfbox.pdmodel.font.PDTrueTypeFont 
> getawtFont
> INFO: Using font SansSerif.plain instead
> Writing: C:\Users\jason.goodwin\Downloads\HoulihansVeggieMenu1.jpg



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to