pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PDFBOX-4524) java.io.EOFException: null
Date Wed, 24 Apr 2019 10:10:00 GMT

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

Tilman Hausherr edited comment on PDFBOX-4524 at 4/24/19 10:09 AM:
-------------------------------------------------------------------

Please attach the mstmc.ttf file. The 2.0.15 problem is likely because you have several different
versions in your classpath.


was (Author: tilman):
Please attach the mstmc.ttf file. The 2.0.15 problem is likely because you have several different
versions in your classpath.

Did the file print? I.e. did the exception abort the print job, or is it just an annoying
log entry?

> java.io.EOFException: null
> --------------------------
>
>                 Key: PDFBOX-4524
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4524
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>            Reporter: Mingzhe Xu
>            Priority: Major
>
> {color:red}*Version : 2.0.12 to 2.0.14*{color}
> Could not load font file: C:\WINDOWS\FONTS\mstmc.ttf
> java.io.EOFException: null
>  at org.apache.fontbox.ttf.TTFDataStream.readUnsignedInt(TTFDataStream.java:152)
>  at org.apache.fontbox.ttf.TTFParser.readTableDirectory(TTFParser.java:312)
>  at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:139)
>  at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:87)
>  at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.addTrueTypeFont(FileSystemFontProvider.java:539)
>  at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.scanFonts(FileSystemFontProvider.java:255)
>  at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.<init>(FileSystemFontProvider.java:234)
>  at org.apache.pdfbox.pdmodel.font.FontMapperImpl$DefaultFontProvider.<clinit>(FontMapperImpl.java:130)
>  at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getProvider(FontMapperImpl.java:149)
>  at org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFont(FontMapperImpl.java:413)
>  at org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFontBoxFont(FontMapperImpl.java:376)
>  at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getFontBoxFont(FontMapperImpl.java:350)
>  at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:146)
>  at org.apache.pdfbox.pdmodel.font.PDType1Font.<clinit>(PDType1Font.java:79)
>  at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
>  at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
>  at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
>  at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:848)
>  at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:503)
>  at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:477)
>  at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:254)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:312)
>  at org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:286)
> {color:red}*Version : 2.0.15*{color}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/fontbox/afm/AFMParser
> 	at org.apache.pdfbox.pdmodel.font.Standard14Fonts.addAFM(Standard14Fonts.java:123)
> 	at org.apache.pdfbox.pdmodel.font.Standard14Fonts.addAFM(Standard14Fonts.java:102)
> 	at org.apache.pdfbox.pdmodel.font.Standard14Fonts.<clinit>(Standard14Fonts.java:49)
> 	at org.apache.pdfbox.pdmodel.font.PDFont.<init>(PDFont.java:112)
> 	at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:176)
> 	at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
> 	at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
> 	at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:869)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:505)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:479)
> 	at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152)
> 	at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:265)
> 	at org.apache.pdfbox.rendering.PDFRenderer.renderPageToGraphics(PDFRenderer.java:401)
> 	at org.apache.pdfbox.printing.PDFPrintable.print(PDFPrintable.java:246)
> 	at sun.print.RasterPrinterJob.printPage(Unknown Source)
> 	at sun.print.RasterPrinterJob.print(Unknown Source)
> 	at sun.print.RasterPrinterJob.print(Unknown Source)
> 	at com.trinitesolutions.accounting.common.WorkBookPrintUtils.print(WorkBookPrintUtils.java:40)
> 	at com.trinitesolutions.accounting.common.WorkBookPrintUtils.main(WorkBookPrintUtils.java:48)
> Caused by: java.lang.ClassNotFoundException: org.apache.fontbox.afm.AFMParser
> 	at java.net.URLClassLoader.findClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message