Displaying 1 result from an estimated 1 matches for "pdftext1".
Did you mean:
pdftext
2023 Jul 05
1
textual analysis - transforming several pdf to txt - naming the files
...n one directory named "pdfs". The names of my files are, for example, SONAE2020FS.pdf, EDP2021GS.pdf
I want to convert them to txt and give the same names as in the pdf files: SOANE2020FS.txt, EDP2021GS.txt
I'm running the following scrip, but the names of txt files that I obtain are: pdftext1, pdftext2, pdftext3...
What do I need to change?
Thank you very much,
Cec?lia Carmo
Universidade de Aveiro - Portugal
dirpath <- ("/Users/ceciliacarmo/documents/RTextualAnalysis/data/pdfs")
library(pdftools)
library(dplyr)
convertpdf2txt <- function(dirpath){
files <-...