Spaces:
Sleeping
Sleeping
Update Counting_Columns_2_1.py
Browse files- Counting_Columns_2_1.py +1 -1
Counting_Columns_2_1.py
CHANGED
|
@@ -185,7 +185,7 @@ def add_annotations_to_pdf(image, pdf_name, slctd_clm, columns_types_v):
|
|
| 185 |
return pdf_document
|
| 186 |
|
| 187 |
def mainfun(plan):
|
| 188 |
-
pdf_document = fitz.open(plan)
|
| 189 |
page = pdf_document[0]
|
| 190 |
rotation = page.rotation
|
| 191 |
derotationMatrix=page.derotation_matrix
|
|
|
|
| 185 |
return pdf_document
|
| 186 |
|
| 187 |
def mainfun(plan):
|
| 188 |
+
pdf_document = fitz.open('pdf',plan)
|
| 189 |
page = pdf_document[0]
|
| 190 |
rotation = page.rotation
|
| 191 |
derotationMatrix=page.derotation_matrix
|