Browse Source

custom pageSize

master
Klaus Wendel 1 year ago
parent
commit
bd620bbff5
  1. 20
      fpdf.go

20
fpdf.go

@ -3487,16 +3487,16 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
//20210302 archium addendum begin
//enable custom page formats
if strings.Contains(sizeStr, "x") {
/*
var (
aString []string
aFloat []float64
aErr error
)
aString = strings.Split(sizeStr, "x")
fmt.Println(aString)
*/
var (
aString []string
aFloat []float64
aErr error
)
aString = strings.Split(sizeStr, "x")
fmt.Println(aString)
/*
for i := 0; i <= 1; i++ {
aFloat[i], aErr = strconv.ParseFloat(aString[i], 64)

Loading…
Cancel
Save