WORD TO PDF
需要使用“aspose-words”包,大小为13M,默认选项转换:
val doc = com.aspose.words.Document(inputPath)
doc.save(outputPath)

PDF TO WORD
使用最新版19.3,按照API文档里说明的方式去转换,崩溃:

看到论坛上官方说要使用临时License解锁所有功能,申请并且添加认证成功:

但还是崩溃;最后按照首页广告里介绍写的方式去转换,崩溃:

不太可能吧!已经发帖求助官方。
最后论坛上又全部翻了一遍,android端的讨论很少,但是发现一位老哥遇到了同样的问题,官方的答复来看确实是有BUG:

最后的最后,尝试了旧版本,18.6,好吧,也还是崩溃;
回到之前调研的竞品com.hudun.androidpdfchanger上,发现其PDF转word用的是在线的........
网友评论