Hi Foppers

For once, I'm here with a problem. It's driving me crazy (probably
because I'm not so good at math).

I've got a few SVG files that work without problems and I've got a few
that FOP 0.20.3cvs (14.2.2002) and FOP 0.20.4cvs (today) won't handle.
I've identified the problem spot but haven't been able to find a fix,
yet. Acrobat 5 will show the error message "Wrong operand type" because
the second transformation matrix written by PDFRenderer.renderSVGDocument()
is "0 0 0 0 0 0 cm" instead of "x 0 0 x 0 0 cm" (where x > 0).

Here's the except from the PDF:
<snip/>
q
q
28.346 811.343 m
212.346 811.343 l
212.346 559.343 l
28.346 559.343 l
h
W
n
1.0 0 0 -1.0 28.346 811.343 cm
0 0 0 0 0 0 cm
q
0 0 m
6500 0 l
6500 8900 l
0 8900 l
0 0 l
h
W
n
0 g
0 G
2607 4214 m
2367 4225 l
2136 4259 l
1909 4314 l
1687 4390 l
1467 4485 l
<snip what="more PDF"/>

I have attached a small FO file and an external SVG file describing a
male sign. male.svg alone renders fine in Adobe SVG Plugin, CorelDraw
and Batik v1.1 Browser. If I exchange the male.svg by boxes.svg from
docs/examples/svg, everything works as expected.

Thanks in advance for any help!


Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch

<<attachment: male.zip>>

Reply via email to