Browse Source

custom pageSize

master
Klaus Wendel 1 year ago
parent
commit
70cfd2fafe
  1. 17
      fpdf.go

17
fpdf.go

@ -3498,16 +3498,15 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
fmt.Println("HALLO")
fmt.Println(aString)
/*
for i := 0; i <= 1; i++ {
aFloat[i], aErr = strconv.ParseFloat(aString[i], 64)
if aErr != nil {
f.err = fmt.Errorf("anknown page size %s", sizeStr)
}
for i := 0; i <= 1; i++ {
aFloat[i], aErr = strconv.ParseFloat(aString[i], 64)
if aErr != nil {
f.err = fmt.Errorf("anknown page size %s", sizeStr)
}
*/
//size, ok = SizeType{aFloat[0], aFloat[1]}, true
size, ok = SizeType{250.01, 250.01}, true
}
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

Loading…
Cancel
Save