XSL-FO is not capable to append a PNG graphic

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

XSL-FO is not capable to append a PNG graphic

Abel Carvajal Tapia
The <fo:external-graphic> in XSL-FO transformation does not append PNG
images to the generated PDF

I tried the same with JPG images and the PDF was successful generated.

So, I would like to know if this is a known bug, is there any other way
to do this (a workaround), or I'm just doing something wrong.
....
....
<xsl:variable
name="src2">http://localhost:8080/test/image.png</xsl:variable>
<fo:external-graphic>
  <xsl:attribute name="src">
    <xsl:value-of select="$src2"/>                  
  </xsl:attribute>
</fo:external-graphic>
....
....

Thanks in advance



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSL-FO is not capable to append a PNG graphic

Erik Bruchez
Administrator
Abel,

I think the following page should help:

http://xmlgraphics.apache.org/fop/0.20.5/graphics.html

It looks like you need to add another library to handle PNG.

-Erik

Abel Carvajal Tapia wrote:

> The <fo:external-graphic> in XSL-FO transformation does not append PNG
> images to the generated PDF
>
> I tried the same with JPG images and the PDF was successful generated.
>
> So, I would like to know if this is a known bug, is there any other way
> to do this (a workaround), or I'm just doing something wrong.
> ....
> ....
> <xsl:variable
> name="src2">http://localhost:8080/test/image.png</xsl:variable>
> <fo:external-graphic>
>  <xsl:attribute name="src">
>    <xsl:value-of select="$src2"/>                    </xsl:attribute>
> </fo:external-graphic>
> ....
> ....
>
> Thanks in advance
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSL-FO is not capable to append a PNG graphic

Abel Carvajal Tapia
Erik,
I used the JAI library
    - jai_codec.jar
    - jai_core.jar  

and PDF generation is ok ! .

thanks

Erik Bruchez escribió:

> Abel,
>
> I think the following page should help:
>
> http://xmlgraphics.apache.org/fop/0.20.5/graphics.html
>
> It looks like you need to add another library to handle PNG.
>
> -Erik
>
> Abel Carvajal Tapia wrote:
>
>> The <fo:external-graphic> in XSL-FO transformation does not append
>> PNG images to the generated PDF
>>
>> I tried the same with JPG images and the PDF was successful generated.
>>
>> So, I would like to know if this is a known bug, is there any other
>> way to do this (a workaround), or I'm just doing something wrong.
>> ....
>> ....
>> <xsl:variable
>> name="src2">http://localhost:8080/test/image.png</xsl:variable>
>> <fo:external-graphic>
>>  <xsl:attribute name="src">
>>    <xsl:value-of select="$src2"/>                    </xsl:attribute>
>> </fo:external-graphic>
>> ....
>> ....
>>
>> Thanks in advance
>
>
>------------------------------------------------------------------------
>
>
>--
>You receive this message as a subscriber of the [hidden email] mailing list.
>To unsubscribe: mailto:[hidden email]
>For general help: mailto:[hidden email]?subject=help
>ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws