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

Juraj Lonc commented on PDFBOX-490:
-----------------------------------

i made "proof of concept" java class (without changing a letter in pdfbox 
sources).
embedded fonts and converting pdf to image works fine :)

It works this way:
1. find pdfonts in pdf
2. if pdfont has stream (=embedded font) then read it
3. get unicode chars mapping from pdfont (=cmap)
4. insert cmap into embedded font
5. replace stream in pdfont

it looks complicated, but in fact it is not too much.

are you interested in implementing it into pdfbox?
                
> Pdf Printing of text from embedded fonts
> ----------------------------------------
>
>                 Key: PDFBOX-490
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-490
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 0.8.0-incubator
>         Environment: Windows XP, JRE 1.6
>            Reporter: Steve Poling
>            Assignee: Andreas Lehmkühler
>         Attachments: filled.pdf, TestTTFGlyph.java
>
>
> When printing from utility PrintPdf, text is rendered in the wrong typeface. 
> The correct typeface is embedded within the PDF (Embedded Subset) as a 
> TrueType font with an ANSI encoding. It may be noted that the AcroFields in a 
> Courier typeface render correctly.

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

Reply via email to