FOP SVG and <style ..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RolfK

    FOP SVG and <style ..

    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"
    preserveAspectR atio="xMinYMin meet" viewBox="-10 -10 43 84">
    <defs>
    <style type="text/css">
    rect.ringActive Cell {stroke:red;str oke-width:0.2;fill: khaki}
    .....

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


    Is there a known issue with PDF or with FOP ?

    Any hint is welcome

    RolfK
  • Martin Honnen

    #2
    Re: FOP SVG and &lt;style ..

    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"
    preserveAspectR atio="xMinYMin meet" viewBox="-10 -10 43 84">
    <defs>
    <style type="text/css">
    rect.ringActive Cell {stroke:red;str oke-width:0.2;fill: khaki}
    ....
    >
    </style>
    </defs>
    <rect x="0.5" y="1" width="33" height="30" class="ringActi veCell"/>
    >
    >
    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

    Comment

    Working...