CRAN_Status_Badge


Last-changedate

staplr

This package provides functions to manipulate PDF files:

  • fill out PDF forms: get_fields() and set_fields()
  • merge multiple PDF files into one: staple_pdf()
  • remove selected pages from a file: remove_pages()
  • rename multiple files in a directory: rename_files()
  • rotate entire pdf document: rotate_pdf()
  • rotate selected pages of a pdf file: rotate_pages()
  • Select pages from a file: select_pages()
  • splits single input PDF document into individual pages: split_pdf()
  • splits single input PDF document into parts from given points: split_from()

This package is still under development and this repository contains a development version of the R package staplr.

Installation

First Install pdftk

download and install pdftk. This is not an R package!

NB: pdftk is known to hang indefinitely on macOS High Sierra. If this happens to you, this version should work for macOS El Capitan (10.11), it also works on Sierra (10.12) and High Sierra (10.13).

Installation instructions for Red Hat or CentOS distributions can be found here: https://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/

Packaged versions can be found for Arch and Ubuntu. On Ubuntu, for example, this means pdftk can be installed with the following command on most versions:

Then Install staplr

You can install the stable version from CRAN.

install.packages('staplr', dependencies = TRUE)

You can install staplr from github with: