android - Docx conversion -


i doing simple docx conversion app in android.

file file = new file(path + "sample1.docx"); fileinputstream fis = new fileinputstream(file);   xwpfdocument document = new xwpfdocument( fis);  xwpfwordextractor extractor = new xwpfwordextractor(document);    string doctext = extractor.gettext();  

added above line in oncreate method.

included dom4j,poi3.8,poi-ooxml3.8,poi-xml-schema3.8 & xmlbeans jars in libs folder.

when run got error unable execute dex: method id not in [0, 0xffff]: 65536

googled , got info converting jar dex.

with out dex possible docx reading? dont want xlsx & pptx packages of poi.

i want covert doc , docx file. there separate code doc&docx conversion.

thanks

i able make jword working under android. had many issues apache poi have (conversion dalvik format failed).


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -