Fix bug with xref stream with no index.

Fix bug with pdfiOStreamPeek not appending new stream data to buffer.

Add more debug printfs for values.
This commit is contained in:
Michael R Sweet
2021-08-24 13:49:43 -04:00
parent 4ec19545f3
commit 6745f785b7
3 changed files with 24 additions and 15 deletions

View File

@ -1229,7 +1229,7 @@ load_xref(pdfio_file_t *pdf, // I - PDF file
if ((index_array = pdfioDictGetArray(trailer.value.dict, "Index")) != NULL)
index_count = index_array->num_values;
else
index_count = 0;
index_count = 1;
if ((w_array = pdfioDictGetArray(trailer.value.dict, "W")) == NULL)
{