Re: FPDF and FPDI with CakePHP

2008-01-19 Thread ianh
Also see http://groups.google.com/group/cake-php/browse_thread/thread/24196c7482ad2015/57bf84dfab5c910a?lnk=gst&q=pdf+debug#57bf84dfab5c910a On Jan 18, 9:28 pm, Takuo SHIONO <[EMAIL PROTECTED]> wrote: > Hello Gianluca, > > In may case, we put FPDF into vendors directory. Then we generate > compo

Re: FPDF and FPDI with CakePHP

2008-01-18 Thread Takuo SHIONO
Hello Gianluca, In may case, we put FPDF into vendors directory. Then we generate component php file, pdf_generator.php. In this php file, we define two classes. The first one is PdfGeneratorComponent class which is component class. The other is MyFPDF class which extends FPDF class. The foll

Re: FPDF and FPDI with CakePHP

2008-01-17 Thread Gianluca Gentile
How-to integrate FPDF and FPDI in my component? With "vendors" var? Thanks, Gianluca On 15 Gen, 19:35, Takuo SHIONO <[EMAIL PROTECTED]> wrote: > Hello Gianluca, > > I am also using FPDF with cakePHP. > > I think the problem is that the program output the white spaces in the > layout template bef

Re: FPDF and FPDI with CakePHP

2008-01-15 Thread Takuo SHIONO
Hello Gianluca, I am also using FPDF with cakePHP. I think the problem is that the program output the white spaces in the layout template before FPDF outputs HTTP headers for pdf file. Please try: $this->layout = null; If this does not work, there is another solution. You do not need to use

Re: FPDF and FPDI with CakePHP

2008-01-15 Thread Samuel DeVore
I would look for trailing or leading spaces or returns in your helpers, views, components, models or other files. This is very often the culprit Sam D On Jan 15, 2008 9:58 AM, Gianluca Gentile <[EMAIL PROTECTED]> wrote: > > Hello, > I followed this how-to: > > http://bakery.cakephp.org/article

FPDF and FPDI with CakePHP

2008-01-15 Thread Gianluca Gentile
Hello, I followed this how-to: http://bakery.cakephp.org/articles/view/pdf-helper-using-fpdf and this post: http://groups.google.com/group/cake-php/browse_thread/thread/db72d5a02d700417/f04bb413117f6027?lnk=gst&q=fpdf#f04bb413117f6027 with my customization for work with FPDI. In vendors dire