This is the code and notes from my live Twitch programming and drawing classes.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
342 B

# import modules I need
import pdftotext
import sys
# open the pdf
infile = open(sys.argv[1], "rb")
# convert it to text
pdf = pdftotext.PDF(infile)
lines = "".join(pdf).split("\n")
# find Reporting Period
for line in lines:
if line.startswith("Reporting Period"):
# print it
print(line)
else:
print(line)