summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2018-03-19 12:55:37 -0400
committerKurt <kurt.w.jung@gmail.com>2018-03-19 12:55:37 -0400
commitc4bf431472e0d2bac050f5a2c5ade09a50d55f2c (patch)
tree9e19b2320b369021a2df61586c74e3a008188942 /fpdf.go
parent55d415070ffee71e28bcef384221384bd2d582ca (diff)
Add charting facility
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go9
1 files changed, 9 insertions, 0 deletions
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