Barryvdh\DomPDF\PDF::output PHP Method

output() public method

Output the PDF as a string.
public output ( ) : string
return string The rendered PDF as string
    public function output()
    {
        if (!$this->rendered) {
            $this->render();
        }
        return $this->dompdf->output();
    }

Usage Example

 /**
  * Output the PDF as a string.
  *
  * @return string The rendered PDF as string
  * @static 
  */
 public static function output()
 {
     return \Barryvdh\DomPDF\PDF::output();
 }