src/reportlab/platypus/doctemplate.py
changeset 4458 dfef5530196d
parent 4405 c985bd7093ad
child 4482 f262640d9843
equal deleted inserted replaced
4457:2cb3dd1e5bc2 4458:dfef5530196d
   945         etc.
   945         etc.
   946 
   946 
   947         *NB* only the canvases created in self._startBuild will actually be used
   947         *NB* only the canvases created in self._startBuild will actually be used
   948         in the build process.
   948         in the build process.
   949         '''
   949         '''
       
   950         #each distinct pass gets a sequencer
       
   951         self.seq = reportlab.lib.sequencer.Sequencer()
   950         canv = canvasmaker(filename or self.filename,
   952         canv = canvasmaker(filename or self.filename,
   951                             pagesize=self.pagesize,
   953                             pagesize=self.pagesize,
   952                             invariant=self.invariant,
   954                             invariant=self.invariant,
   953                             pageCompression=self.pageCompression,
   955                             pageCompression=self.pageCompression,
   954                             enforceColorSpace=self.enforceColorSpace,
   956                             enforceColorSpace=self.enforceColorSpace,
   978             canv.setPageCallBack(self._onPage)
   980             canv.setPageCallBack(self._onPage)
   979         return canv
   981         return canv
   980 
   982 
   981     def _startBuild(self, filename=None, canvasmaker=canvas.Canvas):
   983     def _startBuild(self, filename=None, canvasmaker=canvas.Canvas):
   982         self._calc()
   984         self._calc()
   983 
       
   984         #each distinct pass gets a sequencer
       
   985         #self.seq = reportlab.lib.sequencer.Sequencer()
       
   986 
       
   987         self.canv = self._makeCanvas(filename=filename,canvasmaker=canvasmaker)
   985         self.canv = self._makeCanvas(filename=filename,canvasmaker=canvasmaker)
   988         self.handle_documentBegin()
   986         self.handle_documentBegin()
   989 
   987 
   990     def _endBuild(self):
   988     def _endBuild(self):
   991         self._removeVars(('build','page','frame'))
   989         self._removeVars(('build','page','frame'))