Please Help

I use FOP 0.20.5rc with j2sdk1.4.0_03 and i can't convert fo file with svg (with text) to PDF with Text.

i made fonts metrics files without error and i added svgSTROKEStext entry in userconfig.xml and i had opened arial.ttf font and saved it with a truetypefont editor.

When i launched the command "fop -c conf\userconfig.xml -fo result.fo -pdf result.pdf" , the PDF is generated but with line art text and i got this error :

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5rc
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[INFO] [1]
java.lang.ArrayIndexOutOfBoundsException
      at org.apache.batik.gvt.font.AWTGVTGlyphVector.getGlyphMetrics(AWTGVTGlyphVector.java:392)
      at org.apache.batik.gvt.text.GlyphLayout.doSpacing(GlyphLayout.java:1360)
      at org.apache.batik.gvt.text.GlyphLayout.adjustTextSpacing(GlyphLayout.java:1243)
      at org.apache.batik.gvt.text.GlyphLayout.getAdvance2D(GlyphLayout.java:362)
      at org.apache.batik.gvt.renderer.StrokingTextPainter.getTextChunk(StrokingTextPainter.java:640)
      at org.apache.batik.gvt.renderer.StrokingTextPainter.getTextRuns(StrokingTextPainter.java:223)
      at org.apache.batik.gvt.renderer.StrokingTextPainter.getBounds2D(StrokingTextPainter.java:1046)
      at org.apache.fop.svg.PDFTextPainter.getBounds2D(PDFTextPainter.java:326)
      at org.apache.batik.gvt.TextNode.getPrimitiveBounds(TextNode.java:223)

please see my attached files. Many thanks for your help, it's critical for me.

 Eric

 

 

Reply via email to