From 5f8ef3772bf9215f5cd2bc82ab922497e27b58c4 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Mon, 9 Feb 2015 14:02:56 -0500 Subject: Note about cell margin's effect on GetX --- fpdf.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'fpdf.go') diff --git a/fpdf.go b/fpdf.go index 2f25e32..3f6f511 100644 --- a/fpdf.go +++ b/fpdf.go @@ -2261,11 +2261,20 @@ func (f *Fpdf) RegisterImage(fileStr, tp string) (info *ImageInfoType) { } // GetXY returns the abscissa and ordinate of the current position. +// +// Note: the value returned for the abscissa will be affected by the current +// cell margin. To account for this, you may need to either add the value +// returned by GetCellMargin() to it or call SetCellMargin(0) to remove the +// cell margin. func (f *Fpdf) GetXY() (float64, float64) { return f.x, f.y } // GetX returns the abscissa of the current position. +// +// Note: the value returned will be affected by the current cell margin. To +// account for this, you may need to either add the value returned by +// GetCellMargin() to it or call SetCellMargin(0) to remove the cell margin. func (f *Fpdf) GetX() float64 { return f.x } -- cgit v1.2.1-24-ge1ad