修改
This commit is contained in:
parent
cdf8cdcb08
commit
c7de8975f7
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user