[quote]Fatal error: Call to undefined function output() in C:\phpdocx\classes\TransformDoc.inc on line 280[/quote]
[code] /**
* Convert DOCX to PDF, using dompdf. DOCX->XHTML->PDF
*
* @access public
*/
public function generatePDF()
{
$this->generateXHTML();
$this->cleanXHTML();
try {
$domPDF = new DOMPDF();
$domPDF->load_html($this->_xhtml);
$domPDF->render();
[b]$pdf = $domPDF>output();[/b]
file_put_contents(”trytosave.pdf”, $pdf);
}
catch (Exception $err) {
echo 'Unable to generate PDF file. ';
echo $err;
}
}[/code]
Line is 280 is marked with bold.