MCPcopy Index your code
hub / github.com/RDSunhy/android-word2html

github.com/RDSunhy/android-word2html @1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.0 ↗ · + Follow
105 symbols 172 edges 9 files 5 documented · 5% updated 5y ago1.2.0 · 2019-09-17★ 622 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

android-word2html

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.hao896259037:android-word2html:1.1.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);
WordUtils.getInstance(basicSet).word2html();

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...

Core symbols most depended-on inside this repo

getSize
called by 2
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java
getColor
called by 2
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java
writeDocumentPicture
called by 2
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java
writeParagraphContent
called by 2
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java
createFile
called by 2
android_word2html/src/main/java/com/shy/poi/word2html/FileUtils.java
getInstance
called by 1
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java
word2html
called by 1
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java
readDOC
called by 1
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java

Shape

Method 96
Class 9

Languages

Java100%

Modules by API surface

android_word2html/src/main/java/com/shy/poi/word2html/BasicSet.java72 symbols
android_word2html/src/main/java/com/shy/poi/word2html/WordUtils.java11 symbols
android_word2html/src/main/java/com/shy/poi/word2html/FileUtils.java8 symbols
app/src/main/java/com/shy/word2html/MainActivity.java4 symbols
app/src/test/java/com/shy/word2html/ExampleUnitTest.java2 symbols
app/src/main/java/com/shy/word2html/PreviewActivity.java2 symbols
app/src/androidTest/java/com/shy/word2html/ExampleInstrumentedTest.java2 symbols
android_word2html/src/test/java/com/shy/poi/word2html/ExampleUnitTest.java2 symbols
android_word2html/src/androidTest/java/com/shy/poi/word2html/ExampleInstrumentedTest.java2 symbols

For agents

$ claude mcp add android-word2html \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact