Page 1 of 1

Newest docx4j version that works

PostPosted: Tue Nov 24, 2015 8:14 am
by solarmoo900
Hello,

What is the newest version of docx4j that people have gotten to work on Android. The current Android docx4j project is from over 4 years ago and hence missing a lot of the security updates.

I have tried to get the newest version 3.2.2 to run but can't figure out the proper proguard configuration and everything.

Please let me know if you've had any luck.

Josh

Re: Newest docx4j version that works

PostPosted: Thu Nov 26, 2015 7:09 am
by jason
In general see http://www.docx4java.org/blog/2012/05/j ... n-android/

Does your v3.2.2 use the ae package classes, as opposed to standard jaxb? See for example https://github.com/plutext/docx4j/tree/ ... org/docx4j

Alternatively, you could explore https://github.com/ndpgroup/jaxb-android

Proguard is the final step...

Re: Newest docx4j version that works

PostPosted: Wed Dec 02, 2015 7:54 am
by solarmoo900
As I stated, the last updates to any of those is 4 years ago (except jaxb which is about 7 months)

I was hoping someone had newer resources using a newer version of docx4j and Android Studio. Proguard can't be the last step as when you can't even compile due to the dex method it makes it obviously impossible to debug

Re: Newest docx4j version that works

PostPosted: Thu Dec 03, 2015 3:16 pm
by jason
Right, you said

I have tried to get the newest version 3.2.2 to run


To get it to run, you'd need to use the ae package JAXB implementation, instead of the usual.

And then if you are running into the Android ceiling on the number of methods/classes, remove part of docx4j - the PDF export being a prime candidate since it is so big.

Most recent port I'm aware of is Sept last year: android-f19/images-t1977.html