I've created a new pdf layout:
pdf.ctp:

App::import('Vendor','tcpdf/tcpdf');
App::import('Vendor','fpdi/fpdi');
$this->pdf = new FPDI();
settings etc...

return as string:
echo $this->pdf->Output(null, 'S');

or other output types:
$this->pdf->Output($init_data['settings']['filename'], $init_data
['settings']['out_type']);
if($init_data['settings']['out_type'] != 'F'){//F - save pdf local to
file 'filename'
    ob_flush();//!!!
}

On May 12, 9:31 pm, ryan <[email protected]> wrote:
> I am pretty good at getting around in cake, I have been using TCPDF to
> handle creating PDFs for my app. I am currently trying to extend TCPD
> with FPDI and FPDI_TPL.
>
> http://bakery.cakephp.org/articles/view/creating-pdf-files-with-cakep...
>
> TCPDF :http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf
> FPDI :http://www.setasign.de/support/manuals/fpdi/
> FPDI_TPL :http://www.setasign.de/support/manuals/fpdf-tpl/introduction/
>
> Does anyone know how I would go about doing this?
>
> Thank you.

--~--~---------~--~----~------------~-------~--~----~
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