Convert HTML to PDF with paged.js
render_pagedjs_pdf.RdThis function takes an html document and convert it to pdf using the paged.js CLI.
Arguments
- 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
file_path(using.pdfinstead of.html)- delete_html_if_quarto
Whether to delete the intermediate html file is
file_pathis a Quarto document. Default toTRUE.