We’d like to use Aspose.Slides to change notes and comments on slides. It looks like the API is read-only.
Is there a way to do that with the current version? If not, are there any plans to include such functionality?
Thanks
Martin
Dear Martin,
Thank you for using Aspose.Slides
You can only read slide comments using Aspose.Slides and cannot modify it or remove it. To do so, use Slide.SlideComments property.
e.g
Slide.SlideComments[0].Text
reads the first comment on the slide
Yes, we have a plan to implement add/remove of slide comments in future.
You can read/write Slide Notes and also clear them. The code below writes three lines in the slide notes. I have also attached the outAddingNotes.ppt generated by it.
void AddingNotes()
{
Presentation srcPres = new Presentation();
Slide srcSld = srcPres.GetSlideByPosition(1);
srcSld.AddNotes();
Notes srcNotes = srcSld.Notes;
srcNotes.Paragraphs[0].Portions[0].Text = "This is first portion in the first paragraph.";
Paragraph newPara = new Paragraph(srcNotes.Paragraphs[0]);
newPara.Portions[0].Text = "This is first portion in the second paragraph.";
srcNotes.Paragraphs.Add(newPara);
newPara = new Paragraph(srcNotes.Paragraphs[0]);
newPara.Portions[0].Text = "This is first portion in the third paragraph.";
srcNotes.Paragraphs.Add(newPara);
srcPres.Write("c:\\outAddingNotes.ppt");
}