PDF阅读在AndroidPDF、Android

2023-09-13 00:34:32 作者:爱你要不要

我必须做的一个应用程序应该能够阅读PDF文件在Android设备上。其实我不希望我的应用程序依赖于其他应用程序来阅读PDF文件。

I have to make an application that should capable of reading PDF documents on Android device. Actually I do not want my app to be dependent on other apps to read the PDF file.

我通过在这里提出的问题,并在其他一些地方也已经走了。他们都直接或间接地使用第三方应用程序。

I had gone through the questions that are asked here and at some other places also. They all directly or indirectly using third party app.

有没有API或类似的东西是可以通过它我可以在我的应用程序直接实现阅读PDF文件?如何将PDF文件转换为PNG图像?但是,PDF,PNG方法不会让用户选择的文本。

Is there any API or something similar is available through which I can implement reading of PDF files directly in my app? How about converting the PDF document to PNG image? But the PDF-PNG method wont let users select the texts.

有什么建议?

感谢

推荐答案

存在从Adobe的库,你可以使用。它的基础上,NDK,你需要全部由自己做包装。它也非常昂贵,基本上没有什么了一家小公司/单个开发者,但对于较大的公司。 AFAIK许可不仅根据价格昂贵,而且每年的,所以你需要每年付费...

There exists an library from Adobe that you can use. Its based on the NDK and you need to do the wrapping all by yourself. Its also extremely expensive, basically nothing for a small firm/single developer but for bigger companies. Afaik the license is not only expensive but also annual based, so you need to pay for it in every year...

有其他库,基本上都是开源的。他们中有些人有良好的表现,但缺乏的功能(其中大部分基于NDK,太)。我只找到一个纯粹的java库,但有过之而无不及(加载时间10秒一个页面,更多)则表现得比较。

There are other libraries, basically open source. Some of them have good performance but a lack of functionality (most of them based on NDK, too). I found only one pure "java" library but the performance was more than worse (loading time 10sec for a page and more).

有三种可能性,你应该考虑:

There are three possibilities you should consider:

在使用外部应用程序,所以你只需要实现的PDF文档库 您写自己的一切,包括一个PDF阅读器部分 您创建一个中间层,您将您的PDF转换为PNG图像或JPG(PFER PNG我$ P $的质量越好)。该更好的性能配备了一个缺乏特色。

我目前正在开发一个复杂的应用程序,如提及3,但我就不赘述了,不好意思。

I'm currently developing a complex application like mentioned in 3. but I can't go into details, sorry.

 
精彩推荐
图片推荐