convert_html2pdf_format: Convert a HTML output format to a PDF output format

Description Usage Arguments Value

Description

This function is dedicated to advanced users who have a knowledge of CSS for Paged Media. It transforms an R Markdown HTML output format to a PDF output format using WeasyPrint or Prince. In order to get a good result, this kind of transformation usually requires some additional CSS rules for Paged Media. Be aware that JavaScript generated content may be absent of the final PDF.

Usage

1
2
3
4
convert_html2pdf_format(..., engine = c("weasyprint", "prince"),
  engine_opts = NULL, attach_code = FALSE, keep_html = FALSE,
  notes = c("endnotes", "footnotes"),
  base_format = rmarkdown::html_document)

Arguments

...

Arguments to be passed to a specific output format function.

engine

A PDF engine.

engine_opts

A character vector of command-line arguments to be passed to engine.

attach_code

Add the Rmd source code as an attachment to the PDF document.

keep_html

Keep intermediate HTML file.

notes

Render notes as endnotes or footnotes. Footnotes are not yet supported by WeasyPrint and are only well rendered with Prince.

base_format

Any HTML format.

Value

R Markdown output format to pass to rmarkdown::render().


RLesur/weasydoc documentation built on May 21, 2019, 9:19 a.m.