All Projects → RDSunhy → android-word2html

RDSunhy / android-word2html

Licence: other
android word文档预览 基于poi的word(.doc/.docx)转html 实现预览功能

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to android-word2html

Kkfileviewofficeedit
文件在线预览及OFFICE(word,excel,ppt)的在线编辑
Stars: ✭ 234 (+515.79%)
Mutual labels:  word, preview
v2
Version 2 of the getBible API
Stars: ✭ 34 (-10.53%)
Mutual labels:  word
hedges
List of (possible) English hedge words
Stars: ✭ 39 (+2.63%)
Mutual labels:  word
ISVImageScrollView
Image preview component with zoom, scroll and rotation support
Stars: ✭ 28 (-26.32%)
Mutual labels:  preview
buzzwords
List of (possible) English buzzword words
Stars: ✭ 51 (+34.21%)
Mutual labels:  word
file-upload-with-preview
🖼 Simple file-upload utility that shows a preview of the uploaded image. Written in TypeScript. No dependencies. Works well with or without a framework.
Stars: ✭ 406 (+968.42%)
Mutual labels:  preview
clipboard-parser
剪贴板解析器,支持解析@RequestParam/@ApiModelProperty接口定义代码、Word、Excel以及其他表格类数据
Stars: ✭ 15 (-60.53%)
Mutual labels:  word
Rage
Rage allows you to execute any file in a Microsoft Office document.
Stars: ✭ 68 (+78.95%)
Mutual labels:  word
npoi
a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.
Stars: ✭ 4,493 (+11723.68%)
Mutual labels:  word
lfimg
Image preview support for lf (list files) using Überzug
Stars: ✭ 174 (+357.89%)
Mutual labels:  preview
mup
A markup previewer
Stars: ✭ 38 (+0%)
Mutual labels:  preview
jstarcraft-nlp
专注于解决自然语言处理领域的几个核心问题:词法分析,句法分析,语义分析,语种检测,信息抽取,文本聚类和文本分类. 为相关领域的研发人员提供完整的通用设计与参考实现. 涵盖了多种自然语言处理算法,适配了多个自然语言处理框架. 兼容Lucene/Solr/ElasticSearch插件.
Stars: ✭ 92 (+142.11%)
Mutual labels:  word
markdown-preview-sync
A quasi real-time vim markdown preview plugin | 第一款基于Java的Vim Markdown预览插件
Stars: ✭ 56 (+47.37%)
Mutual labels:  preview
vue-active-preview
🌲 A PhotoSwipe Image Preview component for Vue
Stars: ✭ 22 (-42.11%)
Mutual labels:  preview
imgcat
Display images and gifs in your terminal.
Stars: ✭ 67 (+76.32%)
Mutual labels:  preview
an-array-of-spanish-words
List of ~636,000 Spanish words
Stars: ✭ 31 (-18.42%)
Mutual labels:  word
vscode-svg-preview
Svg Preview for VSCode
Stars: ✭ 27 (-28.95%)
Mutual labels:  preview
react-typewriter-js
Simple vanilla JS script to simulate text typewriting effect.
Stars: ✭ 18 (-52.63%)
Mutual labels:  word
WordIDE
A tool that helps you write code in your favorite IDE: your word processor!
Stars: ✭ 37 (-2.63%)
Mutual labels:  word
com.elovirta.ooxml
DITA to Word plug-in
Stars: ✭ 19 (-50%)
Mutual labels:  word

android-word2html

CSDN博文 android word文档预览(支持doc/docx两种格式)

Visit Count(from 2021/04/02)

Add Library

//build.gradle
allprojects {
    repositories {
        ...
	    maven { url 'https://jitpack.io' }
    }
}
//app/build.gradle
android{
    defaultConfig{
        ...
        multiDexEnabled true
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation 'com.github.RDSunhy:android-word2html:1.2.0'
}


//If this fails
//You can Import Module (android_word2html)

Example

BasicSet basicSet = new BasicSet(
        MainActivity.this,
        sourceFilePath,//word file path
        htmlFilePath,//after conver html file storage path
        htmlFileName);//html fileName
//Some configuration can be added...
//The concrete in BasicSet.class
//basicSet.setHtmlBegin(htmlBegin);
String htmlSavePath = WordUtils.getInstance(basicSet).word2html();

...
//Render in a webview
webView.loadUrl("file://"+htmlSavePath);

Known Bug

  I can't set the image to fit the screen width
  I tried to style the label
  //String imgBegin = "<img src=\"%s\" width=\"100%\" height=\"auto\">";
  //basicSet.setImgBegin(imgBegin);
  But it failed...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].