feat(附件签章): 修复附件标识与签章定位
build.yaml / build (push) Successful in 48s

This commit is contained in:
xiaoqidun committed 2026-10-10 17:03:06 +08:00
1 parent 07eb44c037
commit 341ad7cd7e
4 files changed
+72 -27

No files matched your search

+3 -2
View File
@@ -98,10 +98,11 @@ func signatureWriteStamps(r *Reader, stamps []SignatureStamp, seal bool) ([]Sign
if len(result) != 0 {
pages := make(map[string]bool)
for _, page := range doc.Pages.Page {
if page.ID == "" || pages[page.ID] {
id := editorResourceID(page.ID)
if id == "" || pages[id] {
return nil, fmt.Errorf("ambiguous stamp page ID: %s", page.ID)
}
pages[page.ID] = true
pages[id] = true
}
}
ids := make(map[string]bool)