commit from combustion branch
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
|
|||||||
|
#import pdftotext
|
||||||
|
|
||||||
|
# Load your PDF
|
||||||
|
#pdf_file = open("VI-CarRealTime.pdf" , "rb")
|
||||||
|
##pdf = pdftotext.PDF(f)
|
||||||
|
|
||||||
|
# If it's password-protected
|
||||||
|
# with open("secure.pdf", "rb") as f:
|
||||||
|
# pdf = pdftotext.PDF(f, "secret")
|
||||||
|
|
||||||
|
# How many pages?
|
||||||
|
# print(len(pdf))
|
||||||
|
|
||||||
|
# Iterate over all the pages
|
||||||
|
#for page in pdf:
|
||||||
|
# print(page)
|
||||||
|
|
||||||
|
# Read some individual pages
|
||||||
|
#print(pdf[1006])
|
||||||
|
#print(pdf[1007])
|
||||||
|
|
||||||
|
#Read all the text into one string
|
||||||
|
#print("\n\n".join(pdf))
|
||||||
Reference in New Issue
Block a user