From 005b97ec5de14bb975a15b951dd54bffec24345f Mon Sep 17 00:00:00 2001
From: "Sven M. Hallberg" <pesco@khjk.org>
Date: Fri, 15 Jul 2022 15:10:17 +0200
Subject: [PATCH] run the parser even if parse_xrefs fails

---
 pdf.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/pdf.c b/pdf.c
index a0511d4..fc3a32f 100644
--- a/pdf.c
+++ b/pdf.c
@@ -5570,10 +5570,6 @@ main(int argc, char *argv[])
 	/* parse all cross-reference sections and trailer dictionaries */
 	parse_xrefs(&aux);
 
-	// XXX remove this! the parser should work without xrefs.
-	if ((aux.nxrefs == 0) || (aux.xrefs == NULL))
-		return 1;
-
 	/* run the main parser */
 	res = h_parse(p_pdf, input, sz);
 	if (!res) {
-- 
GitLab