Replies: 1 comment
-
Please have a look at the docs: https://pypdf.readthedocs.io/en/stable/user/migration-1-to-2.html Yes, this is correct - using properties instead of getters/setters is the Pythonic way of doing things like this. At some places, this might not be consistent nevertheless. By the way: Do not use internal APIs in your own code. This might break at any time. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Explanation
In PyPDF2 I could simply set the page mode like this:
In pypdf there is only:
(defined in line 2099 in the "_writer.py" source file)
but
pdf._set_page_mode('/UseOutlines')
seems to be missing (if I take the old file structure of PyPDF2 as a basis, I would expect the def in line 2204 of the "_writer.py" source file).
Instead if I want to set the page mode, I have to do:
Is this intended?
Beta Was this translation helpful? Give feedback.
All reactions