【发布时间】:2014-08-04 22:03:35
【问题描述】:
我正在使用 com.lowagie.text.FontFactory 注册希腊字体以在 PDF 文件中使用。但是,在注册自己时,我得到了 java.io.EOFException。如果有人对此有任何见解,我将不胜感激。谢谢
FontFactory.register("/classes/fonts/LiberationSans-Regular.ttf","Greek-Regular");
错误堆栈:
ExceptionConverter: java.io.EOFException
at com.lowagie.text.pdf.RandomAccessFileOrArray.readFully(Unknown Source)
at com.lowagie.text.pdf.RandomAccessFileOrArray.readFully(Unknown Source)
at com.lowagie.text.pdf.TrueTypeFont.readStandardString(Unknown Source)
at com.lowagie.text.pdf.TrueTypeFont.getAllNames(Unknown Source)
at com.lowagie.text.pdf.TrueTypeFont.process(Unknown Source)
at com.lowagie.text.pdf.TrueTypeFont.<init>(Unknown Source)
at com.lowagie.text.pdf.BaseFont.getAllFontNames(Unknown Source)
at com.lowagie.text.FontFactoryImp.register(Unknown Source)
at com.lowagie.text.FontFactory.register(Unknown Source)
at com.gxs.activefoundation.delegate.DefaultPdfReportDelegateImpl.<clinit>(DefaultPdfReportDelegateImpl.java:212)
【问题讨论】:
-
您是否代表 GXS (OpenText) 为 MindTree 工作?
标签: java pdf fonts internationalization itext