Tuesday, January 3, 2012

Re: Having PHP generate a PDF

@roundrightfarm
I dont think such a helper is part of the core, though :)


On 3 Jan., 17:25, "Yves S. Garret" <yoursurrogate...@gmail.com> wrote:
> That sounds interesting, but will it work with my requirement of having the
> header and the title get copied over to the next page with the table?
>
> On Tue, Jan 3, 2012 at 11:22 AM, roundrightfarm <roundrightf...@gmail.com>wrote:
>
>
>
>
>
>
>
> > I'm new to ckaephp so take my advice with a grain of salt... but, it
> > looks like your trying to generate a spreadsheet type document.  Cake
> > has a csv helper to aid in this
>
> > add var $helpers = array('Csv'); to your controller
>
> > then you can
>
> > $csv->addRow();
> > $csv->render();
>
> > On Jan 3, 7:45 am, "Yves S. Garret" <yoursurrogate...@gmail.com>
> > wrote:
> > > Here is my problem. I would like to have PHP generate a PDF 8.5" x 11".
> > > This is the rough format of the PDF:
>
> > >http://bin.cakephp.org/view/2006656317
>
> > > But here is the kicker, say that those columns that hold data are much
> > > longer, say they span 2 pages. On the 2nd page, I would like to repeat
> > the
> > > Header, Title 1, Title 2 and Title 3. Can this be done dynamically and
> > > programmatically? Does anyone have an example or a source that
> > demonstrates
> > > this?
>
> > > Sample code would be very welcome :-) . A point in the right direction
> > > would also be very appreciated.
>
> > > This example is not CakePHP specific, but I would like some input on how
> > to
> > > do this.  Any past experience that you would recommend?  Can -- what I
> > > described -- be done in CakePHP?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments:

Post a Comment