Add read-back tests.

This commit is contained in:
Michael R Sweet
2021-06-02 15:46:39 -04:00
parent 3c034eb919
commit 3ec771e688
3 changed files with 173 additions and 2 deletions

View File

@ -299,6 +299,23 @@ pdfioObjGetNumber(pdfio_obj_t *obj) // I - Object
}
//
// 'pdfioObjGetSubtype()' - Get an object's subtype.
//
const char * // O - Object subtype
pdfioObjGetSubtype(pdfio_obj_t *obj) // I - Object
{
pdfio_dict_t *dict; // Object dictionary
if ((dict = pdfioObjGetDict(obj)) == NULL)
return (NULL);
else
return (pdfioDictGetName(dict, "Subtype"));
}
//
// 'pdfioObjGetType()' - Get an object's type.
//