Code Monkey home page Code Monkey logo

file_viewer's Introduction

该项目主要用于文件的预览,使用springboot搭建

支持预览文件的类型

  • 文本文件
    • txt | sql | java | js | html | xml | html | css 等
  • 图像文件
    • jpeg | jpg | png | bmp 等
  • 压缩文件
    • zip | rar | jar | gzip 等
  • office文件
    • doc | docx | xlsx | xls | ppt | pptx 等
  • pdf文件

使用方法

转换规则

  • 图片不进行转换,使用viewer.js展示
  • 文本文件转换编码为utf-8
  • office文件选择将word文档转为pdf文件,xls表格转为html文件,ppt文件转为图片
  • 压缩文件先解压到本地,再利用Ztree插件(一个很强大的文件展示插件)做前端的展示

文件预览效果

压缩文件 输入图片说明

excel文件 输入图片说明

word文件 输入图片说明

ppt文件 输入图片说明

图片 输入图片说明

file_viewer's People

Contributors

chenchicheng avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.