![]() ![]() This makes it possible to use pdf_data on Ubuntu LTS servers, including Travis: sudo add-apt-repository ppa:opencpu/poppler ![]() I also created a PPA for Ubuntu 16.04 (Xenial) and 18.04 (Bionic) with backports of poppler 0.74. Ubuntu has upgraded to poppler 0.74 on Ubuntu Disco which was released this week. I am happy to say that this should soon work on all major Linux distributions. However it was noted that this function was not yet available on most Linux distributions because it requires a recent fix from poppler 0.73. The pdftools 2.0 announcement post from December introduced the new pdf_data() function for extracting individual text boxes from pdf files. Data extraction now available on Linux too The qpdf package is entirely self contained and works reliably on all operating systems with zero system dependencies. The main benefit of qpdf is that no external software (such as pdftk) is needed. ![]() The split and join features are provided via a new package qpdf which wraps the qpdf C++ library. Pdf_combine(c("test.pdf", "subset.pdf"), output = "joined.pdf") Similarly pdf_combine() is used to join several pdf files into one. For example the pdf_subset() function creates a new pdf file with a selection of the pages from the input file: # Load pdftools It is now possible to split, join, and compress pdf files with pdftools. Moreover, the pdf_data() function which was introduced in pdftools 2.0 is now available on all major systems. This release introduces the ability to perform pdf transformations, such as splitting and combining pages from multiple files. Last month we released a new version of pdftools and a new companion package qpdf for working with pdf files in R. ![]()
0 Comments
Leave a Reply. |