custom pageSize
This commit is contained in:
parent
b504f2cf82
commit
d2dfd14bf9
3
fpdf.go
3
fpdf.go
|
@ -3496,7 +3496,7 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
|
||||||
aString = strings.SplitN(sizeStr, "x", 2)
|
aString = strings.SplitN(sizeStr, "x", 2)
|
||||||
|
|
||||||
fmt.Println("HALLO")
|
fmt.Println("HALLO")
|
||||||
fmt.Println(aString)
|
fmt.Println(aString[0], aString[1])
|
||||||
|
|
||||||
for i := 0; i <= 1; i++ {
|
for i := 0; i <= 1; i++ {
|
||||||
aFloat[i], aErr = strconv.ParseFloat(aString[i], 64)
|
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{aFloat[0], aFloat[1]}, true
|
||||||
//size, ok = SizeType{250.01, 250.01}, true
|
//size, ok = SizeType{250.01, 250.01}, true
|
||||||
} else {
|
} else {
|
||||||
f.err = fmt.Errorf("HALLO anknown page size %s", sizeStr)
|
|
||||||
//20210302 archium addendum end
|
//20210302 archium addendum end
|
||||||
size, ok = f.stdPageSizes[sizeStr]
|
size, ok = f.stdPageSizes[sizeStr]
|
||||||
//20210302 archium addendum begin
|
//20210302 archium addendum begin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user