Method and system for generating PDF (Portable Document Format) text from article according to specified typesetting format

By selecting a template in the writing area and automatically generating an article with the specified format, the problem of needing to reconstruct the entire text format when changing a template in the traditional LaTeX workflow is solved. This enables cross-template content reuse and improves the user's submission efficiency and user experience.

CN121835643APending Publication Date: 2026-04-10LIBO (SHENZHEN) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LIBO (SHENZHEN) TECHNOLOGY CO LTD
Filing Date
2025-12-30
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In traditional LaTeX workflows, users need to lock the template in advance, which means that subsequent template changes require reconstructing the entire text format. The cost of modification increases non-linearly with the document length, and content reuse across templates cannot be achieved, affecting submission efficiency and user experience.

Method used

This paper provides a method and system that allows users to select a template after completing their writing in the writing area, and automatically generate an article with a specified format based on the selected template and all content. It supports multiple template compilation and preview, generates preview content, and provides automated suggestions and previews when switching templates, reducing the risk of manual operation.

Benefits of technology

It effectively solves the problem of needing to reconstruct the entire text format when changing templates, improves users' submission efficiency and user experience, enables cross-template content reuse, and reduces modification costs and the risk of losing format elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121835643A_ABST
    Figure CN121835643A_ABST
Patent Text Reader

Abstract

The invention provides a method and a system for generating a PDF (Portable Document Format) text from an article according to a specified typesetting format, compared with the prior art, the method and the system do not need to select a typesetting template (hereinafter referred to as a template for short) and then write on the template, but select the template after writing is completed in a writing area, so that the method and the system are convenient to use. And then automatically generating an article typeset according to the template based on the selected template and the full content of the writing area, thereby fundamentally solving the problems that the full text format needs to be reconstructed when the template is changed in the later period in the prior art, and the modification cost is increased along with the length of the document; and the problems that cross-template content reuse cannot be realized, and the academic achievements need to be re-typeset when being converted among different academic periodicals or academic conferences are solved, and the submission efficiency and the use experience of the user are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method and system for generating PDF text from an article according to a specified format. Background Technology

[0002] Currently, in traditional LaTeX workflows, authors need to pre-lock a LaTeX template and complete the entire text within that template framework. This means that authors need to bind a specific template framework at the initial stage of document creation, which leads to: the need to reconstruct the entire text format when the template is changed later; the cost of modification increases non-linearly with the document length; the inability to reuse content across templates; and the need to reformat academic results when they are transferred between different academic journals or conferences, which greatly affects the user's submission efficiency and user experience. Summary of the Invention

[0003] In view of this, the present invention provides a method and system for generating PDF text of articles according to a specified format, which effectively improves the user's submission efficiency and user experience.

[0004] The first aspect of this invention provides a method for generating PDF text from an article according to a specified format, comprising:

[0005] Receive an article import request; wherein the article import request includes at least one first target template information selected by the user;

[0006] Retrieve the full content of the current writing area;

[0007] For each of the first target templates, the first target article is generated by compiling the first target template and the full content of the current writing area, and the first target article is formatted according to the first target template.

[0008] Optionally, for each of the first target templates, compiling based on the first target template and the full content of the current writing area to generate a first target article formatted according to the first target template includes:

[0009] For each of the first target templates, the entire content of the current writing area is segmented based on the first target template to obtain multiple chapter fragments;

[0010] Each chapter segment is compiled independently to obtain a compiled chapter segment with the default layout; the compiled chapter segment with the default layout is used for users to preview and check the basic layout effect;

[0011] Based on all the compiled chapter fragments, generate a first target article formatted according to the first target template.

[0012] Optionally, after generating a first target article formatted according to the first target template by compiling the entire content of the current writing area for each of the first target templates, the method further includes:

[0013] When compilation fails, generate error messages and suggested modifications.

[0014] Optionally, after generating error information when compilation fails, the method further includes:

[0015] The error message is converted into a natural language prompt using an intelligent source Turing machine.

[0016] Optionally, after generating a first target article formatted according to the first target template by compiling the entire content of the current writing area for each of the first target templates, the method further includes:

[0017] Preview content is generated based on the first target article formatted according to the first target template, and the preview content is displayed on the preview interface.

[0018] Optionally, after generating a first target article formatted according to the first target template by compiling the entire content of the current writing area for each of the first target templates, the method further includes:

