CN115841095A - Document establishing method, system, medium and equipment - Google Patents

Document establishing method, system, medium and equipment Download PDF

Info

Publication number
CN115841095A
CN115841095A CN202211542889.7A CN202211542889A CN115841095A CN 115841095 A CN115841095 A CN 115841095A CN 202211542889 A CN202211542889 A CN 202211542889A CN 115841095 A CN115841095 A CN 115841095A
Authority
CN
China
Prior art keywords
document
document template
format
backfilling
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211542889.7A
Other languages
Chinese (zh)
Inventor
徐玉峰
赵程川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Guolian Zhengxin Technology Co ltd
Original Assignee
Beijing Guolian Zhengxin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Guolian Zhengxin Technology Co ltd filed Critical Beijing Guolian Zhengxin Technology Co ltd
Priority to CN202211542889.7A priority Critical patent/CN115841095A/en
Publication of CN115841095A publication Critical patent/CN115841095A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention belongs to the judicial field, and particularly relates to a document establishing method, a system, a medium and equipment. The method comprises the following steps: step 1, carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template; step 2, screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template; and 3, outputting the document template generated after backfilling as a final document. By the scheme, the template document is uploaded at the master console end in the system, the element information and the text structure are analyzed by using the technology, the existing information in the system is automatically backfilled, the target word file containing the data is produced according to the original text structure, the target word file is provided for a user to download, and the time for filling the information is saved.

Description

