[ 
https://issues.apache.org/jira/browse/FOP-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13559552#comment-13559552
 ] 

Jonas Sextl commented on FOP-2156:
----------------------------------

Sorry, but this solution does not seem to work for me.

I installed the JAI libraries (very old from 2006) and I am calling FOP with 
the following parameters:


"-c" "/usr/local/fop/conf/fop.xconf" "_template_word_de.xml" "-rtf" "test.rtf"
exec "/usr/local/java//bin/java" -Djava.awt.headless=true -classpath 
"/usr/local/fop/lib/xmlgraphics-commons-1.5.jar:/usr/local/fop/lib/xml-apis-ext-1.3.04.jar:/usr/local/fop/lib/xml-apis-1.3.04.jar:/usr/local/fop/lib/xercesImpl-2.7.1.jar:/usr/local/fop/lib/xalan-2.7.0.jar:/usr/local/fop/lib/serializer-2.7.0.jar:/usr/local/fop/lib/mlibwrapper_jai.jar:/usr/local/fop/lib/jai_core.jar:/usr/local/fop/lib/jai_codec.jar:/usr/local/fop/lib/commons-logging-1.0.4.jar:/usr/local/fop/lib/commons-io-1.3.1.jar:/usr/local/fop/lib/clibwrapper_jiio.jar:/usr/local/fop/lib/batik-all-1.7.jar:/usr/local/fop/lib/avalon-framework-4.2.0.jar:/usr/local/fop/build/fop.jar:/usr/local/fop/build/fop-sandbox.jar:/usr/local/fop/build/fop-hyph.jar::/usr/local/java/lib/jai_imageio.jar:/usr/local/java/lib/clibwrapper_jiio.jar:/usr/local/java/lib/ext/jai_codec.jar:/usr/local/java/lib/ext/jai_core.jar:/usr/local/java/lib/mlibwrapper_jai.jar"
 org.apache.fop.cli.Main ""-c"" ""/usr/local/fop/conf/fop.xconf"" 
""_template_word_de.xml"" ""-rtf"" ""test.rtf""

Java version is:
java version "1.6.0_32"
Java(TM) SE Runtime Environment (build 1.6.0_32-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.7-b02, mixed mode)

Operating system: Debian 6
Linux sas-web01 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64 
GNU/Linux

I am still getting the following error in the generated RTF file:
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException:
 The tag <fo:external-graphic> does not support png - image type.

Did I miss something or is this still a bug in FOP?
                
> PNG and GIF image generation fails in RTF documents
> ---------------------------------------------------
>
>                 Key: FOP-2156
>                 URL: https://issues.apache.org/jira/browse/FOP-2156
>             Project: Fop
>          Issue Type: Bug
>          Components: rtf
>    Affects Versions: 1.1
>         Environment: Operating System: All
> Platform: PC
>            Reporter: Carl Zetterberg
>
> Tomcat 6
> java 1.7
> Fop 1.1
> xmlgraphics-commons-1.5.jar
> <fo:external-graphic src="file:logotypes/{head/logotype}"                     
>                                                         width="auto" 
> height="auto" content-width="80%" content-height="auto" />
> will produce:
> org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException:
>  The tag <fo:external-graph ic> does not support gif - image type
> both for PNG and GIF files when producing RTF documents
> The same environment and XSL produce PDF that are ok.
> Switching back to fop 1.0 and xmlgraphics-commons-1.4.jar resolves the 
> problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to