mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
4e651619f8
commit
23849aee86
8 files changed
+116
-52
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user