Barryvdh\DomPDF\PDF::save PHP Method

save() public method

Save the PDF to a file
public save ( $filename ) : static
$filename
return static
    public function save($filename)
    {
        $this->files->put($filename, $this->output());
        return $this;
    }

Usage Example

 /**
  * Save the PDF to a file
  *
  * @param $filename
  * @return static 
  * @static 
  */
 public static function save($filename)
 {
     return \Barryvdh\DomPDF\PDF::save($filename);
 }