From 0391df5bbdd9c1b87251e18b98e953adb8370ae7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 7 Apr 2025 09:01:41 -0400 Subject: [PATCH] Add logging of when we are repairing the xref table. --- pdfio-file.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdfio-file.c b/pdfio-file.c index 2422c67..30d1ee5 100644 --- a/pdfio-file.c +++ b/pdfio-file.c @@ -2218,6 +2218,9 @@ repair_xref( pdfio_obj_t *sobjs[16384]; // Object streams to load + // Let caller know something is wrong... + _pdfioFileError(pdf, "WARNING: Cross-reference table is damaged, attempting to rebuild."); + // Read from the beginning of the file, looking for if ((line_offset = _pdfioFileSeek(pdf, 0, SEEK_SET)) < 0) return (false);