xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nancy_b <nancy_br...@yahoo.com>
Subject background images in RTF - compilation failure
Date Thu, 02 Jul 2009 14:40:34 GMT

Hi Folks,

I have a document (in A5 format) that can be flawlessly compiled in PDF
format, but fails in RTF. It seems that FOP cannot handle background images
in <fo:block> elements when creating an RTF file. The following API in my
print.xsl has caused this problem:

<xsl:param name="chap.label.path"

<xsl:attribute-set name="chap.label.properties">
  <xsl:attribute name="background-image">
    <xsl:call-template name="fo-external-image">
      <xsl:with-param name="filename" select="$chap.label.path"/>
  <xsl:attribute name="background-attachment">fixed</xsl:attribute>
  <xsl:attribute name="background-repeat">no-repeat</xsl:attribute>

FOP fails to place the chapter number on top of a background
icon. As I said, in PDF it works fine.

When compiling RTF, I get the following error message:

WARNING: Ignored deferred event for
May 27, 2009 4:11:44 PM org.apache.fop.render.rtf.RTFHandler startBlock
SEVERE: startBlock: null
May 27, 2009 4:11:44 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.RuntimeException: Exception: java.lang.NullPointerException
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
        at org.apache.fop.cli.Main.startFOP(Main.java:166)
        at org.apache.fop.cli.Main.main(Main.java:197)


Please advise!
After upgrading FOP to version 0.95 the issue described further remained
unresolved. Any ideas, folks?

Thank you all in advance!

View this message in context: http://www.nabble.com/background-images-in-RTF---compilation-failure-tp24307977p24307977.html
Sent from the FOP - Users mailing list archive at Nabble.com.

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

View raw message