Update test_pdfplumber.py
Browse files- test_pdfplumber.py +5 -11
test_pdfplumber.py
CHANGED
|
@@ -1,11 +1,5 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
print("pdfplumber is working!")
|
| 7 |
-
except Exception as e:
|
| 8 |
-
print(f"Error: {e}")
|
| 9 |
-
|
| 10 |
-
if __name__ == "__main__":
|
| 11 |
-
test_pdfplumber()
|
|
|
|
| 1 |
+
try:
|
| 2 |
+
import fitz # PyMuPDF
|
| 3 |
+
print("PyMuPDF (fitz) is installed!")
|
| 4 |
+
except ImportError:
|
| 5 |
+
print("PyMuPDF (fitz) is not installed.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|