diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-10-15 13:55:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-10-15 13:55:53 +0000 |
commit | dd8977db7e960a4f7887c1240df04fdbe69642cc (patch) | |
tree | 123593737fc2984fcc7ba49a3d7c312b3fa060c8 /pydyf | |
parent | Releasing debian version 0.3.0-1. (diff) | |
download | pydyf-dd8977db7e960a4f7887c1240df04fdbe69642cc.tar.xz pydyf-dd8977db7e960a4f7887c1240df04fdbe69642cc.zip |
Merging upstream version 0.5.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pydyf')
-rwxr-xr-x | pydyf/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pydyf/__init__.py b/pydyf/__init__.py index fac9ecc..85811f4 100755 --- a/pydyf/__init__.py +++ b/pydyf/__init__.py @@ -8,7 +8,7 @@ import zlib from codecs import BOM_UTF16_BE from hashlib import md5 -VERSION = __version__ = '0.3.0' +VERSION = __version__ = '0.5.0' def _to_bytes(item): @@ -482,6 +482,12 @@ class PDF: object_.number = len(self.objects) self.objects.append(object_) + @property + def page_references(self): + return tuple( + f'{object_number} 0 R'.encode('ascii') + for object_number in self.pages['Kids'][::3]) + def write_line(self, content, output): """Write line to output. |