Template-based document generation method and device, storage medium and apparatus

A document generation and template technology, applied in special data processing applications, instruments, electrical digital data processing, etc., can solve the problem of low accuracy of the interpolation process, and achieve the effect of ensuring smooth implementation, accurate interpolation process, and reducing errors

Pending Publication Date: 2019-04-19
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a template-based document generation method, equipment, storage medium and device, aiming to solve the technical problem of low accuracy of the interpolation process in the template-based document generation in the prior art

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
  • Template-based document generation method and device, storage medium and apparatus
  • Template-based document generation method and device, storage medium and apparatus
  • Template-based document generation method and device, storage medium and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0046] refer to figure 1 , figure 1 A schematic structural diagram of a device for generating a template-based document of the hardware operating environment involved in the solution of the embodiment of the present invention.

[0047] Such as figure 1 As shown, the template-based document generation device may include: a processor 1001 , such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002 , a user interface 1003 , a network interface 1004 , and a memory 1005 . Wherein, the communication bus 1002 is used to realize connection and communication between these components. The user interface 1003 may include a display screen (Display). The optional user interface 1003 may also include a standard wired interface and a wireless interface. The wired interface of the user interface 10...

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 discloses a template-based document generation method and device, a storage medium and an apparatus. The method comprises the steps of generating a preset document template of each business scene and storing the preset document template to a server; Extracting a target document template from the server according to a template acquisition instruction input by a user; Obtaining a target variable, and positioning a target placeholder corresponding to the target variable in the target document template; Judging whether the number of the target variables is consistent with that of thetarget placeholders or not; And if yes, interpolating the target variable to the corresponding target placeholder to generate a target business document. According to the invention, Before the targetvariable is interpolated to the corresponding target placeholder, whether the number of the target variable is consistent with that of the target placeholders or not is judged, if yes, interpolationis carried out, it is guaranteed that the target placeholders are filled with the target variable, the interpolation process is more accurate, and therefore generation of the target business documentis more accurate, and errors are fewer.

Description

technical field [0001] The present invention relates to the technical field of template engines, in particular to a method, device, storage medium and device for generating documents based on templates. Background technique [0002] When bank customers handle business in the bank, they generally need to use different business documents according to different business scenarios. If business documents are manually written every time, two types of problems are prone to occur. One is that manual input will inevitably lead to negligence and errors, and document The content is imprecise, incomplete, etc. Second, the efficiency is low, time-consuming and costly. [0003] Freemarker is a template engine written in the Java language that generates text output based on templates. Freemarker can insert the target variable data into the target placeholder in the target template, thereby generating target business documents in a specified format with target variable data. Using freemark...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/24
CPCG06F40/186
Inventor 刘明东
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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