Skip to content

Commit 244de2b

Browse files
committed
Swap first_name/last_name in the PDF form
1 parent bf1ec96 commit 244de2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/donations/pdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def add_donor_data(c: Canvas, person: Dict):
4444
if len(person["first_name"]) > 18:
4545
c.setFontSize(12)
4646

47-
c.drawString(75, donor_block_x, person["first_name"])
47+
c.drawString(75, donor_block_x - 22, person["first_name"])
4848
c.setFontSize(default_font_size)
4949

5050
# father's first letter
@@ -55,7 +55,7 @@ def add_donor_data(c: Canvas, person: Dict):
5555
if len(last_name) > 34:
5656
c.setFontSize(10)
5757

58-
c.drawString(75, donor_block_x - 22, last_name)
58+
c.drawString(75, donor_block_x, last_name)
5959

6060
# =======================================
6161
# THIRD ROW

0 commit comments

Comments
 (0)