Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahabks authored Mar 24, 2019
1 parent dc01cb5 commit 8739377
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,10 @@ Copy and paste the following code, found on this website, into your Python scrip
#fileConverted.close()
print("-------------------------")
print("-------------------------")
input("It's done, press any key to terminate the program")
Now that we have a way to get the text content of a PDF, all we have to do is
Iterate through all of our PDFs.
For each pdf, get the text content,
open/create a .txt file,
write the text content to the .txt file.
You can do this using the following function and calling it like so:
input("It's done, press any key to terminate the program")
Now that we have a way to get the text content of a PDF, all we have to do is Iterate through all of our PDFs. For each pdf, get the text content, open/create a .txt file, write the text content to the .txt file. You can do this using the following function and calling it like so:

#converts all pdfs in directory pdfDir, saves all resulting txt files to txtdir
def convertMultiple(pdfDir, txtDir):
if pdfDir == "": pdfDir = os.getcwd() + "\\" #if no pdfDir passed in
Expand Down

0 comments on commit 8739377

Please sign in to comment.