CN115470769A - Personalized document editing method, system and application - Google Patents

Personalized document editing method, system and application Download PDF

Info

Publication number
CN115470769A
CN115470769A CN202211206352.3A CN202211206352A CN115470769A CN 115470769 A CN115470769 A CN 115470769A CN 202211206352 A CN202211206352 A CN 202211206352A CN 115470769 A CN115470769 A CN 115470769A
Authority
CN
China
Prior art keywords
low
data block
code data
private
editing unit
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
CN202211206352.3A
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.)
Zhejiang Public Information Industry Co ltd
Zhejiang Hangzhou Ecological Environment Monitoring Center
Original Assignee
Zhejiang Public Information Industry Co ltd
Zhejiang Hangzhou Ecological Environment Monitoring Center
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 Zhejiang Public Information Industry Co ltd, Zhejiang Hangzhou Ecological Environment Monitoring Center filed Critical Zhejiang Public Information Industry Co ltd
Priority to CN202211206352.3A priority Critical patent/CN115470769A/en
Publication of CN115470769A publication Critical patent/CN115470769A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application provides a personalized document editing method, a system and application, wherein a low-code data block containing a basic field with a unique key value is constructed, a WordXML original file uploaded by a user is analyzed to obtain a private Json string containing a unique identification, the low-code data block and the private Json string are bound according to the selected unique identification and the unique key value, and after the user edits the low-code data block on a service form interface, the field content of the low-code data block is inserted into the corresponding private Json string to form an updated Json string; and rendering the not updated Json strings and the updated Json strings to form a personalized document so as to meet the customization requirement of the low-code personalized document.

Description

