Extract Visible Items of Master Slide from PowerPoint Presentation in C++

Hi team,

I am trying to extract all the visible slide items on a particular slide, including its master slide items. When I try extracting all shapes in master slide, it returns placeholder text like “Click to edit master text” etc. and some other elements which are actually not visible on the main slide.

How do I filter out such extra master slide items ?

I have tried filtering like below which doesnt work for my use case:

// Skip placeholders shapes
if (System::ObjectExt::Is<IPlaceholder>(shape) || shape->get_IsDecorative()) { 
    return false;
}

Thanks

@pankajku,
Thank you for posting the question.

Could you please share a sample presentation and indicate which shapes should be found and which should not? You can zip the file and upload an archive here.