Generating PDF from a Command Line
To publish the PDF output from a command line outside of Oxygen XML
Editor/Author, you can use the dita
startup script that comes bundled
with the DITA Open Toolkit distribution.
The command line supports all the
parameters specific to the PDF transformation. Here is an example of how to write the
commands:
-
Windows:
dita.bat -f pdf-css-html5 -i C:\path\to\map.ditamap -o C:\path\to\output\folder -v
-
Linux/macOS:
dita -f pdf-css-html5 -i /path/to/map.ditamap -o /path/to/output/folder -v
Note: You can use the long form of the command-line options (e.g.
--format
or --input
).