forked from josch/img2pdf
src/img2pdf.py: the /OpenAction array must contain the page as an indirect object
This commit is contained in:
parent
dc926b2cf2
commit
30d705f020
1 changed files with 4 additions and 0 deletions
|
@ -1106,6 +1106,10 @@ class pdfdoc(object):
|
|||
[initial_page, PdfName.XYZ, NullObject, NullObject, 0]
|
||||
)
|
||||
|
||||
# the /OpenAction array must contain the page as an indirect object
|
||||
if self.engine == Engine.pikepdf:
|
||||
initial_page = self.writer.make_indirect(initial_page)
|
||||
|
||||
if self.magnification == Magnification.fit:
|
||||
catalog[PdfName.OpenAction] = PdfArray([initial_page, PdfName.Fit])
|
||||
elif self.magnification == Magnification.fith:
|
||||
|
|
Loading…
Reference in a new issue