Skip to content

Commit

Permalink
Fix #814
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Mar 2, 2024
1 parent 268e6bb commit 88f1b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pdfcpu/stamp.go
Expand Up @@ -1019,7 +1019,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 88f1b3d

Please sign in to comment.