已淘汰(Tencent 开始收费);Android 文档查看:word、excel、ppt、pdf,使用 mupdf 和 tbs
已淘汰(Tencent 开始收费);Android 文档查看:word、excel、ppt、pdf,使用 mupdf 和 tbs
示例app效果:
参考: 示例
lib_fileviewer模块,加入到projectndk {
// 此处必须设置为 armeabi ,TBS 文件浏览不支持其他类型
abiFilters "armeabi"
}QbSdk.initX5Environment(getApplicationContext(), new QbSdk.PreInitCallback() {
@Override
public void onCoreInitFinished() {
Log.d(TAG, "onCoreInitFinished");
}
@Override
public void onViewInitFinished(boolean initResult) {
Log.e(TAG, "onViewInitFinished" + initResult);
}
});Uri uri = Uri.fromFile(new File(filePath));
FileViewer.viewFile(context,uri)FileViewer.viewPDFWithMuPDFByPath(Context context, String filePath)或:
FileViewer.startMuPDFActivityByUri(Context context, Uri documentUri)TBSFileViewActivity.viewFile(context, filePath);版本: v1.11.1
介绍: MuPDF is an open source software framework for viewing and converting PDF, XPS, and E-book documents. There are viewers for various platforms, several command line tools, and a software library for building tools and applications.
项目地址: https://mupdf.com/docs/
Android 文档: https://mupdf.com/docs/android-sdk.html
简介: web内核
暂无开放 Issues,或尚未同步最近议题。