Skip to content

Commit

Permalink
fix page index
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitkugler committed Nov 7, 2019
1 parent 5e6addf commit 766c81b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fpdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -3920,7 +3920,7 @@ func (f *Fpdf) putpages() {
f.out("<</Type /Pages")
var kids fmtBuffer
kids.printf("/Kids [")
for i := 0; i < nb; i++ {
for i := 1; i <= nb; i++ {
kids.printf("%d 0 R ", pagesObjectNumbers[i])
}
kids.printf("]")
Expand Down

0 comments on commit 766c81b

Please sign in to comment.