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:
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':
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue