CN116822482A - PDF electronic contract drawing-up method based on DOCX format - Google Patents

PDF electronic contract drawing-up method based on DOCX format Download PDF

Info

Publication number
CN116822482A
CN116822482A CN202310837917.6A CN202310837917A CN116822482A CN 116822482 A CN116822482 A CN 116822482A CN 202310837917 A CN202310837917 A CN 202310837917A CN 116822482 A CN116822482 A CN 116822482A
Authority
CN
China
Prior art keywords
docx
contract
file
pdf
format
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
CN202310837917.6A
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 Shouqi Zhixing Technology Co Ltd
Original Assignee
Beijing Shouqi Zhixing 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 Shouqi Zhixing Technology Co Ltd filed Critical Beijing Shouqi Zhixing Technology Co Ltd
Priority to CN202310837917.6A priority Critical patent/CN116822482A/en
Publication of CN116822482A publication Critical patent/CN116822482A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a PDF electronic contract drawing-up method based on DOCX format, which comprises the following steps: acquiring an original contract of a DOCX file format; making a text mark by adopting office software supporting a DOCX format to form a DOCX contract template; using Apache POI application frame to replace the existing character mark on DOCX contract template to form DOCX contract drawing file; converting the DOCX contract drawing file into a PDF contract drawing file by using an AssosePOI application framework; and using the generated PDF contract to draw the approval and signing processes after the file is executed. The method can support repeated modification of the contract template on the basis of not changing the whole style, and greatly lighten the workload of contract establishment.

Description

