[Solved] How can i get “Table of content” from PDF file and save it to the tree struct?

Aspose.Pdf.Generator namespace only supports the feature to create TOC while generating new PDF and Aspose.Pdf for .NET does not support the feature to manipulate TOC in existing PDF file. However for the sake of implementation, the requirement is added in issue tracking system as PDFNEWNET-34836. Once the new feature becomes available, we would be able … Read more

[Solved] How to search a given word in word file by C# [closed]

If you are using the Aspose library as stated in your comment you can achieve this through a customised implementation of the IReplacingCallback interface. bool IsContain(string word, string filePath) { Document doc = new Document(filePath); OccurrencesCounter counter = new OccurrencesCounter(); doc.Range.Replace(new Regex(word), counter, false); return counter.Occurrences > 0; } private class OccurrencesCounter : IReplacingCallback { … Read more