quarto-dev / quarto-dev/quarto-cli
Support other PDF export tools for revealjs (e.g decktape)
@cderv is already working on this.
Since Mar 20, 2023.
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Current PDF export mode rom revealjs doesn't work reliable on most browsers. For example on Firefox you will still get garbage resp. wrong page breaks in the printed results after activating this mode. Well, you'll find a warning note about this flaw in the documentation, but it's IMHO still a very disappointing behavior.
I would therefore prefer a more reliable solution, which provides reproducible correct results in arbitrary browsers.
This can be realized in practice by integrating decktape resp. puppeteer, playwright or another similar mechanism into the CLI-tool for the document processing to generate a PDF-document beside the HTML-output and just add a download button in the HTML-menu or -toolbar instead of the present print style-switch entry. That's the way, how for example slidev handles this task in a much more reliable manner (see: https://sli.dev/guide/exporting#pdf).
Originally posted by @mash-graz in https://github.com/quarto-dev/quarto-cli/issues/2988#issuecomment-1455245996
Related
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.