Add logging of when we are repairing the xref table.

This commit is contained in:
Michael R Sweet 2025-04-07 09:01:41 -04:00
parent 49efd97cab
commit 0391df5bbd
No known key found for this signature in database
GPG Key ID: BE67C75EC81F3244

View File

@ -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);