xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <leeloo5e79-docb...@yahoo.de>
Subject RE: PNG images in RTF
Date Mon, 11 Dec 2006 10:06:32 GMT
I got the same error when including a PNG-Image.

Regards
Leeloo

Dominic Br├╝gger <bruegger@puzzle.ch> schrieb: I'm getting the NullPointerException
below when including a PNG image 
with fo:external-graphic to produce RTF output. I am using an actual FOP 
trunk. I attached a simple example that produces the error.

As PNG images should be supported by FOP I think this is a bug. Or is 
there an error in my FO file?

Regards
Dominic


java.lang.NullPointerException
         at org.apache.commons.io.IOUtils.copy(IOUtils.java:920)
         at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:215)
         at 
org.apache.fop.image.AbstractFopImage.loadDefaultOriginalData(AbstractFopImage.java:223)
         at 
org.apache.fop.image.ImageIOImage.loadOriginalData(ImageIOImage.java:217)
         at 
org.apache.fop.image.AbstractFopImage.load(AbstractFopImage.java:174)
         at org.apache.fop.render.rtf.RTFHandler.image(RTFHandler.java:1131)
         at 
org.apache.fop.render.rtf.RTFHandler.invokeDeferredEvent(RTFHandler.java:1492)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1616)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1687)
         at 
org.apache.fop.render.rtf.RTFHandler.recurseFONode(RTFHandler.java:1639)
         at 
org.apache.fop.render.rtf.RTFHandler.endPageSequence(RTFHandler.java:236)
         at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
         at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
         at 
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
         at 
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
         at 
org.apache.xerces.parsers.AbstractSAXParser.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.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
         at 
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
         at org.apache.fop.cli.Main.startFOP(Main.java:160)
         at org.apache.fop.cli.Main.main(Main.java:191)



 
  
   page-height="29.7cm" page-width="21cm" margin-top="1cm"
   margin-bottom="1cm" margin-left="1.5cm" margin-right="1.5cm">
   
   
   
  
 
 
  
   
    
     src="moon.png"
     inline-progression-dimension.optimum="auto"
     inline-progression-dimension.maximum="490px"
     block-progression-dimension.optimum="auto"
     block-progression-dimension.maximum="680px" />
   
  
 

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

 		
---------------------------------
Jetzt Mails schnell in einem Vorschaufenster ├╝berfliegen. Dies und viel mehr bietet das 
neue Yahoo! Mail .
Mime
View raw message