[0019] Receive a template switching request; wherein the template switching request includes at least one second target template information selected by the user;

[0020] For each of the second target templates, the content of the current writing area is recompiled based on the second target template to generate a second target article formatted according to the second target template.

[0021] Optionally, after generating a first target article formatted according to the first target template by compiling the entire content of the current writing area for each of the first target templates, the method further includes:

[0022] Receive a download request; wherein the download request includes the target format type selected by the user;

[0023] Generate the target file according to the target format type.

[0024] Optionally, before compiling the first target article formatted according to the first target template and the full content of the current writing area for each of the first target templates, the method further includes:

[0025] If the first target template requires additional necessary information, a necessary information request interface is generated, prompting the user to enter the necessary information.

[0026] Optionally, the method for generating PDF text from an article according to a specified format further includes:

[0027] An interface for generating historical records and selecting historical records based on historical compilation history.

[0028] A second aspect of the present invention provides a system for generating PDF text from an article according to a specified format, comprising:

[0029] The first receiving unit is configured to receive an article import request; wherein the article import request includes at least one first target template information selected by the user;

[0030] The retrieval unit is used to retrieve the entire content of the current writing area;

[0031] The first generation unit is used to compile, for each of the first target templates, the first target template and the full content of the current writing area, to generate a first target article formatted according to the first target template.

[0032] Optionally, the first generation unit includes:

[0033] The segmentation unit is used to segment the full content of the current writing area based on the first target template for each type of the first target template, thereby obtaining multiple chapter segments.

[0034] The compilation unit is used to independently compile each chapter segment to obtain a compiled chapter segment with a default layout format; wherein, the compiled chapter segment with a default layout format is used for users to preview and check the basic layout effect;

[0035] The first generation subunit is used to generate a first target article formatted according to the first target template based on all compiled chapter fragments.

[0036] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0037] The second generation unit is used to generate error messages and modification suggestions when compilation fails.

[0038] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0039] The conversion unit is used to convert the error information into natural language prompts using an intelligent source Turing machine.

[0040] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0041] The preview unit is used to generate preview content based on the first target article formatted according to the first target template, and to display the preview content on the preview interface.

[0042] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0043] The second receiving unit is used to receive a template switching request; wherein the template switching request includes at least one second target template information selected by the user;

[0044] The third generation unit is used to recompile, for each of the second target templates, the second target template and the full content of the current writing area, to generate a second target article formatted according to the second target template.

[0045] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0046] The third receiving unit is used to receive a download request; wherein the download request includes a target format type selected by the user;

[0047] The fourth generation unit is used to generate a target file according to the target format type.

[0048] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0049] The fifth generation unit is used to generate a necessary information request interface and prompt the user to input the necessary information if the first target template requires additional necessary information.

[0050] Optionally, the system for generating PDF text from an article according to a specified format further includes:

[0051] The sixth generation unit is used to generate historical records based on historical compilation records and to provide an interface for selecting historical records.

[0052] As can be seen from the above solutions, the present invention provides a method and system for generating PDF text of articles according to a specified format. Compared with the prior art, the present invention does not require selecting a template first and then writing on the template. Instead, after completing the writing in the writing area, a template is selected, and then the article formatted according to the selected template is automatically generated based on the selected template and the full content of the writing area. This fundamentally solves the problems in the prior art, such as the need to reconstruct the full text format when changing the template later, the modification cost increasing with the document length, the inability to achieve content reuse across templates, and the need to reformat academic results when converting between different academic journals or academic conferences. This effectively improves the user's submission efficiency and user experience. Attached Figure Description

[0053] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0054] Figure 1 A detailed flowchart of a method for generating PDF text from an article according to a specified format, provided in an embodiment of the present invention;

[0055] Figures 2 to 9 This is a schematic diagram of an interface for implementing a method of generating PDF text from an article according to a specified format, as provided in an embodiment of the present invention.

[0056] Figure 10 This is a schematic diagram of a system for generating PDF text from an article according to a specified format, as provided in an embodiment of the present invention. Detailed Implementation

[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0058] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0059] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this invention.

[0060] It should be noted that the concepts of "first" and "second" mentioned in this invention are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0061] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0062] This invention provides a method for generating PDF text from an article according to a specified format, such as... Figure 1 As shown, the specific steps include:

[0063] S101, Receive article import request.

[0064] The article import request includes at least one first target template information selected by the user.

