How to render PDF in Android

前端 未结 6 883
被撕碎了的回忆
被撕碎了的回忆 2020-11-22 09:03

In my application I will receive a byte stream and convert it to a pdf file in the phone memory. How do I render that to a pdf? And show it on an activity?

6条回答
  •  独厮守ぢ
    2020-11-22 09:56

    For the local pdf files, you can render them through the third party libraries. for example, use the MuPDF library, its supported file types include PDF, PNG and JPEG.

    One shortcoming of MuPDF is that it uses native library to fulfill the target, so it won't be easy to port the application on BlackBerry platform later.

提交回复
热议问题