1
0
Fork 0

Merging upstream version 0.5.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-08 07:42:18 +01:00
parent c8532840ce
commit 6fdc00b917
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
6 changed files with 83 additions and 8 deletions

View file

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