summaryrefslogtreecommitdiff
path: root/fpdftrans.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-09-11 07:20:21 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-09-11 07:20:21 -0400
commitc43b939b059104760a2f4a01bc011d79782a1e6e (patch)
treeb9762c8494a36c8f1b3b50ef3e24b825f524c00e /fpdftrans.go
parent3232a681d80b157fba9e1855df70b4292c3c71dc (diff)
Increase precision of curve and transform instructions
Diffstat (limited to 'fpdftrans.go')
-rw-r--r--fpdftrans.go4
1 files changed, 2 insertions, 2 deletions
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")