diff options
| author | Přemysl Eric Janouch <p@janouch.name> | 2024-02-04 05:17:26 +0100 | 
|---|---|---|
| committer | Přemysl Eric Janouch <p@janouch.name> | 2024-02-04 05:17:26 +0100 | 
| commit | 32e9acfa776e7474a83f171c63a6859e2e363efe (patch) | |
| tree | ae332d5085349664dcd80b0b2f20778ff91ce34b /pdf | |
| parent | ff7de4b141c1d8c52d64a573e85d65852a91f76a (diff) | |
| download | pdf-simple-sign-32e9acfa776e7474a83f171c63a6859e2e363efe.tar.gz pdf-simple-sign-32e9acfa776e7474a83f171c63a6859e2e363efe.tar.xz pdf-simple-sign-32e9acfa776e7474a83f171c63a6859e2e363efe.zip  | |
Go: enable multiple updates in a sequence
This is not something anyone should do, but let's do things correctly.
Diffstat (limited to 'pdf')
| -rw-r--r-- | pdf/pdf.go | 3 | 
1 files changed, 3 insertions, 0 deletions
@@ -1271,6 +1271,9 @@ func (u *Updater) FlushUpdates() {  	fmt.Fprintf(buf, "\nstartxref\n%d\n%%%%EOF\n", startXref)  	u.Document = buf.Bytes() +	u.updated = make(map[uint]struct{}) + +	u.Trailer["Prev"] = NewNumeric(float64(startXref))  }  // -----------------------------------------------------------------------------  | 
