I m generating generating a pdf with embedded external SVG's. The size
of the SVG is same as the size of the PDF being generated (i.e. A4
size). Therefor in resultant out put, the image is drawn after the
margin due to which whole image is not rendered in PDF, clipped part
of the SVG is drawn in between the margin.
As per my knowledge the scaling is yet not supported for SVG
embedding. So now, my suggested solution is to have different type of
page-margins, one for text and another for SVG. Is it possible to
change page margins from within a page-sequence?
Any sort of guidance will be appreciated.
Sample Code Snippet:
................
................
<fo:page-sequence master-reference="simpleA4">
<fo:flow flow-name="xsl-region-body">
<!-- Text Content rendered through this ..... -->
<fo:block font-size="16pt" font-weight="bold" space-after="5mm">Diagram Type:
<xsl:value-of select="./ownedMember/@name"/>
</fo:block>
<fo:block font-size="10pt">
<fo:table table-layout="fixed" width="100%" border-collapse="separate">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<xsl:for-each select="//ownedMember">
<xsl:call-template name="ownedMember">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</xsl:for-each>
<fo:table-row>
<fo:table-cell>
<!-- embebding external SVG here ... -->
<fo:block line-height="6mm" wrap-option="wrap"
white-space-collapse="true"
white-space-treatment="ignore-if-before-linefeed">
<fo:external-graphic height="scale-to-fit"
content-width="scale-to-fit" content-height="scale-to-fit"
src="url('file:D:/fop-0.93/test.svg')"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
Thanks & Regards
Narpat Singh Rajpurohit
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]