I build PDF from DocBook with Ant in Eclipse. All works well. I want to pass the FOP command line args for -noprint, -nocopy, -noedit and -noannotations. I read about this in the FOP docs under security/encryption (http://xmlgraphics.apache.org/fop/0.95/pdfencryption.html). However, I cannot seem to find how to do this in my Ant build.xml
The built-in ant task (http://xmlgraphics.apache.org/fop/0.95/anttask.html) makes provision for indir, outdir etc. parameters. How do I include the FOP command-line options though ? My target is as follows: <target name="build-pdf" depends="depends" description="Generates PDF files from DocBook XML"> <echo message="Running 'build-pdf' at ${timestamp}" /> <echo message="******************************************" /> <xslt style="${fo.stylesheet}" extension=".fo" basedir="${source.dir}" destdir="${fo.dir}"> <classpath refid="xalan.classpath" /> <include name="RubyRecipesForTesters.xml" /> </xslt> <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="fop.jar" /> <include name="fop-hyph.jar" /> </fileset> </classpath> </taskdef> <fop format="application/pdf" fofile="${fo.dir}/RubyRecipesForTesters.fo" outfile="${target.dir}/RubyRecipesForTesters.pdf"/> <copy file="${target.dir}/RubyRecipesForTesters.pdf" tofile="${publish.dir}/${pub.dir}/RubyRecipesforTesters.pdf"/> </target> Thanks in advance Walter Kruse