summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
authorKurt Jung <kurt.w.jung@code.google.com>2013-08-24 16:21:35 -0400
committerKurt Jung <kurt.w.jung@code.google.com>2013-08-24 16:21:35 -0400
commit5591db1df1ec5d5a357755e6f3c40172b9609529 (patch)
treeb995737b531e5a2373872a54b596f6989b46be96 /def.go
parent2794792c13f56dbb2bbabe2c640b9ee29117709f (diff)
Documentation tweaks
Diffstat (limited to 'def.go')
-rw-r--r--def.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/def.go b/def.go
index 49129c7..60ab58c 100644
--- a/def.go
+++ b/def.go
@@ -20,6 +20,7 @@ import (
"bytes"
)
+// Version of FPDF from which this package is derived
const (
FPDF_VERSION = "1.7"
)
@@ -78,6 +79,18 @@ type intLinkType struct {
y float64
}
+// InitType is used with NewCustom() to customize an Fpdf instance.
+// OrientationStr, UnitStr, SizeStr and FontDirStr correspond to the arguments
+// accepted by New(). If the Wd and Ht fields of Size are each greater than
+// zero, Size will be used to set the default page size rather than SizeStr.
+type InitType struct {
+ OrientationStr string
+ UnitStr string
+ SizeStr string
+ Size SizeType
+ FontDirStr string
+}
+
type Fpdf struct {
page int // current page number
n int // current object number