How document viewer API works in .NET

Thanks for your response @vladimir.litvinchik

We are converting documents in HTML View only. So are there any options to convert it just like you did to pdf (where it honors margins, spaces, indends and all).

I am attaching sample document also

ef1663en.pdf (2.1 MB)

Thanks
Vinay Bhatt

@vinaybhatt

Thank you for attaching the sample file. Please try running the sample_app.zip (911.1 KB). When you check the output folder you’ll find two folders.

  • html_embedded - will contain HTML files only where each of the file is a HTML representation of a page from the source PDF document. All the resources like fonts or images are embedded into each page.
  • html_external - will contain HTML files along with resource files (WOFF, PNG, CSS) where each page has corresponding resources.

The issue that you’ve described may happen when you’re converting to HTML with external resources but the external resources are failing to load, typically because of incorrect resource URL. Please check you’re browser developer console by hitting F12 if there any errors.

In case you still experience this issue please share the sample code and output HTML file so we could take a look.

Hello @vladimir.litvinchik

Thanks for your response.

Please check one below issue:

After converting the document into html, we are opening it in iframe. On browser it is working fine, but on mobile it does not fit to the screen. I am attaching image please check.

pdf not fit to screen.jpeg (79.9 KB)

Thanks
Vinay Bhatt

@vinaybhatt

Thanks for sharing the details. We’ll investigate this issue and update you.

Hello @vladimir.litvinchik

Thanks again

For your better clarity i can share a link which contains different types of documents. You can open them by clicking name/icon of the document to check design (which does not truly fit the screen, though we have set responsive=true while converting the document). For compression you can also download the document from there using options on the document.

These documents are already converted and are cached in server so they will load fast (in real they still take minutes to convert).

Please check this link and documents in mobile as well to check responsiveness of the document (to fit in screen).

Please check below given link

http://130.61.145.217:8013/Drive?data=964ed11c4a4fb97a5e27c85f1316ba1fa1cfa7a901b3b7bcc2c28684b0ed5c13be092a9d83d9bc81b755bbb539711011dc655d6826cf80588f4a19d6803f0b2e&lang=en_US

Thanks
Vinay Bhatt

@vinaybhatt

Thank you for the details, I can see that TXT, XLSX, PDF files do not fit into a screen on mobile. At the moment we do not support rendering to responsive layout for these file formats. The support for rendering to responsive HTML has been planned in three issues in our bug tracker that have IDs VIEWERNET-3358, VIEWERNET-3357, VIEWERNET-3356. We’ll let you know in case any updates.

Thanks for response @vladimir.litvinchik

@vinaybhatt

You’re welcome. We’ll notify you when we have any new information.

@vinaybhatt

We’ve completed investigating rendering TXT, XLSX, PDF files to responsive HTML so it’s fit to a mobile device’s screen:

  • XLSX - unfortunately, this feature can’t be supported for the spreadsheet documents since we’re converting to HTML according to Microsoft’s rules, and we will be consistent with Microsoft. Microsoft doesn’t support adaptive HTML for mobile devices, so we don’t support this feature either. Sorry for the inconvenience.
  • TXT - currently in progress
  • PDF - currently in progress

We’ll keep you updated about the progress.

Have a nice day!

@vinaybhatt

GroupDocs.Viewer for .NET v21.7 that includes fix for VIEWERNET-3358 issue has been published. You can find the new version at

Have a nice day!

@vinaybhatt

GroupDocs.Viewer for .NET v21.9 that includes fix for VIEWERNET-3312 issue has been published. You can find the new version at

@vinaybhatt

GroupDocs.Viewer for .NET v24.3 that includes fix for VIEWERNET-2854 issue has been published. You can find the new version at