split_pdf | R Documentation |
Split PDF into separate pages or merge multiple PDFs into one.
split_pdf(file, outdir = NULL, password = NULL, copy = FALSE)
merge_pdfs(file, outfile, copy = FALSE)
file |
For |
outdir |
For |
password |
Optionally, a character string containing a user password to
access a secured PDF. Currently, encrypted PDFs cannot be merged with
|
copy |
Specifies whether the original local file(s) should be copied to
|
outfile |
For |
split_pdf
splits the file listed in file
into
separate one-page doucments. merge_pdfs
creates a single PDF
document from multiple separate PDF files.
For split_pdfs
, a character vector specifying the output file
names, which are patterned after the value of file
. For
merge_pdfs
, the value of outfile
.
Thomas J. Leeper <thosjleeper@gmail.com>
extract_areas
, get_page_dims
,
make_thumbnails
# simple demo file
f <- system.file("examples", "mtcars.pdf", package = "tabulapdf")
get_n_pages(file = f)
# split PDF by page
sf <- split_pdf(f)
# merge pdf
mf <- file.path(tempdir(), "merged.pdf")
merge_pdfs(sf, mf)
get_n_pages(mf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.