Skip to content

Commit 7769c1f

Browse files
authored
Add files via upload
1 parent 99cf7d7 commit 7769c1f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pdfExtract.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import PyPDF2
2+
a = PyPDF2.PdfFileReader('TIKTOK.pdf')
3+
4+
str = ""
5+
for i in range(1,11):
6+
str += a.getPage(i).extractText()
7+
8+
with open("text.txt", "w", encoding = 'utf-8') as f:
9+
f.write(str)

0 commit comments

Comments
 (0)