SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2000
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    fpdf -how to force page break?

    A quick question for those familiar with fpdf

    I'm making a simple pdf mainly constructed by tutorial 1 & 2, but I don't know how to force a page break. I'm pulling the info from a database and each stack of info needs a page of it's own and I don't know how much space the info will take up each time, so I can't just make an empty cell that will take up the rest of the space so the automatic page break kicks in

    I've looked at SetAutoPageBreak, but it seems to only be used for determing when the automatic page break sets in.

    How can I force a page break?

  2. #2
    SitePoint Member
    Join Date
    Mar 2006
    Location
    Jackson, MI
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Once you call Output(), doesn't that cease page generation? It's been a while since I used fpdf for a project though...

  3. #3
    SitePoint Addict
    Join Date
    Apr 2004
    Location
    Regina, SK
    Posts
    318
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its been a while, but I believe what you need to do is just simply:

    $pdf->AddPage();
    Reduce or eliminate spam on your sites without CAPTHCAs
    - maybe it is possible: http://formantispam.thekerrs.ca/

  4. #4
    SitePoint Evangelist
    Join Date
    Oct 2000
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, works perfectly


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •