custom pageSize
This commit is contained in:
parent
9b0a2e91d8
commit
685ec07e4c
7
fpdf.go
7
fpdf.go
|
@ -3493,13 +3493,18 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
|
||||||
aErr error
|
aErr error
|
||||||
)
|
)
|
||||||
aString = strings.Split(sizeStr, "x")
|
aString = strings.Split(sizeStr, "x")
|
||||||
|
|
||||||
|
fmt.Println(aString)
|
||||||
|
/*
|
||||||
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)
|
||||||
if aErr != nil {
|
if aErr != nil {
|
||||||
f.err = fmt.Errorf("anknown page size %s", sizeStr)
|
f.err = fmt.Errorf("anknown page size %s", sizeStr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
size, ok = SizeType{aFloat[0], aFloat[1]}, true
|
*/
|
||||||
|
//size, ok = SizeType{aFloat[0], aFloat[1]}, true
|
||||||
|
size, ok = SizeType{250.01, 250.01}, true
|
||||||
} else {
|
} else {
|
||||||
//20210302 archium addendum end
|
//20210302 archium addendum end
|
||||||
size, ok = f.stdPageSizes[sizeStr]
|
size, ok = f.stdPageSizes[sizeStr]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user