summaryrefslogtreecommitdiff
path: root/apps/mupdfextract.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-07 15:31:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-07 15:31:36 +0100
commit16c6f406911b9c93491a244cfe1ec37603284489 (patch)
tree2c51405766263722bcf9c4cad6c9f68a6447717d /apps/mupdfextract.c
parentd55162d649a12d62a1d1c738d99ca9dee7de575d (diff)
downloadmupdf-16c6f406911b9c93491a244cfe1ec37603284489.tar.xz
Splitting tweaks.
Diffstat (limited to 'apps/mupdfextract.c')
-rw-r--r--apps/mupdfextract.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/mupdfextract.c b/apps/mupdfextract.c
index 069f7233..1f53541b 100644
--- a/apps/mupdfextract.c
+++ b/apps/mupdfextract.c
@@ -2,8 +2,7 @@
* pdfextract -- the ultimate way to extract images and fonts from pdfs
*/
-#include "fitz.h"
-#include "mupdf-internal.h"
+#include "mupdf.h"
static pdf_document *doc = NULL;
static fz_context *ctx = NULL;
@@ -180,7 +179,7 @@ int main(int argc, char **argv)
if (fz_optind == argc)
{
- for (o = 0; o < doc->len; o++)
+ for (o = 0; o < pdf_count_objects(doc); o++)
showobject(o);
}
else