Skip to content

Instantly share code, notes, and snippets.

@aspose-words
Last active February 16, 2017 12:33
Show Gist options
  • Select an option

  • Save aspose-words/eeb3c067f9fc2d44b4fa4628bba5d5ac to your computer and use it in GitHub Desktop.

Select an option

Save aspose-words/eeb3c067f9fc2d44b4fa4628bba5d5ac to your computer and use it in GitHub Desktop.
This gist contains code snippets for Aspose.Words for Android
Aspose.Words-for-Android
// 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);
// 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