public function convertToImagebySize($slideNumber, $imageFormat, $width, $height)
    {


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

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

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        $v_output = Utils::validateOutput($responseStream);
        if ($v_output == '') {
            $outputPath = AsposeApp::$outPutLocation . 'output.' . $imageFormat;
            Utils::saveFile($responseStream, $outputPath);
            return $outputPath;
        } else {
            return $v_output;
        }
    }
public function convertToImagebySize($slideNumber, $imageFormat, $width, $height)
    {


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

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

        $responseStream = Utils::processCommand($signedURI, 'GET', '', '');
        $v_output = Utils::validateOutput($responseStream);
        if ($v_output == '') {
            $outputPath = AsposeApp::$outPutLocation . 'output.' . $imageFormat;
            Utils::saveFile($responseStream, $outputPath);
            return $outputPath;
        } else {
            return $v_output;
        }
    }
public function convertToImagebySize ( $ slideNumber , $ imageFormat , $ width , $ height ) { $ strURI = Product :: $ baseProductUri . '/slides/' . $ this -> getFileName ( ) . '/slides/' . $ slideNumber . '?format=' . $ imageFormat . '&width=' . $ width . '&height=' . $ height ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ v_output = Utils :: validateOutput ( $ responseStream ) ; if ( $ v_output == '' ) { $ outputPath = AsposeApp :: $ outPutLocation . 'output.' . $ imageFormat ; Utils :: saveFile ( $ responseStream , $ outputPath ) ; return $ outputPath ; } else { return $ v_output ; } }
Convert a particular slide into various formats with specified width and height.

@param integer $slideNumber The slide number.
@param string $imageFormat The image format.
@param integer $width The width of image.
@param integer $height The height of image.

@return string Returns the file path.
@throws Exception
Convert a particular slide into various formats with specified width and height .