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