From 9abfbb92974aff5a2c689299dafb4d020a0afab2 Mon Sep 17 00:00:00 2001 From: OlegFX Date: Fri, 29 Sep 2017 20:58:11 +0300 Subject: Add "Tabloid" page size (#138) Add "Tabloid" page size, 11 x 17 inches according to ANSI X3.151. --- fpdf.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fpdf.go') 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 -- cgit v1.2.1-24-ge1ad