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

@ -457,7 +457,7 @@ _pdfioDictRead(pdfio_file_t *pdf, // I - PDF file
if (!_pdfioDictSetValue(dict, pdfioStringCreate(pdf, key + 1), &value))
break;
PDFIO_DEBUG("_pdfioDictRead: Set %s.\n", key);
// PDFIO_DEBUG("_pdfioDictRead: Set %s.\n", key);
}
// Dictionary is invalid - pdfioFileClose will free the memory, return NULL