As small make up work increasingly complex (in fact, the “dirty” boss squeezed, a person with the job of more than one person ~ T – T), small make up every day to deal with a variety of different types of documents, each type also use different tools to open, is in trouble, so small make up to, and what tools, can offer an online preview function directly, Is it convenient to see the contents directly inside?

Since xiaobian all think so, then there must be a lot of people think so, there must be a good and outstanding program ape exists, so there is the existence of this project:

KkFileView, a mature and open source document online preview project solution, if you have used similar such as Yongzhongoffice, Office365, IDOCV these payment products, you will like kkFileView, because in the premise of functional satisfaction, who likes to pay ~

KkFileView has 12 features:

12 major features

  • Support word, Excel, PPT, PDF and other office documents

  • Support the TXT, Java, PHP, py, md, js, CSS, etc. All plain text

  • Supports zip, RAR, JAR,tar, and gzip packages

  • JPG, JPEG, PNG, GIF and other image preview (flip, zoom, mirror)

  • Support mp3, MP4, FLV and other multimedia file preview

  • Using Spring Boot development, the preview service setup deployment is very easy

  • Rest interfaces provide services, cross-platform features (Java, PHP, Python, Go, PHP,….) Both support, easy application access

  • Supports various preview sources, such as common HTTP/HTTPS file download urls, HTTP/HTTPS file download stream urls, and FTP download urls

  • Zip, tar.gz packages, one-click startup scripts, and various configuration items are provided to facilitate deployment

  • Docker image distribution package is provided to facilitate deployment in container environment

  • Abstract preview service interface, convenient secondary development, very convenient to add other types of file preview support

  • The most important Apache protocol open source, code pull down to do what you want

For kkFileView, the most important thing is the actual display effect, small editor found a previous Mid-Autumn Festival used to store children’s pictures with the picture of word file, look at the actual effect of online preview:

It’s the same as what’s actually on

Let’s take a look at some other preview files:

Text preview

Support all types of text document preview, because there are too many text document types to enumerate all, The default open type the following TXT, HTML and HTM, asp, JSP, XML, json, properties, md, gitignore, log, Java, py, c, CPP, SQL, sh, bat, m, bas,.prg, CMD

The text preview looks like this

Document preview

1, support doc, DOCX document preview, Word preview has two modes: one is every page of Word to picture preview, the other is the whole Word document into PDF, and then preview PDF. The application scenarios of the two modes are as follows

  • Image preview: Word files are too large and the front end is too slow to load the entire PDF

  • PDF preview: Intranet access, fast loading PDF

Image preview mode The preview effect is as follows

PDF Preview mode The preview effect is as follows

2, support PPT, PPTX document preview, and Word document, there are two preview modes

Image preview mode The preview effect is as follows

PDF Preview mode The preview effect is as follows

3, support PDF document preview, and Word document, there are two preview modes

Image preview mode The preview effect is as follows

PDF Preview mode The preview effect is as follows

4, support XLS, XLSX document preview, preview effect is as follows

5. Supports zip, RAR, JAR,tar,gzip and other compressed packages

Click the file name in the compressed package to preview the file. The preview effect is as follows

6. In theory, all video and audio files are supported. By default, mp3, WAV, MP4 and FLV are enabled because you cannot list all file formats

If the coverage is incomplete, you can specify the multimedia type through the configuration file

A preview of the video looks like this

The audio preview looks like this

The author’s most recent update, released in July with version 4.00, completed eight optimizations:

  • Low-level integration OpenOffice is replaced by LibreOffice, Office file compatibility is enhanced, preview effect is improved

  • Fix zip file directory traversal vulnerability

  • Fix PPT preview using PDF mode invalid

  • Fix the abnormal front display of PPT picture preview mode

  • Added: The home page file upload function can be enabled or disabled in real time

  • Optimized to add Office process shutdown logs

  • Optimized for Windows, find Office component logic (built-in LibreOffice preferred)

  • Optimized start Office process to synchronize execution

The project supports multiple platforms, such as Windows, Linux, and MAC. You can download the release version, decompress it, and run the startup.bat command in the bin directory to install it.

Of course, experienced players can pull the source code to compile ~

As a reminder, to change the configuration file, simply modify the application.properties file in the config directory

All right, if you want to experience the online preview, get in line

Click the card below/wechat search, follow the public account “Tianyu Creative Music” (ID: GH_CC865e4C536b)

Reply to “Online Preview” to obtain the warehouse address

Tianyu Creative music school

Personal subscription number mainly provides: sharing the latest information IT tutorial free novel platform

4 original content

The public,

This article uses the article synchronization assistant to synchronize