summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@gmail.com>2015-10-13 07:42:35 -0400
committerKurt Jung <kurt.w.jung@gmail.com>2015-10-13 07:42:35 -0400
commit89173160f564ddc0a63efaadf3ae78b0dc9377d2 (patch)
tree74e8c7e6b1d78d834ce6da51e100670f8aa872a9
parent42df0bc5e661afaa5227ccd20ee852801f3bc272 (diff)
Use %f rather than %F since earlier versions of Go did not support the latter. Thanks, Marcus.
-rw-r--r--template.go6
1 files changed, 3 insertions, 3 deletions
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