New print-css.rocks release available
A new print-css.rocks release is available with support for some new tools: Typeset.sh
Alternative approaches for the PDF generation from DITA maps.
Historically PDF conversion of DITA content is closely tied to XSL-FO. However there are alternative ways to get from DITA to PDF. The classic XML addicted will likely disagree but going from DITA XML to PDF through CSS Paged Media appears more reasonable and much easier. The first step is to generate a single-source (X)HTML file form a DITA map.
This can be done by either the DITA Open Toolkit
dita -f html5 -i my.ditamap -o out/my.html -Droot-chunk-override=to-content
or the XMLMIND DITA converter (DITAC)
ditac -c single -f xhtml my.html my.ditamap
Now you can process the HTML file using one of the a PDF converter like PrinceXML or PDFreactor:
pdfreactor -s mystyles.css my.html my.pdf
prince -s mystyles.css my.html my.pdf
All DITA class and outputclass attributes are carried forward into the HTML markup. This will make it easy to write specific CSS styles that match related DITA elements, topics or whatever.