set pdf version to 1.5 with PdfName.TwoPageLeft and PdfName.TwoPageRight

This commit is contained in:
alister 2022-03-25 12:23:16 +00:00
parent 1ea01110cc
commit 8cf8c68d7e

View file

@ -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: