问题描述
我最近开始研究FPDF,但我似乎不明白的是-为什么没有办法设定最低利润呢?有一些功能可以从顶部,左侧和右侧设置页边距,而不能从底部设置页边距.
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 the top, left and right, but not from the bottom.
我现在假设我误解了FPDF的工作原理和概念,但我对可能的结果一无所知.
I assume now that i misunderstand something basic and conceptual about how FPDF works yet i got no clue on what that could possibly be.
所以要减少它:
是否可以在FPDF中定义固定的底部边距?
Is it possible to define a fixed bottom margin in FPDF?
推荐答案
我刚刚找到了解决方案-底部边距被简单地排除在预定义之外,因为它是分页符计算过程的一部分.因此,无法自行设置下边距,但可以使用
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])
这篇关于如何在FPDF中设置底边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!