1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-24 20:38:36 -06:00

fix: Convert width to float

This commit is contained in:
Sayantan Santra 2023-08-07 15:37:10 -05:00
parent 0010b50be7
commit b02f065be7
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -37,7 +37,7 @@ for file in args['filename']:
elif w == 'max':
outw = max([pages[i].mediabox.width for i in range(len(pages))])
else:
outw = w
outw = float(w)
writer = PdfWriter()
for page in pages:
dim = page.mediabox