Document establishing method, system, medium and equipment
Technical Field
The invention belongs to the judicial field, and particularly relates to a method, a system, a medium and equipment for establishing a document.
Background
At present, when a moderator fills in a moderation writing in the identity of a moderator in an intelligent judicial project, only a case and information of a party can be searched in a system, and then a document is compiled or paper information is filled in a computer, so that the work efficiency is reduced due to time consumption.
Disclosure of Invention
The invention aims to provide a document establishing method, a system, a medium and equipment.
The technical scheme for solving the technical problems is as follows: a document creation method, comprising:
step 1, carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template;
step 2, screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template;
and 3, outputting the document template generated after backfilling as a final document.
The invention has the beneficial effects that: the template document is uploaded at a master console end in the system, the element information and the text structure are analyzed by using the technology, then the existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling in the information is saved.
On the basis of the technical scheme, the invention can be further improved as follows.
Further, when the format of the document template provided by the user is the docx format, performing format conversion on the document template provided by the user, including:
and converting the files in the docx format into files in the html format based on the third-party open source tool.
Further, the first element entry includes:
case name, and contact address.
Further, the step 2 is followed by:
and displaying the document template generated after backfilling to a terminal of a moderator, continuing to the step 3 when the moderator gives a signal of correct information, revising the document template generated after backfilling in a manual revision mode when the moderator gives a signal of wrong information, and displaying the revised document template to the terminal of the moderator.
Another technical solution of the present invention for solving the above technical problems is as follows: a document creation system, comprising:
the conversion module is used for: carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template;
the backfill module is used for: screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template;
the establishing module is used for: and outputting the document template generated after backfilling as a final document.
The invention has the beneficial effects that: the template document is uploaded at a master console end in the system, the element information and the text structure are analyzed by using the technology, then the existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling in the information is saved.
Further, when the format of the document template provided by the user is the docx format, performing format conversion on the document template provided by the user, including:
and converting the files in the docx format into files in the html format based on the third-party open source tool.
Further, the first element item includes:
case name, and contact address.
Further, still include:
the judgment module is used for: and displaying the document template generated after backfilling to a terminal of a moderator, continuously establishing the module when the moderator gives a signal of correct information, revising the document template generated after backfilling in a manual revision mode when the moderator gives a signal of wrong information, and displaying the revised document template to the terminal of the moderator.
Another technical solution of the present invention for solving the above technical problems is as follows: a storage medium having stored therein instructions which, when read by a computer, cause the computer to carry out a method according to any one of the preceding claims.
The beneficial effects of the invention are: the template document is uploaded at a master console end in the system, the element information and the text structure are analyzed by using the technology, then the existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling the information is saved.
Another technical solution of the present invention for solving the above technical problems is as follows: an electronic device includes the storage medium and a processor executing instructions in the storage medium.
The beneficial effects of the invention are: the template document is uploaded at a master console end in the system, the element information and the text structure are analyzed by using the technology, then the existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling in the information is saved.
Drawings
FIG. 1 is a schematic flow chart diagram provided by an embodiment of a document creation method of the present invention;
FIG. 2 is a block diagram of a structural framework provided by an embodiment of a document creation system of the present invention;
FIG. 3 is a diagram illustrating a complete flow provided by an embodiment of a document creation method according to the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with examples which are set forth to illustrate, but are not to be construed to limit the scope of the invention.
As shown in fig. 1, a document creation method includes:
step 1, carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template;
step 2, screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template;
and 3, outputting the document template generated after backfilling as a final document.
In some possible implementation modes, template documents are uploaded at a master console end in the system, element information and a text structure are analyzed by using technology, existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling information is saved.
It should be noted that, as shown in fig. 3, the main console end can be understood as a system platform, which is used for bearing a database, a processing system, and the like, and a user can realize the purpose of automatically downloading a document by uploading a document template on the main console end. It should be noted that the templates provided by each user are different, and here the templates can be understood as that each user writes the data that needs to be called in the folder, for example, user 1 needs the party of the a case, the time of the family, the document template of user 1 can be: case a, name, and opening time. Namely, the document template is a document which is formed by short sentences or words and is generated by self-defining according to different requirements of users. The document template is analyzed through a technical means, namely the document template is analyzed through a preset conversion rule, namely the docx file content is converted into html format text through a third-party open source tool library mammoth.js; each line in the docx document is converted to a separate p-tag containing textual content. The method comprises the steps of analyzing, judging whether fields in a template are fields needing to be analyzed (the content of the template given by a user may be inconsistent, a nationality exists in the template A and a nationality does not exist in the template B, and calling data in a system according to the used template to generate a document, wherein the fields needing to be integrated in the information are names, sexes, nationalities, birth dates and the like, the fields needing to be integrated in the template B are original reports of Zhang Sanjia, men and 1 in 1991. If the moderator disagrees with the information data, the information data is revised in a manual modification mode, and then the moderator is enabled to check the information data again.
Preferably, in any of the above embodiments, when the format of the document template provided by the user is a docx format, performing format conversion on the document template provided by the user includes:
and converting the files in the docx format into files in the html format based on the third-party open source tool.
Preferably, in any of the above embodiments, the first element item includes:
case name, and contact address.
Preferably, in any of the above embodiments, step 2 is further followed by:
and displaying the document template generated after backfilling to a terminal of a moderator, continuing to the step 3 when the moderator gives a signal of correct information, revising the document template generated after backfilling in a manual revision mode when the moderator gives a signal of wrong information, and displaying the revised document template to the terminal of the moderator.
As shown in fig. 2, a document creation system includes:
the conversion module 100 is configured to: carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template;
the backfill module 200 is configured to: screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template;
the setup module 300 is configured to: and outputting the document template generated after backfilling as a final document.
In some possible implementation modes, template documents are uploaded at a master console end in the system, element information and a text structure are analyzed by using technology, existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling information is saved.
Preferably, in any of the above embodiments, when the format of the document template provided by the user is a docx format, performing format conversion on the document template provided by the user includes:
and converting the files in the docx format into files in the html format based on the third-party open source tool.
Preferably, in any of the above embodiments, the first element item comprises:
case name, and contact address.
Preferably, in any of the above embodiments, further comprising:
the judgment module is used for: and displaying the document template generated after backfilling to a terminal of a moderator, continuing to establish the module 300 when the moderator gives a signal of correct information, revising the document template generated after backfilling in a manual revision mode when the moderator gives a signal of wrong information, and displaying the revised document template to the terminal of the moderator.
Another technical solution of the present invention for solving the above technical problems is as follows: a storage medium having stored therein instructions which, when read by a computer, cause the computer to carry out a method according to any one of the preceding claims.
In some possible implementation modes, template documents are uploaded at a master console end in the system, element information and a text structure are analyzed by using technology, existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling information is saved.
Another technical solution of the present invention for solving the above technical problems is as follows: an electronic device includes the storage medium and a processor executing instructions in the storage medium.
In some possible implementation modes, template documents are uploaded at a master console end in the system, element information and a text structure are analyzed by using technology, existing information in the system is automatically backfilled, a target word file containing data is produced according to the original text structure and is provided for a user to download, and the time for filling information is saved.
The reader should understand that in the description of this specification, reference to the description of the terms "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Moreover, various embodiments or examples and features of various embodiments or examples described in this specification can be combined and combined by one skilled in the art without being mutually inconsistent.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described method embodiments are merely illustrative, and for example, the division of steps into only one logical functional division may be implemented in practice in another way, for example, multiple steps may be combined or integrated into another step, or some features may be omitted, or not implemented.
The above method, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partly contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for document creation, comprising:
step 1, carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template;
step 2, screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template;
and 3, outputting the document template generated after backfilling as a final document.
2. The method for creating a document according to claim 1, wherein when the format of the document template provided by the user is a docx format, performing format conversion on the document template provided by the user comprises:
and converting the files in the docx format into files in the html format based on the third-party open source tool.
3. The document creation method according to claim 2, wherein the first element item includes:
case name, and contact address.
4. The document creation method according to claim 1, wherein said step 2 is followed by further comprising:
and displaying the document template generated after backfilling to a terminal of a moderator, continuing to the step 3 when the moderator gives a signal of correct information, revising the document template generated after backfilling in a manual revision mode when the moderator gives a signal of wrong information, and displaying the revised document template to the terminal of the moderator.
5. A document creation system, comprising:
the conversion module is used for: carrying out format conversion on a document template provided by a user to obtain a document template in an html format corresponding to the document template;
the backfill module is used for: screening first element items of the text data, calling element data corresponding to the first element items from a preset database, and backfilling the element data in sequence based on the sequence of the first element items in the document template;
the establishing module is used for: and outputting the document template generated after backfilling as a final document.
6. The system of claim 5, wherein converting the format of the document template provided by the user when the format of the document template provided by the user is docx format comprises:
and converting the files in the docx format into files in the html format based on the third-party open source tool.
7. The document creation system according to claim 6, wherein the first element item includes:
case name, and contact address.
8. The document creation system according to claim 5, further comprising:
the judgment module is used for: and displaying the document template generated after backfilling to a terminal of a moderator, continuously establishing the module when the moderator gives a signal of correct information, revising the document template generated after backfilling in a manual revision mode when the moderator gives a signal of wrong information, and displaying the revised document template to the terminal of the moderator.
9. A storage medium having stored therein instructions which, when read by a computer, cause the computer to perform the method of any one of claims 1 to 4.
10. An electronic device comprising the storage medium of claim 9, a processor executing instructions within the storage medium.
CN202211542889.7A 2022-12-02 2022-12-02 Document establishing method, system, medium and equipment Pending CN115841095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211542889.7A CN115841095A (en) 2022-12-02 2022-12-02 Document establishing method, system, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211542889.7A CN115841095A (en) 2022-12-02 2022-12-02 Document establishing method, system, medium and equipment

Publications (1)

Publication Number Publication Date
CN115841095A true CN115841095A (en) 2023-03-24

Family

ID=85577933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211542889.7A Pending CN115841095A (en) 2022-12-02 2022-12-02 Document establishing method, system, medium and equipment

Country Status (1)

Country Link
CN (1) CN115841095A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077650A (en) * 2023-10-18 2023-11-17 金现代信息产业股份有限公司 Document generation system, method, equipment and medium based on dynamic template configuration

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589957A (en) * 2015-12-22 2016-05-18 新浪网技术(中国)有限公司 Document conversion method and document conversion system
CN109241503A (en) * 2018-09-03 2019-01-18 科大国创软件股份有限公司 A kind of user-defined data table single system and its pattern conversion method based on office document
CN110008461A (en) * 2019-04-16 2019-07-12 北京中电普华信息技术有限公司 Document structure tree method and relevant apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589957A (en) * 2015-12-22 2016-05-18 新浪网技术(中国)有限公司 Document conversion method and document conversion system
CN109241503A (en) * 2018-09-03 2019-01-18 科大国创软件股份有限公司 A kind of user-defined data table single system and its pattern conversion method based on office document
CN110008461A (en) * 2019-04-16 2019-07-12 北京中电普华信息技术有限公司 Document structure tree method and relevant apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117077650A (en) * 2023-10-18 2023-11-17 金现代信息产业股份有限公司 Document generation system, method, equipment and medium based on dynamic template configuration
CN117077650B (en) * 2023-10-18 2024-02-06 金现代信息产业股份有限公司 Document generation system, method, equipment and medium based on dynamic template configuration

Similar Documents

Publication Publication Date Title
US10409892B2 (en) Formatting data by example
US7673235B2 (en) Method and apparatus for utilizing an object model to manage document parts for use in an electronic document
US7783971B2 (en) Graphic object themes
Schmidt The inadequacy of embedded markup for cultural heritage texts
JP2006178946A (en) File format, method and computer program product for representing workbook
CN103631604B (en) A kind of standardized digital education resource management method based on CELTS-41 specification
CN1794225A (en) File formats, methods, and computer program products for representing documents
CN103309849B (en) A kind of docx document creation based on OpenXML and amending method
CN115841095A (en) Document establishing method, system, medium and equipment
US11941350B2 (en) Systems and methods for conversion of documents to reusable content types
CN114546937B (en) Intelligent document editing management system, method, equipment and storage medium
CN113741864B (en) Automatic semantic service interface design method and system based on natural language processing
CN113779953A (en) Automatic document generation method and system
CN113239670A (en) Method and device for uploading service template, computer equipment and storage medium
CN110347984B (en) Policy page changing method and device, computer equipment and storage medium
CN114237753B (en) Method for inserting multiple attachments into word file based on freemark
CN111279350B (en) System and method for providing globalization features in service management application interfaces
US20240143899A1 (en) Systems and methods for conversion of documents to reusable content types
CN113761948A (en) Method, apparatus, device, storage medium, and program product for processing configuration information
CN116822467A (en) Method for renewing page of electronic license plate
CN113110873A (en) Method and apparatus for unifying system coding specifications
CN113793233A (en) Generation processing method, system, storage medium and processor of electric power transaction contract
CN117112049A (en) Data source management method, device, computer equipment and storage medium
CN113033150A (en) Method and device for coding program text and storage medium
CN113627183A (en) Method, device and equipment for standardizing department name text and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination