xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Powanda" <jpowa...@vocera.com>
Subject RE: FOP 0.93 throws exception when it encounters a graphic
Date Fri, 06 Apr 2007 00:18:42 GMT
I commented out the <base> tag in the config file, and now everything
works fine.

 

Regards,

Jeff Powanda

 

 

________________________________

From: Jeff Powanda 
Sent: Thursday, April 05, 2007 4:13 PM
To: fop-users@xmlgraphics.apache.org
Subject: FOP 0.93 throws exception when it encounters a graphic

 

I trying to update my DocBook system to FOP 0.93 and DocBook XSl 1.72.
Whenever I try to process a document that has a graphic I now get the
following exception:

 

SEVERE: Exception

javax.xml.transform.TransformerException:
java.lang.IllegalArgumentException

        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)

        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)

 

Here are tags I'm using for the graphic:

 

      <para>Here's a graphic:</para>

      <para>

            <graphic fileref="Graphics/FirstScreen.gif" width="4.747in"
contentwidth="4.747in" align="center"/>

      </para>

 

Here's an excerpt from the FO file:

 

<fo:block space-before.optimum="0.4em" space-before.minimum="0.4em"
space-before.maximum="0.55em" space-after.optimum="0em"
space-after.minimum="0em" space-after.maximum="0em">Here's a
graphic:</fo:block><fo:block space-before.optimum="0.4em"
space-before.minimum="0.4em" space-before.maximum="0.55em"
space-after.optimum="0em" space-after.minimum="0em"
space-after.maximum="0em">

                  <fo:block text-align="center"><fo:external-graphic
src="url(Graphics/FirstScreen.gif)" width="4.747in" height="auto"
content-width="4.747in" content-height="auto"
text-align="center"/></fo:block>

 

This worked fine with FOP 0.20.5 and DocBook XSl 1.69.

 

Regards,

Jeff


Mime
View raw message