title: PHPExcel PDF Writer not working
body: <p><img src="https://i.stack.imgur.com/JMADs.png" alt="enter image description here">After ran the below code, i dont see any PDF Downloading as well in Browser PDF output not printed. Displaying blank page.</p>
  
  <pre><code>    require_once 'Classes/PHPExcel/IOFactory.php';
  $objPHPExcel = new PHPExcel();
  $objPHPExcel-&gt;getActiveSheet()-&gt;setCellValue('c9','40');
  
  $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'PDF');
  //You need to include and print to PDF the entire worksheets contained in the workbook
  $objWriter-&gt;writeAllSheets();
  
  //You need to assign a filename to the PDF file (write.pdf for example)
  header('Content-type:Application/pdf'); 
  header('Content-Disposition: attachment;filename="export.pdf"');
  $objWriter-&gt;save('php://output');
  </code></pre>
  
  <p>Still there is a small mistake on the code. unable to download while viewing the PDF in browser. please find the attached screenshot.</p>
  
  <p>Finally the above snippet which fixed the problem</p>