From c43b939b059104760a2f4a01bc011d79782a1e6e Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Wed, 11 Sep 2013 07:20:21 -0400 Subject: Increase precision of curve and transform instructions --- fpdftrans.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdftrans.go') diff --git a/fpdftrans.go b/fpdftrans.go index 95b9ea1..86d9de8 100644 --- a/fpdftrans.go +++ b/fpdftrans.go @@ -20,7 +20,7 @@ type TransformMatrix struct { // finally a call to TransformEnd(). All transformation contexts must be // properly ended prior to outputting the document. // -// See tutorial 17 for a transformation examples. +// See tutorial 17 for transformation examples. func (f *Fpdf) TransformBegin() { f.transformNest++ f.out("q") @@ -162,7 +162,7 @@ func (f *Fpdf) TransformSkew(angleX, angleY, x, y float64) { // TransformRotate() and TransformMirrorVertical() instead. func (f *Fpdf) Transform(tm TransformMatrix) { if f.transformNest > 0 { - f.outf("%.3f %.3f %.3f %.3f %.3f %.3f cm", + f.outf("%.5f %.5f %.5f %.5f %.5f %.5f cm", tm.A, tm.B, tm.C, tm.D, tm.E, tm.F) } else if f.err == nil { f.err = fmt.Errorf("Transformation context is not active") -- cgit v1.2.1-24-ge1ad