You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Esse <es...@widenarrow.se> on 2010/09/02 09:14:09 UTC

background-image tag and fo:instream-foreign-object

Hi Fop Users!

Im playing around with svg's and trying to put some of the svg's directly in
code as shown below:

<fo:instream-foreign-object>

<svg:svg xmlns... >

<svg:linearGradient id="SVGID2...
</svg:linearGradient>

<svg:g style="fill:url(#SVGID2)">
<svg:path d="M2.836,126.91c0,0-2.834,0-2.834-2.834V2.83...
 </svg:g>

</svg:svg>
</fo:instream-foreign-object>

This works great, however, i was wondering if it is possible to usaa
insteam-foreign-object as background-image.(shown below)

<fo:table-cell background-image="instream-foreign-object-placeholder">


Is this possible?
-- 
View this message in context: http://old.nabble.com/background-image-tag-and-fo%3Ainstream-foreign-object-tp29601278p29601278.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: background-image tag and fo:instream-foreign-object

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
XSL-FO doesn't directly offer that. The only two things you can do:

1. Extract the SVG to an external file and reference that.
2. Encode the SVG in a RFC 2397 data URL. (ugly)

On 02.09.2010 09:14:09 Esse wrote:
> 
> Hi Fop Users!
> 
> Im playing around with svg's and trying to put some of the svg's directly in
> code as shown below:
> 
> <fo:instream-foreign-object>
> 
> <svg:svg xmlns... >
> 
> <svg:linearGradient id="SVGID2...
> </svg:linearGradient>
> 
> <svg:g style="fill:url(#SVGID2)">
> <svg:path d="M2.836,126.91c0,0-2.834,0-2.834-2.834V2.83...
>  </svg:g>
> 
> </svg:svg>
> </fo:instream-foreign-object>
> 
> This works great, however, i was wondering if it is possible to usaa
> insteam-foreign-object as background-image.(shown below)
> 
> <fo:table-cell background-image="instream-foreign-object-placeholder">
> 
> 
> Is this possible?
> -- 
> View this message in context: http://old.nabble.com/background-image-tag-and-fo%3Ainstream-foreign-object-tp29601278p29601278.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 



Jeremias Maerki


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