mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-30 00:50:24 +08:00
18 lines
370 B
Python
18 lines
370 B
Python
#!/usr/bin/env python
|
|
import unittest
|
|
import pdfplumber
|
|
import os
|
|
|
|
import logging
|
|
|
|
logging.disable(logging.ERROR)
|
|
|
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
class Test(unittest.TestCase):
|
|
def test_load(self):
|
|
path = os.path.join(HERE, "pdfs/cupertino_usd_4-6-16.pdf")
|
|
with pdfplumber.open(path) as pdf:
|
|
assert len(pdf.metadata)
|