[0065] It should be noted that the first target template information is the layout format that the user needs to specify. The layout format can be a template specified by academic journals or academic conferences, but is not limited to this.

[0066] In the practical application of this invention, the platform can maintain and publish adapted conference and journal template libraries to improve the coverage of corresponding templates. Users can directly select the template they need when using it, effectively reducing the user's usage threshold.

[0067] S102. Retrieve the full content of the current writing area.

[0068] S103. For each first target template, compile the first target template and the full content of the current writing area to generate a first target article formatted according to the first target template.

[0069] It should be noted that if a user selects two primary target templates, this invention will generate two primary target articles, each formatted according to a different template. In other words, this invention supports batch compilation of the same article (manuscript) using multiple templates. The batch compilation process can be synchronous or based on the order in which the user selects the templates; this is not limited here.

[0070] Specifically, the entire content of the writing area is injected into the preamble / body of the selected template and automatic compilation is triggered to generate the first target article formatted according to the template.

[0071] In the practical application of this invention, the data structure can be represented based on addressable fragmentation, which is not limited here.

[0072] In the practical application of this invention, compilation and rendering can be performed automatically by, but not limited to, an intelligent source Turing machine, to instantly display print-level effects; this is not a limitation here.

[0073] The built-in article structure in the solution provided by this invention is independent of any LaTeX template, and is not limited here.

[0074] Optionally, in another embodiment of the present invention, one implementation of step S103 includes:

[0075] For each primary target template, the entire content of the current writing area is segmented based on the template, resulting in multiple chapter fragments. Each chapter fragment is compiled independently, producing a pre-formatted fragment for users to preview and check the basic layout. Based on all compiled chapter fragments, a primary target article formatted according to the template is generated.

[0076] In the practical application of this invention, segmented compilation and rendering can be automatically performed by, but not limited to, an intelligent source Turing machine, with real-time output of print-level effects, achieving efficient chapter-level independent compilation and rendering. This is not a limitation.

[0077] Optionally, in another embodiment of the present invention, if a compilation failure occurs, an error message and modification suggestions are generated.

[0078] In the actual application of this invention, error messages may be, but are not limited to, being reported directly by the compiler; this is not a limitation here.

[0079] Optionally, in another embodiment of the present invention, an intelligent source Turing machine can be used to convert error information into natural language prompts and generate modification suggestions, thereby helping users lacking programming experience to quickly locate errors, lower the troubleshooting threshold, and shorten the repair time.

[0080] Optionally, in another embodiment of the present invention, preview content formatted according to a template can also be generated based on the first target article, and the preview content can be displayed on the preview interface.

[0081] Thus, users can determine whether they are satisfied with the content generated using the template based on the generated preview. If not, in another embodiment of the present invention, one implementation of the article generation method further includes:

[0082] Receive template switching request; wherein, the template switching request includes at least one second target template information selected by the user; for each second target template, recompile according to the second target template and the full content of the current writing area to generate a second target article formatted according to the second template.

[0083] After generating the second target article, you can also generate preview content based on the second target article and formatted according to the second template, and display the preview content in the preview interface.

[0084] In the template switching process, this invention no longer relies mainly on manual copying and pasting as in existing technologies. It fundamentally avoids the risks of format element loss (such as broken cross-references and disordered reference numbers) and semantic distortion caused by unstructured content (such as mathematical formulas and charts) due to manual operation, effectively helping users obtain standardized typesetting output with low barriers to entry.

[0085] Optionally, in another embodiment of the present invention, one implementation of the method for generating PDF text from an article according to a specified format further includes:

[0086] Receive download requests and generate target files according to the target format type. The download request includes the target format type selected by the user.

[0087] In the practical application of this invention, a download button can be provided on the interface. After the user clicks the download button, a subpage or small window can pop up to show the currently supported format types for the user to choose from. After the user selects a format type, the target file is generated and downloaded based on the format type and the target article.

[0088] The format types include, but are not limited to, PDF, LaTeX, etc., and are not specified here.

[0089] Optionally, in another embodiment of the present invention, one implementation of the article generation method further includes:

[0090] An interface for generating historical records and selecting historical records based on historical compilation history.

[0091] The history selection interface can list all compiled articles, supports instant preview functionality, and does not require re-triggering the compilation process.

