How to set a bottom margin in FPDF

后端 未结 2 1266
萌比男神i
萌比男神i 2021-02-05 03:29

I\'ve taken a dive into FPDF lately and something that i don\'t seem to understand is - why is there no way to set a bottom margin? There are functions for setting margins from

2条回答
  •  名媛妹妹
    2021-02-05 04:27

    +1 to SquareCat's answer. To expand on this a little more, if you're having trouble with text going a little bit over the auto page break, just setting SetAutoPageBreak(false) will probably be sufficient to solve the problem. For me personally this was causing trouble when creating mailing labels.

    $fpdf->SetAutoPageBreak(false);
    

    Just make sure that you're manually breaking pages where appropriate for your PDF.

    $fpdf->AddPage();
    

提交回复
热议问题