From 3232a681d80b157fba9e1855df70b4292c3c71dc Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Tue, 10 Sep 2013 21:05:20 -0400 Subject: Another catch by Bruno: scaling typo in TransformTranslate. --- fpdftrans.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdftrans.go') diff --git a/fpdftrans.go b/fpdftrans.go index b11a853..95b9ea1 100644 --- a/fpdftrans.go +++ b/fpdftrans.go @@ -102,7 +102,7 @@ func (f *Fpdf) TransformTranslateY(ty float64) { // Move the following text, drawings and images horizontally and vertically by // the amounts specified by tx and ty. func (f *Fpdf) TransformTranslate(tx, ty float64) { - f.Transform(TransformMatrix{1, 0, 0, 1, tx - f.k, -ty * f.k}) + f.Transform(TransformMatrix{1, 0, 0, 1, tx * f.k, -ty * f.k}) } // Rotate the following text, drawings and images around the center point (x, -- cgit v1.2.1-24-ge1ad