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

validate() public method

Check the sanity of $this->outputPath
public validate ( ) : boolean
return boolean
    function validate()
    {
        // Is this a PDF?
        if (!$this->isPdf($this->outputPath)) {
            $this->logError(file_get_contents($this->logfile));
            return false;
        }
        return true;
    }