I have fixed this issue by commenting the constructor and destructor in the file lib/Zend/Pdf/FileParserDataSource.php .
abstract public function __construct();
abstract public function __destruct();
I have fixed this issue by commenting the constructor and destructor in the file lib/Zend/Pdf/FileParserDataSource.php .
abstract public function __construct();
abstract public function __destruct();
http://pdfcrowd.com/save-to-pdf/
<?php $file = 'testFile.pdf'; // file to be downloaded header("Expires: 0"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header("Content-type: application/pdf"); header('Content-length: '.filesize($file)); header('Content-disposition: attachment; filename='.basename($file)); readfile($file); exit; ?>