Spring Boot Online Document Preview System for Office, Images, Video and More

Spring Boot Online Document Preview System for Office, Images, Video and More

2022-09-02 0 1,750
Resource Number 38040 Last Updated 2025-02-24
¥ 0 USD Upgrade VIP
Download Notice Demo
Can't download? Please contact customer service to submit a link error!
Value-added Service: Installation Guide Environment Configuration Secondary Development Template Modification Source Code Installation

Product Details 商品属性

  • Language: PHP
  • Database:
  • License: License-Free
  • Source Code: Fully Open Source
  • Specification: Full Website Source
  • Delivery: Automatic (instant download after payment)

This issue recommends kkFileView, an online document preview project built using spring boot.

Project characteristics

  • Support word, excel, ppt, pdf and other office documents
  • Support the TXT, Java, PHP, py, md, js, CSS, etc. All plain text
  • Support zip,rar,jar,tar,gzip and other compression 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 are supported, and application access is simple and convenient
  • Supports multiple preview sources, such as common http/https file download url, http/https file download stream url, and ftp download url
  • The zip and tar.gz distribution packages provide one-click startup scripts and various configuration items for easy deployment
  • Docker image distribution package for easy deployment in container environment
  • Abstract preview service interface, very easy to add other types of file preview support

Deployment guide

1. environmental requirement

  • Java: 1.8+
  • OpenOffice or LiberOffice (built-in for Windows, automatically downloaded and installed for CentOS or Ubuntu, self-installed for MacOS)

2. Deploy and run

2.1 Running on a physical or virtual machine:

  • Download the latest release from the Code Cloud distribution
  • Decompress the kkFileView-x.x.x file (.zip for Windows and.tar.gz for Linux/MacOS).
  • Open the bin directory of the decompressed folder and run the startup script (in Windows, run startup.bat as administrator, Linu x run startup.sh as root).
  • You can access port 8012 http://127.0.0.1:8012 in your browser to see the home page of the project demonstration

2.2 Docker container environment environment run:

  • Pull image
docker pull keking/kkfileview
  • operation
docker run -it -p 8012:8012 keking/kkfileview

The browser accesses container port 8012
http://xxx.xxx.xxx.xxx:8012 can see demonstration project home page.

3.Use in the project

When you need to preview the file in your project, just call the browser to open the preview interface of the project, and pass in the url of the file that needs to be preview, as shown in the following example:

  • 3. X. x version
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/js-base64@3.6.0/base64.min.js"></script>

var url = 'http://127.0.0.1:8080/file/test.txt'; //The access address to preview the file
window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(previewUrl)));
  • 2x. x and later versions
var url = 'http://127.0.0.1:8080/file/test.txt'; //The access address to preview the file
window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(previewUrl));

Preview display

  • Text preview

All types of text document preview are supported. Too many types of text documents cannot be enumerated. The following types are enabled by default txt,html,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:

Spring Boot Online Document Preview System for Office, Images, Video and More

  • word Document Preview

Support doc, docx document preview, word preview has two modes: one is to convert each page of word to picture preview, the other is to convert the entire word document to pdf, and then preview pdf.

Image preview mode preview effect is as follows:

Spring Boot Online Document Preview System for Office, Images, Video and More

pdf preview mode preview effect is as follows:

Spring Boot Online Document Preview System for Office, Images, Video and More

  • Compressed file preview

Support zip,rar,jar,tar,gzip and other compressed packages, preview effect is as follows:

Spring Boot Online Document Preview System for Office, Images, Video and More

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

Spring Boot Online Document Preview System for Office, Images, Video and More

  • CAD document preview

CAD dwg document preview is supported, and there are two preview modes, just like word documents.

Image preview mode preview effect is as follows:

Spring Boot Online Document Preview System for Office, Images, Video and More

pdf preview mode preview effect is as follows

You can read more on your own.

资源下载此资源为免费资源立即下载
Telegram:@John_Software
☆☆☆☆☆0 pts · 0 reviews
Updated 2025-02-24

Q&A

No questions yet. Ask the seller!

Reviews

No reviews yet. Share your experience after purchase.

Disclaimer: This article is published by a third party and represents the views of the author only and has nothing to do with this website. This site does not make any guarantee or commitment to the authenticity, completeness and timeliness of this article and all or part of its content, please readers for reference only, and please verify the relevant content. The publication or republication of articles by this website for the purpose of conveying more information does not mean that it endorses its views or confirms its description, nor does it mean that this website is responsible for its authenticity.

TopTinker Distribution & Referral Spring Boot Online Document Preview System for Office, Images, Video and More https://toptinker.com/38040.html

商家类型:个人(声明)

Share free open-source source code

Q&A
  • 1. Automatic: After making an online payment, click the (Download) link to download the source code; 2. Manual: Contact the seller or the official to check if the template is consistent. Then, place an order and make payment online. The seller ships the goods, and both parties inspect and confirm that there are no issues. TopTinker will then settle the payment for the seller. Note: Please ensure to place your order and make payment through TopTinker. If you do not place your order and make payment through TopTinker, and the seller sends fake source code or encounters any issues, TopTinker will not assist in resolving them, nor can we guarantee your funds!
View details
  • 1. Default transaction cycle for source code: The seller manually ships the goods within 1-3 days. The amount paid by the user will be held in escrow by TopTinker until 7 days after the transaction is completed and both parties confirm that there are no issues. TopTinker will then settle with the seller. In case of any disputes, TopTinker will have staff to assist in handling until the dispute is resolved or a refund is made! If the buyer places an order and makes payment not through TopTinker, any issues and disputes have nothing to do with TopTinker, and TopTinker will not be responsible for any liabilities!
View details
  • 1. TopTinker will permanently archive the transaction process between both parties and snapshots of the traded goods to ensure the authenticity, validity, and security of the transaction! 2. TopTinker cannot guarantee services such as "permanent package updates" and "permanent technical support" after the merchant's commitment. Buyers are advised to identify these services on their own. If necessary, they can contact TopTinker for assistance; 3. When both website demonstration and image demonstration exist in the source code, and the text descriptions of the website and images are inconsistent, the text description of the image shall prevail as the basis for dispute resolution (excluding special statements or agreements); 4. If there is no statement such as "no legal basis for refund" or similar content, any indication on the product that "once sold, no refunds will be supported" or other similar declarations shall be deemed invalid; 5. Before the buyer places an order and makes payment, the transaction details agreed upon by both parties via WhatsApp or email can also serve as the basis for dispute resolution (in case of any inconsistency between the agreement and the description of the conflict, the agreement shall prevail); 6. Since chat records and email records can serve as the basis for dispute resolution, both parties should only communicate with each other through the contact information left on the system when contacting each other, in order to prevent the other party from denying their own commitments. 7. Although the probability of disputes is low, it is essential to retain important information such as chat records, text messages, and email records, in case a dispute arises, so that TopTinker can intervene quickly.
View details
  • 1. As a third-party intermediary platform, TopTinker solely protects transaction security and the rights and interests of both buyers and sellers based on the transaction contract (product description, agreed content before the transaction); 2. For online trading projects not on the TopTinker platform, any consequences are unrelated to this platform; regardless of the reason why the seller requests an offline transaction, please contact the administrator to report.
View details

Related Source code

TopTinker Customer Service

24-hour online professional services