[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] converting a base64 string to an image in xslfo

Subject: Re: [xsl] converting a base64 string to an image in xslfo
From: "a kusa akusa8@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Mar 2016 15:00:57 -0000

Thank you. I tried using the data:image/tif code. But the graphic does
not get rendered on the PDF.

This is what it looks like:

<fo:external-graphic height="6.8in" width="6.5in">
<xsl:attribute name="src">
<xsl:value-of select="url('data:image/tif;base64,{$imageData}')"/></xsl:attribute>

imageData is the base64 encoded string for the graphic.

I am using XEP as the processor.

On Wed, Mar 2, 2016 at 8:44 AM, Frank Arensmeier frank@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Maybe this can help?
> http://lmgtfy.com/?q=xslfo+base64
> Frank Arensmeier
>> 2 mar 2016 kl. 15:30 skrev a kusa akusa8@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>:
>> Hello:
>> Can someone please point me in the right direction here?
>> On Tue, Mar 1, 2016 at 2:27 PM, a kusa akusa8@xxxxxxxxx
>> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>>> Hi:
>>> I have a base64 string for an image. If I want to use this to convert
>>> it back to an image and embed in a PDF using XSLFO, how do I do it? I
>>> use renderx's xep processor.
>>> Thanks in advance.

Current Thread