Pressbooks\Modules\Export\Prince\Pdf::isPdf PHP Méthode

isPdf() protected méthode

Verify if body is actual PDF
protected isPdf ( string $file ) : boolean
$file string
Résultat boolean
    protected function isPdf($file)
    {
        $mime = static::mimeType($file);
        return strpos($mime, 'application/pdf') !== false;
    }