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
1 changed files with 1 additions and 1 deletions

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