convert_to_pdf {docxtractr} | R Documentation |
Convert a Document (usually PowerPoint) to a PDF
Description
Convert a Document (usually PowerPoint) to a PDF
Usage
convert_to_pdf(path, pdf_file = sub("[.]pptx", ".pdf", path))
Arguments
path |
path to the document, can be PowerPoint or DOCX |
pdf_file |
output PDF file name. By default, creates a PDF in the
same directory as the |
Examples
## Not run:
path = system.file("examples/ex.pptx", package="docxtractr")
pdf <- convert_to_pdf(path, pdf_file = tempfile(fileext = ".pdf"))
path = system.file("examples/data.docx", package="docxtractr")
pdf_doc <- convert_to_pdf(path, pdf_file = tempfile(fileext = ".pdf"))
## End(Not run)
[Package docxtractr version 0.6.5 Index]