Skip to content

Android port of wvWare - library to load and parse Word 2000, 97, 95 and 6 files

License

Notifications You must be signed in to change notification settings

asdlei99/wvWare-Android

 
 

Repository files navigation

Android port of wvWare

Build Download

Scope:

Currently limited to wvHtml.

How to install:

sample-app/app/build.gradle contains code to load the library as a dependency in Gradle.

dependencies {
    implementation 'com.viliussutkus89:wvware-android:1.2.4'
}

wvWare-Android is distributed using JCenter Maven repository.
It needs be added to top level build.gradle

allprojects {
  repositories {
      jcenter()
  }
}

Usage:

Library is interfaced through Java.

import com.viliussutkus89.android.wvware.wvWare;
...
java.io.File input = new java.io.File(getFilesDir(), "my.doc");
java.io.File outputHTML = new wvWare(getApplicationContext()).setInputDOC(input).convert();

Encrypted documents need a password to be decrypted.

java.io.File outputHTML = new wvWare(getApplicationContext()).setInputDOC(input).setPassword("password").convert();

Library needs Android Context to obtain path to cache directory and asset files, which are supplied in .aar.

Example demonstrates how to convert DOC files to HTML and either open the result in browser or save to storage. Storage Access Framework (SAF) is used for file management, it requires API level 19 (KitKat). Debug build of sample application is available in Releases Page

Tools to build from source:

  • Meson Build system
  • pkg-config
  • CMake-3.10.2
  • ndk-22.0.7026061

About

Android port of wvWare - library to load and parse Word 2000, 97, 95 and 6 files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 38.5%
  • CMake 27.7%
  • Java 21.0%
  • Shell 8.2%
  • C++ 4.6%