parameters: (self, page)
docstring: Provide the data for page by drawing it as a bitmap to the printer DC
              sfac needs to provide a high enough resolution bitmap for printing that
              reduces anti-aliasing blur but be kept small to minimise printing time
docstring_summary: Provide the data for page by drawing it as a bitmap to the printer DC
              sfac needs to provide a high enough resolution bitmap for printing that
              reduces anti-aliasing blur but be kept small to minimise printing time
docstring_tokens: Provide the data for page by drawing it as a bitmap to the printer DC sfac needs to provide a high enough resolution bitmap for printing that reduces anti - aliasing blur but be kept small to minimise printing time
function: def PrintViaBuffer(self, page):
          """ Provide the data for page by drawing it as a bitmap to the printer DC
              sfac needs to provide a high enough resolution bitmap for printing that
              reduces anti-aliasing blur but be kept small to minimise printing time 
          """
          sfac = 4.0
          pageno = page - 1       # zero based
          dc = self.GetDC()
          width = self.view.pagewidth*sfac
          height = self.view.pageheight*sfac
          self.FitThisSizeToPage(wx.Size(width, height))
          # Initialize the buffer bitmap. 
          abuffer = wx.EmptyBitmap(width, height)
          mdc = wx.MemoryDC(abuffer)
          gc = GraphicsContext.Create(mdc)
          # white background
          path = gc.CreatePath()
          path.AddRectangle(0, 0, width, height)
          gc.SetBrush(wx.WHITE_BRUSH)
          gc.FillPath(path)
          if mupdf:
              self.view.pdfdoc.RenderPage(gc, pageno, sfac)
          else:    
              gc.Translate(0, height)
              gc.Scale(sfac, sfac)
              self.view.pdfdoc.RenderPage(gc, pageno)
          dc.DrawBitmap(abuffer, 0, 0)
function_tokens: def PrintViaBuffer ( self , page ) : sfac = 4.0 pageno = page - 1 # zero based dc = self . GetDC ( ) width = self . view . pagewidth * sfac height = self . view . pageheight * sfac self . FitThisSizeToPage ( wx . Size ( width , height ) ) # Initialize the buffer bitmap.  abuffer = wx . EmptyBitmap ( width , height ) mdc = wx . MemoryDC ( abuffer ) gc = GraphicsContext . Create ( mdc ) # white background path = gc . CreatePath ( ) path . AddRectangle ( 0 , 0 , width , height ) gc . SetBrush ( wx . WHITE_BRUSH ) gc . FillPath ( path ) if mupdf : self . view . pdfdoc . RenderPage ( gc , pageno , sfac ) else : gc . Translate ( 0 , height ) gc . Scale ( sfac , sfac ) self . view . pdfdoc . RenderPage ( gc , pageno ) dc . DrawBitmap ( abuffer , 0 , 0 )