parameters: ( self )
docstring: Set up the document-wide transform in the event that the document has an SVG viewbox
docstring_summary: Set up the document-wide transform in the event that the document has an SVG viewbox
docstring_tokens: Set up the document - wide transform in the event that the document has an SVG viewbox
function: def handleViewBox( self ):
  
  		'''
  		Set up the document-wide transform in the event that the document has an SVG viewbox
  		'''
  
  		if self.getDocProps():
  			viewbox = self.document.getroot().get( 'viewBox' )
  			if viewbox:
  				vinfo = viewbox.strip().replace( ',', ' ' ).split( ' ' )
  				if ( vinfo[2] != 0 ) and ( vinfo[3] != 0 ):
  					sx = self.docWidth / float( vinfo[2] )
  					sy = self.docHeight / float( vinfo[3] )
  					self.docTransform = simpletransform.parseTransform( 'scale(%f,%f)' % (sx, sy) )
function_tokens: def handleViewBox ( self ) : if self . getDocProps ( ) : viewbox = self . document . getroot ( ) . get ( 'viewBox' ) if viewbox : vinfo = viewbox . strip ( ) . replace ( ',' , ' ' ) . split ( ' ' ) if ( vinfo [ 2 ] != 0 ) and ( vinfo [ 3 ] != 0 ) : sx = self . docWidth / float ( vinfo [ 2 ] ) sy = self . docHeight / float ( vinfo [ 3 ] ) self . docTransform = simpletransform . parseTransform ( 'scale(%f,%f)' % ( sx , sy ) )