Skip to content

Commit

Permalink
Fix method self argument
Browse files Browse the repository at this point in the history
  • Loading branch information
edgaraafelix committed May 11, 2021
1 parent 9152f81 commit 38bdc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfjinjax.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, data, dimensions=None, text=None, font=None, ratio=False):
draw.text((0, y), line, (0, 0, 0), font=font)
y += lh

def ratio(img, dimensions):
def ratio(self, img, dimensions):
x, y, w, h = dimensions
imgW, imgH = img.size
imageRatio = float(imgH)/float(imgW)
Expand Down

0 comments on commit 38bdc1c

Please sign in to comment.