You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Sanjaya S (Jira)" <ji...@apache.org> on 2019/12/30 10:20:00 UTC
[jira] [Commented] (FOP-1278) PNG missing for RTF output
[ https://issues.apache.org/jira/browse/FOP-1278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17005238#comment-17005238 ]
Sanjaya S commented on FOP-1278:
--------------------------------
Hi Team,
I am using FOP 2.3 with Xmlgraphics-commons-2.3 to my test case. Simply I am generating a rtf output from a fo file where I am using an <fo:external-graphic> tag and taking a png image in src url.
This gives me following error in output rtf file-
{color:#505f79}_org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExternalGraphic$ExternalGraphicException: The tag <fo:external-graphic> does not support png - image type._{color}
I have tried with the fix given in https://issues.apache.org/jira/browse/XGC-97 but still no help.
> PNG missing for RTF output
> --------------------------
>
> Key: FOP-1278
> URL: https://issues.apache.org/jira/browse/FOP-1278
> Project: FOP
> Issue Type: Bug
> Components: renderer/rtf
> Affects Versions: trunk
> Environment: Operating System: other
> Platform: Other
> Reporter: Chris Bowditch
> Attachments: moon.png, test.fo
>
>
> Attached PNG causes a NPE when rendering to RTF. Submitted by Dominic Brugger
> (brugger.at.puzzle.ch) Stack trace below:
> SEVERE: Error while handling an external-graphic: null
> 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:
--
This message was sent by Atlassian Jira
(v8.3.4#803005)