[
https://issues.apache.org/jira/browse/PDFBOX-1809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864339#comment-13864339
]
Tilman Hausherr commented on PDFBOX-1809:
-----------------------------------------
Are you sure? For me, createGlyph2D() returns null for the "antiques" file
(because no Type1CFont attached), thus it is rendered with drawString() (awt)
and not with drawGlyph2D(). And there I get the "tiny font subset fail"
described in PDFBOX-1019. However, if you get a proper rendering for the
"antiques" file, maybe you'll also get a proper rendering for the 256 file
mentioned in PDFBOX-1019.
While both files use type1 fonts, the fonts of first file "the voting file"
have a type1CFont (pdfbox handles it), while the fonts of the file "the
antiques file" don't (awt handles it).
> 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-good.png,
> 01-0001-01-rep-01.png, PdfBoxImage_0.png, PdfBoxImage_1.png,
> pdfbox-1809-image.jpg, pdfbox-1809.pdf
>
>
> 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)