Group Abstract Group Abstract

Message Boards Message Boards

1
|
5.1K Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

[Solved] Import plain text from > 300 PDF files & then export each file

Posted 4 years ago
POSTED BY: v m
2 Replies
Posted 4 years ago

Hi v m

This should do it. Please first test on a subset of the files in a different directory.

dir = "path/to/directory"
files = FileNames["*.pdf", dir]

Export[FileNameJoin[{dir, FileBaseName@#1 <> ".txt"}],  Import[#, "Plaintext"]] & /@
files
POSTED BY: Rohit Namjoshi
Posted 4 years ago

I tried it and worked with no issues at all. This was exactly what I was looking for. Thank you!

POSTED BY: v m
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard