CN112417818A - Document directory generation method and device, storage medium and electronic equipment - Google Patents
Document directory generation method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN112417818A CN112417818A CN202011296414.5A CN202011296414A CN112417818A CN 112417818 A CN112417818 A CN 112417818A CN 202011296414 A CN202011296414 A CN 202011296414A CN 112417818 A CN112417818 A CN 112417818A
- Authority
- CN
- China
- Prior art keywords
- document
- directory
- file
- document file
- plug
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000015654 memory Effects 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 238000013515 script Methods 0.000 claims description 9
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 7
- 238000011161 development Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 7
- 230000002159 abnormal effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/93—Document management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/149—Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a document directory generation method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: calling a document generation component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file. The invention solves the technical problem of low efficiency of generating the document catalogue by utilizing development software in the related technology.
Description
Technical Field
The invention relates to the technical field of document development, in particular to a method and a device for generating a document directory, a storage medium and electronic equipment.
Background
With the vigorous development of the internet of things, at present, many open-source components supporting object-oriented development software to edit or export documents are available, and various styles of the documents, such as inserting tables and inserting pictures, can be mostly realized; although the related development components can easily read and write the document information, in the process of generating the document directory, some related development software needs to add tag processing, and some code is complex to implement and is easy to make mistakes. This leads to a problem that the document catalog generation using development software is inefficient. How to generate the document directory quickly and efficiently becomes a technical problem to be solved urgently.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a document directory, a storage medium and electronic equipment, which are used for at least solving the technical problem that the document directory cannot be generated quickly and efficiently in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a document directory generation method, including: calling a document generation component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
According to another aspect of the embodiments of the present invention, there is also provided a document directory generating apparatus, including: the first generation unit is used for calling the document generation component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; a first conversion unit, configured to generate a plug-in based on a directory matching the document type, and convert the first document file into a target document file having a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned document directory generation method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the document directory generation method through the computer program.
In the embodiment of the invention, a calling document generation component is adopted to generate the object document information into a first document file; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a method for refreshing the directory domain of the first document file. The first document file is converted into the target document file with the directory structure through the directory generation plug-in matched with the document type, so that the aim of quickly generating the document with the directory structure from the document without the directory structure is fulfilled, the technical effect of improving the technical problem of generating the document directory by utilizing development software is achieved, and the technical problem of low efficiency of generating the document directory by utilizing the development software in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative document catalog generation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of the flow of an alternative document catalog generation method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the flow of an alternative document catalog generation method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an alternative document directory generation apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a document directory generation method is provided, and optionally, as an optional implementation manner, the document directory generation method may be applied to, but is not limited to, the environment shown in fig. 1.
In fig. 1, the electronic terminal 104 is responsible for human-computer interaction with the user 102, and the electronic terminal 104 includes a memory 106, a processor 108 and a display 110; the memory 106 stores a document development platform program. Electronic terminal 104 may interact with backend server 114 via network 112. Server 114 includes a database 116 and a processing engine 118. The electronic terminal 104 invokes the document generation component to generate a first document file from the object document information, and then generates a plug-in based on the directory matched with the document type to convert the first document file into a target document file having a directory structure. The target document file is then displayed on the display 110 of the electronic terminal 104.
Optionally, in this embodiment, the electronic terminal 104 may be a terminal device configured with a target server, and the electronic terminal 104 may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, etc. The target server can be a video server, an instant messaging server, a browser server, an education server, and the like. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the document directory generation method includes:
s202, calling a document generation component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file;
s204, generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
In step S202, the document generation component may be an open source component of office document software when actually applied. For example: the method comprises the steps that a plurality of open source components such as Jacob, Apache POI, Java2word, FreeMarker, PageOffice and the like are adopted, the mode of generating Office document files of each open source component is different, for example, the Jacob open source component and the Java2word open source component directly call a component class library of Microsoft Office to read and write Office documents, the FreeMarker open source component realizes reading and writing of Office documents through XML and FreeMarker, and the PageOffice open source component encapsulates a general automation language VBA interface of the Microsoft Office. The document generating components can easily read and write office documents to generate document files without a directory structure, but most of the document generating components do not support generation of office document file directories or generation of document directories by partial open source components is complex. Here, the Office document software includes, but is not limited to, Office software, Wps Office software, or Adobe Office software, and is not limited thereto.
The target document information is obtained from various different types of data information of the target database. For example, in a document development platform, when an operation state report of some electrical devices in the internet of things device needs to be acquired, data including voltage, current, power, operation duration, power consumption, a time period in which an abnormality occurs, an abnormality reason, and the like in one cycle are acquired from a database storing the operation states of the electrical devices. The object document information comprises text data or report image data of data such as voltage, current, power, running time, power consumption, abnormal time period, abnormal reason and the like in a period. The data type of the text type is in a text format, and the data type of the image data is in an image format; therefore, after the document development platform acquires the object document information containing the different types of data, the document generation component is called to generate the object document information into a first document file without a directory structure.
In step S204, in actual application, the plug-in is generated based on the directory matching the document type, and the first document file is converted into a target document file having a directory structure. For example, when the document type of the current first document file is a Word document, a plug-in is generated based on a directory matched with the Word document, and the first document file is converted into the Word document with a directory structure. When the document type of the first document file is an Excel document, generating a plug-in based on a directory matched with the Excel document, and converting the first document file into the Excel document with a directory structure. Here, the directory generation plug-in may include, but is not limited to, a macro file or a script file for operating Office software or Wps Office software, and is not limited thereto.
In the embodiment of the invention, a calling document generation component is adopted to generate the object document information into a first document file; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a method for refreshing the directory domain of the first document file. The first document file is converted into the target document file with the directory structure through the directory generation plug-in matched with the document type, so that the aim of quickly generating the document with the directory structure from the document without the directory structure is fulfilled, the technical effect of improving the technical problem of generating the document directory by utilizing development software is achieved, and the technical problem of low efficiency of generating the document directory by utilizing the development software in the related technology is solved.
In one embodiment, step S204 includes retrieving, by the document generation component, a directory generation plug-in stored in the first document file; and running a directory generation plug-in the first document file, and updating the first document file into a target document file with a directory structure. For example, a macro file for generating a document directory in a Word file (first document file) is retrieved by the open source component Jacob in the foregoing embodiment, and then a directory generation plug-in is run in the Word file, so that the Word file is updated to a Word document file having a directory structure.
In an embodiment, before step S204, the method further includes, based on the document type carried in the object document information, creating a directory generation plug-in with a refreshed first document directory domain. That is, the catalog generation plug-in corresponding to the document type is created according to the document type contained in the object document information. For example, if the document type included in the object document information is Word type, a catalog generation plug-in with a refreshed Word document catalog field is created. And if the document type contained in the object document information is an Excel type, creating a catalog generation plug-in with a refreshed Excel document catalog domain.
In an embodiment, generating a directory generation plug-in with a refreshed first document directory domain based on a document type carried in object document information includes: recording the macro file based on the document type corresponding to the first document file, wherein the directory generation plug-in comprises the macro file; or creating a general automation language VBA script file based on the document type corresponding to the first document file.
For example, when the document type corresponding to the first document is a Word document, the macro file of the automatically generated catalog may be edited based on the taskbar view option in the Word document, the recording macro under the macro tool. The macro file may then be invoked to create a directory structured Word document from the first document based on the above-mentioned open source component of the office document software, such as the Jacob open source component. Or, through the editing function under the macro tool, a VBA script file capable of automatically generating a Word document directory structure is created, and the script file can be called by an open source component of the office document software, such as a Jacob open source component, to generate a Word document with a directory structure from the first document. Vba (Visual Basic for applications) is a macro language for Visual Basic, which is a programming language for executing general automation tasks in its desktop applications. The method can be mainly used for expanding the application program functions of Windows, in particular Microsoft Office software. VBA is commonly used in various application programs of Office, such as Word, Excel, etc. By compiling the VBA script file, the automatic generation of the document directory is simply and efficiently realized.
In an embodiment, before step S202, the method further includes: acquiring original document information from a target database; identifying original document information to obtain target document information containing a plurality of data types; and packaging the target document information according to the document type carried in the target document information and a preset data structure to obtain the target document information. For example, in a document development platform, when an operation state report of some electrical devices in the internet of things device needs to be acquired, original document information including data of voltage, current, power, operation duration, power consumption, abnormal time period, abnormal reason and the like in one cycle is acquired from a database storing the operation state of the electrical devices. The object document information comprises text data or report image data of data such as voltage, current, power, running time, power consumption, abnormal time period, abnormal reason and the like in a period. The data type of the text type is a text format, the data type of the image data is an image format, and then the text format or the image format and other types of data are converted into a data structure corresponding to a current document development platform, such as a JAVA development platform, and further converted into object document information suitable for the current document development platform.
In one embodiment, the target document information includes at least one of: the system comprises a document tree structure object, a document tree picture object set, a document clipping object set and a document tree text parameter object set.
In the embodiment of the invention, a calling document generation component is adopted to generate the object document information into a first document file; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a method for refreshing the directory domain of the first document file. The first document file is converted into the target document file with the directory structure through the directory generation plug-in matched with the document type, so that the aim of quickly generating the document with the directory structure from the document without the directory structure is fulfilled, the technical effect of improving the technical problem of generating the document directory by utilizing development software is achieved, and the technical problem of low efficiency of generating the document directory by utilizing the development software in the related technology is solved.
Based on the above embodiments, in an application embodiment, as shown in fig. 3, first, step S302 is executed: a JAVA program (a document development platform) encapsulates a data structure of Word content (original document information) to be written; then, the process proceeds to step S304: the JAVA program calls an open source component API (document generation component) to generate a Word file (first document file) with a content directory; then, the process proceeds to step S306: compiling Word macro files or compiling VBA scripts; then, the process proceeds to step S308: the JAVA program calls a Word macro file or the VBA script generates a Word document (target document file) having a directory structure.
In the embodiment of the invention, a first document file is generated from object document information by adopting a calling document generation component; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a method for refreshing the directory domain of the first document file. The first document file is converted into the target document file with the directory structure through the directory generation plug-in matched with the document type, so that the aim of quickly generating the document with the directory structure from the document without the directory structure is fulfilled, the technical effect of improving the technical problem of generating the document directory by utilizing development software is achieved, and the technical problem of low efficiency of generating the document directory by utilizing the development software in the related technology is solved.
According to another aspect of the embodiment of the present invention, there is also provided a document directory generating apparatus for implementing the document directory generating method. As shown in fig. 4, the apparatus includes:
a first generating unit 402, configured to invoke a document generating component to generate a first document file from the target document information; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file;
a first conversion unit 404, configured to generate a plug-in based on a directory matching the document type, and convert the first document file into a target document file having a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
In an embodiment, the first conversion unit 404 includes:
a first retrieval subunit, configured to retrieve, by the document generation component, a directory generation plug-in stored in the first document file;
and the first updating unit is used for operating the directory generation plug-in the first document file and updating the first document file into a target document file with a directory structure.
In one embodiment, the document directory generating apparatus further includes:
and the first processing unit is used for creating a directory generation plug-in with a refreshed first document directory domain based on the document type carried in the object document information.
In an embodiment, the first processing unit includes:
the first recording subunit is used for recording the macro file based on the document type corresponding to the first document file, and the directory generation plug-in comprises the macro file; or
And the first processing subunit is used for creating a general automation language VBA script file based on the document type corresponding to the first document file.
In one embodiment, the document directory generating apparatus further includes:
a first acquisition unit, configured to acquire original document information from a target database;
the first identification unit is used for identifying original document information to obtain target document information containing a plurality of data types;
and the first packaging unit is used for packaging the target document information according to the document type carried in the target document information and a preset data structure to obtain the target document information.
In one embodiment, the document directory generating means generates the object document information: at least one of the following is included: the system comprises a document tree structure object, a document tree picture object set, a document clipping object set and a document tree text parameter object set.
In the embodiment of the invention, a first document file is generated from object document information by adopting a calling document generation component; the document generation component is used for generating a first document file; the target document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file; generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a method for refreshing the directory domain of the first document file. The first document file is converted into the target document file with the directory structure through the directory generation plug-in matched with the document type, so that the aim of quickly generating the document with the directory structure from the document without the directory structure is fulfilled, the technical effect of improving the technical problem of generating the document directory by utilizing development software is achieved, and the technical problem of low efficiency of generating the document directory by utilizing the development software in the related technology is solved.
For other examples of this embodiment, reference may be made to the above embodiments, which are not described herein again.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the document directory generation method, as shown in fig. 5, the electronic device includes a memory 502 and a processor 504, the memory 502 stores a computer program therein, and the processor 504 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, calling a document generating component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file;
s2, generating plug-ins based on the directories matched with the document types, and converting the first document files into target document files with directory structures; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), a PAD, and the like. Fig. 5 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
The memory 502 may be used to store software programs and modules, such as program instructions/modules corresponding to the document directory generation method and apparatus in the embodiments of the present invention, and the processor 504 executes various functional applications and data processing by running the software programs and modules stored in the memory 502, that is, implements the document directory generation method. The memory 502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 502 may further include memory located remotely from the processor 504, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 502 may be, but not limited to, specifically configured to store information such as an object document in a document. As an example, as shown in fig. 5, the memory 502 may include, but is not limited to, the first generating unit 402 and the first converting unit 404 in the document list generating apparatus. In addition, the document catalog generation device may further include, but is not limited to, other module units in the document catalog generation device, which is not described in detail in this example.
Optionally, the transmission device 506 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 506 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 506 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 508 for displaying the document information in the document list generating means; and a connection bus 510 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the electronic device or the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of an embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the steps in any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, calling a document generating component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file;
s2, generating plug-ins based on the directories matched with the document types, and converting the first document files into target document files with directory structures; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (10)
1. A method of document catalog generation, the method comprising:
calling a document generation component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file;
generating a plug-in based on the directory matched with the document type, and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
2. The method of claim 1, wherein the converting the first document file into a target document file having a directory structure based on a directory generation plug-in that matches the document type comprises:
retrieving, by the document generation component, the directory generation plug-in stored in the first document file;
and running the directory generation plug-in the first document file, and updating the first document file into a target document file with a directory structure.
3. The method of claim 1, wherein before converting the first document file into a target document file having a directory structure, the generating a plug-in based on a directory matching the document type comprises:
and creating a directory generation plug-in with a refreshed first document directory domain based on the document type carried in the object document information.
4. The method according to claim 3, wherein said generating a catalog generation plug-in with a refreshed first document catalog domain based on said document type carried in said object document information comprises:
recording a macro file based on the document type corresponding to the first document file, wherein the directory generation plug-in comprises the macro file; or
And creating a general automation language (VBA) script file based on the document type corresponding to the first document file.
5. The method of claim 1, wherein before invoking the document generation component to generate the object document information into the first document file, comprising:
acquiring original document information from a target database;
identifying the original document information to obtain target document information containing a plurality of data types;
and packaging the target document information according to the document type carried in the target document information and a preset data structure to obtain the target document information.
6. The method of claim 5, wherein the target document information comprises at least one of:
the system comprises a document tree structure object, a document tree picture object set, a document clipping object set and a document tree text parameter object set.
7. A document catalog generation apparatus, characterized in that the apparatus comprises:
the first generation unit is used for calling the document generation component to generate the object document information into a first document file; the document generation component is used for generating a first document file; the object document information is information acquired from a target database; the first document file is a document file without a directory structure; the object document information carries a document type corresponding to the first document file;
the first conversion unit is used for generating a plug-in based on the directory matched with the document type and converting the first document file into a target document file with a directory structure; the directory generation plug-in is a plug-in used for refreshing the directory domain of the first document file.
8. The apparatus of claim 7, wherein the first conversion unit comprises:
a first retrieval subunit, configured to retrieve, by the document generation component, the directory generation plug-in stored in the first document file;
and the first updating unit is used for operating the directory generation plug-in the first document file and updating the first document file into a target document file with a directory structure.
9. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011296414.5A CN112417818B (en) | 2020-11-18 | 2020-11-18 | Document catalog generation method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011296414.5A CN112417818B (en) | 2020-11-18 | 2020-11-18 | Document catalog generation method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112417818A true CN112417818A (en) | 2021-02-26 |
CN112417818B CN112417818B (en) | 2023-09-19 |
Family
ID=74773035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011296414.5A Active CN112417818B (en) | 2020-11-18 | 2020-11-18 | Document catalog generation method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112417818B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111881649A (en) * | 2020-07-27 | 2020-11-03 | 沈阳达善医药科技有限公司 | Data entry method based on macro |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040230620A1 (en) * | 2003-05-16 | 2004-11-18 | Chung-I Lee | System and method for electronic document control |
CN1549157A (en) * | 2003-05-17 | 2004-11-24 | 鸿富锦精密工业(深圳)有限公司 | File browsing controlling system and method |
JP2006134358A (en) * | 2006-01-27 | 2006-05-25 | Fujitsu Ltd | Device and method of document management |
CN111209719A (en) * | 2019-12-31 | 2020-05-29 | 西安翔腾微电子科技有限公司 | Method, device, equipment and storage medium for automatically realizing IC design environment |
CN111737781A (en) * | 2019-03-20 | 2020-10-02 | 上海汽车集团股份有限公司 | Total arrangement diagram generation method and device based on Catia secondary development |
-
2020
- 2020-11-18 CN CN202011296414.5A patent/CN112417818B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040230620A1 (en) * | 2003-05-16 | 2004-11-18 | Chung-I Lee | System and method for electronic document control |
CN1549157A (en) * | 2003-05-17 | 2004-11-24 | 鸿富锦精密工业(深圳)有限公司 | File browsing controlling system and method |
JP2006134358A (en) * | 2006-01-27 | 2006-05-25 | Fujitsu Ltd | Device and method of document management |
CN111737781A (en) * | 2019-03-20 | 2020-10-02 | 上海汽车集团股份有限公司 | Total arrangement diagram generation method and device based on Catia secondary development |
CN111209719A (en) * | 2019-12-31 | 2020-05-29 | 西安翔腾微电子科技有限公司 | Method, device, equipment and storage medium for automatically realizing IC design environment |
Non-Patent Citations (1)
Title |
---|
指北针: "还在手动插入Excel目录?VBA一键生成目录代码送给你", 《ZHUANLAN.ZHIHU.COM》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111881649A (en) * | 2020-07-27 | 2020-11-03 | 沈阳达善医药科技有限公司 | Data entry method based on macro |
Also Published As
Publication number | Publication date |
---|---|
CN112417818B (en) | 2023-09-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112162753B (en) | Software deployment method, device, computer equipment and storage medium | |
CN108964968B (en) | Service access management method and system in container cloud environment | |
US20190102201A1 (en) | Component invoking method and apparatus, and component data processing method and apparatus | |
US20130132422A1 (en) | System and method for creating and controlling an application operating on a plurality of computer platform types | |
CN111459539B (en) | Continuous integration pipeline operation method and device based on mirror layering | |
CN107491334B (en) | Method for organizing and loading preloaded files | |
CN103150154B (en) | The implementation method and device of a kind of application plug | |
TW201707416A (en) | System, method, and device for remotely operating a server | |
CN103237083A (en) | Mobile information service resource aggregation system and mobile information service resource aggregation method | |
CN111274512A (en) | Page loading method, device and medium | |
WO2013175560A1 (en) | Information communicating system and information converting method | |
CN106126299B (en) | Service plug-in processing method and device | |
CN112417818B (en) | Document catalog generation method and device, storage medium and electronic equipment | |
CN112214250A (en) | Application program assembly loading method and device | |
US9741060B2 (en) | Recursive navigation in mobile CRM | |
CN111767498B (en) | Method and device for realizing file information sharing | |
CN112463251A (en) | Method and device for configuring hot publishing by uliweb framework | |
CN110673835A (en) | Dynamic assembly type development system, method, computer and computer program | |
CN113268288B (en) | Shared file configuration method and device | |
CN113239328B (en) | Service function acquisition method and device, electronic equipment and storage medium | |
CN115509563A (en) | Mirror image file manufacturing method, device, equipment and medium | |
CN111001157B (en) | Method and device for generating reference information, storage medium and electronic device | |
CN111124386B (en) | Animation event processing method, device, equipment and storage medium based on Unity | |
CN114237871A (en) | Arranging method and device of cloud resources, computer equipment and storage medium | |
CN112988176A (en) | Channel package generation method and device, storage medium and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |