简体   繁体   English

Android Office Word(.doc / .docx)到(image / html / xml / pdf)转换中是否有任何Api

[英]Is there any Api in android for ms office word(.doc/.docx) to (image/html/xml/pdf) conversion

I am trying to make android application which should take ms word files ie( .doc/.docx ) files as input and convert it into pdf as final output. 我正在尝试使android应用程序应以ms字文件 (即( .doc/.docx )文件)作为输入,并将其转换为pdf作为最终输出。 I searched for pdf conversion in android but the output i got was not proper. 我在android中搜索了pdf转换,但输出不正确。 i tried with jWordConvert(Qoppa software library) ,it converts word to pdf in java very well but if we try in android it giving error, 我尝试使用jWordConvert(Qoppa software library) ,它在Java中将word很好地转换为pdf,但是如果我们在android中尝试,则会出现错误,

conversion to dalvik format failed with error 1 . conversion to dalvik format failed with error 1

also i tried with apache poi library but again it is not showing proper output if my word files contains images or tables..also if we tried with apache tika with apache poi, again same results. 我也尝试了apache poi库,但是如果我的word文件包含图像或表格,它也不会显示正确的输出。.如果我们也尝试了apache poi的apache tika ,同样的结果。

Itext is also there but its main use is to convert from images/html to pdf, but again output is different from outr expectation.. itext也在那里,但是它的主要用途是从images / html转换为pdf,但是输出又超出了预期。

So my request is, Is there any api which should support android application for word to html/pdf/image conversion with proper output if my word file contains tyables, images etc. also can i go for JNI, is there any anather way to do it. 所以我的要求是,如果我的word文件包含tyables,images等,是否有任何API应该支持android应用程序将word转换为html / pdf / image并具有正确的输出。我也可以使用JNI,是否有其他方法它。

please reply. 请回复。 thanx in advance. 提前谢谢。

Here is an app which does what you want to realize. 是一个您想要实现的应用程序。

If there is an app already in app store, for me is very easy to know what that use and how is using... 如果应用商店中已经有一个应用,对我来说很容易知道该使用什么以及如何使用...

I hope it helps for you a bit! 希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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