set pdf version to 1.5 with PdfName.TwoPageLeft and PdfName.TwoPageRight
This commit is contained in:
parent
1ea01110cc
commit
8cf8c68d7e
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue