CN112417818B - Document catalog generation method and device, storage medium and electronic equipment - Google Patents

Document catalog generation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112417818B
CN112417818B CN202011296414.5A CN202011296414A CN112417818B CN 112417818 B CN112417818 B CN 112417818B CN 202011296414 A CN202011296414 A CN 202011296414A CN 112417818 B CN112417818 B CN 112417818B
Authority
CN
China
Prior art keywords
document
file
document file
directory
generating
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.)
Active
Application number
CN202011296414.5A
Other languages
Chinese (zh)
Other versions
CN112417818A (en
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011296414.5A priority Critical patent/CN112417818B/en
Publication of CN112417818A publication Critical patent/CN112417818A/en
Application granted granted Critical
Publication of CN112417818B publication Critical patent/CN112417818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/93Document management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation 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 application discloses a document catalog generation method and device, a storage medium and electronic equipment. Wherein the method comprises the following steps: invoking a document generation component to generate object document information into a first document file; wherein the document generation component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file with a directory structure based on a directory generating plug-in matched with the document type; wherein the catalog generation plug-in is a plug-in for refreshing the catalog domain of the first document file. The application solves the technical problem of low efficiency of generating the document catalogue by using development software in the related technology.

Description

Document catalog generation method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of document development technologies, and in particular, to a method and apparatus for generating a document directory, a storage medium, and an electronic device.
Background
With the explosive development of the internet of things, a large number of open source components for supporting object-oriented development software to edit or export a document are supported at present, and various types of the document, such as form insertion, picture insertion and the like, can be realized mostly; although the related development components can easily read and write the document information, the related development software needs to add label processing in the process of generating the document catalogue, and some codes are complex to realize and are easy to make mistakes. Thus resulting in a problem of inefficiency in generating a document catalog using development software. How to quickly and efficiently generate the document catalogue becomes a technical problem to be solved.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for generating a document directory, a storage medium and electronic equipment, which at least solve the technical problem that the document directory cannot be generated rapidly and efficiently in the related technology.
According to an aspect of an embodiment of the present application, there is provided a document directory generating method including: invoking a document generation component to generate object document information into a first document file; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file having a directory structure based on a directory generating plug-in matched with the document type; wherein the directory generating plug-in is a plug-in for refreshing the directory domain of the first document file.
According to another aspect of the embodiment of the present application, there is also provided a document directory generating apparatus, including: a first generating unit for calling the document generating component to generate the object document information into a first document file; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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 convert 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; wherein the directory generating plug-in is a plug-in for refreshing the directory domain of the first document file.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the above-described document catalog generation method when run.
According to still another aspect of the embodiments of the present application, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the above-described document directory generating method by the above-described computer program.
In the embodiment of the application, a first document file is generated by calling a document generation component to generate object document information; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file having a directory structure based on a directory generating plug-in matched with the document type; the directory generating 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 purpose of rapidly generating the document with the directory structure from the document without the directory structure is achieved, the technical effect of improving the technical problem of generating the document directory by using development software is achieved, and the technical problem of low efficiency of generating the document directory by using the development software in the related art is further solved.
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 specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic illustration of an application environment of an alternative document catalog generation method according to an embodiment of the present application;
FIG. 2 is a schematic illustration of a flow of an alternative document catalog generation method according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a flow of another alternative document catalog generation method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an alternative document catalog generation apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural view of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise 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 embodiment of the present application, there is provided a document directory generating method, optionally, as an alternative implementation, the above document directory generating method may be applied, but not limited to, in 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. The electronic terminal 104 may interact with a background server 114 through a network 112. Server 114 includes a database 116 and a processing engine 118. The electronic terminal 104 invokes the document generating component to generate the object document information into a first document file, and then converts the first document file into a target document file having a directory structure based on the directory generating plug-in that matches the document type. The target document file is then displayed on the display 110 of the electronic terminal 104.
Alternatively, in this embodiment, the electronic terminal 104 may be a terminal device configured with a target service end, and the electronic terminal 104 may include, but is not limited to, at least one of the following: a mobile phone (e.g., an Android mobile phone, iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, a MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, and the like. The target server may be a video server, an instant messaging server, a browser server, an educational server, etc. The network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communications. 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 is not limited in any way in the present embodiment.
Optionally, as an optional embodiment, as shown in fig. 2, the method for generating a document directory includes:
s202, calling a document generation component to generate object document information into a first document file; wherein the document generation component is used for generating a first document file; the object document information is information obtained 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 catalogue matched with the document type, and converting the first document file into a target document file with a catalogue structure; wherein the catalog generation plug-in is a plug-in for refreshing the catalog domain of the first document file.
In step S202, at the time of actual application, the document generation component may be an open source component of office document software. 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 used, the mode that each open source component generates an Office document file 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, a FreeMark open source component reads and writes Office documents through XML+FreeMark, and the Pageoffice open source component encapsulates a universal automation language VBA interface of Microsoft Office. The document generating component can easily read and write office documents and generate document files without directory structures, but most of the document generating components do not support the generation of office document file directories or the generation of document directories by a part of open source components is complex. Here, office document software includes, but is not limited to Office software, wps Office software, or Adobe Office software, which is not limited herein.
The object document information is obtained from the target database as various different types of data information. For example, in the 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, abnormal time period, abnormal cause and the like in one period are acquired from a database storing the operation states of the electrical devices. The object document information includes text data or report image data of data such as voltage, current, power, operation time, power consumption, abnormal time period, abnormal cause, and the like in one cycle. 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; thus, when the document development platform acquires the object document information containing the different types of data, the document generation component is called to generate the first document file without the directory structure.
In step S204, in actual application, the first document file is converted into a target document file having a directory structure based on the directory generation plug-in matching the document type. For example, when the document type of the current first document file is a Word document, a plug-in is generated based on the directory matched by the Word document, and the first document file is converted into the Word document with the directory structure. When the document type of the current first document file is an Excel document, generating an insert 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 catalog generation plug-in may include, but is not limited to, a macro file or script file operating Office software or Wps Office software, which is not limited herein.
In the embodiment of the application, a first document file is generated by calling a document generation component to generate object document information; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file having a directory structure based on a directory generating plug-in matched with the document type; the directory generating 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 purpose of rapidly generating the document with the directory structure from the document without the directory structure is achieved, the technical effect of improving the technical problem of generating the document directory by using development software is achieved, and the technical problem of low efficiency of generating the document directory by using the development software in the related art is further solved.
In one embodiment, step S204 includes retrieving, by the document generation component, a catalog generation plug-in stored in the first document file; and running a catalog generation plug-in the first document file, and updating the first document file into a target document file with a catalog structure. For example, the macro file for generating the document directory in the Word file (first document file) is retrieved by the open source component Jacob in the foregoing embodiment, and then the directory generating plug-in is run in the Word file, so that the Word file is updated to the Word document file having the directory structure.
In an embodiment, prior to step S204, creating a catalog generation plug-in having a refresh first document catalog domain based on the document type carried in the object document information. That is, a catalog generation plug-in corresponding to a document type is created from the document type contained in the object document information. For example, if the document type included in the object document information is a Word type, a directory generation plug-in having a refresh Word document directory field is created. The document type contained in the object document information is an Excel type, and a directory generation plug-in having a refresh Excel document directory field is created.
In one embodiment, generating a catalog generation plug-in having a refreshed first document catalog domain based on document types carried in object document information includes: recording a macro file based on a document type corresponding to the first document file, wherein the catalog generating plug-in comprises the macro file; or creating the universal 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, a macro file of the automatically generated catalog may be edited based on a task bar view option in the Word document by recording macros under the macro tool. The macro file may then be invoked to generate the first document into a Word document with a directory structure based on the open source component of the office document software described above, such as the Jacob open source component. Or creating a VBA script file capable of automatically generating a Word document directory structure through an editing function under the macro tool, and calling the VBA script file to generate the first document into the Word document with the directory structure based on the open source component of the office document software, such as a Jacob open source component. VBA (Visual Basic for Applications) is a macro language for Visual Basic, which is a programming language for performing general purpose automation tasks in its desktop application. The method can be mainly used for expanding the application program functions of Windows, in particular to Microsoft Office software. VBA is commonly used in applications of Office such as Word, excel, etc. By writing the VBA script file, the automatic generation of the document catalogue is simply and efficiently realized.
In one embodiment, before step S202, the method further includes: 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 object document information and a preset data structure to obtain the object document information. For example, in the document development platform, when it is necessary to acquire an operation status report of some electrical devices in the internet of things device, original document information including data of voltage, current, power, operation duration, power consumption, a period of occurrence of abnormality, and cause of abnormality in one cycle is acquired from a database storing the operation status of the electrical devices. The object document information includes text data or report image data of data such as voltage, current, power, operation time, power consumption, abnormal time period, abnormal cause, and the like in one cycle. The text type data is in a text format, the image data is in 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: 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 application, a first document file is generated by calling a document generation component to generate object document information; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file having a directory structure based on a directory generating plug-in matched with the document type; the directory generating 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 purpose of rapidly generating the document with the directory structure from the document without the directory structure is achieved, the technical effect of improving the technical problem of generating the document directory by using development software is achieved, and the technical problem of low efficiency of generating the document directory by using the development software in the related art is further solved.
Based on the above embodiment, in an application embodiment, as shown in fig. 3, step S302 is first performed: the JAVA program (document development platform) encapsulates a data structure to be written with Word content (original document information); then, the process advances to step S304: the JAVA program calls an open source component API (document generating component) to generate a Word file (first document file) with a content catalog; then, the process advances to step S306: word macro files are compiled, or VBA scripts are compiled; then, the process advances 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 application, a document generation component is called to generate a first document file by using object document information; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file having a directory structure based on a directory generating plug-in matched with the document type; the directory generating 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 purpose of rapidly generating the document with the directory structure from the document without the directory structure is achieved, the technical effect of improving the technical problem of generating the document directory by using development software is achieved, and the technical problem of low efficiency of generating the document directory by using the development software in the related art is further solved.
According to another aspect of the embodiment of the present application, there is also provided a document directory generating apparatus for implementing the above document directory generating method. As shown in fig. 4, the apparatus includes:
a first generating unit 402 for calling a document generating component to generate a first document file from the object document information; wherein the document generation component is used for generating a first document file; the object document information is information obtained 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 for converting the first document file into a target document file having a directory structure based on a directory generation plug-in matched with the document type; wherein the catalog generation plug-in is a plug-in for refreshing the catalog domain of the first document file.
In one embodiment, the first conversion unit 404 includes:
a first retrieval subunit for retrieving, by the document generation component, the catalog generation plug-in stored in the first document file;
and the first updating unit is used for running a catalog generating plug-in the first document file and updating the first document file into a target document file with a catalog structure.
In one embodiment, the document catalog generating apparatus further includes:
the first processing unit creates a catalog generation plug-in having a refresh first document catalog 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 catalog generating plug-in comprises the macro file; or alternatively
And the first processing subunit is used for creating a universal automation language VBA script file based on the document type corresponding to the first document file.
In one embodiment, the document catalog 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 the 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 object document information and a preset data structure to obtain the object document information.
In one embodiment, the object document information in the document directory generating means: at least comprises at least one of the following: 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 application, a document generation component is called to generate a first document file by using object document information; wherein the document generating component is used for generating a first document file; the object document information is information obtained 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; converting the first document file into a target document file having a directory structure based on a directory generating plug-in matched with the document type; the directory generating 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 purpose of rapidly generating the document with the directory structure from the document without the directory structure is achieved, the technical effect of improving the technical problem of generating the document directory by using development software is achieved, and the technical problem of low efficiency of generating the document directory by using the development software in the related art is further solved.
Other examples of this embodiment can be found in the above embodiments, and will not be described here.
According to a further aspect of the embodiments of the present application, there is also provided an electronic device for implementing the above-mentioned document catalog generation method, as shown in fig. 5, the electronic device comprising a memory 502, a processor 504, the memory 502 having stored therein a computer program, the processor 504 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, calling a document generation component to generate object document information into a first document file; wherein the document generation component is used for generating a first document file; the object document information is information obtained 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 a plug-in based on a catalog matched with the document type, and converting the first document file into a target document file with a catalog structure; wherein the catalog generation plug-in is a plug-in for refreshing the catalog domain of the first document file.
Alternatively, it will be understood by those skilled in the art that the structure shown in fig. 5 is only schematic, 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 palm computer, and a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 5 is not limited to the structure of the electronic device described above. 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 method and apparatus for generating a document directory in the embodiment of the present application, and the processor 504 executes the software programs and modules stored in the memory 502, thereby performing various functional applications and data processing, that is, implementing the method for generating a document directory. 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, memory 502 may further include memory located remotely from processor 504, which may be connected to the terminal via 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 used 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 directory generating apparatus. In addition, other module units in the above-mentioned document catalog generating apparatus may be included, but are not limited thereto, and are not described in detail in this example.
Optionally, the transmission device 506 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 506 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable 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 to communicate with the internet wirelessly.
In addition, the electronic device further includes: a display 508 for displaying the document information in the document catalog generating apparatus; and a connection bus 510 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the electronic device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of embodiments of the present application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, calling a document generation component to generate object document information into a first document file; wherein the document generation component is used for generating a first document file; the object document information is information obtained 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 a plug-in based on a catalog matched with the document type, and converting the first document file into a target document file with a catalog structure; wherein the catalog generation plug-in is a plug-in for refreshing the catalog domain of the first document file.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present application.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided by 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 exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (7)

1. A method of document catalog generation, the method 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;
packaging the target document information according to a preset document type and a preset data structure to obtain object document information;
invoking a document generation component to generate object document information into a first document file, wherein the document generation component is used for generating the first document file which is a document file without a directory structure;
acquiring a document type corresponding to the first document file, and creating a catalog generation plug-in for refreshing a catalog domain corresponding to the first document, wherein the catalog generation plug-in is used for indicating a macro file or a universal automation language VBA script file;
and converting the first document file into a target document file with a directory structure based on the directory generation plug-in.
2. The method of claim 1, wherein the generating a plug-in based on the directory converts the first document file into a target document file having a directory structure, comprising:
retrieving, by the document generation component, the catalog generation plug-in stored in the first document file;
and running the catalog generation plug-in the first document file, and updating the first document file into a target document file with a catalog structure.
3. The method of claim 1, wherein the target document information includes at least one of:
a document tree structure object, a document tree picture object set, a document clipping object set and a document tree text parameter object set.
4. A document catalog generating apparatus, the apparatus comprising:
a first acquisition unit configured to acquire original document information from a target database;
the first identification unit is used for identifying the original document information to obtain target document information containing a plurality of data types;
the first packaging unit is used for packaging the target document information according to the document type carried in the object document information and a preset data structure to obtain the object document information;
a first generating unit for calling a document generating component to generate a first document file from object document information, wherein the document generating component is used for generating the first document file which is a document file without a directory structure;
the first processing unit is used for acquiring the document type corresponding to the first document file, and creating a catalog generation plug-in used for refreshing the catalog domain corresponding to the first document, wherein the catalog generation plug-in is used for indicating a macro file or a universal automation language VBA script file.
And the first conversion unit is used for converting the first document file into a target document file with a directory structure based on the directory generation plug-in, wherein the directory generation plug-in is a plug-in for refreshing the directory domain of the first document file.
5. The apparatus of claim 4, wherein the first conversion unit comprises:
a first retrieval subunit configured to retrieve, by the document generation component, the catalog generation plug-in stored in the first document file;
and the first updating unit is used for running the catalog generating plug-in the first document file and updating the first document file into a target document file with a catalog structure.
6. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 4.
7. 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 the claims 1 to 3 by means of the computer program.
CN202011296414.5A 2020-11-18 2020-11-18 Document catalog generation method and device, storage medium and electronic equipment Active CN112417818B (en)

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 CN112417818A (en) 2021-02-26
CN112417818B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881649A (en) * 2020-07-27 2020-11-03 沈阳达善医药科技有限公司 Data entry method based on macro

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200426611A (en) * 2003-05-16 2004-12-01 Hon Hai Prec Ind Co Ltd System and method for document browsing and controlling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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)

* Cited by examiner, † Cited by third party
Title
还在手动插入Excel目录?VBA一键生成目录代码送给你;指北针;《zhuanlan.zhihu.com》;20190505;全文 *

Also Published As

Publication number Publication date
CN112417818A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
CN111176976B (en) Test data generation method and device, storage medium and electronic device
CN106022483B (en) The method and apparatus converted between machine learning model
CN104426925B (en) Web page resources acquisition methods and device
CN105337787A (en) Multi-server monitoring method, device and system
CN111274512A (en) Page loading method, device and medium
CN115065652B (en) Message reply method and device, storage medium and computer equipment
CN108549586B (en) Information processing method and device
JP2023537767A (en) Image processing method and apparatus, and computer-readable storage medium
CN105094857B (en) Method and system for application load
CN112417818B (en) Document catalog generation method and device, storage medium and electronic equipment
CN102624910B (en) Method, the Apparatus and system of the web page contents that process user chooses
CN106126299B (en) Service plug-in processing method and device
CN111290996A (en) Document format conversion method, device, equipment and readable storage medium
CN112416726A (en) Method and device for analyzing static resource loading performance of WEB application
CN105119944B (en) Application starting method and related device
CN115002011B (en) Flow bidirectional test method and device, electronic equipment and storage medium
CN114676187A (en) Data processing method, device, equipment and medium
CN115480753A (en) Application integration system and corresponding computer device and storage medium
CN114254592A (en) Webpage content saving method and device, storage medium and electronic equipment
CN114090083A (en) Visual component configuration method, device, equipment and storage medium
CN112835901A (en) File storage method and device, computer equipment and computer readable storage medium
CN111767498A (en) Method and device for realizing file information sharing
CN106933852B (en) Webpage updating request generation method and device and response method and device thereof
CN115509563B (en) Mirror image file manufacturing method, device, equipment and medium
CN111414190B (en) Request processing method and device

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