public function splitPdfInfo($pdfInfoArray)
    {
        $res = array();
        if (is_array($pdfInfoArray)) {
            foreach ($pdfInfoArray as $line) {
                $parts = explode(':', $line, 2);
                if (count($parts) > 1 && trim($parts[0])) {
                    $res[strtolower(trim($parts[0]))] = trim($parts[1]);
                }
            }
        }
        return $res;
    }
public function splitPdfInfo($pdfInfoArray)
    {
        $res = array();
        if (is_array($pdfInfoArray)) {
            foreach ($pdfInfoArray as $line) {
                $parts = explode(':', $line, 2);
                if (count($parts) > 1 && trim($parts[0])) {
                    $res[strtolower(trim($parts[0]))] = trim($parts[1]);
                }
            }
        }
        return $res;
    }
public function splitPdfInfo ( $ pdfInfoArray ) { $ res = array ( ) ; if ( is_array ( $ pdfInfoArray ) ) { foreach ( $ pdfInfoArray as $ line ) { $ parts = explode ( ':' , $ line , 2 ) ; if ( count ( $ parts ) > 1 && trim ( $ parts [ 0 ] ) ) { $ res [ strtolower ( trim ( $ parts [ 0 ] ) ) ] = trim ( $ parts [ 1 ] ) ; } } } return $ res ; }
Analysing PDF info into a useable format.
@param array $pdfInfoArray Data of PDF content, coming from the pdfinfo tool
@return array The pdf informations as array in a useable format
Analysing PDF info into a useable format .