Jim,
That works well!
Thanks again for your help!
Thomas Subia
-Original Message-
From: Jim Lemon
Sent: Wednesday, October 30, 2019 11:14 PM
To: Thomas Subia
Cc: r-help@r-project.org
Subject: Re: [R] Help for pdf conversion
Hi Thomas,
Perhaps you should be doing something like
Hi Thomas,
Perhaps you should be doing something like writeLines(txt[1],...) or just:
sink("10619.txt")
cat(txt[1])
sink()
Jim
On Thu, Oct 31, 2019 at 4:48 PM Thomas Subia wrote:
>
> Colleagues,
>
> I'm trying to convert a pdf to a text file with the following code.
>
> # pdf to excel
> library
Colleagues,
I'm trying to convert a pdf to a text file with the following code.
# pdf to excel
library(pdftools) # pdf to excel library
# set working directory
setwd("C:/Users")
# input pdf
txt <- pdf_text("C:/Users/10619.pdf")
cat(txt[1])
write.table(cat(txt[1]),file="10619.txt",sep= "\t",row.na
3 matches
Mail list logo