custom pageSize

This commit is contained in:
Klaus Wendel, archium GmbH 2021-03-02 15:45:03 +01:00
parent 685ec07e4c
commit 048f80a7e2

16
fpdf.go
View File

@ -3487,14 +3487,16 @@ func (f *Fpdf) getpagesizestr(sizeStr string) (size SizeType) {
//20210302 archium addendum begin //20210302 archium addendum begin
//enable custom page formats //enable custom page formats
if strings.Contains(sizeStr, "x") { if strings.Contains(sizeStr, "x") {
var ( /*
aString []string var (
aFloat []float64 aString []string
aErr error aFloat []float64
) aErr error
aString = strings.Split(sizeStr, "x") )
aString = strings.Split(sizeStr, "x")
fmt.Println(aString) 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)