From c7de8975f779bae6d5d10d9827cb490afd9a03e9 Mon Sep 17 00:00:00 2001 From: jhc Date: Wed, 12 Mar 2025 22:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/logic/signContract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")