You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2013/08/11 13:05:48 UTC

[jira] [Resolved] (PDFBOX-1608) Rendering problem with Java 7 update 21

     [ https://issues.apache.org/jira/browse/PDFBOX-1608?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Lehmkühler resolved PDFBOX-1608.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

PDFBox no longer relies on the JDK to render Type1/CFF fonts. The glyphs are rendered by PDFBox itself similar to PDFBOX-490. I also moved some Type1 related stuff from PDFont/PDSimpleFont to PDType1Font.

All changes were made in revision 1512900.

There are still some known minor encoding issues (PDFBOX-1682) and maybe others, but I guess the main work is done.

The attached pdf looks good after resolving PDFBOX-490 and this one (the pdf uses TTF and Type1 fonts)
                
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira