summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinayak Nagpal <vinayak@vernoxlabs.com>2016-12-10 06:09:57 -0800
committerKurt Jung <kurt.w.jung@gmail.com>2016-12-10 09:09:57 -0500
commitcbca7b89aec538890edd7dcd51438bd8ff8d265e (patch)
treea51a9eb0b9122312a01355fac15d14b044501322
parentc81806e867518d8a4240c3aa2f9b8151b32fa46f (diff)
Added A1 and A2 page sizes (#98)
-rw-r--r--fpdf.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index 5720137..64df484 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -128,6 +128,8 @@ func fpdfNew(orientationStr, unitStr, sizeStr, fontDirStr string, size SizeType)
f.stdPageSizes["a4"] = SizeType{595.28, 841.89}
f.stdPageSizes["a5"] = SizeType{420.94, 595.28}
f.stdPageSizes["a6"] = SizeType{297.64, 420.94}
+ f.stdPageSizes["a2"] = SizeType{1190.55, 1683.78}
+ f.stdPageSizes["a1"] = SizeType{1683.78, 2383.94}
f.stdPageSizes["letter"] = SizeType{612, 792}
f.stdPageSizes["legal"] = SizeType{612, 1008}
if size.Wd > 0 && size.Ht > 0 {