diff options
author | Marcus Oblak <mcb@qlik.com> | 2018-06-01 18:32:24 +0200 |
---|---|---|
committer | Kurt Jung <kurt.w.jung@gmail.com> | 2018-06-01 12:32:24 -0400 |
commit | c9e1bab8d53770ad617af447a7d3040465c6f3b9 (patch) | |
tree | 00360f64adfd676400852ba8c177e4b0004dd978 | |
parent | 0298ebb7bb539ad17daadce86bedbdfd56c2bcd4 (diff) |
Added public wrapper "GetPageSizeStr" of private method (#181)
-rw-r--r-- | fpdf.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |