Hi.
When I am trying to convert docx file to pdf I got this type of exception.
Exception in thread "main" java.lang.AbstractMethodError: org.apache.fop.fonts.Typeface.getEncodingName()Ljava/lang/String;
at org.apache.fop.pdf.PDFResources.addFonts(PDFResources.java:117)
at org.apache.fop.render.pdf.PDFRenderer.stopRenderer(PDFRenderer.java:275)
at org.apache.fop.area.RenderPagesModel.endDocument(RenderPagesModel.java:256)
at org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:309)
at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:164)
at org.apache.xalan.transformer.TransformerIdentityImpl.endDocument(TransformerIdentityImpl.java:962)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:726)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:525)
at org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1938)
at org.apache.xerces.impl.XMLEntityScanner.load(XMLEntityScanner.java:1773)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1258)
at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1239)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:875)
at org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:798)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1190)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at org.docx4j.convert.out.pdf.viaXSLFO.Conversion.output(Conversion.java:335)
at org.docx4j.samples.CreatePdf.main(CreatePdf.java:132)
I think exception cause in org.apache.fop.pdf.PDFResources.java file
encoding = font.getEncodingName();
I don't know what happening?
Thanx in advance.