简体   繁体   English

在Android项目中集成MuPDF库

[英]Integrating MuPDF library in Android Project

I downloaded "mupdf-1.3-source" and built using Cygwin. 我下载了“mupdf-1.3-source”并使用Cygwin构建。

Which files should I import in my Android project? 我应该在Android项目中导入哪些文件?

This is what i did to make MuPDF(currently using the 1.9 version) work with my project: 这就是我使MuPDF(目前使用的1.9版本)与我的项目一起工作的方法:

copy the jni folder in MuPDF-1.9-source into my project folder; 将MuPDF-1.9-source中的jni文件夹复制到我的项目文件夹中;

copy the thirdparty, generated, scripts, xps, fitz, cbz drawable folder into the jni folder that just copied over; 将第三方,生成,脚本,xps,fitz,cbz drawable文件夹复制到刚刚复制过的jni文件夹中;

In res folder of my project, copy everything that the MuPDF needs, ie string values, colors, layouts, and drawables. 在我的项目的res文件夹中,复制MuPDF需要的所有内容,即字符串值,颜色,布局和drawable。 For layout leaves the main layout alone copy the rest layouts over. 对于布局,主要布局单独复制其余布局。

modify AndroidManifest.xml to include additional activities 修改AndroidManifest.xml以包含其他活动

I used cgywin to rebuild the libraries(?),but it gave me an error. 我使用cgywin重建库(?),但它给了我一个错误。 Somehow without that step, MuPDF works for my project... 不知怎的,没有那一步,MuPDF适用于我的项目......

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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