Explore kkFileView: Open‑Source Spring Boot Document Preview Engine

kkFileView is an open‑source Spring Boot‑based service that enables online preview of a wide range of document, image, archive and multimedia formats, offering multiple rendering modes and easy REST integration for developers.

Open Source Linux
Open Source Linux
Open Source Linux
Explore kkFileView: Open‑Source Spring Boot Document Preview Engine

Project Background

In many development projects there is a need to preview documents online, covering a large variety of file types. This article introduces kkFileView, an open‑source, easy‑to‑use document preview solution built with Spring Boot, supporting mainstream office formats such as DOC, DOCX, Excel, PDF, TXT, ZIP, RAR, images, and more.

Project Features

Supports office files, PDF, CAD and other documents.

Supports plain text files such as TXT, XML, MD, Java, PHP, PY, JS, CSS, etc.

Supports compressed packages like ZIP, RAR, JAR, TAR, GZIP.

Supports image preview (JPG, JPEG, PNG, GIF, TIF, TIFF) with rotation, scaling, and mirroring.

Built with Spring Boot for simple deployment.

Provides REST APIs for cross‑language and cross‑platform integration.

Abstract preview service interface for easy extension.

Preview Demonstrations

1. Text Preview

All types of text documents can be previewed. Default supported types include txt, html, xml, properties, md, java, py, c, cpp, sql, etc., configurable via a settings file.

Text preview example
Text preview example

2. Image Preview

Supports JPG, JPEG, PNG, GIF, etc., with rotation, scaling, and mirroring.

Image preview example
Image preview example

3. Word Preview

Supports DOC and DOCX. Two rendering modes are available: converting each page to an image, or converting the whole document to PDF. Image mode is faster for large files, while PDF mode loads quickly on intranets.

Word image preview
Word image preview
Word PDF preview
Word PDF preview

4. PPT Preview

Supports PPT and PPTX with the same two rendering modes as Word.

PPT image preview
PPT image preview
PPT PDF preview
PPT PDF preview

5. PDF Preview

Supports PDF with both image and PDF rendering modes.

PDF image preview
PDF image preview
PDF preview
PDF preview

6. Excel Preview

Supports XLS and XLSX.

Excel preview
Excel preview

7. Archive Preview

Supports ZIP, RAR, JAR, TAR, GZIP. Users can click file names inside the archive to preview directly.

Archive preview
Archive preview
File inside archive preview
File inside archive preview

8. Multimedia Preview

Supports most video and audio formats; default enabled types include MP3, WAV, MP4, FLV, configurable via settings.

Video preview
Video preview
Audio preview
Audio preview
Open‑source repository: https://gitee.com/kekingcn/file-online-preview Official site: http://kkfileview.keking.cn/
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Spring Bootopen sourceREST APIfile formatskkFileViewDocument Preview
Open Source Linux
Written by

Open Source Linux

Focused on sharing Linux/Unix content, covering fundamentals, system development, network programming, automation/operations, cloud computing, and related professional knowledge.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.