Electronic file generation method and device of printing platform, equipment and storage medium

By obtaining and initializing the text compilation toolkit when the printing platform is started, the problem of obtaining the error category toolkit in multi-threaded printing tasks is solved, improving the reliability of the printing platform and ensuring the integrity of electronic files.

CN120104075APending Publication Date: 2025-06-06CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510273733.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

Existing printing platforms have poor reliability when performing multi-threaded printing tasks, especially in the fields of finance and medical technology. Multi-threaded printing tasks may lead to obtaining text compilation toolkits of wrong categories, resulting in the missing content of electronic files.

Method used

After the printing platform is started, the text compilation toolkit is obtained and initialized from the pre-established text tool component library to ensure that the correct category of text compilation toolkit is obtained regardless of whether the received printing task is single-threaded or multi-threaded, and avoid obtaining the wrong category of toolkit in multi-threaded printing tasks.

Benefits of technology

By obtaining and initializing the text compilation toolkit in advance, the problem of obtaining error category toolkits in multi-threaded printing tasks is solved, which improves the reliability of the printing platform when executing multi-threaded printing tasks and ensures the integrity of electronic files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104075A_ABST
    Figure CN120104075A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of printing platforms, is applied to the field of financial science and technology and medical health services, and discloses an electronic file generation method and device of a printing platform, computer equipment and a storage medium. Before the printing platform receives the printing request, the text compiling toolkit is obtained in one step, and initialization of the text compiling toolkit is completed, that is to say, no matter whether the received printing task is the single-thread printing task or the multi-thread printing task, initialization of the text compiling toolkit is not needed any more, and the printing efficiency is improved. The situation that the text compiling toolkit of the error category is obtained when the multi-thread printing task is executed is avoided, and the reliability of the printing platform when the multi-thread printing task is executed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of printing platform technology, which is applied to the fields of financial technology and medical health business, and in particular to an electronic file generation method, device, computer equipment and storage medium for a printing platform. Background Art

[0002] The printing platform is a platform that can provide functions such as file printing, query, and download. In the financial and medical business fields, print files such as detailed lists of hospitalization charges, car insurance, agricultural insurance, etc. premium lists need to be uploaded to the printing platform, and then the electronic files required for printing are generated through the printing platform.

[0003] At present, when executing a printing task, usually after the printing platform receives the printing request, it is necessary to obtain the corresponding category of text compilation toolkit (such as HTMLEditorKit), and parse the corresponding print file through the text compilation toolkit to obtain the electronic file required for printing. However, in the fields of finance and medical technology, multi-threaded printing tasks are often performed, such as multi-threaded printing tasks of compulsory traffic insurance policies, third-party liability insurance, vehicle loss insurance, and additional insurance policies in auto insurance. The printing task of each thread needs to obtain the corresponding category of text compilation toolkit, but because Java Swing is not thread-safe, different printing tasks obtain different categories of EditorKit, resulting in some printing tasks obtaining the wrong category of EditorKit, resulting in the problem of missing content in the electronic file obtained by parsing the print file. For example, when multi-threaded printing, HTMLEditorKit should be obtained normally, but because Java Swing is not thread-safe, PlainEditorKit will be obtained, and PlainEditorKit cannot parse the html-style text content normally, which will cause the part of the content in the output electronic file to be missing.

[0004] Therefore, the existing printing platform has the problem of poor reliability when executing multi-threaded printing tasks. Summary of the invention

[0005] The embodiment of the present invention provides an electronic file generation method, device, computer equipment and storage medium of a printing platform to solve the problem of poor reliability of the existing printing platform when executing multi-threaded printing tasks.

[0006] A method for generating an electronic file of a printing platform, comprising: After the printing platform is started, a text compilation toolkit is obtained from a pre-established text tool component library, and the text compilation toolkit is initialized; When the printing platform receives a printing request, extracting printing content from the printing request; Obtaining a printing template from the text compilation tool; The printing content is filled into the printing template to generate an electronic file in a target format.

[0007] The electronic file generation method of the printing platform may, optionally, after acquiring the text compilation toolkit from the pre-established text tool component library and before initializing the text compilation toolkit, further include: Determining whether the category of the text compilation toolkit is a target category; If the category of the text compilation toolkit is the target category, initializing the text compilation toolkit; If the category of the text compilation toolkit is not the target category, the text compilation toolkit is acquired again from the text tool component library based on the target category.

