Simplify basic example

This commit is contained in:
Jeremy Singer-Vine
2015-12-17 20:57:25 -05:00
parent 663b3dc328
commit 93281a2080
-5
View File
@@ -21,11 +21,6 @@ import pdfplumber
pdf = pdfplumber.from_path("path/to/file.pdf")
# OR
with open("path/to/file.pdf") as f:
pdf = pdfplumber.load(f)
if len(pdf.chars):
print(pdf.chars[0])