From f9194547164084b7d86e20530a3f5e6b237aaa6d Mon Sep 17 00:00:00 2001 From: m32 Date: Mon, 7 Nov 2022 18:05:19 +0100 Subject: [PATCH] #138 broken visual signature --- endesive/__init__.py | 2 +- endesive/pdf/PyPDF2_annotate/annotations/signature.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/endesive/__init__.py b/endesive/__init__.py index 45886cd..07d15d2 100644 --- a/endesive/__init__.py +++ b/endesive/__init__.py @@ -2,6 +2,6 @@ __author__ = 'Grzegorz Makarewicz' __license__ = 'MIT' -__version__ = '2.0.11' +__version__ = '2.0.12' __all__ = [__author__, __license__, __version__] diff --git a/endesive/pdf/PyPDF2_annotate/annotations/signature.py b/endesive/pdf/PyPDF2_annotate/annotations/signature.py index 82654a1..97dcc10 100644 --- a/endesive/pdf/PyPDF2_annotate/annotations/signature.py +++ b/endesive/pdf/PyPDF2_annotate/annotations/signature.py @@ -454,7 +454,7 @@ def text_box(self, text, ttf_font, x, y, width, height, font_size=8, wrap_text=T fontname = ttf_font else: font = ttf_font - fontname = ttf_font['name'] + fontname = font.font["name"] font.set_size(font_size) font.set_text(text)