mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 12:58:35 -06:00
fix: Convert width to float
This commit is contained in:
parent
0010b50be7
commit
b02f065be7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue