Browse Source

custom pageSize

master
Klaus Wendel 1 year ago
parent
commit
d58f289647
  1. 2
      fpdf.go

2
fpdf.go

@ -3503,7 +3503,7 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
f.err = fmt.Errorf("unknown page size %s", sizeStr)
}
}
size, ok = SizeType{aFloat[0] * f.k, aFloat[1] * f.k}, true
size, ok = SizeType{(aFloat[0] * f.k), (aFloat[1] * f.k)}, true
} else {
//20210302 archium addendum end
size, ok = f.stdPageSizes[sizeStr]

Loading…
Cancel
Save