Files
C_C++
Haskell
Java
LaTeX
Misc.
Python
ai
modules
ascii_injection.py
ascii_nn_input_helper.py
asciifarts_scrapper.py
better_exceptions_test.py
combinator.py
decorator.py
dpt.py
format.py
graph.py
group.py
int_memory.ctype.py
int_memory.py.py
leno.py
list2data.py
matplotlib_hw.py
nnadd.py
otest.py
pdf2txt
snek_help.py
tkinter_filepicker_test.py
torus.py
Vim
Webdev
git
.gitignore
Makefile
tests/Python/pdf2txt
2024-12-10 20:40:17 +01:00

11 lines
224 B
Python
Executable File

#!/bin/python3
from pypdf import PdfReader
from sys import argv
reader = PdfReader(argv[1])
with open(argv[1] + ".txt", "w") as f:
for p in reader.pages:
t = p.extract_text()
print(t)
f.write(t)