book | R Documentation |
Bind book from many PDF files.
book(directory, merge = TRUE, redistill = TRUE)
directory |
where the PDF files are. |
merge |
whether to merge the chapters - otherwise return |
redistill |
whether to redistill ‘out.pdf’ (pdftk output) to ‘_out.pdf’ (Ghostscript output). |
Shell command string used to merge PDF files with pdftk.
The final Ghostscript redistillation is launched with wait = FALSE
, so
the best way to see if it is finished is to check if any Ghostscript
processes are active.
The PDF files should be named something like ‘0.pdf 1.pdf 27.pdf 42.pdf ... 397.pdf 413a.pdf 413b.pdf’.
Before this function is called, unnecessary pages can be peeled out of ‘0.pdf’, and the last file often needs splitting, e.g. ‘413.pdf’ into ‘413a.pdf’ and ‘413b.pdf’.
Three files are written to directory: ‘_’ (blank page of right size), ‘out.pdf’ (book merged with pdftk), and ‘_out.pdf’ (‘out.pdf’ redistilled with Ghostscript).
After this function is called, one should check ‘out.pdf’ to see whether pages are correctly numbered, and ‘out_.pdf’ to see whether the Ghostscript-redistilled document is smaller while retaining intact images and no red borders around links
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.