[0092] like Figure 2The diagram shows the interface of a method for generating PDF text from an article according to a specified format, provided by this invention. After clicking "Export" in the export area, the user enters the compilation history and template selection interface. The selection area is in the middle of the interface, and the preview area is on the right. History (upper half of the selection area): Lists all compiled articles, supporting instant PDF preview without re-triggering the compilation process. Template Library (lower half of the selection area): Displays pre-adapted LaTeX templates. After the user selects a template and clicks Next, the system injects the current writing area content into the template with one click and triggers compilation, displaying the generated PDF in the preview area.

[0093] For example, clicking "Export" in the export area and selecting the IEEE conference paper template. Figure 3 As shown, clicking Next prompts the system that this template does not require the user to enter any additional information (see...). Figure 4 (The attached box). For example... Figure 5 As shown, click "Export" to import the entire text into this template. After successful compilation, the print style will automatically appear on the right side of the screen. The references used in the article will be numbered according to the template requirements. Figure 6 As shown, users can select to download the PDF or LaTeX document of this article from the blue drop-down menu in the lower right corner.

[0094] If the template requires additional necessary information, a request interface for that information will be generated, prompting the user to enter the required information. For example, the COMAP Mathematical Modeling template... Figure 7 As shown, this is a template for writing a paper for the American Mathematical Modeling Competition. Users need to provide a one-page summary and submit the paper anonymously, but a control number is required. This control number is obtained when registering for the competition. Therefore, before selecting "Export," you can use Automation to automatically generate a summary as a draft for modification, supplementation, and improvement. Then, click "Export," select the "COMAP Math Modeling" template, and click Next. The system will then prompt you to enter the control number, as shown below. Figure 8 As shown, assuming the user's control number is "111222", enter this string of numbers in the input box and click Save and Continue. After successful compilation, preview the result on the right (e.g., ...). Figure 9 As shown in the image, this control number has been correctly embedded in the PDF (see...). Figure 9 (Chinese frame section).

[0095] As can be seen from the above solutions, this invention provides a method for generating PDF text of articles according to a specified format. Compared with the prior art, this invention eliminates the need to select a template first and then write on the template. Instead, after writing in the writing area, a template is selected, and then the article is automatically generated based on the selected template and the full content of the writing area. This fundamentally solves the problems in the prior art, such as the need to reconstruct the full text format when changing the template later, the modification cost increasing with the document length, the inability to reuse content across templates, and the need to reformat academic results when converting between different academic journals or conferences. This effectively improves the user's submission efficiency and user experience.

[0096] Another embodiment of the present invention provides a system for generating PDF text from an article according to a specified format, such as... Figure 10 As shown, it specifically includes:

[0097] The first receiving unit 1001 is used to receive article import requests.

[0098] The article import request includes at least one first target template information selected by the user.

[0099] Unit 1002 is used to retrieve the full content of the current writing area.

[0100] The first generation unit 1003 is used to compile, for each first target template, the first target template and the full content of the current writing area, and generate a first target article formatted according to the first target template.

[0101] For details on the specific operation of the units disclosed in the above embodiments of the present invention, please refer to the corresponding method embodiments, such as... Figure 1 As shown, it will not be elaborated further here.

[0102] Optionally, in another embodiment of the present invention, one implementation of the first generating unit 1003 includes:

[0103] The segmentation unit is used to segment the entire content of the current writing area based on each first target template, resulting in multiple chapter fragments.

[0104] The compilation unit is used to compile each chapter segment independently, resulting in a compiled chapter segment with the default layout format.

[0105] Among them, the chapter fragments compiled and formatted by default are used for users to preview and check the basic layout effect.

[0106] The first generation subunit is used to generate a first target article formatted according to the first target template based on all compiled chapter fragments. The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0107] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0108] The second generation unit is used to generate error messages and modification suggestions when compilation fails.

[0109] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0110] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0111] The conversion unit is used to convert error messages into natural language prompts using an intelligent source Turing machine.

[0112] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0113] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0114] The preview unit is used to generate preview content for the first target article, which is formatted according to the first target template, and to display the preview content on the preview interface.

[0115] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0116] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0117] The second receiving unit is used to receive template switching requests.

[0118] The template switching request includes information on at least one second target template selected by the user.

[0119] The third generation unit is used to recompile the second target template and the full content of the current writing area for each second target template, and generate a second target article formatted according to the second template.

