Generating PDF Output from DITA Content Using a Command Line
To process and publish DITA to PDF using CSS and Oxygen PDF Chemistry, follow this procedure:
- Download and install the Oxygen Publishing Engine. This bundles a DITA Open Toolkit (http://www.dita-ot.org/download) with all the required plugins to generate PDF output, including the Oxygen PDF Chemistry processor.
- Place the license key for the Oxygen Publishing Engine in a
licensekey.txtfile in the installation folder. -
Run the publishing engine from a command line and make sure you specify the format to
be pdf-css-html5 and the path to your main DITA map. Specify additional parameters
(such as
args.css) if you want to customize the output. See the documentation for more information about customizing DITA output and accepted parameters.For example:oxygen-publishing-engine-dir/bin/dita --input=path/to/my.ditamap --format=pdf-css-html5 --output=path/to/output/folder -Dargs.css=/path/to/my.css