summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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