summaryrefslogtreecommitdiff
path: root/source/tools/pdfextract.c
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2014-12-20 10:28:37 +0100
committerSimon Bünzli <zeniko@gmail.com>2015-01-20 20:55:55 +0100
commit036a6270c67e28e63f826edc1c0958403edaf783 (patch)
tree1ea8ec8bc9ac12047b07e8c61619a5073e721d2e /source/tools/pdfextract.c
parentfc05b51c2b198dcc5553f6de1b8fb0e22e7d28ae (diff)
downloadmupdf-036a6270c67e28e63f826edc1c0958403edaf783.tar.xz
don't try extracting object number 0
pdfextract_main by default iterates through all objects from number 0 to the size of the document's xref table. Object number 0 is however always supposed to be free, so pdfextract consistently fails and shows a slightly confusing warning. Object extraction should by default start at object 1 in order to prevent this warning.
Diffstat (limited to 'source/tools/pdfextract.c')
-rw-r--r--source/tools/pdfextract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c
index 0304845f..b9697985 100644
--- a/source/tools/pdfextract.c
+++ b/source/tools/pdfextract.c
@@ -219,7 +219,7 @@ int pdfextract_main(int argc, char **argv)
if (fz_optind == argc)
{
int len = pdf_count_objects(doc);
- for (o = 0; o < len; o++)
+ for (o = 1; o < len; o++)
showobject(o);
}
else