Personalized document editing method, system and application
Technical Field
The present application relates to the field of document editing, and in particular, to a method, a system, and an application for personalized document editing.
Background
Different types of reports are often required to be provided in various service scenes, and along with the continuous diversification of the service scenes, the requirements of people on the report forms are more diversified. Particularly, in a chemical monitoring service scene, because the content of monitoring projects is very many and the relationship between different monitoring projects is complicated, different monitoring reports are often customized according to different service contents; in addition, with the adjustment of the monitoring method and the continuous improvement of the experimental system, the calculation formula built in some monitoring items and the adjustment of the recording format of the item content are inevitably caused, which all aggravate the difficulty of report generation. At present, the conventional method is to independently develop corresponding template reports according to different business requirements, but the method undoubtedly has the problem of relatively high labor cost and time cost, and is not favorable for the development of business work.
CN107153636A provides a method for quickly exporting service data in PDF format, which only mentions that a required PDF template is selected from a preset PDF template library according to a query request of a user, service data is filled in template components in the PDF template, and a PDF file is finally formed for display. However, in the scheme, all PDF templates are preset, and personalized PDF files are generated within a limited preset range, which cannot meet the requirement of personalized definition of various PDF reports. CN114118038A provides an online form document editing method, which is to convert and display template data corresponding to a form document to be edited into a client according to a parameter configuration file, convert a mapping relationship between a metadata table in source data corresponding to the form document to be edited and a field in the metadata table, and correspondingly fill the converted data in the metadata table into a template in the client, where the data is only edited on an original format of the form document to be edited, and the document content of the form document itself cannot be edited, and thus the requirement for individually defining various PDF reports cannot be met.
In other words, most of the document editing methods in the current market edit the document contents on the preset PDF template or the self-imported PDF template, and do not involve the personalized customization of the template form and contents of the PDF template, and professional encoding personnel are required to redevelop if the PDF template needs to be modified.
Disclosure of Invention
The embodiment of the application provides a personalized document editing method, a system and application, the scheme can realize personalized customization of the document form and content of low-code service, and a user can quickly, simply and conveniently customize a personalized document according to business requirements.
In a first aspect, an embodiment of the present application provides a personalized document editing method, including the following steps:
constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string, and rendering the private Json string into an online editing document, wherein each editing unit of the WordXML original file has a unique identification in the private Json string;
selecting an editing unit to be edited as a selected editing unit, and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string;
and rendering the non-updated Json strings and the updated Json strings to form a personalized document.
In a second aspect, an embodiment of the present application provides a personalized document editing system, including:
the low-code data block construction unit is used for constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
the system comprises a document uploading unit, a document editing unit and a document processing unit, wherein the document uploading unit is used for acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string and rendering the private Json string into an online editing document, and each editing unit of the WordXML original file has a unique identification in the private Json string;
the editing unit is used for selecting an editing unit to be edited as a selected editing unit and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
the binding unit is used for binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string;
and the rendering unit is used for rendering the not updated Json strings and the updated Json strings to form a personalized document.
In a third aspect, an embodiment of the present application provides an electronic apparatus, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the personalized document editing method.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored therein a computer program comprising program code for controlling a process to execute a process, the process comprising a personalized document editing method according to any of claims 1 to 8.
The main contributions and innovation points of the invention are as follows:
the method and the device for the personalized document editing adopt the low-code service, so that a user without professional code compiling capability can easily customize the personalized document, and particularly, through the low-code model, the low-code model contains various self-defined forms and low-code data blocks related to the forms, and the user can realize personalized editing of the document by selecting the proper low-code data blocks.
The scheme provides an XML (extensive markup language) parsing translation algorithm, various Word XML files can be translated into private JSON (java script object notation) strings which can be identified by a PDF (portable document format) editor, the private JSON strings are rendered into online words at a webpage end, and a user binds text positions in corresponding words by using low-code data blocks of a low-code model to realize generation of personalized documents, so that the scheme is applicable to various types of words and has a wide application range.
The scheme provides PDF generation service, and inserts texts, tables, pictures and the like into PDFs by applying a table automatic generation algorithm according to the low code data blocks, JSON strings, PDFs and low code data block associated configuration of the constructed low code model, and then forms a final PDF report to adapt to the requirements of various service scenes.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a schematic diagram of a business form page according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a rendered online editing document according to one embodiment of the present application;
FIG. 3 is a schematic diagram of a document editing system according to an embodiment of the present application;
FIG. 4 is a logic flow diagram of a method of personalized document editing according to an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of an electronic device according to an embodiment of the application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of the specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of one or more embodiments of the specification, as detailed in the claims which follow.
It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than those described herein. Moreover, a single step described in this specification may be broken down into multiple steps in other embodiments; multiple steps described in this specification may be combined into a single step in other embodiments.
Example one
The scheme provides a personalized document editing method, a system and application, a user can input Word XML original reports of various styles, the scheme analyzes various Word XML original reports by using an algorithm XML analysis translation algorithm to obtain private JSON strings, the private JSON strings are rendered into online editable words, and the user can bind low-code data blocks of low codes to the online words on an online editor to further generate a personalized document. The scheme is oriented to the service scene that the document form and the content need to be customized in a personalized mode, and a user can easily use the editing system to obtain the personalized document without a professional coding function, for example, different monitoring items are often required to be selected to generate different monitoring reports in the chemical monitoring service scene, and the scheme can be well adapted to the requirement of customizing the personalized document.
Specifically, the scheme provides a personalized document editing method, which comprises the following steps:
constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string, and rendering the private Json string into an online editing document, wherein each editing unit of the WordXML original file has a unique identification in the private Json string;
selecting an editing unit to be edited as a selected editing unit, and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string;
rendering the non-updated Json strings and the updated Json strings form a personalized document.
The method and the system package the components with the service requirements into low code data blocks, so that a subsequent user can quickly and directly call the required low code data blocks on a WordXML original file uploaded by the user to realize the editing of the personalized document. The scheme can adapt to the change of the service requirement by modifying the content of the low-code data block.
In some embodiments, the present solution generates the low-code data block through the business form interface, which has the advantage that the user can quickly edit the field contents of the low-code data block in the business form.
Specifically, the step of "constructing at least one low code data block" in the present solution further includes:
designing a low-code component meeting business requirements, and integrating the low-code component and a basic function component based on business to form a business form interface;
and collecting data corresponding to the basic field of the low-code component on the business form interface to obtain a low-code data block.
In some embodiments, the business form interface further includes a basic field of the basic form, for example, a database table corresponding to a data storage where the business form interface needs to be configured, and therefore, in some embodiments, the present solution includes the steps of: designing a basic form aiming at a basic database table, designing a low-code component meeting business requirements, integrating the low-code component and a basic functional component based on business to form a business form interface on the basic form, and gathering data corresponding to basic fields of the low-code component on the business form interface to obtain a low-code data block.
The basic function components comprise but are not limited to an input box, a time selector, a pull-down selector and the like, and the low-code components and the corresponding basic function components are integrated according to different business requirements, and a business form interface is formed for issuing. For example, the basic function component corresponding to the 'input box' is selected for some low-code function components in a single filling format, and the corresponding basic function component corresponding to the 'input box' is selected in a pull-down mode for some multi-option low-code function components.
In this embodiment, the low-code data block provided by the present solution is a field set of a corresponding low-code component on the business form interface. Specifically, a user fills the contents of a writing field in a basic field of a low-code component of a business form interface, and collects the contents of the writing field to obtain a low-code data block, and the data contents of the low-code data block are stored in a database table.
That is, the basic field in the low-code data block of the present scheme is the field of the corresponding low-code component, each low-code data block sets a unique key value, and the content of the field is set as the content input in the low-code component.
Illustratively, as shown in fig. 1, fig. 1 is a schematic diagram of a business form interface designed by the present embodiment, and the low-code components corresponding to "culture conditions", "escherichia coli", "enterobacter aerogenes", "staphylococcus aureus", "result determination", and "configuration time" on the business form interface all constitute corresponding low-code data blocks, and the low-code data block for "culture conditions" is: [ { objeckKey: "peiyangtiaojian", name: "culture condition", value: "}; the low code data block for "escherichia coli" is: { objeckKey: "dachang", name: "Escherichia coli", value: "}. If the user fills the field content in the service form interface, the value of the field content value in the low code data block is filled.
Of course, the field contents of the low code data block may be selected from one of "value" and "subset". And if the field content is 'subset', the field content comprises a basic field corresponding to the subset. For example, if the field content is "subset", the low code data block is:
[ { objeckKey: "key1" ], name: "sample information" ], value: [ objeckKey: "key2" ], name: "subset catalog sample" ], value: "sodium ion" } ].
In addition, in some embodiments, if at least one basic field is included in the same low code data block, the low code data block further includes a field combination defining a combination of basic fields, wherein the field combination is selected from one of a value type, a row type, a column type, and a combination type. When the field combination mode is a value type, the basic field is shown as a value form; when the field combination mode is a row type, showing that at least two basic fields are displayed in a row arrangement mode; when the field combination mode is a column type, the field combination mode indicates that at least two basic fields are displayed in a column arrangement mode; and when the field combination mode is a combination type, integrating the above mentioned display modes.
In the scheme, a user can upload a locally designed WordXML original file in an online editor, and the system analyzes the WordXML into a private Json string which can be recognized by the online editor. This has the advantages that: the application scene of the scheme is greatly expanded, and the scheme is applicable to the scene of user-defined design documents.
Specifically, a text, a table and default configuration about a word in a WordXML original file are recognized, the text, the table and sub-cells in the table are used as independent editing units and converted into private Json strings by combining the default configuration, and a unique identification is given to each editing unit.
In some embodiments, the unique identifier consists of a timestamp imported into the wordlxml and a location of the editing unit in the wordlxml original file, so that the unique identifier of each editing unit can be guaranteed to be unique.
In the step of 'resolving the WordXML original file into a private Json string and rendering the private Json string into an online editing document', identifying a text and a text default configuration in the WordXML original file, and converting the text into the private Json string according to the default configuration; and identifying a table, a sub-cell and a default configuration of the table in the WordXML original file, and converting the table and the sub-cell into a private Json string according to the default configuration of the table.
The default configuration of the text comprises configuration information such as text content, width of the text, text position and the like, and the default configuration of the table comprises configuration information such as width of the table, table position, sub-cells, cell content and the like.
Illustratively, an example of the conversion of text for a WordXML original document into a private Json string is as follows:
example (c):
{
"rsidId":"",
"top":42.55,
"pageFlag":0,
"left":0,
"width":523.3,
"height":55.84,
"type":"textLine",
"leftChars":0,
"firstLineChars":0,
"firstLine":0,
"textAlign":"center",
"fontFamily":"",
"snapToGrid":"",
"space":0,
"line":0,
"lineRule":"",
"before":0,
"beforeLines":0,
"after":0,
"afterLines":0,
"fontSize":16,
"vertical":"top",
"textLineLsit":[
{
"type":"text",
"left":36,
"width":808,
"space":0,
"height":15.6,
"fontSize":"16",
"fontSizeCs":16,
"fontFamily": in bold ",
text water quality F - 、Cl - 、NO 2 - 、Br - 、NO 3 - 、PO 3- 、SO 2- 、SO 2- An inorganic anion (F ",
"underLine":false,
"textAlign":"left",
"vertical":"center",
"vertAlign":"",
"strike":"",
"smallCaps":"",
"shadow":"",
"outline":"",
"imprint":"",
"emboss":"",
"strikeThrough":"",
"color":"",
"capitalization":"",
"italics":"",
"bold":true,
"id":"1625130603000-0-0"
],
"id":"1625130603000-0"
}。
an example of a table transformation of a WordXML original document into a private Json string is as follows: "rsidId" ",
"type":"table",
″name″:″″,
"width":511.6499999999999,
"top":160.79,
"left":41.82500000000002,
"align":"center",
"pageFlag":0,
"defaultColumnWidth":"",
"defaultRowHeight":"",
"rowCount":"",
"columnCount":0,
"tableStyle":{},
"columns":[],
"rows":[
{
"autoFitHeight":"",
"height":34.800000000000004,
"style":"",
"textAlign":"center",
"pageFlag":0,
"cell":[
{
"index":1,
"mergeDown":0,
"mergeAcross":0,
"isHidden":false,
"fontSize":10.5,
"textAlign":"center",
"style":{},
"text": test \ n condition ",
"cellBoxList":[],
"id":"1625130603000-5-0-0""header":{},
"footer":{},
"id":"1625130603000-5",
"right":41.82500000000002
}。
in the step of rendering the private Json string into an online edited document, the scheme renders the private Json string into an online edited document on a webpage by using Canvas, where the online edited document provided by the scheme may be online edited WORD or online edited PDF, as shown in fig. 2, and fig. 2 shows the online edited document rendered by the scheme.
It is worth mentioning that as shown in fig. 3, the low code data block generated by the present scheme is displayed in an alternative manner in the document editing system, and the online edited document is also displayed on the same document editing system. In the actual operation process, the user can select an editing unit needing to be edited in the document editing system as a selected editing unit, and select a selected low-code data block corresponding to the selected editing unit in the document editing system.
In a specific example, a user selects an editing unit needing to be configured in an operation interface of the document editing system, wherein the editing unit is an input box or a cell, then a corresponding basic field is selected from a low-code data block for matching, blue ground color and characters are displayed in an editing area after matching is finished, and the user is prompted to succeed in matching at this time.
In the step of binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, a binding relationship string is generated according to the unique identification mark and the unique key value, wherein the binding relationship string at least comprises the unique identification mark and the unique key value.
Of course, in some embodiments, extracting other field data in the low code data block is defined to generate a binding relationship string.
Illustratively, the binding relationship string generated by the scheme is as follows:
{
"level":0,
"editorIdAll":[
'1625130603000-1-2'// unique identification
],
"base-sampleCategory",// objectKey Path corresponding to low-code data block "/" "sampleCategory"// unique key value corresponding to low-code data block "/")
}。
Correspondingly, in the step of inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form the updated Json string, the field content of the corresponding low-code data block is called according to the binding relation string, and the field content is dynamically inserted into the corresponding private Json string to form the updated Json string.
It is worth mentioning that since the low-code data block and the private Json string of the selected editing unit have a binding relationship, when a system worker edits the low-code data block on a business form interface, the corresponding private Json string is called to update, that is, the corresponding field content in the low-code data block is inserted into the corresponding position in the corresponding private Json string.
It should be noted that the present solution can directly change the document form and content of the personalized document by using the low code data block, for example, when the relationship between the selected editing unit in the document and the low code data block is 1 to N, there will be N data of the low code data block in the selected editing unit.
In some embodiments, in the "render un-updated Json string and the updated Json string form personalized document" step, the un-updated Json string and the updated Json string are rendered in a streaming layout according to a document rendering algorithm to generate a personalized document.
Specifically, the field contents of the data blocks are inserted according to the precedence order of the Json strings rather than at fixed locations. For example, if the text (123) is changed to insert a new word behind the first line in the word (12312983812381238129383812389812389), the next line corresponding to the line feed in the word is automatically moved down instead of the previous line.
Example two
Based on the same concept, referring to fig. 3, the present application further provides a personalized document editing system, including the following:
the low-code data block construction unit is used for constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
the document uploading unit is used for acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string and rendering the private Json string into an online editing document, wherein each editing unit of the WordXML original file has a unique identification in the private Json string;
the editing unit is used for selecting an editing unit to be edited as a selected editing unit and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
the binding unit is used for binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string;
and the rendering unit is used for rendering the not updated Json strings and the updated Json strings to form a personalized document.
The same contents in the second embodiment as those in the first embodiment will not be redundantly described here.
EXAMPLE III
The present embodiment further provides an electronic apparatus, referring to fig. 5, comprising a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to execute the computer program to perform the steps of any one of the above embodiments of the personalized document editing method.
Specifically, the processor 402 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
Memory 404 may include, among other things, mass storage 404 for data or instructions. By way of example, and not limitation, memory 404 may include a hard disk drive (hard disk drive, HDD for short), a floppy disk drive, a solid state drive (SSD for short), flash memory, an optical disk, a magneto-optical disk, tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Memory 404 may include removable or non-removable (or fixed) media, where appropriate. The memory 404 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 404 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 404 includes Read-only memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or FLASH memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random Access Memory (SRAM) or a Dynamic Random Access Memory (DRAM), where the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an Extended Data Out Dynamic Random Access Memory (EDODRAM), a Synchronous Dynamic Random Access Memory (SDRAM), and the like.
Memory 404 may be used to store or cache various data files for processing and/or communication use, as well as possibly computer program instructions for execution by processor 402.
The processor 402 may implement any of the personalized document editing methods described in the embodiments above by reading and executing computer program instructions stored in the memory 404.
Optionally, the electronic apparatus may further include a transmission device 406 and an input/output device 408, where the transmission device 406 is connected to the processor 402, and the input/output device 408 is connected to the processor 402.
The transmitting device 406 may be used to receive or transmit data via a network. Specific examples of the network described above may include wired or wireless networks provided by communication providers of the electronic devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmitting device 406 may be a Radio Frequency (RF) module configured to communicate with the internet via wireless.
The input and output devices 408 are used to input or output information. In this embodiment, the input information may be a WordXML original file, a low code data block, and the like, and the output information may be a personalized document, and the like.
Optionally, in this embodiment, the processor 402 may be configured to execute the following steps by a computer program:
constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string, and rendering the private Json string into an online editing document, wherein each editing unit of the WordXML original file has a unique identification in the private Json string;
selecting an editing unit to be edited as a selected editing unit, and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string;
and rendering the non-updated Json strings and the updated Json strings to form a personalized document.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In general, the various embodiments may be implemented in hardware or special purpose circuits, software, logic or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software which may be executed by a controller, microprocessor or other computing device, although the invention is not limited thereto. While various aspects of the invention may be illustrated and described as block diagrams, flow charts, or using some other pictorial representation, it is well understood that these blocks, apparatus, systems, techniques or methods described herein may be implemented in, as non-limiting examples, hardware, software, firmware, special purpose circuits or logic, general purpose hardware or controller or other computing devices, or some combination thereof.
Embodiments of the invention may be implemented by computer software executable by a data processor of the mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. Computer software or programs (also called program products) including software routines, applets and/or macros can be stored in any device-readable data storage medium and they include program instructions for performing particular tasks. The computer program product may include one or more computer-executable components configured to perform embodiments when the program is run. The one or more computer-executable components may be at least one software code or a portion thereof. Further in this regard it should be noted that any block of the logic flow as in the figures may represent a program step, or an interconnected logic circuit, block and function, or a combination of a program step and a logic circuit, block and function. The software may be stored on physical media such as memory chips or memory blocks implemented within the processor, magnetic media such as hard or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. The physical medium is a non-transitory medium.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for personalized document editing, comprising the steps of:
constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string, and rendering the private Json string into an online editing document, wherein each editing unit of the WordXML original file has a unique identification in the private Json string;
selecting an editing unit to be edited as a selected editing unit, and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string; rendering the non-updated Json strings and the updated Json strings form a personalized document.
2. The personalized document editing method according to claim 1, wherein a low-code component satisfying business requirements is designed, and a business form interface is formed based on business integration of the low-code component and a basic function component; and collecting data of the basic field corresponding to the low-code component on the service form interface to obtain a low-code data block.
3. The method of claim 2, wherein the content of the word segment is filled in the basic field of the low-code component of the business form interface, and the content of the field is collected to obtain the low-code data block, and the data content of the low-code data block is stored in the database table.
4. The method of claim 1, wherein at least one base field is included in a same low code data block, and the low code data block comprises a field combination defining a combination of base fields, wherein the field combination is selected from one of a value type, a row type, a column type, and a combination type.
5. The personalized document editing method according to claim 1, wherein the unique identification consists of a timestamp imported into the WordXML and a position of an editing unit in a WordXML original file.
6. The personalized document editing method of claim 1, wherein a text in the WordXML original file and a default configuration of the text are identified, and the text is converted into a private Json string according to the default configuration; and identifying a table, a sub-cell and a default configuration of the table in the WordXML original file, and converting the table and the sub-cell into a private Json string according to the default configuration of the table.
7. The method for editing a personalized document according to claim 1, wherein a binding relationship string is generated according to the unique identification and the unique key value, wherein the binding relationship string at least comprises the unique identification and the unique key value, the field content of the corresponding selected low-code data block is called according to the binding relationship string, and the field content is dynamically inserted into the corresponding private Json string to form an updated Json string.
8. A personalized document editing system, comprising:
the low-code data block construction unit is used for constructing at least one low-code data block, wherein each low-code data block comprises a basic field, and the basic field at least comprises a unique key value, a field name and field content;
the system comprises a document uploading unit, a document editing unit and a document processing unit, wherein the document uploading unit is used for acquiring a WordXML original file uploaded by a user, analyzing the WordXML original file into a private Json string and rendering the private Json string into an online editing document, and each editing unit of the WordXML original file has a unique identification in the private Json string;
the editing unit is used for selecting an editing unit to be edited as a selected editing unit and selecting at least one low-code data block corresponding to the selected editing unit as a selected low-code data block;
the binding unit is used for binding the selected low-code data block and the selected editing unit according to the unique identification mark of the selected editing unit and the unique key value of the selected low-code data block, and inserting the field content of the selected low-code data block into the corresponding private Json string of the selected editing unit to form an updated Json string;
and the rendering unit is used for rendering the not updated Json strings and the updated Json strings to form a personalized document.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the personalized document editing method of any of claims 1 to 8.
10. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, the computer program comprising program code for controlling a process to execute a process, the process comprising the personalized document editing method according to any of claims 1 to 8.
CN202211206352.3A 2022-09-30 2022-09-30 Personalized document editing method, system and application Pending CN115470769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211206352.3A CN115470769A (en) 2022-09-30 2022-09-30 Personalized document editing method, system and application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211206352.3A CN115470769A (en) 2022-09-30 2022-09-30 Personalized document editing method, system and application

Publications (1)

Publication Number Publication Date
CN115470769A true CN115470769A (en) 2022-12-13

Family

ID=84334220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211206352.3A Pending CN115470769A (en) 2022-09-30 2022-09-30 Personalized document editing method, system and application

Country Status (1)

Country Link
CN (1) CN115470769A (en)

Similar Documents

Publication Publication Date Title
CN109918607B (en) Page construction method and device, medium and computing equipment
CN101661512B (en) System and method for identifying traditional form information and establishing corresponding Web form
US20130055071A1 (en) Systems and methods for creating a customized website
CN112650766B (en) Database data operation method, system and server
US20080172608A1 (en) Site builder
CN110333850A (en) Generation method, device, computer equipment and the storage medium of interface document
CN109657215A (en) Document structure tree method, equipment, storage medium and device based on template
CN104133772A (en) Automatic test data generation method
CN107305527B (en) Code file processing method and device
CN108762743A (en) Data table operation code generation method and device
CN103530407B (en) Method and device for generating rich text document
CN111984902A (en) Visual page configuration method, system, computer equipment and storage medium
CN110543303B (en) Visual service platform
US20220222310A1 (en) Method and apparatus for generating web page
CN109284488B (en) Method, device and medium for modifying front-end table column data based on local storage
CN105335338A (en) Electronic document conversion method and device
CN114036425A (en) Page access method, client, server and system
CN103559184A (en) Form page display method and device
CN108897728B (en) Short message splicing processing method and device, computer equipment and storage medium
CN111722873A (en) Code reconstruction method, device, equipment and medium
CN112632928B (en) Table data processing method and device and computer readable storage medium
CN112131837A (en) Service report configuration method, device, computer equipment and storage medium
CN104978325B (en) A kind of web page processing method, device and user terminal
CN113283228A (en) Document generation method and device, electronic equipment and storage medium
CN115470769A (en) Personalized document editing method, system and application

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