From 509933e49d94197e0001ae853fbf895855921efe Mon Sep 17 00:00:00 2001 From: Thomas Perl Date: Mon, 2 Sep 2024 15:35:44 +0200 Subject: [PATCH] fix AttributeError with insertTextbox --- plakativ.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plakativ.py b/plakativ.py index 6fc5e8f..ff4753a 100755 --- a/plakativ.py +++ b/plakativ.py @@ -740,7 +740,7 @@ class Plakativ: ) ) shape.finish(color=(1, 0, 0)) - shape.insertTextbox( + shape.insert_textbox( fitz.Rect( x0 + 5, y0 + 5, @@ -851,7 +851,7 @@ class Plakativ: shape.finish(width=0.2, color=(0.5, 0.5, 0.5), dashes="[5 6 1 6] 0") if numbers: if portrait: - shape.insertTextbox( + shape.insert_textbox( fitz.Rect( mm_to_pt(self.layout["border_left"]) + 5, mm_to_pt(self.layout["border_top"]) + 5, @@ -863,7 +863,7 @@ class Plakativ: color=(0.5, 0.5, 0.5), ) else: - shape.insertTextbox( + shape.insert_textbox( fitz.Rect( mm_to_pt(self.layout["border_bottom"]) + 5, mm_to_pt(self.layout["border_left"]) + 5, -- 2.39.5