Browse Source

保存PDF源文件到本地

xingzai 3 years ago
parent
commit
c81320f183
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/article.go

+ 1 - 1
controllers/article.go

@@ -843,7 +843,7 @@ func (this *ArticleController) Pdfwatermark() {
 	}
 	newFile = uploadDir + "new_" + pdfName
 	onTop := true
-	wm, err := pdfcpu.ParseTextWatermarkDetails(mobile, "sc:4 abs, d:1, op:.4, pos:c ,points:16 ", onTop, 1)
+	wm, err := pdfcpu.ParseTextWatermarkDetails(mobile, " op:.4, pos:c ,points:16 ", onTop, 1)
 	if err != nil {
 		br.Msg = "下载失败"
 		br.ErrMsg = "生成水印文件失败,Err:" + err.Error()