mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-07-18 23:09:49 +02:00
Add read-back tests.
This commit is contained in:
@ -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.
|
||||
//
|
||||
|
Reference in New Issue
Block a user