diff options
author | OlegFX <oleg@oleg.name> | 2017-09-29 20:58:11 +0300 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2017-09-29 13:58:11 -0400 |
commit | 9abfbb92974aff5a2c689299dafb4d020a0afab2 (patch) | |
tree | 2f53a86b6c11a7ce1b280adb7d48912b534327b9 | |
parent | cc7f4a2880e224dc55d15289863817df6d9f6893 (diff) |
Add "Tabloid" page size (#138)
Add "Tabloid" page size, 11 x 17 inches according to ANSI X3.151.
-rw-r--r-- | fpdf.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |