It was causing all images in pdf output to be the same as the first image.
>From da5041432bc515984c22a6ed5d77527aa0d6d685 Mon Sep 17 00:00:00 2001
From: Adrian Johnson <[email protected]>
Date: Wed, 24 Aug 2011 19:53:48 +0930
Subject: [PATCH] cairo: fix unique id mime data
The unique id string was copied before the object number was appended
resulting in all images in pdf output being the same.
---
poppler/CairoOutputDev.cc | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 968788e..cec2039 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -2541,9 +2541,8 @@ void CairoOutputDev::setMimeData(Stream *str, Object *ref, cairo_surface_t *imag
if (ref && ref->isRef()) {
Ref imgRef = ref->getRef();
GooString *surfaceId = new GooString("poppler-surface-");
- char *idBuffer = copyString(surfaceId->getCString());
-
surfaceId->appendf("{0:d}-{1:d}", imgRef.gen, imgRef.num);
+ char *idBuffer = copyString(surfaceId->getCString());
st = cairo_surface_set_mime_data (image, CAIRO_MIME_TYPE_UNIQUE_ID,
(const unsigned char *)idBuffer,
surfaceId->getLength(),
--
1.7.4.1
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler