summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlegFX <oleg@oleg.name>2017-09-29 20:58:11 +0300
committerKurt Jung <kurt.w.jung@gmail.com>2017-09-29 13:58:11 -0400
commit9abfbb92974aff5a2c689299dafb4d020a0afab2 (patch)
tree2f53a86b6c11a7ce1b280adb7d48912b534327b9
parentcc7f4a2880e224dc55d15289863817df6d9f6893 (diff)
Add "Tabloid" page size (#138)
Add "Tabloid" page size, 11 x 17 inches according to ANSI X3.151.
-rw-r--r--fpdf.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdf.go b/fpdf.go
index df16043..3b2d488 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -132,6 +132,7 @@ func fpdfNew(orientationStr, unitStr, sizeStr, fontDirStr string, size SizeType)
f.stdPageSizes["a1"] = SizeType{1683.78, 2383.94}
f.stdPageSizes["letter"] = SizeType{612, 792}
f.stdPageSizes["legal"] = SizeType{612, 1008}
+ f.stdPageSizes["tabloid"] = SizeType{792, 1224}
if size.Wd > 0 && size.Ht > 0 {
f.defPageSize = size
} else {
@@ -215,7 +216,7 @@ func NewCustom(init *InitType) (f *Fpdf) {
// string will be replaced with "mm".
//
// sizeStr specifies the page size. Acceptable values are "A3", "A4", "A5",
-// "Letter", or "Legal". An empty string will be replaced with "A4".
+// "Letter", "Legal", or "Tabloid". An empty string will be replaced with "A4".
//
// fontDirStr specifies the file system location in which font resources will
// be found. An empty string is replaced with ".". This argument only needs to