| pdf_to_images | R Documentation |
Renders every page of a PDF file to PNG images at the specified DPI. Requires the pdftools package.
pdf_to_images(pdf_path, image_dir, dpi = 300)
pdf_path |
Path to the PDF file. |
image_dir |
Directory to save PNG images into. |
dpi |
Resolution in dots per inch (default: 300). |
A character vector of image file paths.
## Not run:
images <- pdf_to_images("document.pdf", "images", dpi = 300)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.