Margins¶
By default a FPDF
document has a 2cm margin at the bottom, and 1cm margin on the other sides.
Those margins control the initial current X & Y position to render elements on a page, and also define the height limit that triggers automatic page breaks when they are enabled.
Margins can be completely removed:
pdf.set_margin(0)
Several methods can be used to set margins: