Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Delete Marked content element (Navigating PDS Element) on PDF using Acrobat SDK C++

New Here ,
Feb 05, 2025 Feb 05, 2025

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);
}
TOPICS
Acrobat SDK and JavaScript , Windows
55
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation