Android port of wvWare
Currently limited to wvHtml.
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()
}
}
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
- Meson Build system
- pkg-config
- CMake-3.10.2
- ndk-22.0.7026061