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 bu...@apache.org on 2011/10/14 18:21:31 UTC

DO NOT REPLY [Bug 49681] Upgrade Exceptions from fop 0.95 to 1.o

https://issues.apache.org/bugzilla/show_bug.cgi?id=49681

--- Comment #8 from Marc Lang <ma...@ggc.scot.nhs.uk> 2011-10-14 16:21:31 UTC ---
I am getting this error using the below ANT task.

<?xml version="1.0" encoding="UTF-8"?>
<project name="FOPAnt" default="generate-pdf-from-transform" basedir=".">

    <property name="fop.home"
value="D:\Dev\Java\libraries\fop-1.0-bin\fop-1.0"/>

    <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">
      <classpath>
        <fileset dir="${fop.home}/lib">
          <include name="*.jar"/>
        </fileset>
        <fileset dir="${fop.home}/build">
          <include name="*.jar"/>
        </fileset>

      </classpath>
    </taskdef>    


<target name="generate-pdf-from-transform" description="Generates a single PDF
file from an XSLT stylesheet">

   <fop format="image/tiff" force="true"
userconfig="D:\Dev\Java\FopConverter\workspace\FopConverterService\fop.xconf"
       
xmlfile="D:\Dev\Java\FopConverter\workspace\TestFiles\EDIS_SCIDischarge.xml"
        xsltfile="D:\Dev\Java\FopConverter\workspace\Stylesheets\EDIS.fo"
       
outfile="D:\Dev\Java\FopConverter\workspace\FopConverterService\something.tif"
/>     

</target>
</project>



As you can see, the contents of D:\Dev\Java\libraries\fop-1.0-bin\fop-1.0\build
are included in the CLASSPATH, which includes jai_imageio.jar

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.