src/BoomCMS/FileInfo/Drivers/Pdf.php
public function readMetadata(): array
    {
        try {
            $parser = new Parser();
            $pdf = $parser->parseFile($this->file->getPathname());

            return $pdf->getDetails();
        } catch (Exception $e) {
            return [];
        }
    }
public function readMetadata(): array
    {
        try {
            $parser = new Parser();
            $pdf = $parser->parseFile($this->file->getPathname());

            return $pdf->getDetails();
        } catch (Exception $e) {
            return [];
        }
    }
public function readMetadata ( ) : array { try { $ parser = new Parser ( ) ; $ pdf = $ parser -> parseFile ( $ this -> file -> getPathname ( ) ) ; return $ pdf -> getDetails ( ) ; } catch ( Exception $ e ) { return [ ] ; } }
Extracts metadata from a PDF.

@return array
Extracts metadata from a PDF .