mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
07eb44c037
commit
341ad7cd7e
4 files changed
+72
-27
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user