[0008] The electronic file generation method of the above printing platform, optionally, fills the printing content into the printing template to generate an electronic file in a target format, including: Obtaining a template parsing tool from the text tool component library; Parsing the printing template based on the template parsing tool to obtain a filling placeholder in the printing template; Replacing the fill placeholder in the printing template with the printing content to generate an initial file; The initial file is converted into the target format to obtain the electronic file.

[0009] The electronic file generation method of the printing platform mentioned above, optionally, converting the initial file into the target format to obtain the electronic file includes: Performing format check on the filled content in the initial file to obtain a standard file; The standard file is converted into the target format to obtain the electronic file.

[0010] The electronic file generation method of the printing platform, optionally, extracting the print content from the print request includes: Obtaining a content extraction expression from the text tool component library; extracting initial content from the print request based on the content extraction expression; The initial content is proofread to obtain the printed content.

[0011] The electronic file generation method of the printing platform, optionally, the initializing the text compilation toolkit includes: Initialize the default Map collection of the full class path of the text compilation toolkit; Initialize the set of class full paths of the text compilation toolkit; Initialize a collection of class loaders for the text compilation toolkit.

[0012] An electronic file generating device for a printing platform, comprising: A toolkit acquisition module, used to acquire a text compilation toolkit from a pre-established text tool component library and initialize the text compilation toolkit after the printing platform is started; A print content acquisition module, used for extracting print content from a print request when the print platform receives the print request; A printing template acquisition module, used to acquire a printing template from the text compilation tool; The electronic file generation module is used to fill the printing content into the printing template to generate an electronic file in a target format.

[0013] The electronic file generating device of the printing platform, optionally, the toolkit acquisition module is further used for: Determining whether the category of the text compilation toolkit is a target category; If the category of the text compilation toolkit is the target category, initializing the text compilation toolkit; If the category of the text compilation toolkit is not the target category, the text compilation toolkit is acquired again from the text tool component library based on the target category.

[0014] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic file generation method of the printing platform described in any one of the above items is implemented.

[0015] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements any of the above-mentioned methods for generating an electronic file on a printing platform.

[0016] The electronic file generation method, device, computer equipment and storage medium of the above-mentioned printing platform obtain a text compilation toolkit from a pre-established text tool component library and initialize the text compilation toolkit after the printing platform is started. When the printing platform receives a print request, the printing content is extracted from the print request, a print template is obtained from the text compilation tool, and the print content is filled into the print template to generate an electronic file in a target format. It can be seen that the present invention obtains the text compilation toolkit and initializes the text compilation toolkit before the printing platform receives the print request. That is to say, no matter whether the received print task is a single-threaded print task or a multi-threaded print task, there is no need to initialize the text compilation toolkit, which avoids obtaining a text compilation toolkit of the wrong category when executing a multi-threaded print task, and improves the reliability of the printing platform when executing a multi-threaded print task. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0018] Figure 1 It is a flow chart of an implementation of an electronic file generation method of a printing platform disclosed in one embodiment of the present invention; Figure 2 It is a partial implementation flow chart of a method for generating an electronic file of a printing platform disclosed in one embodiment of the present invention; Figure 3 It is a partial implementation flow chart of a method for generating an electronic file of a printing platform disclosed in one embodiment of the present invention; Figure 4 It is a partial implementation flow chart of a method for generating an electronic file of a printing platform disclosed in one embodiment of the present invention; Figure 5 It is a partial implementation flow chart of a method for generating an electronic file of a printing platform disclosed in one embodiment of the present invention; Figure 6 It is a partial implementation flow chart of a method for generating an electronic file of a printing platform disclosed in one embodiment of the present invention; Figure 7 It is a structural schematic diagram of an electronic file generating device of a printing platform disclosed in one embodiment of the present invention; Figure 8 It is a structural schematic diagram of a computer device disclosed in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0021] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0022] As used in the present specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]", depending on the context.

[0023] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0024] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0025] The present invention discloses an electronic file generation method, device, computer equipment and storage medium of a printing platform. After the printing platform is started, a text compilation toolkit is obtained from a pre-established text tool component library and the text compilation toolkit is initialized. When the printing platform receives a print request, the printing content is extracted from the print request, a print template is obtained from the text compilation tool, and the print content is filled into the print template to generate an electronic file in a target format. It can be seen that the present invention obtains the text compilation toolkit in advance before the printing platform receives the print request and completes the initialization of the text compilation toolkit. That is to say, no matter whether the received print task is a single-threaded print task or a multi-threaded print task, there is no need to initialize the text compilation toolkit, which avoids obtaining a text compilation toolkit of the wrong category when executing a multi-threaded print task, and improves the reliability of the printing platform when executing a multi-threaded print task.

