Convert word to PDF file

Hi Balu,


I would like to share with you that the requested support is now available in Aspose.Slides. I request you to please try using Aspose.Slides for .NET 15.8.0 on your end and the code sample below. I have also attached the source and generated presentations for your kind reference.

Presentation presentation = new Presentation(“D:\handout_header_footer.pptx”);

IMasterHandoutSlide masterHandoutSlide = presentation.MasterHandoutSlideManager.MasterHandoutSlide;

if (masterHandoutSlide != null)

updateHeaderFooterText(masterHandoutSlide);

IMasterNotesSlide masterNotesSlide = presentation.MasterNotesSlideManager.MasterNotesSlide;

if (null != masterNotesSlide)

updateHeaderFooterText(masterNotesSlide);

foreach(ISlide slide in presentation.Slides)

{

INotesSlide notesSlide = slide.NotesSlideManager.NotesSlide;

if (null != notesSlide)

updateHeaderFooterText(notesSlide);

}

presentation.Save(“D:\handout_test_Java.pptx”, SaveFormat.Pptx);

<o:p> </o:p>

public void updateHeaderFooterText(IBaseSlide master)<o:p></o:p>

{

foreach (IShape shape in master.Shapes)

{

if (shape.Placeholder != null)

{

if (shape.Placeholder.Type == PlaceholderType.Header)

((IAutoShape)shape).TextFrame.Text = “HI there new header”;

if (shape.Placeholder.Type == PlaceholderType.Footer)

((IAutoShape)shape).TextFrame.Text = “HI there new footer”;

}

}

}


I hope this will be helpful. Please share if I may help you further in this regard.

Best Regards,