summaryrefslogtreecommitdiff
path: root/def.go
diff options
context:
space:
mode:
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