diff options
Diffstat (limited to 'def.go')
-rw-r--r-- | def.go | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |