Decompress zip, tar, rar, 7z, extract pictures in tif, pdf

1. Decompression interface public interface Decompress { //curFilePreDir, if the compressed package in the compressed package has the same name as the outer folder or file, problems will occur. Adding the directory prefix of the upper layer can avoid it. public<MulpartFile> decompress(File file, String curFilePredir); } 2. The decompression class implements the Decompress interface public […]

The usage process of nanny-level vue-pdf

The first step is to introduce vue-pdf npm install –save vue-pdf The second step is to proceed slowly according to the needs 01. Give you the url of a pdf file, which needs to be rendered on the page Code <template> <div> <pdf ref=”pdf” :src=”url”> </pdf> </div> </template> <script> import pdf from ‘vue-pdf’ export default […]

[Java adds and verifies PDF digital signature]

Among the methods for setting up document content protection, in addition to encrypting documents and adding watermarks, applying digital signatures is also an effective means of document anti-counterfeiting and protection. Digitally signed documents are easy to verify and have high authority and credibility. In Adobe PDF documents, there are functions and methods to directly add […]

Front-end vue3 implements local and online file preview (including pdf/txt/mp3/mp4/docx/xlsx/pptx)

1. Only online preview is required, and the file address is accessible from the public network (1) Free preview of Microsoft office (recommended) Supports free preview of multiple office file formats such as doc/docx/xls/xlsx/ppt/pptx //Sample code //? Splice the address that needs to be previewed after https://view.officeapps.live.com/op/view.aspx?src=, as follows:\ let url=”http://xxx.com/files/demo.doc” window.open(“?https://view.officeapps.live.com/op/view.aspx?src=” + encodeURIComponent(?url)) (2) […]

Vue does docx/pdf/excle file preview

1. excel preview Method 1: Use xlsx plug-in ①Introduce xlsx npm install xlsx Page reference dependency import * as XLSX from ‘xlsx’ Using this kind of reference can solve the problem of version inconsistency in the import method of import XLSX from ‘xlsx’. ②Code View excel sheet Get the contents of the table //Call event […]

[Record] PDF|Chinese and English PDF scanned version directory extraction (1, QQ+GPT)

need: 1) Quickly extract table of contents from PDF; 2) Don’t want to download any software. Article directory 1. Directly export the directory using existing commonly used software 1 (recommendation index☆) QQ OCR text recognition 2 (recommendation index 0 stars) GPT4 image recognition 3 (recommended index 0 stars) GPT4 AI PDF plug-in 4 (recommended index […]

What are the solutions for adding watermark to PDF using SpringBoot?

Method 1: Use Apache PDFBox library PDFBox is a popular, free library written in Java that can be used to create, modify, and extract PDF content. PDFBox provides a number of APIs, including the ability to add text watermarks. Add PDFBox dependency First, add PDFBox dependencies in the pom.xml file: <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.24</version> </dependency> […]

PDF file structure signature

Foreword Recently, I have seen that more and more contracts on the Internet are sent in the form of PDF, allowing users to feel the real legal effect. PDF contract documents will have signatures. It has two benefits. One is that it allows users to see a formal company signature when seeing the contract; the […]

Text analysis using python – multi-process batch processing of PDF files into csv files

In the process of text analysis, converting raw data into TXT files is very critical, mainly for the following reasons: 1. Simple and unified format ? A TXT file is a simple text format that contains only plain text information and does not contain any formatting or style information. This simple and unified format helps […]