Double-column typesetting method and system for image-text design page

By obtaining and utilizing the template configuration information and layout information of the graphic and text templates, and automatically dividing and filling the editing area of ​​the graphic and text design page, the cumbersome graphic and text layout process in the existing technology is solved, and efficiency and aesthetics are improved.

CN119670711APending Publication Date: 2025-03-21E FUND MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411668699.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, the graphic layout process is cumbersome and requires a lot of manual operation, resulting in inefficiency. Especially when multiple materials need to be adjusted, the operation is time-consuming and aesthetics are difficult to ensure.

Method used

By obtaining the template configuration information of the preset graphic templates, dividing the page into different editing areas, obtaining and filling the graphic data based on the area configuration information, and automatically typesetting using layout information to achieve adaptive data updates and aesthetic improvements.

Benefits of technology

It improves the efficiency and accuracy of graphic and text typesetting, reduces the time and complexity of manual operations, and ensures the aesthetics and consistency of typography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119670711A_ABST
    Figure CN119670711A_ABST
Patent Text Reader

Abstract

The invention discloses a double-column typesetting method and system for an image-text design page, and the method comprises the steps: obtaining template configuration information of a preset image-text template, so as to recognize a plurality of editing regions in the preset image-text template and region configuration information corresponding to each editing region; according to the region configuration information, obtaining image-text data required by each editing region; obtaining format information of the current page, and typesetting the plurality of editing areas according to the format information and the template configuration information to obtain a blank image-text page; and filling the blank image-text page with the image-text data, and typesetting the image-text data according to the region configuration information so as to improve typesetting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphic typesetting, and in particular to a double-column typesetting method and system for a graphic design page. Background Art

[0002] Graphics and text layout can be used to make poster advertisements, magazine covers, PPT and website pages. The traditional double-column layout graphic material production technology is mainly completed manually by designers through design tool software such as Photoshop and PowerPoint to meet personalization and customization needs. In the specific design process, since graphic and text layout is limited by page size and layout, it is necessary to manually select, combine, resize, design the layout of various elements to ensure aesthetics, save and export files, and finally produce graphic material files containing background images, icons, text, numbers, tables, curves and other content elements.

[0003] The existing technology is based on manual typesetting of graphics and texts, which not only requires the typesetters to have certain design expertise and business experience, but also due to the particularity of the A4 double-column layout page requirements, the content that can be displayed is limited under the fixed page size and font size restrictions, and the candidate elements include charts, text paragraphs, graphic element combinations, etc., and it is necessary to comprehensively consider the conditions such as text length and image size to arrange and combine multiple elements, select as much content as possible, and maximize the display of key information, resulting in manual selection. It takes a lot of time. Furthermore, in the typesetting process, when there are many design material elements, it is often necessary to constantly try according to the display effect, adjust the order, position, illustration size, font size, line spacing, A4 double-column width division ratio of different modules, etc., and manual operation is relatively cumbersome. For a series of column materials, such as making a one-page product introduction of multiple funds at one time, or a daily updated product information briefing, due to the differences in the length of the text and material characteristics in each candidate content of the material, it is necessary to adjust them one by one under a unified design layout to ensure overall consistency, which is very time-consuming. Summary of the invention

[0004] In order to solve the above technical problems, the present invention discloses a double-column typesetting method and system for a graphic design page, which are used to improve the efficiency of graphic typesetting.

[0005] In order to achieve the above object, the present invention discloses a double-column typesetting method for a graphic design page, comprising:

[0006] Acquire template configuration information of a preset graphic template to identify a plurality of editing areas in the preset graphic template and area configuration information corresponding to each editing area;

[0007] According to the area configuration information, obtaining the graphic data required for each editing area;

[0008] Acquire the layout information of the current page, so as to typeset a plurality of the editing areas according to the layout information and the template configuration information, and acquire a blank graphic page;

[0009] The blank graphic data is filled into the blank graphic page, and the graphic data is typeset according to the area configuration information.

