1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -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': elif w == 'max':
outw = max([pages[i].mediabox.width for i in range(len(pages))]) outw = max([pages[i].mediabox.width for i in range(len(pages))])
else: else:
outw = w outw = float(w)
writer = PdfWriter() writer = PdfWriter()
for page in pages: for page in pages:
dim = page.mediabox dim = page.mediabox