public function getPdfInfo($file)
    {
        if ($this->fileInfo->getIsFile()
            && $this->fileInfo->getExtension() == 'pdf'
            && $this->isAppArraySet
        ) {
            $fileEscaped = CommandUtility::escapeShellArgument($file);
            $cmd = "{$this->app['pdfinfo']} $fileEscaped";
            CommandUtility::exec($cmd, $pdfInfoArray);
            $pdfInfo = $this->splitPdfInfo($pdfInfoArray);

            return $pdfInfo;
        }

        return false;
    }
public function getPdfInfo($file)
    {
        if ($this->fileInfo->getIsFile()
            && $this->fileInfo->getExtension() == 'pdf'
            && $this->isAppArraySet
        ) {
            $fileEscaped = CommandUtility::escapeShellArgument($file);
            $cmd = "{$this->app['pdfinfo']} $fileEscaped";
            CommandUtility::exec($cmd, $pdfInfoArray);
            $pdfInfo = $this->splitPdfInfo($pdfInfoArray);

            return $pdfInfo;
        }

        return false;
    }
public function getPdfInfo ( $ file ) { if ( $ this -> fileInfo -> getIsFile ( ) && $ this -> fileInfo -> getExtension ( ) == 'pdf' && $ this -> isAppArraySet ) { $ fileEscaped = CommandUtility :: escapeShellArgument ( $ file ) ; $ cmd = "{$this->app['pdfinfo']} $fileEscaped" ; CommandUtility :: exec ( $ cmd , $ pdfInfoArray ) ; $ pdfInfo = $ this -> splitPdfInfo ( $ pdfInfoArray ) ; return $ pdfInfo ; } return false ; }
execute commandline tool pdfinfo to extract pdf informations from file
@param string $file
@return array The pdf informations as array
execute commandline tool pdfinfo to extract pdf informations from file