List Info

Thread: RE: FOP 0.93 throws exception when it encounters a graphic




RE: FOP 0.93 throws exception when it encounters a graphic
user name
2007-04-05 20:45:50

I commented out the <base&gt; tag in the config file, and now everything works fine.

 

Regards,

Jeff Powanda

 

 


From: Jeff Powanda
Sent: Thursday, April 05, 2007 4:39 PM
To: docbook-appslists.oasis-open.org
Subject: FOP 0.93 throws exception when it encounters a graphic

 

I realize this is more of an FOP question, but I thought I’d try the DocBook list to see if anyoneR17;s stumbled on the same problem. I’m 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

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

 &nbsp; &nbsp; &nbsp;  at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

 &nbsp;  &nbsp; &nbsp; at org.apache.fop.cli.Main.startFOP(Main.java:160)

 &nbsp; &nbsp; &nbsp;  at org.apache.fop.cli.Main.main(Main.java:191)

 

Here are tags I’m using for the graphic:

 

 &nbsp; &nbsp;  <para>;Here’;s a graphic:&lt;/para>

 &nbsp; &nbsp;  <para&gt;

 &nbsp; &nbsp; &nbsp; &nbsp;   ; <graphic fileref=&#8221;Graphics/FirstScreen.gifR21; width=”4.747in” contentwidth=”4.747in̶1; align=&#8221;center”/&gt;

 &nbsp; &nbsp;  </para&gt;

 

Here’;s an excerpt from the FO file:

 

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

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

 

Instead of gifs, I’ve tried using PNG files, but it makes no difference.

 

This worked fine with FOP 0.20.5 and DocBook XSl 1.69.

 

Regards,

Jeff Powanda

 

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )