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

        //set parameter values
        if (count($parameters) == 1) {
            $pageNumber = $parameters[0];
        } else if (count($parameters) == 2) {
            $pageNumber = $parameters[0];
            $fragmentNumber = $parameters[1];
        }


        $strURI = Product::$baseProductUri . '/pdf/' . $this->getFileName();
        if (isset($parameters[0])) {
            $strURI .= '/pages/' . $pageNumber;
            if (isset($parameters[1])) {
                $strURI .= '/fragments/' . $fragmentNumber;
            }
        }
        $strURI .= '/TextItems';
        $signedURI = Utils::sign($strURI);

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

        $json = json_decode($responseStream);

        return $json->TextItems->List;
    }
public function getTextItems()
    {
        $parameters = func_get_args();

        //set parameter values
        if (count($parameters) == 1) {
            $pageNumber = $parameters[0];
        } else if (count($parameters) == 2) {
            $pageNumber = $parameters[0];
            $fragmentNumber = $parameters[1];
        }


        $strURI = Product::$baseProductUri . '/pdf/' . $this->getFileName();
        if (isset($parameters[0])) {
            $strURI .= '/pages/' . $pageNumber;
            if (isset($parameters[1])) {
                $strURI .= '/fragments/' . $fragmentNumber;
            }
        }
        $strURI .= '/TextItems';
        $signedURI = Utils::sign($strURI);

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

        $json = json_decode($responseStream);

        return $json->TextItems->List;
    }
public function getTextItems ( ) { $ parameters = func_get_args ( ) ; //set parameter values if ( count ( $ parameters ) == 1 ) { $ pageNumber = $ parameters [ 0 ] ; } else if ( count ( $ parameters ) == 2 ) { $ pageNumber = $ parameters [ 0 ] ; $ fragmentNumber = $ parameters [ 1 ] ; } $ strURI = Product :: $ baseProductUri . '/pdf/' . $ this -> getFileName ( ) ; if ( isset ( $ parameters [ 0 ] ) ) { $ strURI .= '/pages/' . $ pageNumber ; if ( isset ( $ parameters [ 1 ] ) ) { $ strURI .= '/fragments/' . $ fragmentNumber ; } } $ strURI .= '/TextItems' ; $ signedURI = Utils :: sign ( $ strURI ) ; $ responseStream = Utils :: processCommand ( $ signedURI , 'GET' , '' , '' ) ; $ json = json_decode ( $ responseStream ) ; return $ json -> TextItems -> List ; }
Gets text items from the whole PDF file or a specific page .

@param integer $pageNumber Number of the page.
@param integer $fragmentNumber Fragment number.

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