summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Eichhorn <alex@kidtsunami.com>2017-08-30 15:40:13 +0200
committerAlexander Eichhorn <alex@kidtsunami.com>2017-08-30 15:40:13 +0200
commit16426726215a8fa06ba79853db70a8db933e52b9 (patch)
tree94300ed6fa13355775ec7fbf2b3447380392ca8f
parent0e5c39bf5495154aa9dfd140db18db7345d7b824 (diff)
output xmp earlier to not clash with trailer refs
-rw-r--r--fpdf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdf.go b/fpdf.go
index 3009dd7..df16043 100644
--- a/fpdf.go
+++ b/fpdf.go
@@ -3731,14 +3731,14 @@ func (f *Fpdf) enddoc() {
}
// Bookmarks
f.putbookmarks()
+ // Metadata
+ f.putxmp()
// Info
f.newobj()
f.out("<<")
f.putinfo()
f.out(">>")
f.out("endobj")
- // Metadata
- f.putxmp()
// Catalog
f.newobj()
f.out("<<")