Browse Source

custom pageSize

master
Klaus Wendel 2 years ago
parent
commit
d2dfd14bf9
  1. 3
      fpdf.go

3
fpdf.go

@ -3496,7 +3496,7 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
aString = strings.SplitN(sizeStr, "x", 2)
fmt.Println("HALLO")
fmt.Println(aString)
fmt.Println(aString[0], aString[1])
for i := 0; i <= 1; i++ {
aFloat[i], aErr = strconv.ParseFloat(aString[i], 64)
@ -3508,7 +3508,6 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
size, ok = SizeType{aFloat[0], aFloat[1]}, true
//size, ok = SizeType{250.01, 250.01}, true
} else {
f.err = fmt.Errorf("HALLO anknown page size %s", sizeStr)
//20210302 archium addendum end
size, ok = f.stdPageSizes[sizeStr]
//20210302 archium addendum begin

Loading…
Cancel
Save