mat_pdf_to_png | R Documentation |
Convert pdf to png
mat_pdf_to_png(
path,
density = 150,
quality = 90,
echo = TRUE,
correct_grayscale = FALSE
)
path |
path of file |
density , quality |
parameters to convert |
echo |
should show command? |
correct_grayscale |
Should correct for |
mat_table_to_pdf
, mat_tex_to_png
tmp <- file.path(tempdir(), "try.pdf")
pdf(tmp)
plot(1, col = "green")
dev.off()
mat_pdf_to_png(tmp)
## use `correct_grayscale = TRUE` for message "RGB color space not permitted on grayscale"
pdf(tmp)
plot(1)
dev.off()
mat_pdf_to_png(tmp, correct_grayscale = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.