[0010] The present invention discloses a double-column typesetting method for a graphic design page. First, in order to respond to user demand information, the template configuration information of a preset graphic template is obtained, so as to provide a basic graphic typesetting mode according to the template configuration information, avoid manually setting the typesetting of graphic materials, and improve the efficiency of graphic typesetting. Further, in order to adapt to different typesetting requirements and then update the graphic data under the same typesetting mode, the present invention divides the graphic page into different editing areas, so as to input the corresponding graphic content in the editing area, realize the adaptive data update under the same typesetting mode, and improve the accuracy of typesetting. At the same time, after the graphic content in each editing area is adaptively updated, in order to ensure the beauty of typesetting, the present invention uses the layout information of the current page to typeset several editing areas, improves the beauty of typesetting, and further, when the graphic data is written into the editing area, the graphic data is typeset according to the area configuration information, so that the graphic data is adaptive to the size of the editing area, avoids later adjustment, and improves the efficiency of typesetting.

[0011] As a preferred example, the step of obtaining the template configuration information of the preset graphic template includes:

[0012] Receiving a user-defined operation to obtain a template identifier of a graphic template to be called according to the user-defined operation;

[0013] Obtain a preset graphic template corresponding to the template identifier from a preset template library, and retrieve template configuration information corresponding to the preset graphic template; wherein the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas within the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area, and the area configuration information corresponding to each editing area.

[0014] The present invention calls the corresponding graphic template in response to the user's customized operation, so as to avoid repeated operations by saving the template, thereby wasting manpower and material resources. Furthermore, a basic typesetting mode is provided for the current typesetting operation by presetting the graphic template, so that subsequent typesetting can be performed on the currently provided typesetting mode, avoiding early typesetting operations and improving typesetting efficiency.

[0015] As a preferred example, obtaining the graphic data required for each editing area according to the area configuration information includes:

[0016] Parsing the region configuration information to obtain region identification, content configuration information and style configuration information corresponding to each editing region; wherein the content configuration information includes a number of field names corresponding to each editing region and field information corresponding to each field name; the style configuration information includes the order, position, size, font size and line spacing corresponding to each field name;

[0017] Dividing the field names into dynamic data names and static data names according to the field information;

[0018] Receive a user-defined time period and query a corresponding interface according to the dynamic data name to obtain dynamic graphic data corresponding to the dynamic data name within the user-defined time period;

[0019] The static graphic data corresponding to the static data name is obtained from the template data.

[0020] The present invention utilizes the field names to divide the graphic data in each area into static data that does not need to be updated and dynamic data that needs to be adaptively updated according to current needs. The division ensures the accuracy of the data required for the current typesetting, that is, utilizing the dynamic data for adaptive updating, and reduces the workload of data acquisition through the static data, thereby improving the efficiency of typesetting.

[0021] As a preferred example, before typeset the plurality of editing areas according to the layout information and the template configuration information, the method includes:

[0022] Determine whether the graphic data obtained in each editing area is a null value;

[0023] When it is determined that the graphic data is a null value, setting the typesetting mode of the current editing area to hidden;

[0024] When it is determined that the graphic data is not a null value, the typesetting mode of the current editing area is set to display.

[0025] The present invention utilizes whether each editing area is empty to further rearrange the editing area, thereby improving the aesthetics of the layout.

[0026] As a preferred example, the typesetting of the plurality of editing areas according to the layout information and the template configuration information includes:

[0027] Determining a plurality of display areas to be typeset from a plurality of the editing areas according to the typesetting mode;

[0028] Divide the current page into two columns according to the two-column width division ratio in the template configuration information to form a first display page and a second display page;

[0029] According to the template configuration information, obtaining the sorting and position information corresponding to each of the display areas;

[0030] The display areas are sequentially filled into the first display page and the second display page according to the sorting and the position information.

[0031] The present invention utilizes the template configuration information to segment the current page so that the current page adapts to the display requirements of the template, so as to better layout each editing area and improve the efficiency of layout. At the same time, the position specification of each editing area in the template configuration information is utilized to fill the display area to the corresponding display page to ensure the accuracy of layout.

[0032] As a preferred example, the step of filling the blank graphic data into the blank graphic page includes:

[0033] According to the style configuration information and the field name, the dynamic graphic data and the static graphic data are filled into the corresponding display area to obtain the graphic display area;

[0034] Obtaining the number of characters, the number of pictures and the size of the pictures in each of the graphic display areas, so as to obtain the area height corresponding to each of the graphic display areas according to the style configuration information;

[0035] According to the area height, the content height composed of a plurality of graphic and text display areas in the first display page or the second display page is obtained.

