Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > FOP SVG and <style ..

Reply
Thread Tools

FOP SVG and <style ..

 
 
RolfK
Guest
Posts: n/a
 
      09-25-2008
Dear ALL,

May be somebody experienced this already. I have an SVG which works
well with IE and adobe plugin.
I'm creating a PDF by FOP 0.93 but in that case the styles I have
assined by class or just by the element do not work.

Here are my snipets of the SVG

<svg xmlns="http://www.w3.org/2000/svg" xmlns:lfn="http://local"
preserveAspectRatio="xMinYMin meet" viewBox="-10 -10 43 84">
<defs>
<style type="text/css">
rect.ringActiveCell {stroke:red;stroke-width:0.2;fill:khaki}
.....

</style>
</defs>
<rect x="0.5" y="1" width="33" height="30" class="ringActiveCell"/>


Is there a known issue with PDF or with FOP ?

Any hint is welcome

RolfK
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      09-25-2008
RolfK wrote:

> May be somebody experienced this already. I have an SVG which works
> well with IE and adobe plugin.
> I'm creating a PDF by FOP 0.93 but in that case the styles I have
> assined by class or just by the element do not work.
>
> Here are my snipets of the SVG
>
> <svg xmlns="http://www.w3.org/2000/svg" xmlns:lfn="http://local"
> preserveAspectRatio="xMinYMin meet" viewBox="-10 -10 43 84">
> <defs>
> <style type="text/css">
> rect.ringActiveCell {stroke:red;stroke-width:0.2;fill:khaki}
> ....
>
> </style>
> </defs>
> <rect x="0.5" y="1" width="33" height="30" class="ringActiveCell"/>
>
>
> Is there a known issue with PDF or with FOP ?


Is that Apache FOP? I think it uses Apache Batik for SVG so you might
want to try your SVG in the Batik Squiggle viewer first to check whether
it supports the features you use.


--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running Apache FOP: org.apache.fop.fo.FOTreeBuilder fatalError Pablo Java 0 03-28-2007 02:31 PM
FOP PDF from SVG KemperR@ee.nec.de XML 0 09-06-2005 04:11 PM
[SVG] using image-tag to integrate SVG in SVG Arne Nordmann XML 0 06-28-2004 01:16 PM
encoding in embedded svg in FOP saggmannen XML 0 12-13-2003 11:11 PM
FOP: input XSL with SVG image gets low resolution in output PDF dentaku XML 1 07-15-2003 06:40 PM



Advertisments