View source: R/convert_pdf_to_docx.r
convert_pdf_to_docx | R Documentation |
Use powershell to open a pdf in word, and save it as docx. It is saved in the same location with the same file name. Requires MS Word to be installed. Note that this will open a hidden dialogue box requiring you to confirm that you want to open Word (at least the first time you run it).
convert_pdf_to_docx(pdf, verbose = TRUE)
pdf |
(character) a pdf to convert |
verbose |
(logical; default = |
nothing, returned for side effects
## Not run:
# Convert a single file
convert_pdf_to_docx("C:/files/pdfs/norm.pdf")
# Convert a folder of files
list.files("C:/files/pdfs", full.names = TRUE) |>
purrr::walk(convert_pdf_to_docx)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.