[
https://issues.apache.org/jira/browse/PDFBOX-1713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13760111#comment-13760111
]
Tilman Hausherr edited comment on PDFBOX-1713 at 9/26/13 1:57 AM:
------------------------------------------------------------------
Works for me in the 2.0 version. Even without using the change in
CFFGlyph2D.java. The code wasn't even reached in debug.
The deeper cause of the problem in WinAnsiEncoding.java (introduced here
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/encoding/WinAnsiEncoding.java?r1=1209073&r2=1311996&sortby=date&diff_format=h
) is that the codeToName HashTab is accessed both with getCodeToNameMap() and
with getName(), and delivered different results after that change.
Solution for me:
1) I'd delete WinAnsiEncoding.getName()
2) I'd set Encoding.getName() and Encoding.getCode to final, in the hope that
nobody ever tries to override it again
3) I'd delete MacRomanEncoding.getName();
4) I'd add codeToName.put( 0312, "space"); in MacRomanEncoding.java
All the tests pass.
was (Author: tilman):
Works for me in the 2.0 version. Even without using the change in
CFFGlyph2D.java. The code wasn't even reached in debug.
The deeper cause of the problem in WinAnsiEncoding.java (introduced here
http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/encoding/WinAnsiEncoding.java?r1=1209073&r2=1311996&sortby=date&diff_format=h
) is that the codeToName HashTab is accessed both with getCodeToNameMap() and
with getName(), and delivered different results after that change.
Solution for me:
1) I'd delete WinAnsiEncoding.getName()
2) I'd set Encoding.getName() and Encoding.getCode to final, in the hope that
nobody ever tries to override it again
3) I'd delete MacRomanEncoding.getName();
4) I'd add addCharacterEncoding(0312, "space") in MacRomanEncoding.java
All the tests pass.
> [PATCH] Bullet character not rendered
> -------------------------------------
>
> Key: PDFBOX-1713
> URL: https://issues.apache.org/jira/browse/PDFBOX-1713
> Project: PDFBox
> Issue Type: Bug
> Reporter: Vincent Hennebert
> Attachments: bullet.patch, bullet.pdf
>
>
> See attached file. In WinAnsiEncoding, any unused code greater than 040 maps
> to the bullet character.
> The attached patch takes that into account to render characters that don't
> use the standard encoding for bullet.
--
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