0% found this document useful (0 votes)
98 views4 pages

R PDF Tables

This package allows users to convert tables from PDF documents to formats like CSV, XML, and Excel by using the PDFTables API. It takes a PDF file as input, uploads it to the PDFTables website, and returns an output file with the extracted table data. The package provides functions for converting the PDF and retrieving the number of API requests remaining on the user's account. A PDFTables API key is required to use the package.

Uploaded by

ajquinonesp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views4 pages

R PDF Tables

This package allows users to convert tables from PDF documents to formats like CSV, XML, and Excel by using the PDFTables API. It takes a PDF file as input, uploads it to the PDFTables website, and returns an output file with the extracted table data. The package provides functions for converting the PDF and retrieving the number of API requests remaining on the user's account. A PDFTables API key is required to use the package.

Uploaded by

ajquinonesp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Package pdftables

August 29, 2016


Type Package
Title Programmatic Conversion of PDF Tables
Version 0.1
Date 2016-02-15
Description Allows the user to convert PDF tables to formats more amenable to
analysis ('.csv', '.xml', or '.xlsx') by wrapping the PDFTables API.
In order to use the package, the user needs to sign up for an API account
on the PDFTables website (<https://pdftables.com/pdf-to-excel-api>).
The package works by taking a PDF file as input, uploading it to PDFTables,
and returning a file with the extracted data.
License CC0

URL https://www.github.com/expersso/pdftables , https://pdftables.com

BugReports https://www.github.com/expersso/pdftables/issues
Imports httr, tools
VignetteBuilder knitr
Suggests knitr, rmarkdown
RoxygenNote 5.0.1
NeedsCompilation no
Author Eric Persson [aut, cre]
Maintainer Eric Persson <[email protected]>
Repository CRAN
Date/Publication 2016-02-15 16:03:15

R topics documented:
convert_pdf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
get_remaining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Index 4

1
2 get_remaining

convert_pdf Convert PDF Tables to format more amenable to analysis

Description
Convert PDF Tables to format more amenable to analysis

Usage
convert_pdf(input_file, output_file = NULL, format = "csv",
message = TRUE, api_key = Sys.getenv("pdftable_api"))

Arguments
input_file The PDF file to be converted
output_file The desired name for the output file
format One of csv, xlm, xlsx-single, xlsx-multiple
message If TRUE, outputs a message that conversion was successful
api_key Your API key (from https://pdftables.com)

Value
Creates an output file with the converted PDF table

Examples
## Not run:
write.csv(head(iris), file = "test.csv", row.names = FALSE)

# Open test.csv and print as PDF to "test.pdf"

convert_pdf("test.pdf", "test2.csv")

## End(Not run)

get_remaining Retrieve the number of pages left on your account

Description
Retrieve the number of pages left on your account

Usage
get_remaining(api_key = Sys.getenv("pdftable_api"))
get_remaining 3

Arguments
api_key Your API key (from https://pdftables.com)

Value
A numeric vector of length 1

Examples
## Not run: get_remaining()
Index

convert_pdf, 2

get_remaining, 2

You might also like