public function autofitRows($saveFormat = "")
    {
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '?isAutoFit=true';
        if ($saveFormat != '')
            $strURI .= '&format=' . $saveFormat;
        
        $signedURI = Utils::sign($strURI);
        
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        
        $v_output = Utils::validateOutput($responseStream);
        
        if ($v_output === '') {
            if ($saveFormat == '') {
                $strURI = Product::$baseProductUri . '/storage/file/' . $this->getFileName();
                $signedURI = Utils::Sign($strURI);
                $responseStream = Utils::processCommand($signedURI, "GET", "", "");
                
                $outputPath = AsposeApp::$outPutLocation . $this->getFileName();
                Utils::saveFile($responseStream, $outputFile);
            } else {
                $outputPath = AsposeApp::$outPutLocation . Utils::getFileName($this->getFileName()) . '.' . $saveFormat;
                Utils::saveFile($responseStream, $outputPath);
            }
            return $outputPath;
        } else {
            return $v_output;
        }
    }
public function autofitRows($saveFormat = "")
    {
        $strURI = Product::$baseProductUri . '/cells/' . $this->getFileName() . '?isAutoFit=true';
        if ($saveFormat != '')
            $strURI .= '&format=' . $saveFormat;
        
        $signedURI = Utils::sign($strURI);
        
        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        
        $v_output = Utils::validateOutput($responseStream);
        
        if ($v_output === '') {
            if ($saveFormat == '') {
                $strURI = Product::$baseProductUri . '/storage/file/' . $this->getFileName();
                $signedURI = Utils::Sign($strURI);
                $responseStream = Utils::processCommand($signedURI, "GET", "", "");
                
                $outputPath = AsposeApp::$outPutLocation . $this->getFileName();
                Utils::saveFile($responseStream, $outputFile);
            } else {
                $outputPath = AsposeApp::$outPutLocation . Utils::getFileName($this->getFileName()) . '.' . $saveFormat;
                Utils::saveFile($responseStream, $outputPath);
            }
            return $outputPath;
        } else {
            return $v_output;
        }
    }
public function autofitRows ( $ saveFormat = "" ) { $ strURI = Product :: $ baseProductUri . '/cells/' . $ this -> getFileName ( ) . '?isAutoFit=true' ; if ( $ saveFormat != '' ) $ strURI .= '&format=' . $ saveFormat ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output === '' ) { if ( $ saveFormat == '' ) { $ strURI = Product :: $ baseProductUri . '/storage/file/' . $ this -> getFileName ( ) ; $ signedURI = Utils :: Sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , "GET" , "" , "" ) ; $ outputPath = AsposeApp :: $ outPutLocation . $ this -> getFileName ( ) ; Utils :: saveFile ( $ responseStream , $ outputFile ) ; } else { $ outputPath = AsposeApp :: $ outPutLocation . Utils :: getFileName ( $ this -> getFileName ( ) ) . '.' . $ saveFormat ; Utils :: saveFile ( $ responseStream , $ outputPath ) ; } return $ outputPath ; } else { return $ v_output ; } }
Auto Fit Rows in Excel Workbooks

@param string $saveFormat Format for the output file.

@return string Returns file path.
Auto Fit Rows in Excel Workbooks