title: how to save DOMPDF generated content to file?
body: <p>I am using Dompdf to create PDF file but I don't know why it doesn't save the created PDF to server.</p>
  
  <p>Any ideas?</p>
  
  <pre><code>require_once("./pdf/dompdf_config.inc.php");
      $html =
        '&lt;html&gt;&lt;body&gt;'.
        '&lt;p&gt;Put your html here, or generate it with your favourite '.
        'templating system.&lt;/p&gt;'.
        '&lt;/body&gt;&lt;/html&gt;';
  
      $dompdf = new DOMPDF();
      $dompdf-&gt;load_html($html);
      $dompdf-&gt;render();
      file_put_contents('Brochure.pdf', $dompdf-&gt;output());
  </code></pre>