Skip to contents

Split, Combine and Compress PDF files

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge CRAN RStudio mirror downloads

Content-preserving transformations transformations of PDF files such as split, combine, and compress. This package interfaces directly to the ‘qpdf’ C++ API and does not require any command line utilities. Note that ‘qpdf’ does not read actual content from PDF files: to extract text and data you need the ‘pdftools’ package.

Hello World

All functions take one or more input and output pdf files.

library(qpdf)
pdf_compress("~/Downloads/v71i02.pdf")
[1] "/Users/jeroen/Downloads/v71i02_output.pdf"