Hacker News new | ask | show | jobs
by criddell 3216 days ago
Can it generate a table of contents with page numbers?
2 comments

calibre has been able to convert arbitrary HTML files to PDF with Table of Contents with page numbers, links, embedded fonts, arbitrary headers/footers for years, all rendered using WebKit, without a running X server, for years.

ebook-convert file.html file.pdf --pdf-add-toc

It can do what HTML can do. You can have a TOC with internal links. Those links should continue to work inside the PDF.