[0036] The present invention adaptively fills the graphic data according to the configuration information corresponding to each area, without manual adjustment, thereby improving the efficiency of typesetting. Furthermore, the height of each area after the graphic data is filled is obtained, so that the configuration information of the area can be adaptively updated according to the height later, thereby improving the aesthetics of the typesetting.

[0037] As a preferred example, the typesetting of the graphic data according to the area configuration information includes:

[0038] According to the layout information of the current page, obtaining the height threshold corresponding to the current page;

[0039] The difference between the content height and the height threshold is obtained, so as to gradually adjust the font size and line spacing in each of the graphic display areas according to the difference, until the adjusted difference meets the preset constraint condition.

[0040] The present invention utilizes the height of the page to update the font size and line spacing in each area, so as to adaptively adjust the typesetting and improve the accuracy and aesthetics of the typesetting.

[0041] As a preferred example, after typeset the graphic data according to the area configuration information, the method includes:

[0042] The blank graphic page, the graphic data and the area configuration information are combined to perform effect rendering to provide local generation and preview.

[0043] The present invention enables the user to adjust the typesetting according to the preview through the local generation and preview, thereby improving the user's typesetting experience.

[0044] On the other hand, the present invention discloses a double-column typesetting system for graphic design pages, including a template calling module, a data searching module, a format typesetting module and a graphic rendering module;

[0045] The template calling module is used to obtain template configuration information of a preset graphic template to identify a plurality of editing areas in the preset graphic template and area configuration information corresponding to each editing area;

[0046] The data search module is used to obtain the graphic data required for each editing area according to the area configuration information;

[0047] The format layout module is used to obtain the layout information of the current page, so as to layout a plurality of the editing areas according to the layout information and the template configuration information, and obtain a blank graphic page;

[0048] The graphic rendering module is used to fill the graphic data into the blank graphic page and typeset the graphic data according to the area configuration information.

[0049] The present invention discloses a double-column typesetting system for a graphic design page. First, in order to respond to user demand information, the template configuration information of a preset graphic template is obtained to provide a basic graphic typesetting mode according to the template configuration information, so as to avoid manually setting the typesetting of graphic materials and improve the efficiency of graphic typesetting. Further, in order to adapt to different typesetting requirements and update the graphic data under the same typesetting mode, the present invention divides the graphic page into different editing areas, so as to input the corresponding graphic content in the editing area, realize the adaptive data update under the same typesetting mode, and improve the accuracy of typesetting. At the same time, after the graphic content in each editing area is adaptively updated, in order to ensure the beauty of typesetting, the present invention uses the layout information of the current page to typeset several editing areas, so as to improve the beauty of typesetting. Further, when the graphic data is written into the editing area, the graphic data is typeset according to the area configuration information, so that the graphic data is adaptive to the size of the editing area, so as to avoid later adjustment and improve the efficiency of typesetting.

[0050] As a preferred example, the template calling module includes a user-defined unit and a matching unit;

[0051] The user-defined unit is used to receive a user-defined operation to obtain a template identifier of the graphic template to be called according to the user-defined operation;

[0052] The matching unit is used to obtain the preset graphic template corresponding to the template identifier from a preset template library, and to call up the template configuration information corresponding to the preset graphic template; wherein the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas within the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area, and the area configuration information corresponding to each editing area.

[0053] The present invention calls the corresponding graphic template in response to the user's customized operation, so as to avoid repeated operations by saving the template, thereby wasting manpower and material resources. Furthermore, a basic typesetting mode is provided for the current typesetting operation by presetting the graphic template, so that subsequent typesetting can be performed on the currently provided typesetting mode, avoiding early typesetting operations and improving typesetting efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 : A schematic flow chart of a double-column typesetting method for a graphic design page provided by an embodiment of the present invention;

[0055] Figure 2 : A schematic diagram of the structure of a double-column typesetting system for a graphic design page provided by an embodiment of the present invention;

[0056] Figure 3 : A schematic flow chart of a double-column typesetting method for a graphic design page provided by another embodiment of the present invention;

[0057] Figure 4 : A schematic diagram of the content of template configuration information provided by another embodiment of the present invention;

[0058] Figure 5 : A schematic diagram of a template call provided by another embodiment of the present invention;

[0059] Figure 6 : A schematic diagram of field name type configuration provided by another embodiment of the present invention;

