Skip to content

Commit

Permalink
Migrate to new fpdf2 interface
Browse files Browse the repository at this point in the history
  • Loading branch information
v-- committed Feb 24, 2024
1 parent ec3adb8 commit 052ab11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpsprep/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def draw_text(self, x1: int, x2: int, y1: int, y2: int, text: str):
self.pdf.set_font('Invisible', size=int(BASE_FONT_SIZE * desired_width / actual_width))

try:
self.pdf.text(x=x1, y=page_height - y1, txt=text)
self.pdf.text(x=x1, y=page_height - y1, text=text)
except TypeError as err:
logger.warning(f'FPDF refuses to draw {repr(text)}: {err}')

Expand Down

0 comments on commit 052ab11

Please sign in to comment.