以下のコードを実行した後、ブラウザの PDF 出力が印刷されず、PDF のダウンロードも表示されません。空白のページを表示しています。
require_once 'Classes/PHPExcel/IOFactory.php';
$objPHPExcel = new PHPExcel();
$objPHPExcel->getActiveSheet()->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->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->save('php://output');
まだコードに小さな間違いがあります。ブラウザで PDF を表示している間はダウンロードできません。添付のスクリーンショットを見つけてください。
最後に、問題を修正した上記のスニペット