[0060] Figure 7 : A preview page display schematic diagram provided for another embodiment of the present invention. DETAILED DESCRIPTION

[0061] 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 only 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.

[0062] Embodiment 1

[0063] This embodiment discloses a double-column typesetting method for a graphic design page, which is used to improve the efficiency of typesetting. Specifically, the specific implementation process of the typesetting method is shown in FIG. Figure 1 , mainly including steps 101 to 104, wherein the steps are mainly:

[0064] Step 101: Acquire template configuration information of a preset graphic template to identify a plurality of editing areas in the preset graphic template and area configuration information corresponding to each editing area.

[0065] In this embodiment, the step mainly includes: receiving a user-defined operation to obtain the template identifier of the graphic template to be called according to the user-defined operation; obtaining the preset graphic template corresponding to the template identifier from the preset template library, and calling the template configuration information corresponding to the preset graphic template; wherein the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas in the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area, and the area configuration information corresponding to each editing area.

[0066] In this embodiment, this step calls the corresponding graphic template in response to the user's customized operation to avoid repeated operations by saving the template, thereby wasting manpower and material resources. Furthermore, a basic typesetting mode is provided for the current typesetting operation by presetting the graphic template, so that subsequent typesetting can be performed on the currently provided typesetting mode, avoiding early typesetting operations and improving typesetting efficiency.

[0067] Step 102: According to the area configuration information, the graphic data required for each editing area is obtained.

[0068] In this embodiment, the step mainly includes: parsing the area configuration information to obtain the area identification, content configuration information and style configuration information corresponding to each editing area; wherein the content configuration information includes a number of field names corresponding to each editing area, and field information corresponding to each field name; the style configuration information includes the order, position, size, font size and line spacing corresponding to each field name; dividing the field names into dynamic data names and static data names according to the field information; receiving a user-defined time period and querying the corresponding interface according to the dynamic data name to obtain the dynamic graphic data corresponding to the dynamic data name within the customized time period; obtaining the static graphic data corresponding to the static data name from the template data.

[0069] In this embodiment, this step utilizes the field name to divide the graphic data in each area into static data that does not need to be updated and dynamic data that needs to be adaptively updated according to current needs. The division ensures the accuracy of the data required for the current typesetting, that is, utilizing the dynamic data for adaptive updating, and reduces the workload of data acquisition through the static data, thereby improving the efficiency of typesetting.

[0070] Step 103: Acquire the layout information of the current page, and typeset a plurality of the editing areas according to the layout information and the template configuration information to acquire a blank graphic page.

[0071] In this embodiment, this step mainly includes: first, determining whether the graphic data obtained in each of the editing areas is a null value; when the graphic data is determined to be a null value, setting the typesetting mode of the current editing area to hidden; when the graphic data is determined not to be a null value, setting the typesetting mode of the current editing area to display.

[0072] Secondly, according to the typesetting mode, several display areas to be typeset are determined from the several editing areas; the current page is divided into two columns according to the double-column width division ratio in the template configuration information to form a first display page and a second display page; according to the template configuration information, the sorting and position information corresponding to each of the display areas is obtained; according to the sorting and the position information, each of the display areas is filled into the first display page and the second display page in turn.

[0073] In this embodiment, this step first uses whether each editing area is empty, and then re-layouts the editing area to improve the aesthetics of the layout. At the same time, the template configuration information is used to divide the current page to make the current page adapt to the display requirements of the template, so as to better layout each editing area and improve the efficiency of layout. At the same time, the position of each editing area in the template configuration information is specified to fill the display area to the corresponding display page to ensure the accuracy of the layout.

[0074] Step 104: Fill the blank graphic data into the blank graphic page, and typeset the graphic data according to the area configuration information.

[0075] In this embodiment, the steps are mainly as follows: first, according to the style configuration information and the field name, the dynamic graphic data and the static graphic data are filled into the corresponding display area to obtain the graphic display area; the number of characters, the number of pictures and the picture size in each of the graphic display areas are obtained to obtain the area height corresponding to each of the graphic display areas according to the style configuration information; according to the area height, the content height composed of several graphic display areas in the first display page or the second display page is obtained.

[0076] Secondly, according to the layout information of the current page, the height threshold corresponding to the current page is obtained; the difference between the content height and the height threshold is obtained, so as to gradually adjust the font size and line spacing in each of the graphic display areas according to the difference, until the adjusted difference meets the preset constraints.

