Hi!

i have a svg which contains normal text.
Squiggle displays it fine but my real goal is to convert it into a pdf.

So i am trying this:

java -jar /home/mop/batik-1.5/extensions/batik-rasterizer-ext.jar -m 
"application/pdf" 1.svg

The normal <text> stuff suddenly appears as times (i think so at least) in the 
pdf.

I defined Arial as the global text font in the <defs> section but specifying 
it as an attribute doesn't help either. The Arial information simply gets 
lost during the conversion.

My svg looks like that:

<svg width="770" height="272" xmlns="http://www.w3.org/2000/svg"; version="1.1" 
xmlns:xlink="http://www.w3.org/1999/xlink";>
<defs>
<style type="text/css"><![CDATA[
text {
  font-family: Arial;
}
]]></style>
</defs>

[...]
<text x="5" y="19" style="font-size: 16; fill: #761b1b; font-weight: 
bold">bla</text>
<text x="100" y="100" font-family="Arial">PETER</text>

[...]

i am using:
batik-1.5.1 (tried it using cvs as well)
jre 1.5
SuSE linux 8.2

i tried it on windows as well.

Any ideas? Did i hit a bug, an unimplemented feature or am i just dumb? ;)

Kind regards,

 Andreas Streichardt

Attachment: pgpy7lDsrMPtK.pgp
Description: PGP signature

Reply via email to