summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt <kurt.w.jung@gmail.com>2018-06-15 21:45:44 -0400
committerKurt <kurt.w.jung@gmail.com>2018-06-15 21:45:44 -0400
commit67f76e6ca7356106506c5f2b3d72524a5ef8e5f1 (patch)
tree4588479d9d146b2cfa844769c567050b59749f65
parenta4b0fd17b669b43f74a6baa7e93b71d765b82d97 (diff)
parentc9e1bab8d53770ad617af447a7d3040465c6f3b9 (diff)
Merge branch 'master' of https://github.com/jung-kurt/gofpdf
-rw-r--r--fpdf.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdf.go b/fpdf.go
index 494f1b2..ef17bb3 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -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