[0077] Then, the blank graphic page, the graphic data and the area configuration information are combined to perform effect rendering to provide local generation and preview.

[0078] In this embodiment, this step first adaptively fills the graphic data according to the configuration information corresponding to each area, without manual adjustment, thereby improving the efficiency of typesetting. Furthermore, the height of each area after the graphic data is filled is obtained, so that the configuration information of the area can be adaptively updated according to the height to improve the aesthetics of the typesetting. Secondly, the height of the page is used to update the font size and line spacing in each area to adaptively adjust the typesetting and improve the accuracy and aesthetics of the typesetting. Finally, through the local generation and preview, the user can adjust the typesetting according to the preview, thereby improving the user's typesetting experience.

[0079] On the other hand, this embodiment also discloses a double-column typesetting system for graphic design pages. For the specific structure of the typesetting system, please refer to Figure 2 , including a template calling module 201, a data searching module 202, a formatting module 203 and a graphic rendering module 204.

[0080] The template calling module 201 is used to obtain template configuration information of a preset graphic template to identify a plurality of editing areas in the preset graphic template and area configuration information corresponding to each editing area.

[0081] The data search module 202 is used to obtain the graphic data required for each editing area according to the area configuration information.

[0082] The format layout module 203 is used to obtain the layout information of the current page, so as to layout a plurality of the editing areas according to the layout information and the template configuration information, and obtain a blank image and text page.

[0083] The graphic rendering module 204 is used to fill the graphic data into the blank graphic page and typeset the graphic data according to the area configuration information.

[0084] In this embodiment, the template calling module 201 includes a user-defined unit and a matching unit.

[0085] The user-defined unit is used to receive a user-defined operation to obtain a template identifier of the graphic template to be called according to the user-defined operation.

[0086] The matching unit is used to obtain the preset graphic template corresponding to the template identifier from a preset template library, and to call up the template configuration information corresponding to the preset graphic template; wherein the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas within the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area, and the area configuration information corresponding to each editing area.

[0087] The present embodiment discloses a double-column typesetting method and system for a graphic design page. First, in order to respond to user demand information, the template configuration information of a preset graphic template is obtained, so as to provide a basic graphic typesetting mode according to the template configuration information, avoid manually setting the typesetting of graphic materials, and improve the efficiency of graphic typesetting. Further, in order to adapt to different typesetting requirements and then update the graphic data under the same typesetting mode, the present invention divides the graphic page into different editing areas, so as to input the corresponding graphic content in the editing area, realize the adaptive data update under the same typesetting mode, and improve the accuracy of typesetting. At the same time, after the graphic content in each editing area is adaptively updated, in order to ensure the beauty of typesetting, the present invention uses the layout information of the current page to typeset several of the editing areas, so as to improve the beauty of typesetting. Further, when the graphic data is written into the editing area, the graphic data is typeset according to the area configuration information, so that the graphic data is adaptive to the size of the editing area, so as to avoid later adjustment and improve the efficiency of typesetting.

[0088] Embodiment 2

[0089] With the application of graphic materials in various fields, the effect of graphic typesetting has gradually become the development direction of various enterprises. In the existing technology, graphic typesetting involves the arrangement and combination of multiple data and multiple elements, and usually adopts manual processing to perform graphic typesetting to meet the typesetting requirements of different graphic materials. However, the manual processing method is not only prone to errors, but also has a relatively low typesetting efficiency, which does not meet the needs of enterprises.

[0090] In order to solve the above technical problems, this embodiment refers to the typesetting method shown in Example 1. In a possible application instance, a graphic template that meets user needs and the configuration information corresponding to the graphic template are obtained from a preset template library, and then the corresponding graphic page is displayed on the current page based on the configuration information.

[0091] In the application example, please refer to the specific execution process of double-column layout of the graphic design page based on the graphic template. Figure 3 , mainly including steps 301 to 304, the steps are mainly:

[0092] Step 301: responding to an adaptive operation input by a user to determine a graphic template to be called and template configuration information corresponding to the graphic template according to the adaptive operation.

[0093] In this embodiment, the step mainly includes: obtaining the template identifier of the graphic template to be called according to the custom operation input by the user, and obtaining the preset graphic template corresponding to the template identifier from the preset template library, and calling the template configuration information corresponding to the preset graphic template; wherein, the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas in the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area and the area configuration information corresponding to each editing area.

