Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vsenko committed Mar 4, 2024
1 parent 76de80d commit e68ef99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pdfcpu/stamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ func createForm(ctx *model.Context, pageNr, pageCount int, wm *model.Watermark,
// The forms bounding box is dependent on the page dimensions.
bb := wm.Bb

maxStampPageNr := wm.PdfMultiStartPageNrSrc + len(wm.PdfRes) - 1
maxStampPageNr := wm.PdfMultiStartPageNrDest + len(wm.PdfRes) - 1

if !unique && (cachedForm(*wm) || pageNr > maxStampPageNr) {
// Use cached form.
Expand Down

0 comments on commit e68ef99

Please sign in to comment.