Is it possible to print your whole website to PDFs? #5782
Replies: 4 comments 7 replies
-
Indeed, you can't render a website as PDF. |
Beta Was this translation helpful? Give feedback.
-
This would be one use case of integrating with Paged.js It is not trivial though:
Not trivial, but possible IMO. Just some ideas and thoughts that I have in mind since some time now. Way more suited for a book output than a website though... and there is now the typst format also but not for book yet I believe. Anyhow, fun project! :) |
Beta Was this translation helpful? Give feedback.
-
Just adding this link here for anyone who's also trying to create a PDF from a Quarto website (not a book website) since I came across this discussion when searching for solutions myself. This is the workaround solution we came up with: https://github.com/royal-statistical-society/datavisguide/blob/main/_make_pdf.qmd We create another .qmd file with an R function that strips out the YAML from each webpage .qmd and fixes any image file paths, manually specify the order of pages, then render to PDF. Perhaps not a great solution for larger, more complex sites but this worked fine for our use case. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, it seems at the moment the book format is not supported with typst. At least, so the Quarto 1.4 compiler says when I try. I'm trying to do the same thing as the OP. Ahat I'm trying to do is reuse the navigation structure, contained in the _quarto.yml generated for a website, for the book. Apparently, it is a matter of converting sections to parts, and content files to chapters. I guess the structure should also be simplified a bit (does the book allows more than three levels of nesting?), but I'm still exploring. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
We publish a HTML website, a desire is to print the site to a single or multiple PDF(s) is this doable?
I know you can go to each file/page and set the output type, but what would be really desirable would be to run some quarto render command, is this possible?
I don't think so, but just thought to ask.
Beta Was this translation helpful? Give feedback.
All reactions