Before you can successfully generate PDF files of the DITA 1.2 specification, you must configure your build environment. This involves installing a patched build.xml file for the Idiom plug-in, integrating a plug-in that contains the OASIS style sheets, increasing the Java memory, and creating a build.properties file.
Before you begin
You must have the following software installed:
- DITA Open Toolkit, version 1.5 or later
- RenderX XEP
- Ensure that your Subversion working copy includes the most recent files in the SVN repository.
- Copy the following file to the Toolkit/demo/fo directory:
basedir/toolkit-plugins/patches/fo/build.xml
where: - basedir is the root directory of your Subversion working copy.
- Toolkit is the directory where the DITA Open Toolkit is installed.
- Copy the following plug-in to the Toolkit/plugins directory:
basedir/toolkit-plugins/org.oasis.dita.ditaspec.fo
- To increase the Java memory, modify the startcmd.bat file so that it contains the following content:
set ANT_OPTS=-Xmx1500m %ANT_OPTS% set ANT_OPTS=%ANT_OPTS% -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl
- Run the startcmd.bat file.
- From the command prompt, run the following command and press Enter:
ant -f integrator.xml
- Create a build.properties file that contains the following content:
dita-ot-dir=Toolkit max.java.memory=1500m
where Toolkit is the directory where the DITA Open Toolkit is installed, for example, C:\\DITA-OT1.5.1-Test. (Note that an extra backspace is required to escape the backspace character.) - Save the build.properties file to either the basedir or the user.home directory, where basedir is the root directory of your Subversion working copy, and user.home is your user home directory, for example, C:\Documents and Settings\keberlein.
- Change to the basedir directory.
- From the command prompt, type the following command and press Enter:
ant -f build_archspec_pdf.xml deploy-toolkit-plugins
Best,
Kris
Kristen James Eberlein
Principal consultant, Eberlein Consulting
Secretary, OASIS DITA Technical Committee
Charter member, OASIS DITA Adoption Committee
www.eberleinconsulting.com
http://www.linkedin.com/in/kristeneberlein
+1 919 682-2290 ET (GMT -5); keberlein (skype)