print_pptx_pdf | R Documentation |
This function exports the document as a temporary .pptx file, creates a temporary .vbs file with the intended .pdf file name, runs the .vbs file in command prompt, and then deletes the temporary files.
print_pptx_pdf(x, target = NULL, ...)
x |
document created using 'read_pptx()' function from 'officer' package |
target |
path to the .pdf to be exported, default is a .pdf with the exported object's name in the current working directory |
ppt1 <- read_pptx()
ppt1 <- add_sheet(ppt1)
print_pptx_pdf(ppt1)
ppt2 <- read_pptx()
ppt2 <- add_sheet(ppt2)
print_pptx_pdf(ppt2, target = file.path(paste(getwd(),"/test.pdf",sep="")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.