how to read pdf by blocks rather by lines in R using "pdftools"?

43 Views Asked by At

With {pdftools} package, we can read pdf into R environment. But it reads by lines rather by blocks. So, when there are multiple columns, the result becomes a mess.

For example, we like to have it in this way. enter image description here

but it comes in this way enter image description here

Have tried to read it into data.table, and split it into 2 columns. But the attempt failed, since the code can't tell if the single space is for the words or the columns.

Please advise.

0

There are 0 best solutions below