| ft_extract | R Documentation |
ft_extract attemps to make it easy to extract text from
PDFs, using pdftools. Inputs can be either paths to PDF
files, or the output of ft_get() (class ft_data).
ft_extract(x)
x |
Path to a pdf file, or an object of class |
An object of class pdft_char in the case of character input,
or of class ft_data in the case of ft_data input
## Not run:
path <- system.file("examples", "example1.pdf", package = "fulltext")
(res <- ft_extract(path))
# use on output of ft_get() to extract pdf to text
## arxiv
res <- ft_get('cond-mat/9309029', from = "arxiv")
res2 <- ft_extract(res)
res$arxiv$data
res2$arxiv$data
## biorxiv
res <- ft_get('10.1101/012476')
res2 <- ft_extract(res)
res$biorxiv$data
res2$biorxiv$data
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.