简体   繁体   中英

Conversion of word document to pdf in android

I know that there n number of question in stackoverflow which is about this same issue, but i didn't get what i was looking for. I even tried using jwordconvert.jar from Qoppa software, but alas !!! it said

Unable to execute dex: Java heap space
Conversion of dalvik format failed.

Now i have seen an app in android market, thats name as Word To Pdf from ThinkTI.com.br . It just did what i want my program to do.

So can anyone tell me about the mechanism behind this application or a similar or better way to do it....

Disclosure: I work on docx4j

docx4j can produce PDF output; see ConvertOutPDF.java

If that quality is acceptable for your purposes, then you can use the docx4j Android build. See jaxb-can-be-made-to-run-on-android

You'll still need to give Java enough heap space; as per the blog post, to give Eclipse more heap space (symptom is 'you get Unable to execute dex: Java heap space') edit eclipse.ini, with something like:

-Xms256m

-Xmx4096m

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM