From 5dfc5cec5b910432224898914e31948649b3247a Mon Sep 17 00:00:00 2001 From: William Drai Date: Wed, 27 May 2020 18:42:35 +0200 Subject: [PATCH] Fix for multi doc import --- writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer.go b/writer.go index f4d20b0..b4d5722 100644 --- a/writer.go +++ b/writer.go @@ -227,7 +227,7 @@ func (this *PdfWriter) endObj() { func (this *PdfWriter) shaOfInt(i int) string { hasher := sha1.New() - hasher.Write([]byte(fmt.Sprintf("%s-%s", i, this.r.sourceFile))) + hasher.Write([]byte(fmt.Sprintf("%s-%s-%s", this.tpl_id_offset, i, this.r.sourceFile))) sha := hex.EncodeToString(hasher.Sum(nil)) return sha }