GithubHelp home page GithubHelp logo

paulzhousz / officepreview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 578372374/officepreview

0.0 1.0 0.0 10.7 MB

Linux环境下的文档在线预览,支持公式

Java 6.62% XSLT 19.28% JavaScript 68.74% CSS 5.36%

officepreview's Introduction

officePreview

主要功能:

  1. 实现了Office文档在线预览,禁止打印/下载
  2. 支持Linux环境
  3. 支持2003 2016版本Office文档,包含公式

思路:

将Office文档使用JodConverter转换成PDF格式,使用PDF.js实现在线预览

使用方式:

直接启动项目,访问index.jsp,即可看到在线预览功能

其他

在src/test/java目录下,将项目中用到的一些核心技术做了分离,可以直接拿来单独使用

  • com.formula.docx docx公式转换图片
  • com.formula.xlsx xlsx公式转换图片
  • com.pdf.convert Office文档转换成PDF
  • com.watermark.pdf PDF文档加水印

更详细的说明可以参看与项目对应的简书上的文章

officepreview's People

Contributors

578372374 avatar

Watchers

James Cloos 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.