[xep-support] Getting Error while converting SVG to PDF

From: Jawed Islam <jawedislam85@gmail.com>
Date: Thu Jul 12 2012 - 05:41:58 PDT

Hello,

I am working on a project in which I need to convert an
SVG(encapsulated in XML FO) to PDF but in CMYK mode, for this purpose
I am evaluating XEP by using its trial version, but unfortunatly while
trying to convert the file I am getting this error.

 [error] Failed to create image
data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KIAoKCgo8c3Zn
IHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIHRyYW5zZm9y
bT0idHJhbnNsYXRlKDE3NSAyNjYpIHJvdGF0ZSgwLjQ5KSBzY2FsZSgyLjM3IDIu
NTQpIj48dGV4dCBmb250LWZhbWlseT0iJmFwb3M7QXphcmllbCZhcG9zOyIgZm9u
dC1zaXplPSI0MCIgZm9udC13ZWlnaHQ9IjEwMCIgc3R5bGU9InN0cm9rZTogbm9u
ZTsgc3Ryb2tlLXdpZHRoOiAxOyBmaWxsOiByZ2IoMjM0LDQxLDY2KSBpY2MtY29s
b3IoI0NNWUssMC4wNiwwLjg1LDAuNTUsMCk7IG9wYWNpdHk6IDE7IiB0cmFuc2Zv
cm09InRyYW5zbGF0ZSgtNTcuNSAtMzAuMjgpIj48dHNwYW4geD0iMCIgeT0iNDIu
NCIgZmlsbD0icmdiKDIzNCw0MSw2NikgaWNjLWNvbG9yKCNDTVlLLDAuMDYsMC44
NSwwLjU1LDApIj5KYXdlZCBJc2xhbTwvdHNwYW4+PC90ZXh0PjwvZz4KPC9zdmc+
Cgo= of type image/svg+xml
        [error] com.renderx.graphics.ImageFormatException:
com.renderx.svg.SVGParseException: Missing either 'height' or 'width'
on root element of SVG image [instream]

Below is my example.fo file

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns="http://www.w3.org/2000/svg" >
<fo:layout-master-set>
<fo:simple-page-master margin-right="0in" margin-left="0in"
margin-bottom="0in" margin-top="0in" page-width="5in" page-height="3in"
master-name="simplecard">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simplecard">
<fo:flow flow-name="xsl-region-body">
<fo:block margin-left="0in" line-height="0in">
<fo:instream-foreign-object>

<svg>
<g transform="translate(175 266) rotate(0.49) scale(2.37 2.54)"><text
font-family="'Azariel'" font-size="40" font-weight="100"
style="stroke: none; stroke-width: 1; fill: rgb(234,41,66)
icc-color(#CMYK,0.06,0.85,0.55,0); opacity: 1;"
transform="translate(-57.5 -30.28)"><tspan x="0" y="42.4"
fill="rgb(234,41,66) icc-color(#CMYK,0.06,0.85,0.55,0)">Jawed
Islam</tspan></text></g>
</svg>

</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

can anybody figure out whats the issue?

Thanks,
Jawed

!DSPAM:87,4ffec62663731361620656!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Thu Jul 12 05:56:21 2012

This archive was generated by hypermail 2.1.8 : Thu Jul 12 2012 - 05:56:26 PDT