You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Andreas Streichardt <st...@globalpark.de> on 2004/10/25 16:07:04 UTC

Text info gets "lost" during conversion from svg=>pdf

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

RE: Text info gets "lost" during conversion from svg=>pdf

Posted by Chris Peto <sv...@resource-solutions.de>.
Or:

<style type="text/css"><![CDATA[
text {
  font-family: Arial,Sans-serif;
}
]]></style>

works

Mit freundlichen Grüßen/Regards
Chris Peto
Freelance System Development, Resource Solutions
Founding Partner, Vectoreal
-------------------------------------
Germany
Mobile: +49 (0) 173 308 7843
Tel:+49(0) 6103 80 21 98
http://www.resource-solutions.de
http://www.vectoreal.com
SVG editor: http://www.resource-solutions.de/svgeditor.html
mailto:CPeto@resource-solutions.de
------------------------------------
Member of: SPARK - SVG Programmers' Application Resource Kit
SVG site:  http://www.schemasoft.org/svg/main.svg
HTML site: http://www.schemasoft.org/





-----Original Message-----
From: Chris Peto [mailto:svgdev@resource-solutions.de] 
Sent: Montag, 25. Oktober 2004 17:41
To: 'Batik Users'
Subject: RE: Text info gets "lost" during conversion from svg=>pdf


Hi,

Delete this and it works:

<style type="text/css"><![CDATA[
text {
  font-family: Arial;
}
]]></style>

Mit freundlichen Grüßen/Regards
Chris Peto
Freelance System Development, Resource Solutions
Founding Partner, Vectoreal
-------------------------------------
Germany
Mobile: +49 (0) 173 308 7843
Tel:+49(0) 6103 80 21 98
http://www.resource-solutions.de
http://www.vectoreal.com
SVG editor: http://www.resource-solutions.de/svgeditor.html
mailto:CPeto@resource-solutions.de
------------------------------------
Member of: SPARK - SVG Programmers' Application Resource Kit SVG site:
http://www.schemasoft.org/svg/main.svg
HTML site: http://www.schemasoft.org/





-----Original Message-----
From: Andreas Streichardt [mailto:streichardt@globalpark.de] 
Sent: Montag, 25. Oktober 2004 16:07
To: batik-users@xml.apache.org
Subject: Text info gets "lost" during conversion from svg=>pdf


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


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


RE: Text info gets "lost" during conversion from svg=>pdf

Posted by Chris Peto <sv...@resource-solutions.de>.
Hi,

Delete this and it works:

<style type="text/css"><![CDATA[
text {
  font-family: Arial;
}
]]></style>

Mit freundlichen Grüßen/Regards
Chris Peto
Freelance System Development, Resource Solutions
Founding Partner, Vectoreal
-------------------------------------
Germany
Mobile: +49 (0) 173 308 7843
Tel:+49(0) 6103 80 21 98
http://www.resource-solutions.de
http://www.vectoreal.com
SVG editor: http://www.resource-solutions.de/svgeditor.html
mailto:CPeto@resource-solutions.de
------------------------------------
Member of: SPARK - SVG Programmers' Application Resource Kit
SVG site:  http://www.schemasoft.org/svg/main.svg
HTML site: http://www.schemasoft.org/





-----Original Message-----
From: Andreas Streichardt [mailto:streichardt@globalpark.de] 
Sent: Montag, 25. Oktober 2004 16:07
To: batik-users@xml.apache.org
Subject: Text info gets "lost" during conversion from svg=>pdf


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


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org