public function getPageSetup($sectionid = '')
    {
        if ($sectionid == '')
            throw new Exception('No Section Id specified');

        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/sections/'.$sectionid.'/pageSetup';
        $signedURI = Utils::sign($strURI);

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

        $json = json_decode($responseStream);

        if ($json->Code == 200) {
            return $json->PageSetup;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
public function getPageSetup($sectionid = '')
    {
        if ($sectionid == '')
            throw new Exception('No Section Id specified');

        $strURI = Product::$baseProductUri . '/words/' . $this->getFileName() . '/sections/'.$sectionid.'/pageSetup';
        $signedURI = Utils::sign($strURI);

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

        $json = json_decode($responseStream);

        if ($json->Code == 200) {
            return $json->PageSetup;
        }
        
        AsposeApp::getLogger()->warning('Error occured, http 200 code was not found.', array(
            'json-code' => $json->Code,
        ));
        return false;
    }
public function getPageSetup ( $ sectionid = '' ) { if ( $ sectionid == '' ) throw new Exception ( 'No Section Id specified' ) ; $ strURI = Product :: $ baseProductUri . '/words/' . $ this -> getFileName ( ) . '/sections/' . $ sectionid . '/pageSetup' ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' ) ; $ json = json_decode ( $ responseStream ) ; if ( $ json -> Code == 200 ) { return $ json -> PageSetup ; } AsposeApp :: getLogger ( ) -> warning ( 'Error occured, http 200 code was not found.' , array ( 'json-code' => $ json -> Code , ) ) ; return false ; }
get page setup information from any section of a Word document.

$param string $filename.
$param string $sectionid.

@return Object of page setup information.
@throws Exception
get page setup information from any section of a Word document .