From 5591db1df1ec5d5a357755e6f3c40172b9609529 Mon Sep 17 00:00:00 2001 From: Kurt Jung Date: Sat, 24 Aug 2013 16:21:35 -0400 Subject: Documentation tweaks --- def.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'def.go') 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 -- cgit v1.2.1-24-ge1ad