This commit is contained in:
蒋海成 2025-03-12 22:14:38 +08:00
parent cdf8cdcb08
commit c7de8975f7

View File

@ -157,7 +157,7 @@ func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, co
// 写 buyer info
pdf.SetPage(buyerPage)
pdf.SetX(149)
pdf.SetY(127)
pdf.SetY(126)
pdf.Cell(nil, contractNo)
pdf.SetX(149)
@ -239,7 +239,7 @@ func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, co
newSignHeight := (newSignWidth / float64(signImgw)) * float64(signImgh)
// buyer sign
err = pdf.ImageByHolder(imgH1, 175, 540, &gopdf.Rect{W: newSignWidth, H: newSignHeight})
err = pdf.ImageByHolder(imgH1, 175, 530, &gopdf.Rect{W: newSignWidth, H: newSignHeight})
if err != nil {
fmt.Printf("插入签名失败: %v\n", err)
return errors.New("error inserting signature")