//obsah PDF
echo "
".$this->clanky['title']."
";
$text = $this->clanky['content'];
//BBcode
$bbcode = Zend_Markup::factory('bbcode', 'Html');
$bbText = $bbcode->render($text);
$bbText = str_replace("
", "
", $bbText);
echo $bbText;
//die();
//koniec obsah pdf
$content = ob_get_clean();
// convert in PDF
require_once('html2pdf/html2pdf.class.php');
try
{
$html2pdf = new HTML2PDF('P', 'A4', 'cs', true, 'UTF-8');
$html2pdf->pdf->SetDisplayMode('fullpage');
$html2pdf->writeHTML($content,false);
$html2pdf->Output('MCP-Vyrocni-spravaa.pdf');
}
catch(HTML2PDF_exception $e) {
echo $e;
exit;
}