Donn wrote:
no ideas to my problem anyone?
Doesn't look like anyone here, including me, knows what a FOP is. If we knew, we'd surely help you. Sounds like you need to google, or write a better description of your problem.
hth /d
Hi Donn,
Apache FOP happens to be an XSL:FO processor which allows the inclusion of SVG graphics. But actually the problem is rather unrelated to FOP itself.
My problem relates to two attributes "width" and "height" in the <svg> root element. With CORELDraw! generated SVG files, I get sizes with units, e.g.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1 .1/DTD/svg11.dtd"> <!-- Creator: CorelDRAW --> <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"
width="19.4564mm" <<<==== with units "mm" height="15.0114mm" <<<==== with units "mm"
style="..." viewBox="0 0 18.9613 14.6294" xmlns:xlink="http://www.w3.org/1999/xlink%22%3E ... </svg>
while with Inkscape, I get:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://web.resource.org/cc/" 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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
height="627.14209" <<==== no units = pixels width="361.4173" <<==== no units = pixels
id="svg2" sodipodi:version="0.32" inkscape:version="0.45" sodipodi:docname="Structures.svg" inkscape:output_extension="org.inkscape.output.svg.inkscape" sodipodi:docbase="K:\t\telnic\nsp\knipp-docs\nsp-ps\design" sodipodi:modified="true" version="1.0"> ... </svg>
What I want to achieve is the first variant, as the actual size of a pixel is unspecified by the SVG standard. Inkscape seems to have a fixed definition of 90dpi, while FOP seems to have a fixed definition of 72dpi.
The fact is that even if I start with a "default_mm" template, which indeed generates the first variant, Inkscape falls back into the second variant if I apply any changes in the "Document properties" dialog, still using "mm" units. To me, this looks like a bug, but since I am new to Inkscape, it may simply be my fault also.
Regards,
Klaus