[
https://issues.apache.org/jira/browse/PDFBOX-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13781275#comment-13781275
]
Tilman Hausherr commented on PDFBOX-1435:
-----------------------------------------
About the NPE "issue when creating the general path for the glyphs" - I looked
at the spec for truetrype
http://www.truetype-typography.com/ttoutln.htm
"Glyphs are defined as a series of contours, each of which contains three or
more points. Each point is either on-curve or off-curve. Contours can even
consist entirely of off-curve points."
So its not a font error, and my workaround is not the solution so I deleted it.
The current implementation can't handle contours that consist entirely of
off-curve points. It also can't handle fonts that begin with an off-curve point.
I searched for another implementation and found this one from Sun:
https://svn.atlassian.com/svn/public/atlassian/vendor/pdf-renderer/trunk/src/main/java/com/sun/pdfview/font/TTFFont.java
I used it to see the correct commands (moveto, lineto, quadto).
Based on these, I can't find an quick fix to get the current code to work. (I
did try)
The Sun implementation renders the "problem glyph" in the chinese document
correctly: a hollow bullet at the bottom right.
The code is based on the Sun code but modified. It is shorter and simpler than
the current code. The original code has a LGPL license. I understand that the
GPL license can't be used (
https://www.apache.org/licenses/GPL-compatibility.html ), but the LGPL license
seems to be more friendly.
> text is obscured by the Images
> ------------------------------
>
> Key: PDFBOX-1435
> URL: https://issues.apache.org/jira/browse/PDFBOX-1435
> Project: PDFBox
> Issue Type: Bug
> Components: PDFReader
> Affects Versions: 1.7.1
> Reporter: huangchangan
> Assignee: Andreas Lehmkühler
> Attachments: 12102.pdf, cloud-01.png, pdfbox-1435_12102-01.png,
> PDFBOX-1435_12102-01.png, PDFBOX-1435.patch, PDFBOX1436-12102_1.png
>
>
> text is obscured by the Images,and Images is showed in reversed color.
--
This message was sent by Atlassian JIRA
(v6.1#6144)