summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpdf.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index d735269..9818aeb 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -358,6 +358,9 @@ func (f *Fpdf) SetPageBox(t string, pb PageBox) {
fallthrough
case "artbox":
t = "ArtBox"
+ default:
+ f.err = fmt.Sprintf("%s is not a valid page box type")
+ return
}
pb.X = pb.X * f.k