[
https://issues.apache.org/jira/browse/PDFBOX-1019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791234#comment-13791234
]
Tilman Hausherr commented on PDFBOX-1019:
-----------------------------------------
Is there anyone here who has some sort of "viewer" for type 1 font files
(attached) to see whether there are correct?
I found a way to display the "fi", by mapping the codepoints to glyph ids
(starting from 0 and using the DIFFERENCES table in the PDF) and using a
different drawGlyphVector() call, the one using glyph codes. However this trick
only works with the CMR17 font. Java does not use the encoding table in the
font file. (If it did, char code dec 12 would display the "fi" but instead a
different code (hex FB01) does)
It doesn't work with the CMR10 font. Java thinks that there is only one glyph
in the CMR10 font although there are more.
If the fonts are correct, I would submit a bug report to Oracle.
> PDF conversion to image crashes the JVM
> ---------------------------------------
>
> Key: PDFBOX-1019
> URL: https://issues.apache.org/jira/browse/PDFBOX-1019
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.5.0
> Environment: Linux Ubuntu, Mac OSX
> Reporter: Petr Knoth
> Assignee: Andreas Lehmkühler
> Attachments: thumb.png
>
>
> The file http://tie.open.ac.uk/256.pdf crashes the JVM during conversion to
> jpeg with the following message :
> Assertion failed: (fnum >= 0 && fnum < t->numSubrs), function BuildSubrs,
> file ../../../src/share/native/sun/font/t2k/t1.c, line 3098.
> Java Result: 134
> The error happens in the method convertToImage():
> PDPage page = (PDPage) pages.get(startPage);
> PDPage page = (PDPage) pages.get(0);
> try {
> image = page.convertToImage();
> } catch (IOException ex) {
> Logger.getLogger(PdfIText.class.getName()).log(Level.SEVERE,
> null, ex);
> }
> The problem occurs not for all files, but is critical as it stops my
> webserver (Tomcat) that needs to be then restarted.
--
This message was sent by Atlassian JIRA
(v6.1#6144)