convert_to_pdf: Convert a Document (usually PowerPoint) to a PDF

Description Usage Arguments Examples

View source: R/convert_pptx_to_pdf.R

Description

Convert a Document (usually PowerPoint) to a PDF

Usage

1
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 path file. This functionality requires the use of LibreOffice and the soffice binary it contains. See set_libreoffice_path for more information. Note,

Examples

1
2
3
4
5
6
7
## 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)

docxtractr documentation built on July 8, 2020, 6:23 p.m.