Renders an SVG to PDF using headless Chrome via the chromote package. This method produces vector PDFs with perfect font rendering.
Usage
svg_to_pdf_chrome(
svg_input,
output_path,
background = "transparent",
print_background = TRUE,
load_wait = 0.5
)Examples
if (FALSE) { # \dontrun{
svg <- svg_card("FAR", list(), list())
if (chrome_available()) {
pdf_path <- svg_to_pdf_chrome(svg, tempfile(fileext = ".pdf"))
}
} # }