User control for previewing in the Viewer 3.0

Hello Team,


I’ve analyzed your documentation for newer SDK dll(GroupDocs Viewer v 3.0.), looks like your are doing conversion as docx file to html or image.

So as per your previous version GroupDocs Viewer v2.18, you were having some user control for previewing the document does the latest version have some user control for previewing or something other.

And please let me know, how to extract text data from docx file using your latest SDK.

Please let me know as earliest as possible.

Looking forward to hear your response.

Thank You.

Regards,
Alan.

Hello There,


Thank you for giving a try to the new GroupDocs.Viewer.

Please note that the new GroupDocs.Viewer is a UI-less API exposing only UI-less+back end document rendering APIs. That’s why GUI or previewing controls are not provided. However, The previous Front End/Previewing tool has been open sourced and compatible with GroupDocs.Viewer 3.0.0 . You can download from here. A new and advanced front end has also been open sourced which can be downloaded from here.

The GroupDocs.Viewer API can convert over 50 Different document formats into Html or Images representation.

While you are using either ViewerHtmlHandler or ViewerImageHandler, you can extract data in the form of HTML. Below are the examples.

For image handler:
ViewerConfig config = new ViewerConfig();
config.StoragePath = @“D:\from office working\for aspose\storage”;

// Create image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(config);
string guid = “word.doc”;

//Instantiate PrintableHtmlOptions
PrintableHtmlOptions print_options=new PrintableHtmlOptions(guid);

//get PrintableHtmlContainer
PrintableHtmlContainer print_container = imageHandler.GetPrintableHtml(print_options);
String HtmlContent = print_container.HtmlContent;

For Html handler:
// Setup GroupDocs.Viewer config
ViewerConfig config = new ViewerConfig();
config.StoragePath = @“D:\from office working\for aspose\storage”;

// Create Html handler
ViewerHtmlHandler htmlHandler = new ViewerHtmlHandler(config);
string guid = “word.doc”;

//Instantiate PrintableHtmlOptions
PrintableHtmlOptions print_options=new PrintableHtmlOptions(guid);

//get PrintableHtmlContainer
PrintableHtmlContainer print_container = htmlHandler.GetPrintableHtml(print_options);
String HtmlContent = print_container.HtmlContent;

Thanks for your understanding and cooperation.