How to get key and values dynamically from the pptx file or text file

Hi, In my upcoming application i need get the key and values from individual slides of pptx file (or) from text file which i have. Please give me any suggestion.

Thanks