SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2011
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TCPDF and forcing a new page

    I have a set of code which produces a pdf successfully. It spreads over about 3 pages. Near the end there is a Schedule and I want this to start on a new page.

    What code do I have to put in to force this to start on a new A4 page?

    Many thanks.

  2. #2
    SitePoint Wizard bronze trophy Immerse's Avatar
    Join Date
    Mar 2006
    Location
    Netherlands
    Posts
    1,661
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    $tcpdf->AddPage() should do the trick.

  3. #3
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile How to add 3rd page after second page

    Quote Originally Posted by Immerse View Post
    $tcpdf->AddPage() should do the trick.
    Hi pals , My required thing is add a 3rd page after second . When I add new page it come as 2nd page . please advise.

    Thanks,
    Anes

  4. #4
    SitePoint Member
    Join Date
    Mar 2013
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi friends,
    I found a method for same , as shown below:
    $this->AddPage();
    $this->setPage(2);
    $this->writeHTMLCell(100, '11', '', '', $insurance, 1, 1, 1, true, 'J', true);

    It works gr8 .
    Thanks ,
    Anes


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
  •