# How to extract/import a PDF table in a data frame?

#### flegmatiq

##### New Member
To extract a PDF table in R I have used the pdftools package:

Code:
library(pdftools)
txt <- pdf_text("Downloads/Bac-2016.pdf")
The extracted table I can see as a plain text with:

Code:
cat(txt)
The question is how to import this plain text table in a data frame?

My OS is Ubuntu 16.04

* Introducing pdftools - A fast and portable PDF extractor

Last edited: