ryabenko-pro / Docx-parser-and-generator-client

Android client for document generation. Loads docx file form dropbox, send it on server for parsing, display fields for user's input, collect input data and send on server for file generation. Result file saving to Dropbox folder.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In this code I use AndroidAnnotations framework. It makes code more cleaner with no side effect.

Most interesting part is in DocumentActivity - loadDocument and saveDocument. To replace placeholders with user input I use ParagraphRangeUpdater children (DatePicker, EditText).
To read/write document I use Apache POI library - it is most advanced (but abandoned) .doc java library. 

I did not implement image feature due to Apache POI limitation. It's .doc part does not support image insertion. New version (.docx) does support it, but source file is in old doc format.
 
Task was not very complicated, except for lack of POI documentation and image research, which I will continue for some time.
Nevertheless I spent about 22 hrs, mostly trying to get image into doc.

About

Android client for document generation. Loads docx file form dropbox, send it on server for parsing, display fields for user's input, collect input data and send on server for file generation. Result file saving to Dropbox folder.


Languages

Language:Java 100.0%