[xep-support] XEP compared to FOP 0.94

Roy Dennington roy at semichem.com
Tue Aug 5 09:34:22 PDT 2008


Philippe writes,

 

The problem is straightforward to reproduce: just pick up any JPG, or PNG
file, launch  your favorite SVG editor (we use Inkscape), import the
selected image as a bitmap, add any symbol or text and save the SVG file 

 

I used Inkscape to produce test.svg and tested with test.xml.  I tested
several images using no path, an absolute path, and a relative path.  All
three cases worked fine.  Does this example fail on your installation?

 

Regards,

Roy

 

===== test.xml =====

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">

<chapter id="intro">
            <title>Introduction</title>
            <mediaobject>
                        <imageobject role="fop">
                                    <imagedata fileref="test.svg"/>
                        </imageobject>
                        <imageobject role="html">
                                    <imagedata fileref="test.png"/>
                        </imageobject>
            </mediaobject>
</chapter>



===== test.svg =====

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg

   xmlns:dc="http://purl.org/dc/elements/1.1/"

   xmlns:cc="http://creativecommons.org/ns#"

   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

   xmlns:svg="http://www.w3.org/2000/svg"

   xmlns="http://www.w3.org/2000/svg"

   xmlns:xlink="http://www.w3.org/1999/xlink"

   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"

   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"

   id="svg2494"

   sodipodi:version="0.32"

   inkscape:version="0.46"

   width="546"

   height="588"

   version="1.0"

   sodipodi:docname="test.svg"

   inkscape:output_extension="org.inkscape.output.svg.inkscape">

  <metadata

     id="metadata2499">

    <rdf:RDF>

      <cc:Work

         rdf:about="">

        <dc:format>image/svg+xml</dc:format>

        <dc:type

           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />

      </cc:Work>

    </rdf:RDF>

  </metadata>

  <defs

     id="defs2497">

    <inkscape:perspective

       sodipodi:type="inkscape:persp3d"

       inkscape:vp_x="0 : 526.18109 : 1"

       inkscape:vp_y="0 : 1000 : 0"

       inkscape:vp_z="744.09448 : 526.18109 : 1"

       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"

       id="perspective2501" />

  </defs>

  <sodipodi:namedview

     inkscape:window-height="748"

     inkscape:window-width="897"

     inkscape:pageshadow="2"

     inkscape:pageopacity="0.0"

     guidetolerance="10.0"

     gridtolerance="10.0"

     objecttolerance="10.0"

     borderopacity="1.0"

     bordercolor="#666666"

     pagecolor="#ffffff"

     id="base"

     showgrid="false"

     inkscape:zoom="0.78571429"

     inkscape:cx="273"

     inkscape:cy="294"

     inkscape:window-x="132"

     inkscape:window-y="174"

     inkscape:current-layer="svg2494" />

  <image

     xlink:href="note.png"

     sodipodi:absref="note.png"

     width="546"

     height="588"

     id="image2503"

     x="0"

     y="0" />

  <text

     xml:space="preserve"

 
style="font-size:48px;font-style:normal;font-weight:normal;fill:#000000;fill
-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:
miter;stroke-opacity:1;font-family:Bitstream Vera Sans"

     x="11.454537"

     y="100.54544"

     id="text2525"><tspan

       sodipodi:role="line"

       id="tspan2527"

       x="11.454537"

       y="100.54544">This is a test, only a test!</tspan></text>

</svg>

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20080805/0eb02d71/attachment.html>


More information about the Xep-support mailing list