From c4bf431472e0d2bac050f5a2c5ade09a50d55f2c Mon Sep 17 00:00:00 2001 From: Kurt Date: Mon, 19 Mar 2018 12:55:37 -0400 Subject: Add charting facility --- fpdf.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index b8875a5..652469c 100644 --- a/fpdf.go +++ b/fpdf.go @@ -400,6 +400,15 @@ func (f *Fpdf) SetRightMargin(margin float64) { f.rMargin = margin } +// GetAutoPageBreak returns true if automatic pages breaks are enabled, false +// otherwise. This is followed by the triggering limit from the bottom of the +// page. This value applies only if automatic page breaks are enabled. +func (f *Fpdf) GetAutoPageBreak() (auto bool, margin float64) { + auto = f.autoPageBreak + margin = f.bMargin + return +} + // SetAutoPageBreak enables or disables the automatic page breaking mode. When // enabling, the second parameter is the distance from the bottom of the page // that defines the triggering limit. By default, the mode is on and the margin -- cgit v1.2.1-24-ge1ad