[0120] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0121] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0122] The third receiving unit is used to receive download requests.

[0123] The download request includes the target format type selected by the user.

[0124] The fourth generation unit is used to generate target files according to the target format type.

[0125] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0126] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0127] The fifth generation unit is used to generate a necessary information request interface and prompt the user to enter the necessary information if the first target template requires additional necessary information.

[0128] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0129] Optionally, in another embodiment of the present invention, one implementation of the system for generating PDF text from an article according to a specified format further includes:

[0130] The sixth generation unit is used to generate historical records based on historical compilation records and to provide an interface for selecting historical records.

[0131] The specific working process of the units disclosed in the above embodiments of the present invention can be found in the corresponding method embodiments, and will not be repeated here.

[0132] As can be seen from the above solutions, this invention provides a system for generating PDF text of articles according to a specified format. Compared with the prior art, this invention eliminates the need to select a template first and then write on the template. Instead, after writing in the writing area, a template is selected, and then the article is automatically generated based on the selected template and the full content of the writing area. This fundamentally solves the problems in the prior art, such as the need to reconstruct the full text format when changing the template later, the modification cost increasing with the document length, the inability to reuse content across templates, and the need to reformat academic results when converting between different academic journals or conferences. This effectively improves the user's submission efficiency and user experience.

[0133] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0134] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, it performs the functions defined in the methods of the embodiments of the present invention.

[0135] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in this invention is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely exemplary forms for implementing the invention.

[0136] While several specific implementation details are included in the foregoing discussion, these should not be construed as limiting the scope of the invention. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0137] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention is not limited to the specific combination of the above-described technical features, but also includes other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions in the present invention.

Claims

1. A method for generating PDF text from an article according to a specified format, characterized in that, include: Receive an article import request; wherein the article import request includes at least one first target template information selected by the user; Retrieve the full content of the current writing area; For each of the first target templates, the first target article is generated by compiling the first target template and the full content of the current writing area, and the first target article is formatted according to the first target template.

2. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, For each of the first target templates, the process of compiling based on the first target template and the full content of the current writing area to generate a first target article formatted according to the first target template includes: For each of the first target templates, the entire content of the current writing area is segmented based on the first target template to obtain multiple chapter fragments; Each chapter segment is compiled independently to obtain a compiled chapter segment with a default layout format; wherein, the compiled chapter segment with a default layout format is used for users to preview and check the basic layout effect; Based on all the compiled chapter fragments, generate a first target article formatted according to the first target template.

3. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, After generating the first target article by compiling the first target article based on the first target template and the full content of the current writing area for each of the first target templates, the process further includes: When compilation fails, generate error messages and suggested modifications.

4. The method for generating PDF text from an article according to a specified format as described in claim 3, characterized in that, When compilation fails, after generating error messages, the process also includes: The error message is converted into a natural language prompt using an intelligent source Turing machine.

5. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, After compiling the first target article formatted according to the first target template and the full content of the current writing area for each of the first target templates, the process further includes: Preview content is generated based on the first target article formatted according to the first target template, and the preview content is displayed on the preview interface.

6. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, After compiling the first target article formatted according to the first target template and the full content of the current writing area for each of the first target templates, the process further includes: Receive a template switching request; wherein the template switching request includes at least one second target template information selected by the user; For each of the second target templates, the content of the current writing area is recompiled based on the second target template to generate a second target article formatted according to the second target template.

7. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, After compiling the first target article formatted according to the first target template and the full content of the current writing area for each of the first target templates, the process further includes: Receive a download request; wherein the download request includes the target format type selected by the user; Generate the target file according to the target format type.

8. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, Before compiling and generating a first target article formatted according to the first target template for each of the first target templates, based on the first target template and the full content of the current writing area, the process further includes: If the first target template requires additional necessary information, a necessary information request interface is generated, prompting the user to enter the necessary information.

9. The method for generating PDF text from an article according to a specified format as described in claim 1, characterized in that, Also includes: An interface for generating historical records and selecting historical records based on historical compilation history.

10. A system for generating PDF text from an article according to a specified format, characterized in that, include: The first receiving unit is configured to receive an article import request; wherein the article import request includes at least one first target template information selected by the user; The retrieval unit is used to retrieve the entire content of the current writing area; The first generation unit is used to compile, for each of the first target templates, the first target template and the full content of the current writing area, to generate a first target article formatted according to the first target template.