Hello,

I am using the TCPDF method published in the Bakery to generate pdfs.
The pdf generated has this error Too Many Operands.

Also when the file was opened initially, the content is visible but
with error, part of the content on page 3 is rendered on page 2. But
when I start to scroll to the next page, the content disappears,
leaving page 1 and 2 blank, page 3 is the last page.

Have any one encountered such errors with TCPDF? Did you managed to
solve it?
My Codes:

                App::import('Vendor','xtcpdf');
                $tcpdf = new XTCPDF();
                $tcpdf->SetFont('dejavusans', '', 8);
                $tcpdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);

                if(!is_array($content)) {
                        $content = array($content);
                }

                $tcpdf->AddPage();
                $tcpdf->WriteHTML(implode('', $content));
                switch($dest) {
                        case 'F':
                                if(!is_dir($pdf_dir)) {
                                        mkdir($pdf_dir);
                                }
                                $pdf_name = $pdf_dir.$pdf_name;
                                break;
                }
                $tcpdf->lastPage();
                return $tcpdf->Output($pdf_name, $dest);

Thanks,
Ai Leen
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to