public function splitPresentation($from = '', $to = '', $destination = '', $format = '', $storageName = '', $folder = '')
    {
        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/split?';
        if ($folder != '') {
            $strURI .= '&folder=' . $folder;
        }

        if ($storageName != '') {
            $strURI .= '&storage=' . $storageName;
        }

        if ($from != '') {
            $strURI .= '&from=' . $from;
        }

        if ($to != '') {
            $strURI .= '&to=' . $to;
        }

        if ($destination != '') {
            $strURI .= '&destFolder=' . $destination;
        }

        if ($format != '') {
            $strURI .= '&format=' . $format;
        }

        $strURI = rtrim($strURI, '?');
        $signedURI = Utils::sign($strURI);

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

        $json = json_decode($responseStream);

        if ($json->Code == 200) {
            foreach ($json->SplitResult->Slides as $splitPage) {
                $splitFileName = basename($splitPage->Href);

                //build URI to download split slides
                $strURI = Product::$baseProductUri . '/storage/file/' . $splitFileName;
                //sign URI
                $signedURI = Utils::Sign($strURI);
                $responseStream = Utils::processCommand($signedURI, "GET", "", "");
                //save split slides
                $outputFile = AsposeApp::$outPutLocation . $splitFileName;
                Utils::saveFile($responseStream, $outputFile);
            }
        } else
            return false;
    }
public function splitPresentation($from = '', $to = '', $destination = '', $format = '', $storageName = '', $folder = '')
    {
        $strURI = Product::$baseProductUri . '/slides/' . $this->getFileName() . '/split?';
        if ($folder != '') {
            $strURI .= '&folder=' . $folder;
        }

        if ($storageName != '') {
            $strURI .= '&storage=' . $storageName;
        }

        if ($from != '') {
            $strURI .= '&from=' . $from;
        }

        if ($to != '') {
            $strURI .= '&to=' . $to;
        }

        if ($destination != '') {
            $strURI .= '&destFolder=' . $destination;
        }

        if ($format != '') {
            $strURI .= '&format=' . $format;
        }

        $strURI = rtrim($strURI, '?');
        $signedURI = Utils::sign($strURI);

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

        $json = json_decode($responseStream);

        if ($json->Code == 200) {
            foreach ($json->SplitResult->Slides as $splitPage) {
                $splitFileName = basename($splitPage->Href);

                //build URI to download split slides
                $strURI = Product::$baseProductUri . '/storage/file/' . $splitFileName;
                //sign URI
                $signedURI = Utils::Sign($strURI);
                $responseStream = Utils::processCommand($signedURI, "GET", "", "");
                //save split slides
                $outputFile = AsposeApp::$outPutLocation . $splitFileName;
                Utils::saveFile($responseStream, $outputFile);
            }
        } else
            return false;
    }
public function splitPresentation ( $ from = '' , $ to = '' , $ destination = '' , $ format = '' , $ storageName = '' , $ folder = '' ) { $ strURI = Product :: $ baseProductUri . '/slides/' . $ this -> getFileName ( ) . '/split?' ; if ( $ folder != '' ) { $ strURI .= '&folder=' . $ folder ; } if ( $ storageName != '' ) { $ strURI .= '&storage=' . $ storageName ; } if ( $ from != '' ) { $ strURI .= '&from=' . $ from ; } if ( $ to != '' ) { $ strURI .= '&to=' . $ to ; } if ( $ destination != '' ) { $ strURI .= '&destFolder=' . $ destination ; } if ( $ format != '' ) { $ strURI .= '&format=' . $ format ; } $ strURI = rtrim ( $ strURI , '?' ) ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'POST' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) { foreach ( $ json -> SplitResult -> Slides as $ splitPage ) { $ splitFileName = basename ( $ splitPage -> Href ) ; //build URI to download split slides $ strURI = Product :: $ baseProductUri . '/storage/file/' . $ splitFileName ; //sign URI $ signedURI = Utils :: Sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , "GET" , "" , "" ) ; //save split slides $ outputFile = AsposeApp :: $ outPutLocation . $ splitFileName ; Utils :: saveFile ( $ responseStream , $ outputFile ) ; } } else return false ; }
Split presentation.

@param integer $from The slide number.
@param integer $to The slide number.
@param string $destination The desitination folder name.
@param string $format Return the presentation in the specified format.
@param string $storageName The presenatation storage name.
@param string $folder The presentation folder name.

@return string|boolean
@throws Exception
Split presentation .