[
https://issues.apache.org/jira/browse/PDFBOX-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443872#comment-13443872
]
Juraj Lonc commented on PDFBOX-1397:
------------------------------------
I have created very raw java classes.
It's very ugly code :) It's just for explanation what I mean.
It works with attached "makcene-print.pdf".
There has to be changes in code for some other types of embedded fonts.
My "workaround" is suitable for embedded ttf fonts with unicode (2-byte) cmap.
But I think that other combinations can be covered with the same technique.
Some embedded fonts does not containt "font name" in "name" table. JRE has
problems with that, so in those cases it will be necessary to import new "name"
table with font name in it. But that is not a problem with this technique.
> Some characters are displayed by default font (not by correct font)
> -------------------------------------------------------------------
>
> Key: PDFBOX-1397
> URL: https://issues.apache.org/jira/browse/PDFBOX-1397
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.7.1
> Reporter: Juraj Lonc
> Attachments: adobe_reader.png, makcene-print.pdf, pdbox_output.png
>
>
> I have created simple test pdf which contains some central european
> characters.
> Adobe Reader displays text OK.
> But this code
> BufferedImage bufferedImage = pdPage.convertToImage();
> renders some characters with default font (not the one set in content).
--
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