WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: Help! URI for fo:external-graphic in web service

Re: Help! URI for fo:external-graphic in web service

by Abel Braaksma (online) :: Rate this Message:

| View in Thread

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@...
For additional commands, e-mail: fop-users-help@...

 « Return to Thread: Help! URI for fo:external-graphic in web service