Traverse each p:cNvPr (DocumentFormat.OpenXml.Presentation.NonVisualDrawingProperties) in the PowerPoint presentation, and split the name property by underscore (_).
If the value after the second underscore in the name starts with “BD”, then keep this element. Otherwise, delete the element.
If there are no elements to keep on the page, then delete the entire page.
I have tried many codes online, but none of them work.
ORDYLAN is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.