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

Andreas Lehmkühler commented on PDFBOX-1809:
--------------------------------------------

The fonts don't have to be installed on the host computer, as the the embedded 
font is used to draw the text. There is no fallback scenario for that case in 
PDFBox 2.0

The problem is, again the JDK. :-(

Here are my results from a quick test with the new pdf:

- OpenJDK 1.7.0_45 64bit: quite perfect
- Oracle JDK 1.6.0_37 64bit: nearly perfect, only the "Q" of "ANTIQUES" is draw 
wrong, it's filled
- Oracle JDK 1.7.0_25 64bit: bad, the markers are there but the text is missing 
completely
- Oracle JDK 1.7.0_45 64bit: same as Oracle 1.7.0_45

> Embedded Fonts not drawn on Pages BufferedImage
> -----------------------------------------------
>
>                 Key: PDFBOX-1809
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1809
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 1.8.3
>         Environment: Windows 7 professional, Spring Tool Suite Version 
> 3.2.0.RELEASE java version 1.7.0.45
>            Reporter: Don Jensen
>            Priority: Blocker
>         Attachments: 01-0001-01-REP.pdf, 01-0001-01-rep-01.png, 
> PdfBoxImage_0.png, PdfBoxImage_1.png, pdfbox-1809-image.jpg, pdfbox-1809.pdf, 
> pdfbox-1809.pdf-1.png
>
>
> When converting a PDF Page to image PDPage,convertToImage.  Some fonts are 
> not transferring to the bufferedImage canvas.  
> for(int index = 0; index < workDoc.getNumberOfPages(); index++){ 
>        PDPage workPage = (PDPage) 
> workDoc.getDocumentCatalog().getAllPages().get(index); 
>        BufferedImage workImage = workPage.convertToImage(); 
>        ImageIO.write(workImage, "PNG", new File(baseFolder + "PdfBoxImage_" + 
> index + ".png")); 
> } 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to