diff --git a/pkg/service/bundle/logic/signContract.go b/pkg/service/bundle/logic/signContract.go index 1b4b92e..f7094a4 100644 --- a/pkg/service/bundle/logic/signContract.go +++ b/pkg/service/bundle/logic/signContract.go @@ -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")