Free Support Forum - groupdocs.com

Is there an option to remove the first text repeat in files ppt/pptx?

We are using GroupDocs Viewer and we want know if is there an option to remove the first text repeat in files ppt/pptx when converted from html?

Hi Kduarte,


Thanks for using GroupDocs.Viewer for .NET.

Please mention the version of the API your are using. We shall be looking forward to your response.

Warm Regards

We are using version 16.10.0.

Hi Kduarte,


Thanks for providing the information.

The back-end GroupDocs.Viewer for .NET does not provide any builtin feature to remove the line/text from the output HTML. However, you can remove/trim the text from the HTML using your own code/logic. For example, we have below code which gets the HTML representation of each page of the input document.

//Get document pages in html form
List pages = htmlHandler.GetPages(“sample.pptx”, options);

foreach (PageHtml page in pages)
{
//Get HtmlContent of each page
string htmlContent = page.HtmlContent;
//You can add your code here to trim the unwanted text from htmlContent and save it.
}


Now, as you have html content of each page in htmlContent object, you can remove the unwanted text from it. Hope it will help you.

If you would have any other questions, please feel free to ask.
Warm Regards