Last active
September 23, 2021 06:52
-
-
Save GroupDocsGists/a74b1e67139b125f6f1be4709abca7cf to your computer and use it in GitHub Desktop.
Convert Word documents to Responsive HTML Pages using .NET & Java APIs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert Word DOC/DOCX documents to HTML Responsive Page in C# | |
using (Viewer viewer = new Viewer(@"path/document.docx")) | |
{ | |
HtmlViewOptions options = HtmlViewOptions.ForEmbeddedResources("path/page_{0}.html"); | |
options.RenderResponsive = true; // Set the Responsive as true | |
viewer.View(options); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert Word DOC/DOCX documents to HTML Responsive Page in Java | |
try (Viewer viewer = new Viewer("path/document.docx")) { | |
HtmlViewOptions viewOptions = HtmlViewOptions.forEmbeddedResources("path/page_{0}.html"); | |
viewOptions.setRenderResponsive(true); | |
viewer.view(viewOptions); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment