summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Oblak <mcb@qlik.com>2018-06-01 18:32:24 +0200
committerKurt Jung <kurt.w.jung@gmail.com>2018-06-01 12:32:24 -0400
commitc9e1bab8d53770ad617af447a7d3040465c6f3b9 (patch)
tree00360f64adfd676400852ba8c177e4b0004dd978
parent0298ebb7bb539ad17daadce86bedbdfd56c2bcd4 (diff)
Added public wrapper "GetPageSizeStr" of private method (#181)
-rw-r--r--fpdf.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index f6ec511..c0aea87 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -2819,6 +2819,11 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
return
}
+// GetPageSizeStr returns the SizeType for the given sizeStr (that is A4, A3, etc..)
+func (f *Fpdf) GetPageSizeStr(sizeStr string) (size SizeType) {
+ return f.getpagesizestr(sizeStr)
+}
+
func (f *Fpdf) _getpagesize(size SizeType) SizeType {
if size.Wd > size.Ht {
size.Wd, size.Ht = size.Ht, size.Wd