feat(印章渲染): 强化印章渲染

This commit is contained in:
2026-06-25 22:54:34 +08:00
parent 0b20a3d054
commit a9653bdec0
3 changed files with 154 additions and 48 deletions
+3
View File
@@ -127,6 +127,9 @@ func (r *Reader) Doc() (*Document, error) {
if err := xml.Unmarshal(data, &doc); err != nil {
return nil, fmt.Errorf("failed to unmarshal document.xml: %w", err)
}
if doc.Signatures == "" {
doc.Signatures = docAttr.Signatures
}
r.OFD.DocBody[0].DocInfo.DocID = "loaded"
if doc.CommonData.DocumentRes != "" {
r.loadRes(doc.CommonData.DocumentRes)