code: def rect(self, x,y,w,h,style=''):
          "Draw a rectangle"
          if(style=='F'):
              op='f'
          elif(style=='FD' or style=='DF'):
              op='B'
          else:
              op='S'
          self._out(sprintf('%.2f %.2f %.2f %.2f re %s',x*self.k,(self.h-y)*self.k,w*self.k,-h*self.k,op)f rect(self, x,y,w,h,style=''):
          "Draw a rectangle"
          if(style=='F'):
              op='f'
          elif(style=='FD' or style=='DF'):
              op='B'
          else:
              op='S'
          self._out(sprintf('%.2f %.2f %.2f %.2f re %s',x*self.k,(self.h-y)*self.k,w*self.k,-h*self.k,op))
docs: Draw a rectangle