Compare commits

..

No commits in common. "695d676dced49800ad0341da4c91edfcd8a2e082" and "35f95dafea932a8f7ed55579a21ddd5587af688d" have entirely different histories.

View File

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