Compare commits

...

2 Commits

Author SHA1 Message Date
vlasovsoft1979
28a33c9010
Merge ee31096019 into 206f75403a 2024-09-27 17:39:02 +00:00
Sergey Vlasov
ee31096019 PR comment 2024-09-27 20:38:15 +03:00

View File

@ -268,26 +268,6 @@ pdfioObjGetDict(pdfio_obj_t *obj) // I - Object
} }
//
// 'pdfioObjGetName()' - Get the name value associated with an object.
//
const char * // O - Dictionary or `NULL` on error
pdfioObjGetName(pdfio_obj_t *obj) // I - Object
{
if (!obj)
return (NULL);
if (obj->value.type == PDFIO_VALTYPE_NONE)
_pdfioObjLoad(obj);
if (obj->value.type == PDFIO_VALTYPE_NAME)
return (obj->value.value.name);
else
return (NULL);
}
// //
// '_pdfioObjGetExtension()' - Get the extension pointer for an object. // '_pdfioObjGetExtension()' - Get the extension pointer for an object.
// //
@ -353,6 +333,26 @@ pdfioObjGetLength(pdfio_obj_t *obj) // I - Object
} }
//
// 'pdfioObjGetName()' - Get the name value associated with an object.
//
const char * // O - Dictionary or `NULL` on error
pdfioObjGetName(pdfio_obj_t *obj) // I - Object
{
if (!obj)
return (NULL);
if (obj->value.type == PDFIO_VALTYPE_NONE)
_pdfioObjLoad(obj);
if (obj->value.type == PDFIO_VALTYPE_NAME)
return (obj->value.value.name);
else
return (NULL);
}
// //
// 'pdfioObjGetNumber()' - Get the object's number. // 'pdfioObjGetNumber()' - Get the object's number.
// //