Marthee commited on
Commit
c562e63
·
verified ·
1 Parent(s): 2b1f8fa

Update Counting_Columns_2_1.py

Browse files
Files changed (1) hide show
  1. Counting_Columns_2_1.py +1 -1
Counting_Columns_2_1.py CHANGED
@@ -184,7 +184,7 @@ def add_annotations_to_pdf(image, pdf_name, slctd_clm, columns_types_v):
184
  p_midpoint = fitz.Point(x, y) * derotationMatrix
185
  text = columns_types_v[i]
186
  # Create an annotation (sticky note)
187
- annot = page.add_text_annot((x, y), text)
188
  annot.set_border(width=0.2, dashes=(1, 2)) # Optional border styling
189
  annot.set_colors(stroke=(1, 0, 0), fill=None) # Set the stroke color to red
190
  annot.update()
 
184
  p_midpoint = fitz.Point(x, y) * derotationMatrix
185
  text = columns_types_v[i]
186
  # Create an annotation (sticky note)
187
+ annot = page.add_text_annot((p_midpoint.x, p_midpoint.y), text)
188
  annot.set_border(width=0.2, dashes=(1, 2)) # Optional border styling
189
  annot.set_colors(stroke=(1, 0, 0), fill=None) # Set the stroke color to red
190
  annot.update()