Marthee commited on
Commit
7298db3
·
verified ·
1 Parent(s): ed3a60c

Update Counting_Columns_2_1.py

Browse files
Files changed (1) hide show
  1. 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(plan):
188
- pdf_document = fitz.open('pdf',plan)
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