mat_pdf_to_png: Convert pdf to png

View source: R/table_to_pdf.R

mat_pdf_to_pngR Documentation

Convert pdf to png

Description

Convert pdf to png

Usage

mat_pdf_to_png(
  path,
  density = 150,
  quality = 90,
  echo = TRUE,
  correct_grayscale = FALSE
)

Arguments

path

path of file

density, quality

parameters to convert

echo

should show command?

correct_grayscale

Should correct for RGB color space not permitted on grayscale

See Also

mat_table_to_pdf, mat_tex_to_png

Examples

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)

MatthieuStigler/matPkg documentation built on Sept. 19, 2024, 5:19 a.m.