render_pagedjs_pdf | R Documentation |
This function takes an html document and convert it to pdf using the paged.js CLI.
render_pagedjs_pdf(file_path, dest_path = NULL, delete_html_if_quarto = TRUE)
file_path |
A character string specifying the path to the HTML file or Quarto document |
dest_path |
A character string specifying the destination directory where the file will be saved. Default to |
delete_html_if_quarto |
Whether to delete the intermediate html file is |
If the input file (file_path
) is a Quarto document, it first generate the HTML and
then convert it to PDF. There also is an option to remove ot not the intermediate file.
## Not run:
render_pagedjs_pdf("file.html")
render_pagedjs_pdf("file.html", "output.pdf")
render_pagedjs_pdf("file.qmd")
render_pagedjs_pdf("file.qmd", "output.pdf")
render_pagedjs_pdf("file.qmd", "output.pdf", delete_html_if_quarto = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.