public function saveSlideAs($slideNumber, $outputPath, $saveFormat)
    {


        if ($outputPath == '')
            throw new Exception('Output path not specified');

        if ($saveFormat == '')
            throw new Exception('Save format not specified');

        if ($slideNumber == '')
            throw new Exception('Slide number not specified');


        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/slides/' . $slideNumber . '?format=' . $saveFormat;

        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $v_output = Utils::validateOutput($responseStream);

        if ($v_output === '') {
            $output = $outputPath . Utils::getFileName($this->getFileName()) . '_' . $slideNumber . '.' . $saveFormat;
            Utils::saveFile($responseStream, $output);
            return $output;
        } else
            return $v_output;
    }
public function saveSlideAs($slideNumber, $outputPath, $saveFormat)
    {


        if ($outputPath == '')
            throw new Exception('Output path not specified');

        if ($saveFormat == '')
            throw new Exception('Save format not specified');

        if ($slideNumber == '')
            throw new Exception('Slide number not specified');


        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/slides/' . $slideNumber . '?format=' . $saveFormat;

        $signedURI = Utils::sign($strURI);

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');

        $v_output = Utils::validateOutput($responseStream);

        if ($v_output === '') {
            $output = $outputPath . Utils::getFileName($this->getFileName()) . '_' . $slideNumber . '.' . $saveFormat;
            Utils::saveFile($responseStream, $output);
            return $output;
        } else
            return $v_output;
    }
public function saveSlideAs ( $ slideNumber , $ outputPath , $ saveFormat ) { if ( $ outputPath == '' ) throw new Exception ( 'Output path not specified' ) ; if ( $ saveFormat == '' ) throw new Exception ( 'Save format not specified' ) ; if ( $ slideNumber == '' ) throw new Exception ( 'Slide number not specified' ) ; $ strURI = Product :: $ baseProductUri . '/slides/' . $ this -> getFileName ( ) . '/slides/' . $ slideNumber . '?format=' . $ saveFormat ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output === '' ) { $ output = $ outputPath . Utils :: getFileName ( $ this -> getFileName ( ) ) . '_' . $ slideNumber . '.' . $ saveFormat ; Utils :: saveFile ( $ responseStream , $ output ) ; return $ output ; } else return $ v_output ; }
Saves a particular slide into various formats.

@param integer $slideNumber The slide number.
@param string $outputPath The output directory path.
@param string $saveFormat Return the presentation in the specified format.

@return string Returns the file path.
@throws Exception
Saves a particular slide into various formats .