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

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

Using the preference/penalty setting I get the following error:


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:"
 org.apache.fop.cli.Main "-c" "/usr/local/fop/conf/fop.xconf" 
"_template_word_de.xml" "-rtf" "test.rtf"
Jan 25, 2013 3:25:45 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-height set to: 11in
Jan 25, 2013 3:25:45 PM org.apache.fop.apps.FopFactoryConfigurator configure
INFO: Default page-width set to: 8.26in
Jan 25, 2013 3:25:45 PM org.apache.fop.events.LoggingEventListener processEvent
SEVERE: Image not available. Reason: 
org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no 
suitable loader/converter combination available) for images/school-logo.png 
(image/png) (No context info available)
org.apache.xmlgraphics.image.loader.ImageException: Cannot load image (no 
suitable loader/converter combination available) for images/school-logo.png 
(image/png)
        at 
org.apache.xmlgraphics.image.loader.ImageManager.getImage(ImageManager.java:271)
        at org.apache.fop.render.rtf.RTFHandler.putGraphic(RTFHandler.java:1176)
        at org.apache.fop.render.rtf.RTFHandler.image(RTFHandler.java:1092)
        at 
org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent(RTFHandler.java:1543)
        at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1697)
        at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1772)
        at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1772)
        at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1707)
        at 
org.apache.fop.render.rtf.RTFHandler.endPageSequence(RTFHandler.java:268)
        at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
        at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
        at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
        at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
        at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
        at 
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:177)
        at org.apache.fop.cli.Main.main(Main.java:208)

The image file itself is there:
ls -l images/school-logo.png
          -rw-rw-r-- 1 xxxx xxxx 20499 Feb 11  2012 images/school-logo.png

file images/school-logo.png:
images/school-logo.png: PNG image data, 725 x 101, 8-bit/color RGBA, 
non-interlaced

                
> 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