Barryvdh\DomPDF\PDF::loadFile PHP Method

loadFile() public method

Load a HTML file
public loadFile ( string $file ) : static
$file string
return static
    public function loadFile($file)
    {
        $this->dompdf->loadHtmlFile($file);
        $this->rendered = false;
        return $this;
    }

Usage Example

Exemplo n.º 1
1
 /**
  * Load a HTML file
  *
  * @param string $file
  * @return static 
  * @static 
  */
 public static function loadFile($file)
 {
     return \Barryvdh\DomPDF\PDF::loadFile($file);
 }