diff options
author | Kurt <kurt.w.jung@gmail.com> | 2018-06-15 21:45:44 -0400 |
---|---|---|
committer | Kurt <kurt.w.jung@gmail.com> | 2018-06-15 21:45:44 -0400 |
commit | 67f76e6ca7356106506c5f2b3d72524a5ef8e5f1 (patch) | |
tree | 4588479d9d146b2cfa844769c567050b59749f65 | |
parent | a4b0fd17b669b43f74a6baa7e93b71d765b82d97 (diff) | |
parent | c9e1bab8d53770ad617af447a7d3040465c6f3b9 (diff) |
Merge branch 'master' of https://github.com/jung-kurt/gofpdf
-rw-r--r-- | fpdf.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2825,6 +2825,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 |