简体   繁体   中英

alternative format to PDF format for Android development

I am developing an Android application which only works with text documents. Currently I'm using PDF format. But the total size of all the documents leads to some 25-30mb, too much for an app. The app is required to open the text documents and also allow features like zoom, search, etc. For this we considered a PDF viewing library, but that is simply increasing the size of the app.

We have considered redirecting the PDF's to open in default apps in the phones. But there are some text documents that NEED to be viewed through our own app. But a PDF viewing library isnt the best solution due to already huge size.

my question is : is there any alternative format to PDF format to be used in Android application that allows file compressibility without loss of quality?

and does not require a third party library to open the text documents.

Also , will I be able to zoom in on the text?

is there any alternative format to PDF format to be used in Android application that allows file compressibility without loss of quality?

HTML.

does not require a third party library to open the text documents

The WebView widget in Android can render HTML.

will I be able to zoom in on the text?

You as a developer can control the zoom level of the WebView , and users may also be able to use pinch-to-zoom gestures, depending on your content and the WebView size.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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