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 2013/08/05 13:00:49 UTC

[jira] [Commented] (PDFBOX-1296) Warnung: Changing font on < > from to the default font

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

Tilman Hausherr commented on PDFBOX-1296:
-----------------------------------------

Thanks, it works fine with 2.0.0 as of yesterday.
                
> Warnung: Changing font on < > from <AMAKEA+TimesNewRoman> to the default font
> -----------------------------------------------------------------------------
>
>                 Key: PDFBOX-1296
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1296
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 1.6.0, 1.8.2, 2.0.0
>         Environment: XP, JDK 1.7
>            Reporter: Tilman Hausherr
>            Assignee: Andreas Lehmkühler
>             Fix For: 2.0.0
>
>         Attachments: outside-in-01.png, outside-in.pdf, shortcuts-01.png, shortcuts.pdf
>
>
> Pdfbox does not produce the correct fonts in the PNG file created with the following code and I get a lot of warnings:
>             PDDocument document = null; 
>             try 
>             { 
>                 document = PDDocument.load(pdfFile); 
>                 List pages = document.getDocumentCatalog().getAllPages(); 
>                 int p = 0; 
>                 for (Object pobj : pages) 
>                 { 
>                     PDPage page = (PDPage) pobj; 
>                     ++p; 
>                     BufferedImage bim = page.convertToImage(); 
>                     // Test with output in memory, to see the size 
>                     ByteArrayOutputStream memout = new ByteArrayOutputStream(); 
>                     boolean memoutok = ImageIO.write(bim, "png", memout); 
>                     if (!memoutok) 
>                         System.err.println ("mem write failed for " + p); 
>                     memout.reset(); 
>                     memout.close(); 
>                     // Test with output to png file 
>                     String fname = String.format("%s-%02d.png", prefix, p); 
>                     boolean foutok = ImageIO.write(bim, "png", new File(fname)); 
>                     if (!foutok) 
>                         System.err.println ("file write failed for " + p); 
> ....
> Apr 26, 2012 2:41:11 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
> Information: unsupported/disabled operation: i
> Apr 26, 2012 2:41:12 PM org.apache.pdfbox.util.PDFStreamEngine processOperator
> Information: unsupported/disabled operation: ri
> Apr 26, 2012 2:41:12 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
> Warnung: Changing font on < > from <AMAKEA+TimesNewRoman> to the default font
> Apr 26, 2012 2:41:13 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
> Warnung: Changing font on < > from <AMAKEA+TimesNewRoman> to the default font
> Apr 26, 2012 2:41:13 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString
> Warnung: Changing font on <O> from <AMAKME+Arial,Bold> to the default font
> Apr 26, 2012 2:41:13 PM org.apache.pdfbox.pdmodel.font.PDSimpleFont drawString

--
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