[
https://issues.apache.org/jira/browse/PDFBOX-1809?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13852168#comment-13852168
]
Ronald Ray commented on PDFBOX-1809:
------------------------------------
The unreleased 2.0 version still has some semblence of this bug. I dug for a
bit, and it is occurring on Type 1 fonts without a Type 1C font attached to it.
In my case, unlike the 01-0001-01-REP.pdf, the host machine does not have the
font installed locally to fall back to.
In the font parser, I noticed that it is a known issue that there is no full
Type 1 font parser, and it seems to be relying on fallback to AWT fonts for
rendering. Going to see if I can work around by extracting fonts from the PDF
and having them available locally.
> 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
>
>
> 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.4#6159)