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

Luis Bernardo commented on PDFBOX-1718:
---------------------------------------

the issue is indeed caused by the fact that the toUnicode cmap is not being 
used; if we use it instead of the cmap then the output is good but for the 
spaces (in the example provided; in a larger example also the dashes are 
wrong). the space is using a non-break-space, which is what is indeed mapped in 
the toUnicode cmap. somehow that needs to be replaced by a space...
                
> wrong glyphs displayed
> ----------------------
>
>                 Key: PDFBOX-1718
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1718
>             Project: PDFBox
>          Issue Type: Bug
>            Reporter: Luis Bernardo
>            Assignee: Andreas Lehmkühler
>         Attachments: input1.png, input.pdf, input.pdf, PDFBOX-1718-01.png
>
>
> java -jar app/target/pdfbox-app-2.0.0-SNAPSHOT.jar PDFToImage -imageType png 
> /tmp/input.pdf
> The resulting image has wrong glyphs for attached example file. Tested with 
> trunk. I think further work is needed in TTFGlyph2D.

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