How to set a bottom margin in FPDF

后端 未结 2 1259
萌比男神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:35

    I just found the solution - the bottom margin is simply left out of predefinition because it is part of the page break calculation process. Therefore, setting a bottom margin in itself is not possible, but it can be done using

    SetAutoPageBreak(boolean auto, [float margin])
    

提交回复
热议问题