reportlab/pdfbase/pdfdoc.py
changeset 2730 b3fc23a74fd1
parent 2679 b8464568f5e2
child 2737 7aa9f936102b
equal deleted inserted replaced
2729:33fcb3e15ef4 2730:b3fc23a74fd1
   603             self.dict = {}
   603             self.dict = {}
   604         else:
   604         else:
   605             self.dict = dict.copy()
   605             self.dict = dict.copy()
   606     def __setitem__(self, name, value):
   606     def __setitem__(self, name, value):
   607         self.dict[name] = value
   607         self.dict[name] = value
   608     def Reference(name, document):
   608     def Reference(self, name, document):
   609         self.dict[name] = document.Reference(self.dict[name])
   609         self.dict[name] = document.Reference(self.dict[name])
   610     def format(self, document,IND=LINEEND+' '):
   610     def format(self, document,IND=LINEEND+' '):
   611         dict = self.dict
   611         dict = self.dict
   612         keys = dict.keys()
   612         keys = dict.keys()
   613         keys.sort()
   613         keys.sort()
  1584     def format(self, document):
  1584     def format(self, document):
  1585         pageref = document.Reference(self.page)
  1585         pageref = document.Reference(self.page)
  1586         A = PDFArray( [ pageref, PDFName(self.typename), self.left ] )
  1586         A = PDFArray( [ pageref, PDFName(self.typename), self.left ] )
  1587         return format(A, document)
  1587         return format(A, document)
  1588 
  1588 
  1589 class PDFDestinationBV(PDFDestinationFitV):
  1589 class PDFDestinationFitBV(PDFDestinationFitV):
  1590     typename = "FitBV"
  1590     typename = "FitBV"
  1591 
  1591 
  1592 class PDFDestinationFitR:
  1592 class PDFDestinationFitR:
  1593     typename = "FitR"
  1593     typename = "FitR"
  1594     def __init__(self, page, left, bottom, right, top):
  1594     def __init__(self, page, left, bottom, right, top):