[0094] Specifically, in the execution of the graphic typesetting, firstly, a plurality of graphic templates required for the production of graphic materials are preset, and they are saved to form a template library. Specifically, in order to facilitate the calling and display of the graphic template, the content of the graphic template can be set as a web page file template in H5 format, and the fixed template configuration information of each web page file template is saved in the template library, so as to display the template according to the template configuration information.

[0095] Furthermore, in order to ensure the accurate calling of the template, refer to Figure 4 , is a schematic diagram of the content of the template configuration information. Figure 4 As shown, the template configuration information corresponding to each graphic template saves all the information of a single template, including: template name, template id, template style configuration information (the order, position, A4 double-column width division ratio of different modules in the template, etc.), module configuration information [module 1 configuration information (module name, module id, content configuration information: icons, charts and text index field names and field information in the module; style configuration information: the order, position, illustration size, font size, line spacing, etc. of different icons, charts and texts in the module), module 2 configuration information (module name, module id, content configuration information: icons, charts and text index field names and field information in the module; style configuration information: the order, position, illustration size, font size, line spacing, etc. of different icons, charts and texts in the module), module n configuration information...].

[0096] In one application embodiment, "One-page guide to fund products" is set as the template name, corresponding to a unique template ID. The graphic template corresponding to the template name includes multiple modules, such as a title and header image module, a fund basic information module, a fund rate module, a fund manager introduction module, a fund company introduction module, a fund yield introduction module, etc.

[0097] Referring to the above template configuration information, in an application embodiment, if Figure 5As shown, a template calling page is set up to respond to the user's input operation in the template calling page, to call the template name of each template from the template library according to the input operation, and to display the template name for the user to select. In response to the user's click operation or input operation on the current calling page, the template name selected by the user is obtained, and then the one-to-one corresponding template ID is obtained according to the template name, so as to obtain the template configuration information corresponding to the template name from the template library according to the template ID.

[0098] Step 302: Obtaining graphic data corresponding to each graphic module in the graphic template according to the template configuration information.

[0099] In this embodiment, this step mainly includes: identifying several editing areas in the graphic template to be called and the area configuration information corresponding to each editing area; and acquiring the graphic data required for each editing area according to the area configuration information.

[0100] Specifically, the module configuration information corresponding to each module is retrieved from the template configuration information to obtain the graphic data to be displayed in the current module according to the module configuration information. The field information in the module configuration information identifies the source type of data required for each field name, and the source type includes static data fields and dynamic data fields; the value of the static data field does not change with time, and the value of the dynamic data field needs to change dynamically according to the data time period selected by the user when actually making the material. For example, the title background image, LOGO icon, paragraph format placeholder, etc. are static data; the fund yield curve chart value, yield title copy, etc. are dynamic data, and the value varies according to the yield calculation time period selected by the user.

[0101] In the process of acquiring graphic data, firstly, it is determined whether the data required under each field name is dynamic data or static data according to the field information. Figure 6 In one embodiment, the "${}" symbol is used to identify a dynamic data field, and the text within the "${}" symbol identifies which backend interface the data value of the dynamic data comes from. If the "${}" symbol is not used, a fixed string is directly filled in the text box, indicating that the field is a static data field, and its data value can be directly obtained from the corresponding text box of the configuration information.

[0102] After identifying that the type of the data is dynamic data, the user selects the time period of the required data. After clicking the confirmation button, the corresponding interface is queried according to the dynamic data field name in the template configuration information and the data time period selected by the user, and the dynamic data values for the corresponding time period are obtained, such as text and charts. After identifying that the type of the data is static data, the static data field name and static data value are directly obtained from the template configuration information according to the template ID and the template configuration information, such as a LOGO icon and a paragraph format placeholder.

[0103] Step 303: Automatically typeset several of the graphic and text modules according to the template configuration information and the layout information of the current page to form a blank graphic and text page.

[0104] In this embodiment, this step mainly includes: obtaining the layout information of the current page, and typesetting several of the editing areas according to the layout information and the template configuration information to obtain a blank graphic and text page.

[0105] Specifically, according to the template configuration information and the obtained static data and dynamic data, the two-column layout page is initially set with 50% width for each of the left and right columns, and the page width threshold and height threshold are set according to the layout information of the current page. Among them, the position order of each module in the page is specified by the parameter order, and the order attribute of CSS is used.

