More efficiently implement reading of integers vs. indirect references.

"testpdfio filename.pdf objnum" now shows object value if there is no stream.

Clean up debugging printfs.
This commit is contained in:
Michael R Sweet
2021-08-23 14:31:54 -04:00
parent cd5158bae0
commit 543364dfa2
5 changed files with 678 additions and 196 deletions

View File

@@ -584,9 +584,9 @@ _pdfioArrayRead(pdfio_file_t *pdf, // I - PDF file
if (!_pdfioValueRead(pdf, tb, &value))
break;
PDFIO_DEBUG("_pdfioArrayRead(%p): Appending ", (void *)array);
PDFIO_DEBUG_VALUE(&value);
PDFIO_DEBUG("\n");
// PDFIO_DEBUG("_pdfioArrayRead(%p): Appending ", (void *)array);
// PDFIO_DEBUG_VALUE(&value);
// PDFIO_DEBUG("\n");
append_value(array, &value);
}