convert_pdf: Convert PDF Tables to format more amenable to analysis

Description Usage Arguments Value Examples

Description

Convert PDF Tables to format more amenable to analysis

Usage

1
2
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

1
2
3
4
5
6
7
8
## 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)

pdftables documentation built on May 2, 2019, 6:09 a.m.