How to extracting Header/Footer from Pptx file using MS OpenXML SDK. RRS feed

  • Question

  • Hi All,

    I need to extract header and footer data from pptx files using OpenXML SDK. I have tried and found that there are few places that “HeaderFooter “ elements available (SlideMaster, NotesMaster, HandoutMaster ect) but I cannot find particular text from such places.

    Please let me know how I can extract HeaderFooter texts from a pptx file.

    Additional Info: Though I can retrieve the relevant Header/Footer s text using below code, it’s not show any relationship with the header or footer.

    HandoutMasterPart handoutMasterPart = ptDocument.PresentationPart.HandoutMasterPart;
    if (handoutMasterPart != null)
      List<Shape> shapes = handoutMasterPart.HandoutMaster.CommonSlideData.ShapeTree.Descendants<Shape>().ToList();
    // Using these shapes can find only the text, but no relationship with Header or Footer

    Thank you,


    - Vins
    Tuesday, March 8, 2011 6:52 AM