From c9e1bab8d53770ad617af447a7d3040465c6f3b9 Mon Sep 17 00:00:00 2001 From: Marcus Oblak Date: Fri, 1 Jun 2018 18:32:24 +0200 Subject: Added public wrapper "GetPageSizeStr" of private method (#181) --- fpdf.go | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1-24-ge1ad