PDF electronic contract drawing-up method based on DOCX format
Technical Field
The invention relates to the field of electronic contracts, in particular to a PDF electronic contract drawing-up method based on a DOCX format.
Background
Electronic contracts, i.e., agreements that are generally considered to be based on specific digitized file formats that embody civil rights obligations, are playing an important role in the process of socialization.
Compared with the traditional paper contract, the electronic contract has natural advantages from the aspects of working efficiency such as contract establishment, confirmation, approval, signing, sending and the like, consistency, durability, safety, timeliness, cost and the like in the process of contract circulation. If the generation of contracts is said to bring human civilization to a contract-type society at a glance, and eventually evolve into a today's complex and orderly business society. Then, the generation of the electronic contract has to remodel the whole human social credit system with lower contract-achieving cost and higher contract-establishing efficiency. While important digital media carrying electronic contracts include a variety of formats such as DOC, DOCX, OFD, PDF, SEP.
The international standard of PDF (portable document format) in the printing field has become a preferred format for making electronic contracts with its excellent performances in typesetting, rendering, cross-platform, disclosure, interactivity and security.
The electronic contract is consistent with the paper contract making flow, and all the steps of drafting, confirming, approving, signing, transmitting and the like are involved.
Wherein the contract development link involves the operation of custom filling of the electronic contract template using customer data. Currently, it is common practice in industry to add a form field (PDF field) to a PDF file that has reserved a blank filling data space, where the form field records relevant attributes such as location, size, font, and name. And filling the client data into the corresponding form fields according to the form field names by using the PDF file added with the form fields as a filling template through a PDF processing program, so as to finish the establishment of the customized electronic contract of the client data.
PDF files are fixed in their typesetting format, are well known for accurate cross-platform display, but naturally determine that they lack support for flexible editing of documents. PDF files are indeed the best digital presentation media, digital distribution media, and digital storage media for electronic contracts, but are certainly not the best digital presentation media.
The block-based text organization of PDFs is extremely advantageous for rendering and storage, but is extremely unfriendly for editing. Under a complex business environment, the contract is faced with the situation that the discussion, yield, color rendering and the like of parties repeatedly relate to the modification of the contract text in the process of the establishment, and huge workload is brought to the establishment of the electronic contract.
Since the contract text and the form fields are in different levels, the change of the text position cannot be changed together with the position of the form field, so that the text is "pulled to move the whole body". Modification of the contract text often invalidates all previously made form field locations, requiring the form field fabrication to be re-performed. The form field is a low added value and repeatability work which extremely needs tolerance and time, and completely does not meet the requirements of enterprises on the rapid development of business.
Due to the fixed size of the form field, insufficient rendering data display or excessive blank positions caused by improper prediction of the client data length by a producer often occur in the contract drawing process, so that unnecessary legal risks are brought. The phenomenon that the whole contract is severely cracked due to inconsistent filling data and contract text fonts also occurs, so that the reliability of the electronic contract and the signing will of a client are reduced, and the due effect of the electronic contract cannot be exerted.
Disclosure of Invention
In view of the above, the present invention has been made to provide a PDF electronic contract development method based on the DOCX format that overcomes or at least partially solves the above-described problems.
According to an aspect of the present invention, there is provided a PDF electronic contract development method based on the DOCX format, the development method including:
acquiring an original contract of a DOCX file format;
making a text mark by adopting office software supporting a DOCX format to form a DOCX contract template;
using Apache POI application frame to replace the existing character mark on DOCX contract template to form DOCX contract drawing file;
converting the DOCX contract drawing file into a PDF contract drawing file by using an AssosePOI application framework;
and using the generated PDF contract to draw the approval and signing processes after the file is executed.
Optionally, the making the text label by using office software supporting the DOCX format specifically includes:
positioning a cursor to a text position requiring client data filling;
typing in a character mark with a special symbol;
repeating the steps to finish the text mark making of all the custom data.
Optionally, the client data filling specifically includes: using the apache poi application framework, data population for DOCX contract templates is programmatically implemented.
Optionally, the data filling of the DOCX contract template by using the apache poi application framework through programming specifically includes:
reading client data as a data source;
loading DOCX contract templates by using an Apache POI application framework and recognizing the manufactured character marks text by text;
when the identified text mark is matched with one item in the client data, using the Apache POI application framework to replace the text mark with the client data;
repeating the steps until the replacement of all the character marks is completed;
the Apache POI application framework is used to save contract development files in DOCX format.
Optionally, the converting the DOCX contract drawing file into a PDF contract drawing file specifically includes: the conversion of the DOCX file into the PDF file is accomplished programmatically using an Aspose application framework.
Optionally, the converting the DOCX file into the PDF file by programming using an Aspose application framework specifically includes: and loading the DOCX contract drawing file by using an Aspose application framework, and storing the DOCX contract drawing file as a PDF contract drawing file.
The invention provides a PDF electronic contract drawing-up method based on DOCX format, which comprises the following steps: acquiring an original contract of a DOCX file format; making a text mark by adopting office software supporting a DOCX format to form a DOCX contract template; using Apache POI application frame to replace the existing character mark on DOCX contract template to form DOCX contract drawing file; converting the DOCX contract drawing file into a PDF contract drawing file by using an AssosePOI application framework; and using the generated PDF contract to draw the approval and signing processes after the file is executed. The method can support repeated modification of the contract template on the basis of not changing the whole style, and greatly lighten the workload of contract establishment.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a PDF electronic contract development method based on a DOCX format according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terms "comprising" and "having" and any variations thereof in the description embodiments of the invention and in the claims and drawings are intended to cover a non-exclusive inclusion, such as a series of steps or elements.
The technical scheme of the invention is further described in detail below with reference to the accompanying drawings and the examples.
As shown in fig. 1, a PDF electronic contract development method based on the DOCX format includes: acquiring an original contract of a DOCX file format; making a text mark by adopting office software supporting a DOCX format to form a DOCX contract template; using Apache POI application frame to replace the existing character mark on DOCX contract template to form DOCX contract drawing file; converting the DOCX contract drawing file into a PDF contract drawing file by using an AssosePOI application framework; and using the generated PDF contract to draw the approval and signing processes after the file is executed.
In the contract establishment process, a DOCX file is adopted to replace a PDF file, and the customized filling link of customer data is also required to be experienced.
Because the DOCX file organizes the text based on the extensible markup language of the OpenOfficeXML standard, the DOCX file is very friendly to the operation support of the identification, the addition and the deletion of specific characters and the modification, and the fusion degree of the filled text and the original contract template text is higher. By virtue of this feature, the position of the filling data to be customized is set with a character mark (the same as the form field operation made in the PDF file) which is agreed in advance only in the contract template based on the DOCX file. And respectively replacing the client data to corresponding positions according to the identified text marks by the DOCX processing program (the operation of filling the client data to the corresponding form fields according to the form field names by the PDF processing program) so as to finish the custom filling of the client data and form a contract drawing file based on the DOCX format.
If the contract encounters a case change, various office software supporting the editing of the DOCX file can be adopted to modify the contract on the basis of a contract template with a character mark set before, and the character mark can also follow the change of the text position without resetting (solving the problem that the PDF file needs to be re-manufactured into a form field). Meanwhile, the effect of the contract drawing file processed by the DOCX processing program is identical to that of the contract drawing file manually written by office software, so that the readability and the reliability of the contract are greatly improved.
Finally, the DOCX contract drawing file is converted into the PDF contract drawing file by using the DOCX file conversion PDF file program, so that the subsequent operations of approval, signing and the like can be continuously completed.
Manufacturing DOCX contract templates: the original contract is literally marked using office software supporting the DOCX file format. The method comprises the following specific steps:
1. positioning a cursor to a text location (e.g., at the first name) where customer data population is desired;
2. typing a text mark with a special symbol (for example $ { name });
3. and (3) repeating the step 1-2 to finish the text marking of all the custom data.
Customer data population: using the apache poi application framework, data population for DOCX contract templates is programmatically implemented. The method comprises the following specific steps:
1. reading client data as a data source;
2. loading DOCX contract templates by using an Apache POI application framework and recognizing the manufactured character marks text by text;
3. when the identified text mark is matched with one item in the client data, using the Apache POI application framework to replace the text mark with the client data;
4. repeating the step 3 until the replacement of all the text marks is completed;
5. the Apache POI application framework is used to save contract development files in DOCX format.
DOCX contract development file to PDF contract development file: the conversion of the DOCX file into the PDF file is accomplished programmatically using an Aspose application framework. The method comprises the following specific steps:
1. and loading the DOCX contract drawing file by using an Aspose application framework, and storing the DOCX contract drawing file as a PDF contract drawing file.
The beneficial effects are that: the invention adopts another common document format DOCX to replace the role played by the PDF file in the process of constructing the electronic contract, thereby achieving the purposes of supporting repeated modification of the contract template on the basis of not changing the whole style and greatly reducing the workload of constructing the contract.
The foregoing detailed description of the invention has been presented for purposes of illustration and description, and it should be understood that the invention is not limited to the particular embodiments disclosed, but is intended to cover all modifications, equivalents, alternatives, and improvements within the spirit and principles of the invention.

