Can you anyone please explain me how to delete the marked content from tagged PDF structure.
Below is the sample code im trying.
static void DeleteMCFromPDSElemet(PDSElement element)
{
ASInt32 numKids = PDSElementGetNumKids(element);
ASInt32 kidIndex;
for (kidIndex = 0; kidIndex < numKids; ++kidIndex)
{
PDSElement kid;
PDSMCInfo mcidInfo;
//Get the kid info
ASAtom kidType = PDSElementGetKidWithMCInfo(element, //The PDSElement containing the kid that is retrieved
kidIndex, //The index of the kid.
&kid, //The kid being accessed (depending on the kid's type) or NULL.
&mcidInfo,//The kid's information object or NULL.
NULL, //Pointer to the kid or NULL.
NULL); //The CosObj of the page containing the kid or NULL
if (kidType == OBJR_K)
{
}
else if (kidType == MC_K)
{
// Need to delete this market content element
}
else if (kidType == StructElem_K)
{
}
GetElemInfo(kid);
}
displayString1(buf);
}