Method, device and equipment for generating Word document by Java application and medium

A technology of java application and document

Pending Publication Date: 2021-09-17
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of this application is to provide a Java application to generate a Word document method, device, equipment and media, aiming to solve the problem of using ApachePOI to generate a Word document

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and equipment for generating Word document by Java application and medium
  • Method, device and equipment for generating Word document by Java application and medium
  • Method, device and equipment for generating Word document by Java application and medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0050] In order to make the purpose, technical solutions and advantages of the present application, the present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended to explain the present application and is not intended to limit the present application.

[0051] Refer figure 1 A Java application generates a Word document method in this application embodiment, the method for integrating the FreeMarker framework in the Java application, which includes:

[0052] S1: Get a Word Document Generation Request, the Word Document Generation Request Carrys the Target FreeMarker Template Identification Set and Target Position Configuration Data;

[0053] S2: Obtain a placeholder from the template corresponding to the target FreeMarker template identification set to obtain the placeholder set to be processed;

[0054] S3: The placeholder in the placehol...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of data processing, and discloses a method, a device and equipment for generating a Word document by a Java application and a medium. The method comprises the following steps: determining a plain text placeholder set and a non-plain text placeholder set according to a target FreeMarker template identifier set; according to the service database, service data searching and KV data pair assembling are sequentially carried out on each placeholder in the plain text placeholder set to obtain a first KV data pair set; according to the picture database, sequentially carrying out picture identifier searching and KV data pair assembling on each placeholder in the non-plain text placeholder set to obtain a second KV data pair set; and obtaining a target Word document based on a FreeMarker framework according to the target FreeMarker template identifier set, the target position configuration data, the first KV data pair set and the second KV data pair set. Coding and style adjustment do not need to be carried out massively for specific content.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a method, device, device and medium for generating a Word document by a Java application. Background technique [0002] Java applications developed using Java (object-oriented programming language) technology are widely used, so that there are more and more needs to generate Word documents according to web pages opened by Java applications. Because Microsoft does not have an interface for reading and writing documents in Microsoft Office (office software suite) format open to Java, traditionally Apache POI (the open source library of the Apache Software Foundation) is used to generate Word (office software) documents based on the web pages opened by Java applications. However, this method only supports the generation of simple Word documents. When the Word documents to be generated are more complex, because they contain various types of charts and pictures, a lo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F40/126G06F40/186G06F16/11
CPCG06F40/186G06F40/126G06F16/116Y02D10/00
Inventor 宋村国陶颖张凤羽
Owner PING AN TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products