Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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 according to a webpage opened by a Java application in the prior art, and requiring a large number of encodings for more complex Word documents , debugging styles, technical issues that are difficult to debug styles

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

Embodiment Construction

[0050] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0051] refer to figure 1 In the embodiment of the present application, a method for generating a Word document by a Java application is provided, the method is suitable for a Java application, and the FreeMarker framework is integrated in the Java application, and the method includes:

[0052] S1: Obtain a Word document generation request, the Word document generation request carries a target FreeMarker template identification set and target location configuration data;

[0053] S2: Obtain a placeholder from the template corresponding to the target FreeMarker template ide...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products