This commit is contained in:
Kovid Goyal 2012-12-29 11:06:41 +05:30
parent 27a4657b2c
commit 4925f63242
2 changed files with 3 additions and 3 deletions

View File

@ -24,10 +24,10 @@ class Destination(Array):
class Links(object): class Links(object):
def __init__(self, pdf, mark_links): def __init__(self, pdf, mark_links, page_size):
self.anchors = {} self.anchors = {}
self.links = [] self.links = []
self.start = {'top':0, 'column':0, 'left':0} self.start = {'top':page_size[1], 'column':0, 'left':0}
self.pdf = pdf self.pdf = pdf
self.mark_links = mark_links self.mark_links = mark_links

View File

@ -300,7 +300,7 @@ class PDFStream(object):
self.font_manager = FontManager(self.objects, self.compress) self.font_manager = FontManager(self.objects, self.compress)
self.image_cache = {} self.image_cache = {}
self.debug = debug self.debug = debug
self.links = Links(self, mark_links) self.links = Links(self, mark_links, page_size)
@property @property
def page_tree(self): def page_tree(self):