Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by killercup on Monday April 30, 2018 @12:24PM
(#16959915)
Waiting to see an example with footnotes and auto references ;)
[ Parent
| on HN ]
Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by sebazzz on Monday April 30, 2018 @03:25PM
(#16961450)
That will probably be difficult because Chrome just "prints" a PDF. Therefore headers, footers, footnotes, and page numbering is a difficult issue to solve.
Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by alexwebb2 on Monday April 30, 2018 @03:32PM
(#16961506)
FYI, Puppeteer does indeed support header and footer templates when printing to PDF:
https://github.com/GoogleChrome/puppeteer/blob/v1.3.0/docs/a...
Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by zulko on Monday April 30, 2018 @12:32PM
(#16960007)
I am thinking about it and there may be a way to do it using Pug mixins (like LaTeX macros).
Also, ReLaXed supports Markdown-it, which in turn has plug-ins for footnotes and citations, for instance. Not sure what you mean by auto-reference, but that should be possible, like in any other HTML page, wouldn't it ?
Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by Drdrdrq on Monday April 30, 2018 @03:19PM
(#16961396)
Not OP, but one of the most useful things about wkhtmltopdf is its ability to create an index page (edit: TOC) with references to all heading tags (<h1>,...). Is this something that can be done with ReLaXed?
Re:Show HN: ReLaXed – High-quality PDFs using web technologies
by zulko on Monday April 30, 2018 @04:25PM
(#16961933)
Your PDF will automatically reference the h1, h2, etc, as sections and subsections in your PDF (i.e. you should see them in the sidebar's document tree in PDF viewers that have such a feature). You can also certainly generate a TOC using some javascript framework. For a quick google search I found this: