Free Support Forum -

Long conversion time to HTML for certain DOC file in .NET

It takes about 120 seconds to convert a single page for the attached document. (208.4 KB)

We were using GroupDocs.Viewer 21.3 in .NET with simple conversion to HTML:

       using (var viewer = new Viewer(documentPath))
           var info = viewer.GetViewInfo(ViewInfoOptions.ForHtmlView());
           var options = ViewOpts.HtmlViewOptions.ForEmbeddedResources("output_viewer{0}.html");

I also noticed that the GetViewInfo (“info”) shows only 143 pages, but when opening the file in Word there are 325 pages.

Hi @Clemens_Pestuka

We could reproduce this issue at our end. It’s been logged in our internal issue tracking system with ID VIEWERNET-3142. As there’s any update, you’ll be notified.

1 Like


I tried to reproduce wrong pages count case, but Microsoft Word 2016 shows 143 pages too:

(83.0 KB)

Which version of Microsoft Word are you using?

1 Like


Thank you for checking the issue.
I’m surprised that it only has 143 pages for you, as I am also using Word 2016:

image.png (36.5 KB)

I think most of the “missing” pages are auto-generated, like table of contents or the index at the end
image.png (45.1 KB)
Does it generate the Index on your side?

@Clemens_Pestuka seems Microsoft Word counts pages wrongly.

Is background repagination is turned on?

Check it with this manual

Also to check a final number of pages, you can print document from Word to PDF and get an actual number of pages.

1 Like

You are right, it’s really Word that counts the pages incorrectly.
Thank you :slight_smile:


You’re welcome!