All Projects → hanlyjiang → Androiddocumentviewer

hanlyjiang / Androiddocumentviewer

Licence: mit
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Androiddocumentviewer

Documentserver
ONLYOFFICE Document Server is an online office suite comprising viewers and editors for texts, spreadsheets and presentations, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
Stars: ✭ 2,335 (+893.62%)
Mutual labels:  excel, ppt, office, word
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (+328.94%)
Mutual labels:  excel, ppt, office, word
Kkfileviewofficeedit
文件在线预览及OFFICE(word,excel,ppt)的在线编辑
Stars: ✭ 234 (-0.43%)
Mutual labels:  excel, ppt, office, word
Superfileview
基于腾讯浏览服务Tbs,使用X5Webkit内核,实现文件的展示功能,支持多种文件格式
Stars: ✭ 1,115 (+374.47%)
Mutual labels:  excel, ppt, word, pdf
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+1292.34%)
Mutual labels:  ppt, pdf, excel, word
OfficeExtractor
Extracts embedded OLE objects from Word, Excel, PowerPoint, Open Office and RTF files without needing the original programs
Stars: ✭ 67 (-71.49%)
Mutual labels:  excel, word, office
Docs2Pdf
Bulk convert word/powerpoint/excel file to pdf.
Stars: ✭ 27 (-88.51%)
Mutual labels:  excel, word, office
rgpipe
lesspipe for ripgrep for common new filetypes using few dependencies
Stars: ✭ 21 (-91.06%)
Mutual labels:  excel, word, office
gscloudplugin
浏览器打印PDF。 浏览器打印HTML。 浏览器打印图片。 浏览器打印Word。浏览器打印Excel。浏览器打印PPT。浏览器打印自定义绘图。浏览器打印微软报表。 使用静默方式打印。蓝牙打印。读写串口数据。读取电子秤重量
Stars: ✭ 18 (-92.34%)
Mutual labels:  excel, word, ppt
Gotenberg Go Client
Go client for the Gotenberg API
Stars: ✭ 35 (-85.11%)
Mutual labels:  excel, word, pdf
Magicodes.ie
Import and export general library, support Dto import and export, template export, fancy export and dynamic export, support Excel, Csv, Word, Pdf and Html.
Stars: ✭ 1,198 (+409.79%)
Mutual labels:  excel, word, pdf
Npoi
A .NET library for reading and writing Microsoft Office binary and OOXML file formats.
Stars: ✭ 1,751 (+645.11%)
Mutual labels:  excel, office, word
Office365FiddlerExtension
This Fiddler Extension is an Office 365 centric parser to efficiently troubleshoot Office 365 client application connectivity and functionality.
Stars: ✭ 23 (-90.21%)
Mutual labels:  excel, word, office
craXcel-cli
Command line application to unlock Microsoft Office password protected files.
Stars: ✭ 44 (-81.28%)
Mutual labels:  excel, word, office
Documentbuilder
ONLYOFFICE Document Builder is powerful text, spreadsheet, presentation and PDF generating tool
Stars: ✭ 61 (-74.04%)
Mutual labels:  excel, ppt, word
Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (-65.96%)
Mutual labels:  excel, word, pdf
Office Ribbonx Editor
An overhauled fork of the original Custom UI Editor for Microsoft Office, built with WPF
Stars: ✭ 205 (-12.77%)
Mutual labels:  excel, office, word
Net Core Docx Html To Pdf Converter
.NET Core library to create custom reports based on Word docx or HTML documents and convert to PDF
Stars: ✭ 133 (-43.4%)
Mutual labels:  word, pdf
Docxtemplater
Generate docx pptx and xlsx (Microsoft Word, Powerpoint, Excel documents) from templates, from Node.js, the Browser and the command line / Demo: https://www.docxtemplater.com/demo
Stars: ✭ 1,990 (+746.81%)
Mutual labels:  excel, word
Open Paperless
Scan, index, and archive all of your paper documents (acquired by Mayan EDMS)
Stars: ✭ 2,538 (+980%)
Mutual labels:  office, pdf

在 Android 上查看word,excel,powerpoint,pdf

示例app效果:

示例app效果

如何使用?

参考: 示例

  • 复制lib_fileviewer模块,加入到project
  • App中build.gradle中加入以下配置:
ndk {
            // 此处必须设置为 armeabi ,TBS 文件浏览不支持其他类型
            abiFilters "armeabi"
    }
  • TBS初始化(在Application中):
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)
  • 直接使用mupdf查看:
FileViewer.viewPDFWithMuPDFByPath(Context context, String filePath)

或:

FileViewer.startMuPDFActivityByUri(Context context, Uri documentUri)
  • 直接使用TBS查看word文档:
TBSFileViewActivity.viewFile(context, filePath);

注意事项

  1. office文件无法查看(TBS初始化失败),可以查看这个文档:无法加载x5内核的解决方案.doc

使用到的库:

PDF查看: mupdf

版本: 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

word等文件查看 : TBS(腾讯浏览服务)

简介: web内核

官方页面

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].