Follow these steps to install the Idiom FO plug-in.
-
Download the plug-in from the web.
-
Unzip the plug-in files to the Toolkit demo/fo directory. Your directory structure should then look like this:
-
Copy icu4j_3_3_4.jar to the demo/fo/lib directory and then rename icu4j_3_3_4.jar to icu4j.jar.
-
Edit the file demo/fo/build.xml and set the path information for saxon.jar and XEP.
That section of the file will look similar to the following:
<path id="project.class.path">
<pathelement location="C:/saxon6_5_3/saxon.jar"/>
<pathelement location="${fo.lib.dir}/xml-apis.jar"/>
<pathelement location="${fo.lib.dir}/xercesImpl.jar"/>
<pathelement location="${fo.lib.dir}/resolver.jar"/>
<pathelement location="${fo.lib.dir}/icu4j.jar"/>
<pathelement location="${fo.lib.dir}/fo.jar"/>
</path>
<path id="xep.class.path">
<fileset dir="C:/xep/lib" includes="**/*.jar"/>
<pathelement location="${fo.lib.dir}/fo.jar"/>
</path>
-
Move to the root directory of DITA Open Toolkit and issue the following command to install the plug-in:
ant -f integrator.xml
At this point, the plug-in is integrated into the Toolkit processing pipeline and can be used by specifying the pdf2 transtype. For information about transtypes in Ant scripts, see
About Ant scripts. For processing instructions for the pdf2 transtype, see
Processing to PDF2 targets.