title: TCPDF is not downloading
body: <p>I use TCPDF for generate some PDF files and save it on PC. But it's save on server where is my website folder.<br>
  I need to save files to PC. when i work on local server (OpenServer), its works ok.
  The path is set in $_POST, becouse i use AJAX for generete pdf
  How to fix it?</p>
  
  <p>Code: </p>
  
  <pre><code>require_once('tcpdf/tcpdf.php');
  
  
  $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
  
  
  $pdf-&gt;SetCreator('God');
  $pdf-&gt;SetAuthor('God');
  $pdf-&gt;SetTitle('Contract');
  $pdf-&gt;SetSubject('Contract');
  
  $pdf-&gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
  
  
  $pdf-&gt;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
  
  $pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
  
  
  $pdf-&gt;setImageScale(PDF_IMAGE_SCALE_RATIO);
  
  // set some language-dependent strings (optional)
  if (@file_exists(dirname(__FILE__).'/lang/eng.php')) {
      require_once(dirname(__FILE__).'/lang/eng.php');
      $pdf-&gt;setLanguageArray($l);
  }
  
  $pdf-&gt;setFontSubsetting(true);
  
  $pdf-&gt;SetFont('dejavusans', '', 14, '', true);
  
  $pdf-&gt;AddPage();
  
  $pdf-&gt;setTextShadow(array('enabled'=&gt;true, 'depth_w'=&gt;0.2, 'depth_h'=&gt;0.2, 'color'=&gt;array(196,196,196), 'opacity'=&gt;1, 'blend_mode'=&gt;'Normal'));
  
   ob_start();
          include "page1.php";
          $content = ob_get_clean();
  $html = $content;
  
  $pdf-&gt;writeHTML($html, true, false, true, false, '');
  $pdf-&gt;AddPage();
  
   ob_start();
          include "page2.php";
          $content = ob_get_clean();
  $html = $content;
  
  $pdf-&gt;writeHTML($html, true, false, true, false, '');
  $pdf-&gt;AddPage();
  
   ob_start();
          include "page3.php";
          $content = ob_get_clean();
  $html = $content;
  
  
  $pdf-&gt;writeHTML($html, true, false, true, false, '');
  $pdf-&gt;AddPage();
  
  $dirname = $_POST['dirname'];
  $path = $_POST['path'] . $dirname . '\ ';
  mkdir($path, 0700);
  
  $filename = $_POST['filename'] . '.pdf';
  
  $pdf-&gt;Output($path . $filename, 'F');
  </code></pre>