public function getText()
    {
        $parameters = func_get_args();

        //set parameter values
        if (count($parameters) > 0) {
            $pageNumber = $parameters[0];
        }


        $strURI = Product::$baseProductUri . '/pdf/' . $this->getFileName() .
            ((isset($parameters[0])) ? '/pages/' . $pageNumber . '/TextItems' : '/TextItems');

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

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

        $json = json_decode($responseStream);

        $rawText = '';
        foreach ($json->TextItems->List as $textItem) {
            $rawText .= $textItem->Text;
        }
        return $rawText;
    }
public function getText()
    {
        $parameters = func_get_args();

        //set parameter values
        if (count($parameters) > 0) {
            $pageNumber = $parameters[0];
        }


        $strURI = Product::$baseProductUri . '/pdf/' . $this->getFileName() .
            ((isset($parameters[0])) ? '/pages/' . $pageNumber . '/TextItems' : '/TextItems');

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

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

        $json = json_decode($responseStream);

        $rawText = '';
        foreach ($json->TextItems->List as $textItem) {
            $rawText .= $textItem->Text;
        }
        return $rawText;
    }
public function getText ( ) { $ parameters = func_get_args ( ) ; //set parameter values if ( count ( $ parameters ) > 0 ) { $ pageNumber = $ parameters [ 0 ] ; } $ strURI = Product :: $ baseProductUri . '/pdf/' . $ this -> getFileName ( ) . ( ( isset ( $ parameters [ 0 ] ) ) ? '/pages/' . $ pageNumber . '/TextItems' : '/TextItems' ) ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; $ rawText = '' ; foreach ( $ json -> TextItems -> List as $ textItem ) { $ rawText .= $ textItem -> Text ; } return $ rawText ; }
Gets raw text from the whole PDF file or a specific page.

@param integer @pageNumber Number of the page.

@return string
@throws Exception
Gets raw text from the whole PDF file or a specific page .