From 89173160f564ddc0a63efaadf3ae78b0dc9377d2 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Tue, 13 Oct 2015 07:42:35 -0400 Subject: Use %f rather than %F since earlier versions of Go did not support the latter. Thanks, Marcus. --- template.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'template.go') diff --git a/template.go b/template.go index 17354fa..c9a33d5 100644 --- a/template.go +++ b/template.go @@ -79,7 +79,7 @@ func (f *Fpdf) UseTemplateScaled(t Template, corner PointType, size SizeType) { tx := corner.X * f.k ty := (f.curPageSize.Ht - corner.Y - size.Ht) * f.k - f.outf("q %.4F 0 0 %.4F %.4F %.4F cm", scaleX, scaleY, tx, ty) // Translate + f.outf("q %.4f 0 0 %.4f %.4f %.4f cm", scaleX, scaleY, tx, ty) // Translate f.outf("/TPL%d Do Q", t.ID()) } @@ -126,9 +126,9 @@ func (f *Fpdf) putTemplates() { f.outf("<<%s/Type /XObject", filter) f.out("/Subtype /Form") f.out("/Formtype 1") - f.outf("/BBox [%.2F %.2F %.2F %.2F]", corner.X*f.k, corner.Y*f.k, (corner.X+size.Wd)*f.k, (corner.Y+size.Ht)*f.k) + f.outf("/BBox [%.2f %.2f %.2f %.2f]", corner.X*f.k, corner.Y*f.k, (corner.X+size.Wd)*f.k, (corner.Y+size.Ht)*f.k) if corner.X != 0 || corner.Y != 0 { - f.outf("/Matrix [1 0 0 1 %.5F %.5F]", -corner.X*f.k*2, corner.Y*f.k*2) + f.outf("/Matrix [1 0 0 1 %.5f %.5f]", -corner.X*f.k*2, corner.Y*f.k*2) } // Template's resource dictionary -- cgit v1.2.1-24-ge1ad