[0106] Further, it is determined that when there are null values in the static data value and dynamic data value obtained in the module, the module is hidden; thus, it is determined whether all the modules in the template are displayed / hidden, and a list of modules to be displayed is obtained; according to the rule information such as the module order and position in the template information configuration, it is displayed in a two-column layout of A4 on the page, the page width is fixed, and the actual page height changes with the amount of content, and automatic typesetting is performed.

[0107] Step 304: Fill the graphic and text data into the blank graphic and text page, and typeset the graphic and text data according to the layout information to form a graphic and text page.

[0108] In this embodiment, this step mainly includes: filling each module in sequence according to the template configuration information, the static data value, and the dynamic data value. After filling the data into the module, the actual page content height h is obtained according to the number of characters, the number of pictures, the picture size, and the number of modules in the current column, and the actual page content height h is compared with the height threshold H of the layout information of the current page. According to the comparison result, the text font size and line spacing in the internal area of a single module are adjusted step by step until the adjusted page content meets the constraint conditions: the overall content height h * <H, and each module internally meets the maximum and minimum boundary values of the font size and line spacing set in the template configuration information.

[0109] Specifically, in the process of step-by-step adjustment, if the content height is greater than the A4 height, the font size and line spacing are gradually reduced and set to appropriate values; if the content height is less than the A4 height, the font size and line spacing are gradually increased and set to appropriate values. If the content is too little, leave appropriate blank space at the bottom.

[0110] Specifically, during the adjustment process, the constraints include font size and line spacing that must meet the set boundary values ​​to prevent a chaotic style, ensure that the content can be fully displayed while ensuring aesthetics; use FLEX layout to make the container fill the display area; save according to the 2x / 3x precision setting to ensure clarity. Preferably, based on the automatic layout, the user can adjust the page layout, set the width ratio of the double column, and the page content automatically adapts according to the layout (i.e., repeat the above steps for automatic layout).

[0111] Step 305: Render the graphic page to form a preview, and respond to the user's online adjustment operation to adjust the graphic page.

[0112] In this embodiment, this step mainly includes: rendering the graphic page to form a preview page, comparing the preview area, responding to the edit and modification content input by the user (such as adding or reducing text), and then adjusting the graphic page according to the edit and modification content. Figure 6 , a preview page of the graphic page is formed on the left side of the page, and an adjustment box is provided on the left side of the page to receive the user's adjustment operation on the graphic page through the adjustment box. During the adjustment process, the user's adjustment of the page module can be responded to, and the module can be displayed or hidden as a whole. The type of content inside each module can also be abstracted, such as title, text, and comments, so as to receive the user's adjustment operation on the style of each content type, such as overall font size, line spacing, etc.

[0113] Step 306: Save the user's adjustment to the graphic page to generate a new graphic template and save it.

[0114] In this embodiment, the steps are mainly as follows: the template layout and style are saved, such as by copying, for reference in the next production. When saving, the HTML is converted into a picture using the method of htm l2canvas, and the picture is saved. The generated picture is saved in the server and can be downloaded at any time. The material can also be edited and modified for the second time, and some data can be updated to regenerate the material.

[0115] The double-column layout method of a graphic design page provided in this embodiment can produce graphic materials automatically through a program, thereby lowering the production threshold and allowing personnel without professional design knowledge to quickly produce materials that meet the requirements. Furthermore, the convenience of operation is improved, the production efficiency is improved, the production time is shortened, and the manpower and material costs of repeated operations are reduced, while ensuring the standardization of material styles and the reliability of data.

[0116] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A double-column typesetting method for a graphic design page, characterized in that: include: Acquire template configuration information of a preset graphic template to identify a plurality of editing areas in the preset graphic template and area configuration information corresponding to each editing area; According to the area configuration information, obtaining the graphic data required for each editing area; Acquire the layout information of the current page, so as to typeset a plurality of the editing areas according to the layout information and the template configuration information, and acquire a blank graphic page; The blank graphic data is filled into the blank graphic page, and the graphic data is typeset according to the area configuration information.

