xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abel Braaksma <abel.onl...@xs4all.nl>
Subject Re: Help! URI for fo:external-graphic in web service
Date Tue, 08 Jan 2008 06:40:33 GMT
Jerome Munchenberg wrote:
> Abel,
>
> Thanks for such a comprehensive response! Much appreciated.
>
> In the end it all got too hard, and after much experimentation, I
> embedded the GIF in the XSL-FO using BASE64 encoding.
>
>   <fo:external-graphic
> 	width="70mm"
> 	content-height="scale-to-fit"
> 	content-width="scale-to-fit"
> 	src="data:image/gif;base64,R0lGODlhhAl...
>   ..."/>
>
> Worked a treat...

Nice to hear that. I wouldn't consider data: URIs to be easy (getting 
the GIF encoded is usually the hardest part as you cannot do that with 
straight XSLT), but if it works for you that's good ;)

Note that not all XSL-FO processors will support the data: scheme (but 
that can actually be true for just about any scheme, though currently 
http and file are supported by all of them) as it is much less common 
than http: and file:.

Cheers,
-- Abel Braaksma

---------------------------------------------------------------------
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