From 8cf8c68d7e7c361f06e241f2baec283b7ce58d3a Mon Sep 17 00:00:00 2001 From: alister Date: Fri, 25 Mar 2022 12:23:16 +0000 Subject: [PATCH] set pdf version to 1.5 with PdfName.TwoPageLeft and PdfName.TwoPageRight --- src/img2pdf.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/img2pdf.py b/src/img2pdf.py index 859b5b9..13bb5b6 100755 --- a/src/img2pdf.py +++ b/src/img2pdf.py @@ -1142,8 +1142,12 @@ class pdfdoc(object): catalog[PdfName.PageLayout] = PdfName.TwoColumnLeft elif self.page_layout == PageLayout.twopageright: catalog[PdfName.PageLayout] = PdfName.TwoPageRight + if self.output_version < "1.5": + self.output_version = "1.5" elif self.page_layout == PageLayout.twopageleft: catalog[PdfName.PageLayout] = PdfName.TwoPageLeft + if self.output_version < "1.5": + self.output_version = "1.5" elif self.page_layout is None: pass else: