You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Swapan Golla <sg...@yahoo.com> on 2003/03/03 04:21:01 UTC

Wrong operand type error

Hi All,
I have written a small svg document and embedding it
in an FO document to covert to pdf. I guess the FOP 
completely depends on batik for SVG2PDF conversion.
When I try to open the resulting pdf, it says wrong
operand type. Can anybody help ?

Thanks in advance,
Swapan.

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master
margin-right="1.5cm"
margin-left="1.5cm"
margin-bottom="2cm"
margin-top="1cm"
page-width="21cm"
page-height="29.7cm"
master-name="first">
<fo:region-body margin-top="0cm" margin-bottom="0cm"/>
<fo:region-before extent="0cm"/>
<fo:region-after extent="0cm"/>
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="first">
<fo:static-content flow-name="xsl-region-before">
<fo:block line-height="14pt" font-size="10pt"
text-align="end">Embedding SVG examples</fo:block>
</fo:static-content>
<fo:static-content flow-name="xsl-region-after">
<fo:block line-height="14pt" font-size="10pt"
text-align="end">Page <fo:page-number/></fo:block>
</fo:static-content>

<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:instream-foreign-object>


<svg:svg width="16.1925cm" height="20.955cm"
viewBox="0 0 8.5 11" 
version="1.1" xmlns:svg="http://www.w3.org/2000/svg">
<svg:g transform="matrix(1 0 0 1 0 0)">
</svg:g>
<svg:g transform="matrix(0.01041667 0 0 0.01041667 0
0)">
<svg:text x="48" y="108" font-family="Times New Roman"
font-
size="20pt" font-weight="bold" fill="#000000"
stroke="none" text-
anchor="start" >
<svg:tspan x="48" y="108" textLength="57"
>ABC</svg:tspan>
<svg:tspan x="116" y="108" textLength="114"
>Company</svg:tspan>
</svg:text>
<svg:text x="628" y="66.53516" font-family="Times New
Roman" font-
size="15.6pt" fill="#000000" stroke="none"
text-anchor="start" >
<svg:tspan x="628" y="66.53516" >O</svg:tspan>
</svg:text>
<svg:text x="644" y="66.53516" font-family="Times New
Roman" font-
size="12pt" fill="#000000" stroke="none"
text-anchor="start" >
<svg:tspan x="644" y="66.53516" textLength="107" 
>RGANIZATION</svg:tspan>
</svg:text>
<svg:line x1="58" y1="179" x2="403" y2="179"
stroke="#000000" stroke-
width="0.5" />

</svg:g>
</svg:svg>

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


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Using batik extensions....

Posted by Swapan Golla <sg...@yahoo.com>.
Hi All,
      I am trying to use the batik textFlow extensions
and design the SVG and then convert to PDF. I don't
seem to produce the PDF properly. Is this possible ?
If so, could you give me an example ?

Swapan.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org