[0026] In one embodiment, if Figure 1 As shown, a method for generating an electronic file of a printing platform is provided, and the method is applied in Figure 1 The server in the example is used as an example to illustrate the process, including the following steps: S101: After the printing platform is started, a text compilation toolkit is obtained from a pre-established text tool component library, and the text compilation toolkit is initialized.

[0027] In a specific implementation, the text tool component library in this embodiment can be a Java Swing component library, which includes multiple text compilation toolkits, such as HTMLEditorKit, PlainEditorKit, etc. After the printing platform is started, the text compilation toolkit is actively obtained from the pre-established text tool component library and initialized.

[0028] S102: When the printing platform receives a printing request, printing content is extracted from the printing request.

[0029] In a specific implementation, the print request in this embodiment includes, but is not limited to, print requests for auto insurance, individual non-auto insurance, group auto insurance, bidding insurance, agricultural insurance, and medical insurance policies. The print request contains the print content required for printing, and the format of the print content includes, but is not limited to, XML format. Upon receiving the print request, the required print content is extracted from the print request. In addition, upon receiving auto insurance, individual non-auto insurance, group auto insurance, bidding insurance, agricultural insurance, and medical insurance policies, the printing platform in this embodiment can calculate the premium amount of the policy, perform non-payment underwriting, and then extract the print content from each policy in the print request.

[0030] Furthermore, in this embodiment, the following steps can be used to extract the print content from the print request: Figure 2 As shown: S201: Obtain a content extraction expression from a text tool component library.

[0031] S202: Extracting initial content from the print request based on a content extraction expression.

[0032] In a specific implementation, the content extraction expression in this embodiment is used to query the print content from the print request. When the print request is an XML file, the content extraction expression can be an XPath expression. The print request is parsed through the XPath expression to obtain the initial content.

[0033] S203: Proofread the original content to obtain printed content.

[0034] It should be understood that the initial content extracted from the print request may be any one or more of grammar proofreading, punctuation proofreading, and logic proofreading.

[0035] S103: Obtain a printing template from a text compilation tool.

[0036] It can be understood that a printing template is pre-set in the text compilation tool in this embodiment, and the format of the printing template can be set according to actual needs.

[0037] In a specific implementation, when the text compilation tool in this embodiment is EditorKit, the pre-set printing template can be obtained from the default Map collection of EditorKit.

[0038] S104: Fill the print content into the print template to generate an electronic file in a target format.

[0039] In a specific implementation, a placeholder is provided in the print template in this embodiment, and the print template obtained by replacing the print content with the placeholder is an electronic file in the target format.

[0040] In summary, the electronic file generation method of a printing platform disclosed in this embodiment obtains a text compilation toolkit from a pre-established text tool component library and initializes the text compilation toolkit after the printing platform is started. When the printing platform receives a print request, the printing content is extracted from the print request, a print template is obtained from the text compilation tool, and the print content is filled into the print template to generate an electronic file in a target format. It can be seen that the present invention obtains the text compilation toolkit and initializes the text compilation toolkit before the printing platform receives the print request. That is to say, no matter whether the received print task is a single-threaded print task or a multi-threaded print task, there is no need to initialize the text compilation toolkit, which avoids obtaining a text compilation toolkit of the wrong category when executing a multi-threaded print task, and improves the reliability of the printing platform when executing a multi-threaded print task.

[0041] based on Figure 1 In the specific implementation, in this embodiment, after obtaining the text compilation toolkit from the pre-established text tool component library and before initializing the text compilation toolkit, step S101 may include the following steps: Figure 3 As shown: S301: Determine whether the category of the text compilation toolkit is the target category.

[0042] S302: If the category of the text compilation toolkit is the target category, initialize the text compilation toolkit.

[0043] S303: If the category of the text compilation toolkit is not the target category, reacquire the text compilation toolkit from the text tool component library based on the target category.

[0044] It can be understood that the text tool component library in this embodiment includes multiple categories of text compilation toolkits, and the categories of text compilation toolkits include but are not limited to HTMLEditorKit, PlainEditorKit, etc. Therefore, it can be determined whether the correct category of text compilation toolkit is obtained by judging whether the category of the obtained text compilation toolkit is the target category. For example, taking the target category as HTML, if the category of EditorKit is HTML, then EditorKit is initialized. If the category of EditorKit is Plain, then EditorKit of the HTML category is re-obtained from the text tool component library based on HTML. In this way, it is possible to obtain the correct category of text compilation toolkit.

