From 7d30cf866291dca650d78b57b06d420128d80c4f Mon Sep 17 00:00:00 2001 From: Sevban Bayrak Date: Sat, 29 Jan 2022 01:15:47 +0300 Subject: [PATCH] Update expression, that will always be false --- main.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.go b/main.go index d112554..18874a3 100644 --- a/main.go +++ b/main.go @@ -181,9 +181,7 @@ func detectWatermarkPDF(file, signature string) bool { } func addWatermarkPDF(file, signature string) { - onTop := false - update := false - wm, _ := api.TextWatermark(signature, "sc:.9, rot:0, mo:1, op:0", onTop, update, pdfcpu.POINTS) + wm, _ := api.TextWatermark(signature, "sc:.9, rot:0, mo:1, op:0", false, false, pdfcpu.POINTS) api.AddWatermarksFile(file, "", nil, wm, nil) }