forked from jung-kurt/gofpdf
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Hi, I have an index out of range with gofpdf@v1.4.2
panic: runtime error: index out of range [53] with length 0
goroutine 66 [running]:
github.com/phpdave11/gofpdf.(*Fpdf).write(0xc0003ac000, 0x4020000000000000, {0xc0004eaf00?, 0x4?}, 0x4?, {0x0, 0x0})
/root/go/pkg/mod/github.com/phpdave11/gofpdf@v1.4.2/fpdf.go:2839 +0xbea
github.com/phpdave11/gofpdf.(*Fpdf).Write(...)
/root/go/pkg/mod/github.com/phpdave11/gofpdf@v1.4.2/fpdf.go:2901
[...]
There is happening after a call to Write.
Used font are UbuntuFont
strBuff = fmt.Sprintf(
"\n%s, %s, %s %s\n",
data.Simple["se-addr-num"],
data.Simple["se-addr-complement"],
data.Simple["se-addr-code"],
data.Simple["se-addr-commune"],
)
log.Println("DEBUG PANIC: ", strBuff)
pdf.Write(8, strBuff)🤔
Metadata
Metadata
Assignees
Labels
No labels