[0045] based on Figure 1 In the specific implementation, step S104 can be implemented by the following steps: Figure 4 As shown: S401: Parsing the printing template based on a template parsing tool to obtain a filling placeholder in the printing template.

[0046] S402: Acquire a template parsing tool from a text tool component library.

[0047] S403: Replace the fill placeholder in the print template with the print content to generate an initial file.

[0048] It can be understood that a template parsing tool is pre-set in the text compilation tool in this embodiment, and the template parsing tool is used to find the filling placeholder in the printing template.

[0049] S404: Convert the initial file into a target format to obtain an electronic file.

[0050] In a specific implementation, in this embodiment, after the print template is filled with content, the initial file obtained can be converted into a format, that is, the initial file is converted into a target format to obtain an electronic file.

[0051] based on Figure 4 In the specific implementation, step S404 can be implemented by the following steps: Figure 5 As shown: S501: Format proofreading is performed on the filled content in the initial file to obtain a standard file.

[0052] S502: Convert the standard file into a target format to obtain an electronic file.

[0053] In a specific implementation, the format proofreading of the filled content in the initial file in this embodiment includes but is not limited to any one or more of data type and range, data integrity and data consistency, and the format proofreading for each cell includes but is not limited to any one or more of alignment, font size and text color.

[0054] based on Figure 1 In the specific implementation, step S102 can be implemented by initializing the text compilation toolkit through the following steps: Figure 6 As shown: S601: Initialize the default Map collection of the full class path of the text compilation toolkit.

[0055] S602: Initialize the set of full class paths of the text compilation toolkit.

[0056] S603: Initialize a set of class loaders of the text compilation toolkit.

[0057] In a specific implementation, in this embodiment, during the process of initializing the default Map set of the full class path of the text compilation toolkit, it can be determined whether the default Map set of the full class path of the text compilation toolkit has been initialized. If the default Map set of the full class path of the text compilation toolkit has not been initialized, the synchronization of the initialization of the default Map set of the full class path of the text compilation toolkit is ensured through synchronized, and then the set of the full class path of the text compilation toolkit and the set of class loaders of the text compilation toolkit are initialized. If the default Map set of the full class path of the text compilation toolkit has been initialized, the set of the full class path of the text compilation toolkit and the set of class loaders of the text compilation toolkit are initialized. In this way, the initialization of the text compilation toolkit can be achieved.

[0058] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0059] In one embodiment, an electronic file generating device for a printing platform is provided, and the electronic file generating device for the printing platform corresponds one-to-one to the electronic file generating method for the printing platform in the above embodiment. Figure 7 As shown, the electronic file generation device of the printing platform includes a toolkit acquisition module, a printing content acquisition module, a printing template acquisition module and an electronic file generation module. The detailed description of each functional module is as follows: The toolkit acquisition module 701 is used to acquire a text compilation toolkit from a pre-established text tool component library and initialize the text compilation toolkit after the printing platform is started; The print content acquisition module 702 is used to extract the print content from the print request when the print platform receives the print request; The printing template acquisition module 703 is used to acquire the printing template from the text compilation tool; The electronic file generating module 704 is used to fill the printing content into the printing template to generate an electronic file in a target format.

[0060] In summary, the electronic file generation device of a printing platform disclosed in this embodiment obtains a text compilation toolkit from a pre-established text tool component library and initializes the text compilation toolkit after the printing platform is started. When the printing platform receives a print request, the printing content is extracted from the print request, a print template is obtained from the text compilation tool, and the print content is filled into the print template to generate an electronic file in a target format. It can be seen that the present invention obtains the text compilation toolkit and initializes the text compilation toolkit before the printing platform receives the print request. That is to say, no matter whether the received print task is a single-threaded print task or a multi-threaded print task, there is no need to initialize the text compilation toolkit, which avoids obtaining a text compilation toolkit of the wrong category when executing a multi-threaded print task, and improves the reliability of the printing platform when executing a multi-threaded print task.

[0061] In one embodiment, the toolkit acquisition module 701 in this embodiment can be used to: Determining whether the category of the text compilation toolkit is a target category; If the category of the text compilation toolkit is the target category, initializing the text compilation toolkit; If the category of the text compilation toolkit is not the target category, the text compilation toolkit is acquired again from the text tool component library based on the target category.

