diff options
author | Kurt Jung <kurt.w.jung@code.google.com> | 2013-08-24 16:21:35 -0400 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@code.google.com> | 2013-08-24 16:21:35 -0400 |
commit | 5591db1df1ec5d5a357755e6f3c40172b9609529 (patch) | |
tree | b995737b531e5a2373872a54b596f6989b46be96 /def.go | |
parent | 2794792c13f56dbb2bbabe2c640b9ee29117709f (diff) |
Documentation tweaks
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 |