Merging upstream version 0.5.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
c8532840ce
commit
6fdc00b917
6 changed files with 83 additions and 8 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue