Android的PDF渲染Android、PDF

2023-09-06 10:44:23 作者:汐颜兮梦

我想渲染/打开PDF文件(存储在SD卡)在Android中没有使用,编译应用程序或浏览器。

I would like to render/open PDF file (stored in SDCard) in Android without using in-build application or viewer.

1)我们尝试MuPDF开源库,但渲染使用这个库是很慢的。

1) We have tried MuPDF open source library but rendering using this library is very slow.

2),我们可以使用iText库呈现在安卓(即iText的PDF文件为PDF查看器)。

2) Can we use iText library for rendering PDF files in Android (i.e. iText as a PDF Viewer).

是否有任何其他的PDF库(开源),可在Android中使用或建议的基本准则制订的PDF浏览器的Andr​​oid。

Is there any other PDF library(open source) that can be used in Android Or suggest basic guideline for developing PDF viewer for Android.

推荐答案

我已经做了一些这方面的研究最近,我一直在Android试过超过14个图书馆,我已经在一些高分辨率的打印进行简单的基准测试-ready PDF杂志,我目前正在考虑使用MuPDF或Radaee工作,因为他们出去是最好的。

I've done some research in this field recently, I've tried more than 14 libraries on Android, I've done simple benchmarking on some high resolution print-ready PDF magazines and I'm currently considering to use MuPDF or Radaee in work as they went out as the best.

我已经试过VuDroid和APV,以及和他们都非常不稳定,他们崩溃往往对复杂的PDF文件,并​​在comparsion到MuPDF或Radaee很慢。

I've tried VuDroid and apv as well and they are very unstable, they are crashing very often on complex PDF documents and very slow in comparsion to MuPDF or Radaee.

由于MuPDF和Radaee(和其他一些库)都写在纯C并通过NDK使用Android上,他们给了最佳的性能(他们都支付用于商业用途)。

Since MuPDF and Radaee (and some other libraries) are written in pure C and are used on Android through NDK, they are giving the best possible performance (and they both are paid for a commercial use).