mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
27a4657b2c
commit
4925f63242
@ -24,10 +24,10 @@ class Destination(Array):
|
||||
|
||||
class Links(object):
|
||||
|
||||
def __init__(self, pdf, mark_links):
|
||||
def __init__(self, pdf, mark_links, page_size):
|
||||
self.anchors = {}
|
||||
self.links = []
|
||||
self.start = {'top':0, 'column':0, 'left':0}
|
||||
self.start = {'top':page_size[1], 'column':0, 'left':0}
|
||||
self.pdf = pdf
|
||||
self.mark_links = mark_links
|
||||
|
||||
|
@ -300,7 +300,7 @@ class PDFStream(object):
|
||||
self.font_manager = FontManager(self.objects, self.compress)
|
||||
self.image_cache = {}
|
||||
self.debug = debug
|
||||
self.links = Links(self, mark_links)
|
||||
self.links = Links(self, mark_links, page_size)
|
||||
|
||||
@property
|
||||
def page_tree(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user