I would like to write documentation using Jekyll with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that?
The HTML part is easy but I would like to use @media print CSS for making the PDF file.
I have a few ideas how to do this.
- Use PrinceXML, unfortunately this is commercial product with a nasty price tag ~$500
- Use WKHTMLTOPDF
- Use Maruku, since it is possible to do a PDF conversion using it
I would like to have multiple pages HTML and single page PDF with a TOC. Any suggestions?