From b02f065be7765801ba167998cd231b1dd4ef5bcc Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 7 Aug 2023 15:37:10 -0500 Subject: [PATCH] fix: Convert width to float --- normalize-pdf-pagewidth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/normalize-pdf-pagewidth.py b/normalize-pdf-pagewidth.py index 8cbc5d7..9436f71 100644 --- a/normalize-pdf-pagewidth.py +++ b/normalize-pdf-pagewidth.py @@ -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