You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sascha Iseli <is...@puzzle.ch> on 2006/01/09 16:29:10 UTC
gif images in rtf-files
hello
i use the 0.91svn fop-version and i tried to render a gif image in a rtf
and a pdf file. The pdf-file looks very well, but in the rtf-file there is
insteand of the gif-image the following errormessage:
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException:
The tag <fo:external-graphic> does not support gif - image type
i used the basic-example images.fo or the following code:
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master
master-name="content"
page-height="29.7cm"
page-width="21cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="content">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:external-graphic src="MeinBild.gif"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
exists for this problem a workaround?
regards,
sascha
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: gif images in rtf-files
Posted by Cag Onganer <on...@yahoo.com>.
Hi,
This discussion reminded me about the royalties on GIF. And I checked it out in;
http://en.wikipedia.org/wiki/GIF
It seems that the Unisys patent expired in 2003 and IBM patent on LZW will expire in 2006.
Good luck Sascha,
Cag Onganer
Jeremias Maerki <de...@jeremias-maerki.ch> wrote: Yes, convert the GIF into a PNG. :-) The RTF output support currently
doesn't have code to convert certain bitmap formats into the ones
supported by RTF. The only exception is SVG where we hacked in initial
support to internally convert the SVG into a PNG. To make GIFs work,
we'd need to add some code that encodes decoded images as PNGs for the
image formats that are not directly supported by RTF. I can give you
pointers if you'd like to implement this yourself and send a patch.
On 09.01.2006 16:29:10 Sascha Iseli wrote:
> hello
>
> i use the 0.91svn fop-version and i tried to render a gif image in a rtf
> and a pdf file. The pdf-file looks very well, but in the rtf-file there is
> insteand of the gif-image the following errormessage:
>
> org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException:
> The tag does not support gif - image type
>
> i used the basic-example images.fo or the following code:
>
>
>
>
>
>
> master-name="content"
> page-height="29.7cm"
> page-width="21cm">
>
>
>
>
>
>
>
>
>
>
>
>
> exists for this problem a workaround?
>
> regards,
> sascha
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: gif images in rtf-files
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Yes, convert the GIF into a PNG. :-) The RTF output support currently
doesn't have code to convert certain bitmap formats into the ones
supported by RTF. The only exception is SVG where we hacked in initial
support to internally convert the SVG into a PNG. To make GIFs work,
we'd need to add some code that encodes decoded images as PNGs for the
image formats that are not directly supported by RTF. I can give you
pointers if you'd like to implement this yourself and send a patch.
On 09.01.2006 16:29:10 Sascha Iseli wrote:
> hello
>
> i use the 0.91svn fop-version and i tried to render a gif image in a rtf
> and a pdf file. The pdf-file looks very well, but in the rtf-file there is
> insteand of the gif-image the following errormessage:
>
> org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException:
> The tag <fo:external-graphic> does not support gif - image type
>
> i used the basic-example images.fo or the following code:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master
> master-name="content"
> page-height="29.7cm"
> page-width="21cm">
> <fo:region-body/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="content">
> <fo:flow flow-name="xsl-region-body">
> <fo:block>
> <fo:external-graphic src="MeinBild.gif"/>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
> exists for this problem a workaround?
>
> regards,
> sascha
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org