From 036a6270c67e28e63f826edc1c0958403edaf783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=BCnzli?= Date: Sat, 20 Dec 2014 10:28:37 +0100 Subject: 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. --- source/tools/pdfextract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/tools/pdfextract.c') 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 -- cgit v1.2.3