Compare commits

..

1 commit

Author SHA1 Message Date
509933e49d fix AttributeError with insertTextbox 2024-09-02 15:35:44 +02:00
3 changed files with 5 additions and 18 deletions

View file

@ -2,11 +2,6 @@
CHANGES
=======
0.5.3 (2025-02-16)
------------------
- support for pymupdf 1.23.7
0.5.2 (2024-01-12)
------------------

View file

@ -51,7 +51,7 @@ except ImportError:
tkinter.Menubutton = dummy
tkinter.LabelFrame = dummy
VERSION = "0.5.3"
VERSION = "0.5.2"
PAGE_SIZES = OrderedDict(
[
@ -740,11 +740,7 @@ class Plakativ:
)
)
shape.finish(color=(1, 0, 0))
if hasattr(shape, "insert_textbox"):
it = shape.insert_textbox
else:
it = shape.insertTextbox
it(
shape.insert_textbox(
fitz.Rect(
x0 + 5,
y0 + 5,
@ -854,12 +850,8 @@ class Plakativ:
)
shape.finish(width=0.2, color=(0.5, 0.5, 0.5), dashes="[5 6 1 6] 0")
if numbers:
if hasattr(shape, "insert_textbox"):
it = shape.insert_textbox
else:
it = shape.insertTextbox
if portrait:
it(
shape.insert_textbox(
fitz.Rect(
mm_to_pt(self.layout["border_left"]) + 5,
mm_to_pt(self.layout["border_top"]) + 5,
@ -871,7 +863,7 @@ class Plakativ:
color=(0.5, 0.5, 0.5),
)
else:
it(
shape.insert_textbox(
fitz.Rect(
mm_to_pt(self.layout["border_bottom"]) + 5,
mm_to_pt(self.layout["border_left"]) + 5,

View file

@ -1,6 +1,6 @@
from setuptools import setup
VERSION = "0.5.3"
VERSION = "0.5.2"
setup(
name="plakativ",