Claims (6)

1. A PDF electronic contract development method based on a DOCX format, the development method comprising:
acquiring an original contract of a DOCX file format;
making a text mark by adopting office software supporting a DOCX format to form a DOCX contract template;
using Apache POI application frame to replace the existing character mark on DOCX contract template to form DOCX contract drawing file;
converting the DOCX contract drawing file into a PDF contract drawing file by using an AssosePOI application framework;
and using the generated PDF contract to draw the approval and signing processes after the file is executed.
2. The method for preparing a PDF electronic contract based on the DOCX format according to claim 1, wherein the step of preparing a text label by using office software supporting the DOCX format specifically comprises the steps of:
positioning a cursor to a text position requiring client data filling;
typing in a character mark with a special symbol;
repeating the steps to finish the text mark making of all the custom data.
3. A PDF electronic contract development method based on a DOCX format according to claim 2, characterized in that the customer data population specifically comprises: using the apache poi application framework, data population for DOCX contract templates is programmatically implemented.
4. A method for generating a PDF electronic contract based on a DOCX format according to claim 3, wherein the data filling of the DOCX contract template using the apache poi application framework by programming specifically comprises:
reading client data as a data source;
loading DOCX contract templates by using an Apache POI application framework and recognizing the manufactured character marks text by text;
when the identified text mark is matched with one item in the client data, using the Apache POI application framework to replace the text mark with the client data;
repeating the steps until the replacement of all the character marks is completed;
the Apache POI application framework is used to save contract development files in DOCX format.
5. The method for preparing a PDF electronic contract based on the DOCX format according to claim 1, wherein the step of converting the DOCX contract preparation file into a PDF contract preparation file specifically comprises: the conversion of the DOCX file into the PDF file is accomplished programmatically using an Aspose application framework.
6. The method for developing a PDF electronic contract based on the DOCX format according to claim 5, wherein the converting the DOCX file into the PDF file by programming using an Aspose application framework specifically includes: and loading the DOCX contract drawing file by using an Aspose application framework, and storing the DOCX contract drawing file as a PDF contract drawing file.
CN202310837917.6A 2023-07-10 2023-07-10 PDF electronic contract drawing-up method based on DOCX format Pending CN116822482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310837917.6A CN116822482A (en) 2023-07-10 2023-07-10 PDF electronic contract drawing-up method based on DOCX format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310837917.6A CN116822482A (en) 2023-07-10 2023-07-10 PDF electronic contract drawing-up method based on DOCX format

Publications (1)

Publication Number Publication Date
CN116822482A true CN116822482A (en) 2023-09-29

Family

ID=88118339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310837917.6A Pending CN116822482A (en) 2023-07-10 2023-07-10 PDF electronic contract drawing-up method based on DOCX format

Country Status (1)

Country Link
CN (1) CN116822482A (en)

Similar Documents

Publication Publication Date Title
CN109948134B (en) Report automatic generation method, system, electronic equipment and storage medium
US7979793B2 (en) Graphical creation of a document conversion template
CN106815184B (en) System and method for automatically generating document based on FOG data
JP5209124B2 (en) Send and receive electronic business cards
US7155670B2 (en) Document authoring system and authoring management program
CN102165393B (en) Editing 2D structures using natural input
CN108595389B (en) Method for converting Word document into txt plain text document
US9582095B1 (en) Integrated document editor
CN100565601C (en) A kind of bill processing apparatus and method
JPS6165290A (en) Generator for vector character font
CN109857670B (en) Test report automatic generation method based on universal template
CN103093252B (en) Information output apparatus and information output method
CN106339363A (en) PPT report making method and device
CN113033162A (en) Electronic document conversion method capable of controlling editing rule
CN116822482A (en) PDF electronic contract drawing-up method based on DOCX format
CN111753513A (en) Electronic contract making method based on HTML language
CN111222310A (en) Method and system for inputting and displaying irregular form
CN109145266B (en) Method for quickly generating dynamic PDF (Portable document Format) file from picture
CN117350249B (en) Control configuration method and system for automatically inputting electronic document data
JP2020115260A (en) Information processing device and information processing program
US20180157624A1 (en) Electronic form system and method for editting form thereof
Lambert MOS Study Guide for Microsoft Excel Exam MO-200
JP2015022454A (en) Method for producing electronic book
CN117273021A (en) Method for accurately restoring non-text elements in document translation
King Design spaces: The limitations of variability in typeface design

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