[0062] In one embodiment, the electronic file generation module 704 in this embodiment can be used to: Obtaining a template parsing tool from the text tool component library; Parsing the printing template based on the template parsing tool to obtain a filling placeholder in the printing template; Replacing the fill placeholder in the printing template with the printing content to generate an initial file; The initial file is converted into the target format to obtain the electronic file.

[0063] In one embodiment, the electronic file generation module 704 in this embodiment can also be used to: Performing format check on the filled content in the initial file to obtain a standard file; The standard file is converted into the target format to obtain the electronic file.

[0064] In one embodiment, the print content acquisition module 702 is used to: Obtaining a content extraction expression from the text tool component library; extracting initial content from the print request based on the content extraction expression; The initial content is proofread to obtain the printed content.

[0065] In one embodiment, the toolkit acquisition module 701 may be used to: Initialize the default Map collection of the full class path of the text compilation toolkit; Initialize the set of class full paths of the text compilation toolkit; Initialize a collection of class loaders for the text compilation toolkit.

[0066] The specific definition of the electronic file generation device of the printing platform can be found in the definition of the electronic file generation method of the printing platform above, which will not be repeated here. Each module in the electronic file generation device of the printing platform can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0067] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating an electronic file of a printing platform is implemented.

[0068] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the electronic file generation method of the printing platform in the above embodiment is implemented.

[0069] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0070] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0071] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for generating an electronic file of a printing platform, characterized in that: include: After the printing platform is started, a text compilation toolkit is obtained from a pre-established text tool component library, and the text compilation toolkit is initialized; When the printing platform receives a printing request, extracting printing content from the printing request; Obtaining a printing template from the text compilation tool; The printing content is filled into the printing template to generate an electronic file in a target format.

2. The electronic file generation method of the printing platform according to claim 1, characterized in that: After acquiring the text compilation toolkit from the pre-established text tool component library and before initializing the text compilation toolkit, the method further includes: Determining whether the category of the text compilation toolkit is a target category; If the category of the text compilation toolkit is the target category, initializing the text compilation toolkit; If the category of the text compilation toolkit is not the target category, the text compilation toolkit is acquired again from the text tool component library based on the target category.

3. The method for generating an electronic file of a printing platform according to claim 1, characterized in that: Filling the print content into the print template to generate an electronic file in a target format, including: Obtaining a template parsing tool from the text tool component library; Parsing the printing template based on the template parsing tool to obtain a filling placeholder in the printing template; Replacing the fill placeholder in the printing template with the printing content to generate an initial file; The initial file is converted into the target format to obtain the electronic file.

4. The method for generating an electronic file of a printing platform according to claim 3, characterized in that: The converting the initial file into the target format to obtain the electronic file comprises: Performing format check on the filled content in the initial file to obtain a standard file; The standard file is converted into the target format to obtain the electronic file.

5. The method for generating an electronic file of a printing platform according to claim 1, characterized in that: The extracting the print content from the print request comprises: Obtaining a content extraction expression from the text tool component library; extracting initial content from the print request based on the content extraction expression; The initial content is proofread to obtain the printed content.

6. The method for generating an electronic file of a printing platform according to claim 1, characterized in that: The initializing the text compilation toolkit comprises: Initialize the default Map collection of the full class path of the text compilation toolkit; Initialize the set of class full paths of the text compilation toolkit; Initialize a collection of class loaders for the text compilation toolkit.

7. An electronic file generating device for a printing platform, characterized in that: include: A toolkit acquisition module, used to acquire a text compilation toolkit from a pre-established text tool component library and initialize the text compilation toolkit after the printing platform is started; A print content acquisition module, used for extracting print content from a print request when the print platform receives the print request; A printing template acquisition module, used to acquire a printing template from the text compilation tool; The electronic file generation module is used to fill the printing content into the printing template to generate an electronic file in a target format.

8. The electronic file generating device for a printing platform as claimed in claim 7, characterized in that: The toolkit acquisition module is also used to: Determining whether the category of the text compilation toolkit is a target category; If the category of the text compilation toolkit is the target category, initializing the text compilation toolkit; If the category of the text compilation toolkit is not the target category, the text compilation toolkit is acquired again from the text tool component library based on the target category.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the electronic file generation method of the printing platform according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the electronic file generation method of the printing platform according to any one of claims 1 to 6 is implemented.