Hi Team,
How can we highlight text in ppt using Regex along with add comments. Need to prepare summary also with information like words found on which page and how many times.
Following are the raw inputs:
No option to attach ppt file so sharing content in .docx file.
Ppt-Slides-Sample-Text.docx (13.9 KB)
Code Sample:
public List<HighlightedWordsClass> HighlightWordsInPpt(string licensePath, string pptPath)
{
List<HighlightedWordsClass> objReturn = new List<HighlightedWordsClass>();
License license = new License();
license.SetLicense(licensePath);
Presentation presentation = new Presentation(pptPath);
List<WordListClass> listOfWords = new List<WordListClass>();
listOfWords.Add(new WordListClass("Lorem", "Lorem is the word and this is comment for it.", true, true));
listOfWords.Add(new WordListClass("porttitor", "porttitor is the word and this is comment for it.", false, true));
listOfWords.Add(new WordListClass("volutpat", "volutpat is the word and this is comment for it.", false, true));
listOfWords.Add(new WordListClass("felis", "felis is the word and this is comment for it.", false, true));
return objReturn;
}
public class WordListClass
{
public WordListClass(string word, string comment, bool isCase, bool isMatch)
{
Word = word;
Comments = comment;
isCase = IsCaseSensitive;
IsMatchWholeWorld = isMatch;
}
public string Word { get; set; }
public string Comments { get; set; }
public bool IsCaseSensitive { get; set; }
public bool IsMatchWholeWorld { get; set; }
}
public class HighlightedWordsClass
{
public string Word { get; set; }
public List<FindingClass> findings { get; set; }
}
public class FindingClass
{
public int PageNumber { get; set; }
public int Occurences { get; set; }
}
Thank you in Advance!