|
|
@@ -132,10 +132,11 @@ func SettleCenterSettleFileDown(c *gin.Context) { |
|
|
|
// 换行 |
|
|
|
pdf.Ln(-1) |
|
|
|
// 引入中文字体,需要相应的字体文件 |
|
|
|
pdf.AddUTF8Font("SourceHanSansCN-Light", "", "http://miniapp.bianxian.com/_0000000000_2024103011290507244911708.ttf") |
|
|
|
|
|
|
|
pdf.AddUTF8Font("SourceHanSansCN-Light", "", path+"/_0000000000_2024103011290507244911708.ttf") |
|
|
|
// 引入中文字体后设置中文字体和字号 |
|
|
|
left := 15.0 |
|
|
|
pdf.Image("http://miniapp.bianxian.com/_0000000000_2024103011210157735330925.png", left, 25, 50, 15, false, "PNG", 0, "") |
|
|
|
pdf.Image(path+"/_0000000000_2024103011210157735330925.png", left, 25, 50, 15, false, "PNG", 0, "") |
|
|
|
pdf.SetFont("SourceHanSansCN-Light", "", 10) |
|
|
|
pdf.Text(130, 40, "杭州激活鸟网络科技有限公司") |
|
|
|
//// 生成EAN-13条形码 |
|
|
|