diff --git a/pdfio-object.c b/pdfio-object.c index 4a401f5..d8b61a4 100644 --- a/pdfio-object.c +++ b/pdfio-object.c @@ -469,8 +469,13 @@ _pdfioObjLoad(pdfio_obj_t *obj) // I - Object // Decrypt as needed... if (obj->pdf->encryption) { + PDFIO_DEBUG("_pdfioObjLoad: Decrypting value...\n"); + if (!_pdfioValueDecrypt(obj->pdf, obj, &obj->value, 0)) + { + PDFIO_DEBUG("_pdfioObjLoad: Failed to decrypt.\n"); return (false); + } } PDFIO_DEBUG("_pdfioObjLoad: ");