All Projects → FantasyLWX → AndroidMuPDF

FantasyLWX / AndroidMuPDF

Licence: Apache-2.0 license
Android App 使用第三方开源库 MuPDF 预览PDF、EPub、PNG、JPG、BMP、TIFF、GIF、SVG、CBZ、CBR、XPS文件

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to AndroidMuPDF

PdfViewerDemo
pdf阅读器,基于MuPDF开发,可横竖切换浏览、多种批注功能、电子签章
Stars: ✭ 103 (+68.85%)
Mutual labels:  mupdf
PyMuPDF-Optional-Material
Help file downloads, early ZIP binaries, wheels for retired Python 2.7, 3.5.
Stars: ✭ 14 (-77.05%)
Mutual labels:  mupdf
bookr-mod-vita
A book reader for the Vita and Switch. Still a work in progress.
Stars: ✭ 51 (-16.39%)
Mutual labels:  mupdf
mupdf-rs
Rust binding to mupdf
Stars: ✭ 41 (-32.79%)
Mutual labels:  mupdf
qiqqa-open-source
The open-sourced version of the award-winning Qiqqa research management tool for Windows (a bleeding edge dev fork) ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ☞☞☞ File any issues you find in the main repo issue tracker at https://github.com/jimmejardine/qiqqa-open-source/issues
Stars: ✭ 32 (-47.54%)
Mutual labels:  mupdf

AndroidMuPDF

AndroidMuPDF 提供一种集成第三方开源库 MuPDF 的方案,支持预览PDF、EPub、PNG、JPG、BMP、TIFF、GIF、SVG、CBZ、CBR、XPS文件。

所集成的 MuPDF 的版本是 1.12.0

Demo安装包:https://github.com/FantasyLWX/AndroidMuPDF/raw/master/other/AndroidMuPDF_V1.0_1_180401_1.apk

效果图

用法

  • Android Studio

直接导入 mupdf 模块就可以了

  • Eclipse

将 mupdf 模块中“java”文件夹中的源码、“jniLibs”文件夹中的so文件、“res”文件夹中的资源文件和AndroidManifest.xml复制到自己的项目工程中。

温馨提示: 一般情况下,“jniLibs”文件夹中的so文件,只要用“armeabi”和“armeabi-v7a”这两个就可以了。

示例

调用 MuPDF 预览文件的方式:

import com.artifex.mupdf.viewer.DocumentActivity;

public void startMuPDFActivity(String path) {
    Intent intent = new Intent(MainActivity.this, DocumentActivity.class);
    // intent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT); // API>=21,launch as a new document
    intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    intent.setAction(Intent.ACTION_VIEW);
    intent.setData(Uri.fromFile(new File(path)));
    startActivity(intent);
}

混淆

-dontwarn com.artifex.mupdf.**
-keep class com.artifex.mupdf.** {*;}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].