Pressbooks\Modules\Export\Prince\Pdf::isPdf PHP Method

isPdf() protected method

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