xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: background-image tag and fo:instream-foreign-object
Date Thu, 02 Sep 2010 11:14:38 GMT
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


Mime
View raw message