title: PHP TCPDF ERROR: Unable to create output file the folder exist and has the right permissions
body: <p>I'm trying to save a pdf file using the html2pdf PHP class.
  The code is this:</p>
  
  <pre><code>$this-&gt;html2pdf-&gt;Output('directory/file_name.'.pdf', 'F');
  </code></pre>
  
  <p>But I have alway this error   TCPDF ERROR: Unable to create output file</p>
  
  <p>the folder 'folder' (the name is an example, obviusly), exist and has the right permissions!</p>
  
  <p>I tryed to omit the folder name, but this error appear anyway...</p>
  
  <p>Anyone can help me?</p>