diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2013-09-10 15:30:35 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2013-09-10 15:30:35 -0400 |
commit | f9941ced55be6fca307fec19bad2d81bd4fb7831 (patch) | |
tree | c6ac5232b8ff4d9d404abb526d964ecb616a390c /fpdf.go | |
parent | a360bfb8ef7cbaacda300889a067b36ff94b944a (diff) |
Transformation functionality adapted from Moritz Wagner and Andreas Würmser.
Diffstat (limited to 'fpdf.go')
-rw-r--r-- | fpdf.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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") } } } |