diff options
author | Kurt <kurt.w.jung@gmail.com> | 2018-03-19 12:55:37 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2018-03-19 12:55:37 -0400 |
commit | c4bf431472e0d2bac050f5a2c5ade09a50d55f2c (patch) | |
tree | 9e19b2320b369021a2df61586c74e3a008188942 /fpdf.go | |
parent | 55d415070ffee71e28bcef384221384bd2d582ca (diff) |
Add charting facility
Diffstat (limited to 'fpdf.go')
-rw-r--r-- | fpdf.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |