shahed125238 commited on
Commit
20fceda
·
verified ·
1 Parent(s): 21462fb

Update test_pdfplumber.py

Browse files
Files changed (1) hide show
  1. test_pdfplumber.py +5 -11
test_pdfplumber.py CHANGED
@@ -1,11 +1,5 @@
1
- import pdfplumber
2
-
3
- def test_pdfplumber():
4
- try:
5
- pdfplumber.open("test.pdf")
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.")