DITA Open Toolkit plugin to generate PDF output using CSS Paged Media.
| Branch | Build status |
|---|---|
| master | |
| develop |
- Download and install one of the PDF formatters:
- Download the plugin from GitHub.
- Unzip and copy
rocks.xml.pdf.css.pagefolder to the DITA-OTpluginsdirectory. - Follow instructions at Installing plug-ins DITA-OT documentation page.
Run DITA-OT with pdf-css-page transformation type.
html.pdf.formatter.path– PDF formatter installation path (Antenna House\AHFormatterV63\AHFCmd.exe,PDFreactor\lib\pdfreactor.jarorvivliostyle\vivliostyle_formatter_core.exe).
html.pdf.formatter(antennahouse|pdfreactor|prince|vivliostyle) – HTML PDF formatter. Defaults topdfreactor.css.file– location of the CSS file. If the property is not set, the basic stylesheet delivered with the plugin is used.toc(true|false) – generate Table of Contents. Defaults totrue.index(true|false) – generate Index. Defaults totrue.
dita -f pdf-css-page -i input-file -o output-dir \
-Dhtml.pdf.formatter=vivliostyle \
-Dhtml.pdf.formatter.path=path/to/formatter \
-Dcss.file=css-file
The plugin was tested with DITA-OT 2.1, 2.2, AH Formatter V6, Prince 10, PDFReactor 8 and Vivlistyle Formatter 2016.1.