Last active
February 16, 2017 12:33
-
-
Save aspose-words/eeb3c067f9fc2d44b4fa4628bba5d5ac to your computer and use it in GitHub Desktop.
This gist contains code snippets for Aspose.Words for Android
This file contains hidden or 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
| Aspose.Words-for-Android |
This file contains hidden or 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
| // For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Android | |
| Document doc = new Document(filePath); | |
| HtmlSaveOptions saveOptions = new HtmlSaveOptions(); | |
| saveOptions.setExportFontResources(true); | |
| saveOptions.setExportFontsAsBase64(true); | |
| doc.save(myDir + "/ExportFontsAsBase64_out.html", saveOptions); |
This file contains hidden or 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
| // For complete examples and data files, please go to https://github.com/aspose-words/Aspose.Words-for-Android | |
| Document doc = new Document(filepath); | |
| HtmlSaveOptions saveOptions = new HtmlSaveOptions(); | |
| saveOptions.setCssStyleSheetType(CssStyleSheetType.EXTERNAL); | |
| saveOptions.setExportFontResources(true); | |
| saveOptions.setResourceFolderAlias("http://example.com/resources"); | |
| saveOptions.setResourceFolder(resourceDir); | |
| doc.save(myDir + "/ExportResourcesUsingHtmlSaveOptions_out.html", saveOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment