summaryrefslogtreecommitdiff
path: root/apps/pdfextract.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2009-08-24 00:11:36 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2009-08-24 00:11:36 +0200
commit0ec9cab47d6dcfee0cd83649dc81e2088defb647 (patch)
treee85f5cb05d2574790220c3e619d0e5f8a3b25d71 /apps/pdfextract.c
parent07c6aebae7e1cb634170cbe04a995590990e3b41 (diff)
downloadmupdf-0ec9cab47d6dcfee0cd83649dc81e2088defb647.tar.xz
Load the stream not the image dictionary when extracting images from pdfs.
Diffstat (limited to 'apps/pdfextract.c')
-rw-r--r--apps/pdfextract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfextract.c b/apps/pdfextract.c
index 5c714d41..2bead4c5 100644
--- a/apps/pdfextract.c
+++ b/apps/pdfextract.c
@@ -46,7 +46,7 @@ static void saveimage(fz_obj *obj, int num, int gen)
if (error)
die(error);
- error = pdf_loadimage(&img, xref, obj);
+ error = pdf_loadimage(&img, xref, ref);
if (error)
die(error);