My problem is :

i use fop 0-20.5rc with java 1.4, i added the FOP entry strokeSVGtext to False and fop generate a PDF but with line art and it return this error :

[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.batik.gvt.TextNode.getPrimitiveBounds(TextNode.java:223)
       at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(AbstractGraphicsNode.java:834)
       at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:800)
       at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(CompositeGraphicsNode.java:205)
       at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:800)
       at org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(CompositeGraphicsNode.java:205)
       at org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:800)
       at org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(CompositeGraphicsNode.java:162)
       at org.apache.batik.gvt.AbstractGraphicsNode.getBounds(AbstractGraphicsNode.java:748)
       at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:471)
       at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(PDFRenderer.java:570)

 

my svg code is :

<style type="text/css"><![CDATA[
text.t1 {font-family:'Arial',sans-serif;font-size:40;fill:#000000}
]]></style>
<g id="Page_1">
<text class="t1"><tspan x="1588" y="149">SOP</tspan><tspan x="1672" y="149">
 </tspan><tspan x="1730" y="149">:</tspan><tspan x="1741" y="149">
 </tspan><tspan x="1815" y="149">LX</tspan><tspan x="1864" y="149">-</tspan>
</text>
<text class="t1"><tspan x="227" y="3282">C:</tspan></text>
<text class="t1"><tspan x="445,501,561,621,677" y="559">TYVEK</tspan></text>
</g>

 

my fo code is :

<fo:block>
<fo:external-graphic src=''/>
</fo:block>

 

 

Eric Prevost

 

"J.Pietschmann" <[EMAIL PROTECTED]>
08/01/2003 16:26
Please respond to fop-user

To: [EMAIL PROTECTED]
cc:
bcc:
Subject: Re: svg 2 pdf using fop


[EMAIL PROTECTED] wrote:
> Does someone knows if it is possible to convert an SVG with truetype text
> to a PDF with truetype text using FOP ?

Yes, it is possible. Could you describe your problem
a bit more detailed?

J.Pietschmann




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to