feat(性能优化): 提升速度
build.yaml / build (push) Successful in 34s

This commit is contained in:
2026-07-13 16:51:25 +08:00
parent 4e651619f8
commit 23849aee86
8 changed files with 116 additions and 52 deletions
+2 -2
View File
@@ -59,8 +59,8 @@ func replacePDFProducer(data []byte) []byte {
return data
}
dst := []byte("/Producer(xiaoqidun/ofdgo)")
result := make([]byte, 0, len(data)-len(old)+len(dst))
return append(append(append(result, data[:idx]...), dst...), data[idx+len(old):]...)
copy(data[idx:idx+len(old)], dst)
return data
}
// RenderToPDF 渲染为PDF