summaryrefslogtreecommitdiff
path: root/fpdf.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-09-10 15:30:35 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-09-10 15:30:35 -0400
commitf9941ced55be6fca307fec19bad2d81bd4fb7831 (patch)
treec6ac5232b8ff4d9d404abb526d964ecb616a390c /fpdf.go
parenta360bfb8ef7cbaacda300889a067b36ff94b944a (diff)
Transformation functionality adapted from Moritz Wagner and Andreas Würmser.
Diffstat (limited to 'fpdf.go')
-rw-r--r--fpdf.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index 50d1763..51dfad1 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -428,6 +428,8 @@ func (f *Fpdf) Close() {
if f.err == nil {
if f.clipNest > 0 {
f.err = fmt.Errorf("Clip procedure must be explicitly ended")
+ } else if f.transformNest > 0 {
+ f.err = fmt.Errorf("Transformation procedure must be explicitly ended")
}
}
if f.err != nil {
@@ -1148,7 +1150,7 @@ func (f *Fpdf) ClipEnd() {
f.clipNest--
f.out("Q")
} else {
- f.err = fmt.Errorf("Error attempting to end clip operation")
+ f.err = fmt.Errorf("Error attempting to end clip operation out of sequence")
}
}
}