All Projects → ZhongXiaoHong → Superfileview

ZhongXiaoHong / Superfileview

Licence: apache-2.0
基于腾讯浏览服务Tbs,使用X5Webkit内核,实现文件的展示功能,支持多种文件格式

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Superfileview

Documentbuilder
ONLYOFFICE Document Builder is powerful text, spreadsheet, presentation and PDF generating tool
Stars: ✭ 61 (-94.53%)
Mutual labels:  excel, doc, ppt, word, docx
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 (+109.42%)
Mutual labels:  excel, doc, ppt, word, docx
Desktopeditors
An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
Stars: ✭ 1,008 (-9.6%)
Mutual labels:  excel, doc, ppt, word, docx
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+193.45%)
Mutual labels:  ppt, docx, pdf, excel, word
Androiddocumentviewer
Android 文档查看: word、excel、ppt、pdf,使用mupdf及tbs
Stars: ✭ 235 (-78.92%)
Mutual labels:  excel, ppt, 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 (+78.48%)
Mutual labels:  excel, word, docx
Yarg
Yet Another Report Generator - CUBA Platform reporting engine
Stars: ✭ 215 (-80.72%)
Mutual labels:  excel, doc, pdf
Msoffcrypto Tool
Python tool and library for decrypting MS Office files with passwords or other keys
Stars: ✭ 274 (-75.43%)
Mutual labels:  doc, ppt, docx
workable-converter
基于libreoffice实现的文档转换项目,无框架依赖,即插即用
Stars: ✭ 74 (-93.36%)
Mutual labels:  docx, doc, ppt
Officeproducer
Produce doc/docx/pdf format from doc/docx template
Stars: ✭ 95 (-91.48%)
Mutual labels:  doc, docx, pdf
Kkfileviewofficeedit
文件在线预览及OFFICE(word,excel,ppt)的在线编辑
Stars: ✭ 234 (-79.01%)
Mutual labels:  excel, ppt, word
Unioffice
Pure go library for creating and processing Office Word (.docx), Excel (.xlsx) and Powerpoint (.pptx) documents
Stars: ✭ 3,111 (+179.01%)
Mutual labels:  excel, word, docx
Gotenberg Php Client
PHP client for the Gotenberg API
Stars: ✭ 80 (-92.83%)
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 (+7.44%)
Mutual labels:  excel, word, pdf
Phpstamp
The XSL-way templating library for MS Office Word DOCX documents.
Stars: ✭ 150 (-86.55%)
Mutual labels:  doc, word, docx
Docconv
Converts PDF, DOC, DOCX, XML, HTML, RTF, etc to plain text
Stars: ✭ 735 (-34.08%)
Mutual labels:  word, docx, pdf
GemBox.Document.Examples
Read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, and TXT) in a simple and efficient way.
Stars: ✭ 53 (-95.25%)
Mutual labels:  word, docx, doc
Gotenberg Go Client
Go client for the Gotenberg API
Stars: ✭ 35 (-96.86%)
Mutual labels:  excel, word, pdf
Js Word
✒️ Word Processing Document Library
Stars: ✭ 1,203 (+7.89%)
Mutual labels:  doc, word, docx
gscloudplugin
浏览器打印PDF。 浏览器打印HTML。 浏览器打印图片。 浏览器打印Word。浏览器打印Excel。浏览器打印PPT。浏览器打印自定义绘图。浏览器打印微软报表。 使用静默方式打印。蓝牙打印。读写串口数据。读取电子秤重量
Stars: ✭ 18 (-98.39%)
Mutual labels:  excel, word, ppt

交流群 540686217

说明

  • 基于腾讯浏览服务,支持多种文件格式,例如doc、excel、ppt、excel、pdf等格式;
  • 支持展示网络文件
  • 支持测试本demo之前先把test文件夹里的文件复制到手机存储,方便测试,路径如下: 这里写图片描述

TBS服务接入

参考腾讯TBS官网,地址:https://x5.tencent.com/tbs/guide/sdkInit.html

效果图

这里写图片描述

常见问题

  • no suport by

出现这个错误提示的原因,首先可能是手机上没有Tbs内核,如果有tbs内核,则可能是内核正在初始化安装,还处于冷启动阶段,这个时候内核还不能使用,打开文件会出现这个错误,可以使用可以按如下方式确定内核是否成功加载并且可用: 方法1:

  QbSdk.initX5Environment(this, new QbSdk.PreInitCallback() {
            @Override
            public void onCoreInitFinished() {

            }

            @Override
            public void onViewInitFinished(boolean b) {
              //这里被回调,并且b=true说明内核初始化并可以使用
              //如果b=false,内核会尝试安装,你可以通过下面监听接口获知
            }
        });

       QbSdk.setTbsListener(new TbsListener() {
           @Override
           public void onDownloadFinish(int i) {
              //tbs内核下载完成回调
          }

           @Override
           public void onInstallFinish(int i) {
              //内核安装完成回调,
          }

           @Override
           public void onDownloadProgress(int i) {
                //下载进度监听
           }
       });

方法2:

QbSdk.preInit(this, new QbSdk.PreInitCallback() {
            @Override
            public void onCoreInitFinished() {
             
            }

            @Override
            public void onViewInitFinished(boolean b) {
              
            }
        });
        //tbs内核下载跟踪
        QbSdk.setTbsListener(this.tbsListener);
        //判断是否要自行下载内核
        boolean needDownload = TbsDownloader.needDownload(this, TbsDownloader.DOWNLOAD_OVERSEA_TBS);
        if (needDownload && isNetworkWifi(this)) {
        //isNetworkWifi(this)是我
        //自己写的一个方法,这里我也希望wifi下再下载
            TbsDownloader.startDownload(this);
        }

方法1、方法2 主要的区别在于方法1更加“自动”,内部会自动判断需不需要下载内核,因此在使用方法1来初始化的话,需要注意一下,此时tbs内核在非Wifi状态下是默认不会下载的,你可以通过以下方法来改变这个设置: QbSdk.setDownloadWithoutWifi(true);  

  • 插件加载失败

首次打开相关文件的时候需要下载相关文件的插件,因此需要保持网络可用状态,否则下载插件失败会出现这个错误。

  • NoSuchMethodException: onCallBackAction

这个错误我也是懵逼,不管成功打开与否,都会有这玩意,所以暂时先忽略。

博客

http://www.jianshu.com/p/3f57d640b24d

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