2. A double-column typesetting method for a graphic design page according to claim 1, characterized in that: The step of obtaining the template configuration information of the preset graphic template includes: Receiving a user-defined operation to obtain a template identifier of a graphic template to be called according to the user-defined operation; Obtain a preset graphic template corresponding to the template identifier from a preset template library, and retrieve template configuration information corresponding to the preset graphic template; wherein the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas within the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area, and the area configuration information corresponding to each editing area.

3. A double-column typesetting method for a graphic design page according to claim 2, characterized in that: The step of obtaining the graphic data required for each editing area according to the area configuration information includes: Parsing the region configuration information to obtain region identification, content configuration information and style configuration information corresponding to each editing region; wherein the content configuration information includes a number of field names corresponding to each editing region and field information corresponding to each field name; the style configuration information includes the order, position, size, font size and line spacing corresponding to each field name; Dividing the field names into dynamic data names and static data names according to the field information; Receive a user-defined time period and query a corresponding interface according to the dynamic data name to obtain dynamic graphic data corresponding to the dynamic data name within the user-defined time period; The static graphic data corresponding to the static data name is obtained from the template data.

4. A double-column typesetting method for a graphic design page according to any one of claims 2-3, characterized in that: Before typeset the plurality of editing areas according to the layout information and the template configuration information, the method includes: Determine whether the graphic data obtained in each editing area is a null value; When it is determined that the graphic data is a null value, setting the typesetting mode of the current editing area to hidden; When it is determined that the graphic data is not a null value, the typesetting mode of the current editing area is set to display.

5. A double-column typesetting method for a graphic design page according to claim 4, characterized in that: The typesetting of the plurality of editing areas according to the layout information and the template configuration information comprises: Determining a plurality of display areas to be typeset from a plurality of the editing areas according to the typesetting mode; Divide the current page into two columns according to the two-column width division ratio in the template configuration information to form a first display page and a second display page; According to the template configuration information, obtaining the sorting and position information corresponding to each of the display areas; The display areas are sequentially filled into the first display page and the second display page according to the sorting and the position information.

6. A double-column typesetting method for a graphic design page according to claim 5, characterized in that: The step of filling the blank graphic data into the blank graphic page includes: According to the style configuration information and the field name, the dynamic graphic data and the static graphic data are filled into the corresponding display area to obtain the graphic display area; Obtaining the number of characters, the number of pictures and the size of the pictures in each of the graphic display areas, so as to obtain the area height corresponding to each of the graphic display areas according to the style configuration information; According to the area height, the content height composed of a plurality of graphic and text display areas in the first display page or the second display page is obtained.

7. A double-column typesetting method for a graphic design page according to claim 6, characterized in that: The typesetting of the graphic data according to the area configuration information includes: According to the layout information of the current page, obtaining the height threshold corresponding to the current page; The difference between the content height and the height threshold is obtained, so as to gradually adjust the font size and line spacing in each of the graphic display areas according to the difference, until the adjusted difference meets the preset constraint condition.

8. A double-column typesetting method for a graphic design page according to claim 7, characterized in that: After the graphic data is typeset according to the area configuration information, the method includes: The blank graphic page, the graphic data and the area configuration information are combined to perform effect rendering to provide local generation and preview.

9. A double-column typesetting system for graphic design pages, characterized in that: It includes template calling module, data searching module, formatting module and graphic rendering module; The template calling module is used to obtain template configuration information of a preset graphic template to identify a plurality of editing areas in the preset graphic template and area configuration information corresponding to each editing area; The data search module is used to obtain the graphic data required for each editing area according to the area configuration information; The format layout module is used to obtain the layout information of the current page, so as to layout a plurality of the editing areas according to the layout information and the template configuration information, and obtain a blank graphic page; The graphic rendering module is used to fill the graphic data into the blank graphic page and typeset the graphic data according to the area configuration information.

10. A double-column typesetting system for graphic design pages according to claim 9, characterized in that: The template calling module includes a user-defined unit and a matching unit; The user-defined unit is used to receive a user-defined operation to obtain a template identifier of the graphic template to be called according to the user-defined operation; The matching unit is used to obtain the preset graphic template corresponding to the template identifier from a preset template library, and to call up the template configuration information corresponding to the preset graphic template; wherein the template configuration information includes the double-column width division ratio of the preset graphic template, template data, a number of editing areas within the preset graphic template, the order corresponding to each editing area, the position information corresponding to each editing area, and the area configuration information corresponding to each editing area.