pdf2jpg | R Documentation |
Calls the console "convert" function to convert a pdf-file into a jpeg-image. Requires "convert" to be installed already.
pdf2jpg(
pdf.filename,
jpg.filename,
quality = 100,
background = "white",
dim = c(1600, 1200),
remove.pdf = FALSE,
verbose = TRUE
)
pdf.filename |
filename of pdf input file |
jpg.filename |
filename of jpeg output file |
quality |
quality of jpeg compression from 1 (worst) to 100 (best) |
background |
color of background |
dim |
size in pixels of the jpeg-image |
remove.pdf |
logical flag. If TRUE, the pdf file is deleted after the conversion. |
verbose |
logical flag to turn on/off console statements. |
None
Danail Obreschkow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.