How to get object attributes of Frame anchor?
Hi all,
I need to fetch the frame anchor object attributes to prepare a list of text attributes.
Anchored Frame > Object Attributes > Text Attributes.
I tried following
F_ObjHandleT hGrfObjId = F_ApiGetId(FV_SessionId, docId, FP_FirstGraphicInDoc);
/* Traverse list of graphics, anchored frames. */
while (hGrfObjId != NULL)
{
UIntT uType = F_ApiGetObjectType(docId, hGrfObjId);
if (uType == FO_AFrame)
{
F_AttributesT attribList = F_ApiGetAttributes(docId, hGrfObjId);
for (UIntT i = 0; i < attribList.len; i++)
{
F_Printf(NULL, "Attribute %d: %s ||| %s.\n", i, attribList.val.name, attribList.val.values);
}
}
hGrfObjId = F_ApiGetId(m_doc.getDocId(), hGrfObjId, FP_NextGraphicInDoc);
}
All seems to be inline as per fdk but I never get anything in from F_ApiGetAttributes(). It always returning len = 0 and val = null.
Am I missing anything here? If this is not correct way of extracting attributes, please suggest me right way.
Thank you.
Regards,
Paresh
