dita-ot-pdf-css-page
DITA Open Toolkit plugin to generate PDF output using CSS Paged Media.
Installation
- Download and install one of the PDF formatters:
- Download the plugin from GitHub.
- Unzip and copy
rocks.xml.pdf.css.page
folder to the DITA-OTplugins
directory. - Follow instructions at Installing plug-ins DITA-OT documentation page.
Running the plugin
Run DITA-OT with pdf-css-page
transformation type.
Plugin parameters:
html.pdf.formatter.path
– PDF formatter installation path (PDFreactor\lib\pdfreactor.jar
orvivliostyle\vivliostyle_formatter_core.exe
).
Optional parameters:
html.pdf.formatter
(pdfreactor
|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, PDFReactor 8 and Vivlistyle Formatter 2016.1.