Form pagination printing method and system

By parsing and calculating the form data structure information, flexible pagination printing of elastic forms was achieved, solving the problem of inconsistent printing in existing technologies and saving time and costs.

CN115840545BActive Publication Date: 2026-11-20NANTONG XIDA INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210742809.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-28
Publication Date
2026-11-20
Estimated Expiration
2042-06-28

AI Technical Summary

Technical Problem

Existing office software struggles to handle page breaks flexibly and conveniently when printing flexible forms, resulting in discrepancies between the printed results and actual paper forms. Furthermore, it is prone to compression when the forms are too long.

Method used

By parsing the flexible form data to generate data structure information, extracting the height values ​​of table rows and cells, calculating the total height value, and determining whether to split the print based on the preset page print height, the printing effect is ensured to be consistent with the real paper form.

Benefits of technology

It enables flexible pagination printing of flexible forms, ensuring that the printed effect is no different from that of real paper forms, saving time and costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115840545B_ABST
    Figure CN115840545B_ABST
Patent Text Reader

Abstract

The application discloses a form paging printing method, comprising the following steps: analyzing an elastic form table to generate an HTML label, obtaining data structure information of the elastic form table according to the generated HTML label, extracting data structure information of each table row tr in the elastic form table according to the data structure information of the elastic form table, extracting all cell td data structure information according to each table row tr, determining the height value of each table row tr according to all cell td data structure information, adding the height value of each table row tr to obtain the total height value of the elastic form, and finally comparing the total height value of the elastic form table obtained by calculation with a preset page printing height to determine whether splitting printing is needed. Thus, the elastic form is printed and split after the total height of the elastic form is calculated, so that the printing effect of the elastic form is ensured to be the same as that of a real paper form, time is saved, and cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer software, and in particular to a method and system for printing paginated forms. Background Technology

[0002] With the development of network technology, electronic forms are commonly used in current office software, and are usually printed out as paper documents using the system's printing function. However, a report may need to be printed on multiple sheets of paper. In this case, how to handle pagination more flexibly and conveniently based on flexible forms is a problem that urgently needs to be solved. Furthermore, when using excessively long flexible forms, compression may occur during printing, leading to differences between the printed flexible form and the actual paper form. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a method and system for printing paginated forms.

[0004] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0005] In a first aspect, the present invention provides a method for printing paginated forms, comprising the following steps:

[0006] S100. Parse the flexible form data to generate the data structure information of the flexible form table;

[0007] S200. Extract the data structure information of each table row (tr) in the flex form table based on the data structure information of the flex form table;

[0008] S300. Extract the data structure information of all cells td based on each table row tr;

[0009] S400. Determine the start and end positions (py values) of the input information in each cell (td) based on the data structure information of all cells (td);

[0010] S500. Determine the height value of each table row tr based on the data structure information of all cell td, and add the height values ​​of each table row tr to get the total height value of the flexible form;

[0011] S600. Based on the obtained total height value of the flexible form table, the print settings, and the start and end positions of the input information in each cell td, determine whether it is necessary to split the print.

[0012] In some possible implementations, step S400 extracts all cell td data structure information based on each table row tr. The td data structure information includes the height value of handwritten input information and the height value of system input information in the td. This includes: obtaining the handwritten input information and / or system input information of cell td. The system input information is the text height calculated based on the font name and font size set by the system, and the handwritten input information is the height of handwritten input information read from the td data structure information.

[0013] In some feasible implementations, step S500, determining the height value of each table row tr based on the data structure information of all cell td, includes the following steps:

[0014] S501. Record the height value of all cells td in the table row tr;

[0015] S502. Compare the height values ​​of all cell td values ​​in the record to obtain the maximum height value;

[0016] S503. Use the maximum height value in the cell as the height value of the current table row tr.

[0017] In some possible implementations, S201. Record the height values ​​of all cells td in the table row tr. If the same cell td includes both handwritten input information and system input information, then the handwritten input information and system input information are set to be entered on separate lines, and the font height values ​​of the handwritten input information and the system input information are added together as the height value of the cell.

[0018] In some possible implementations, step S600 determines whether splitting the print operation is necessary by comparing the total height of the obtained flex table, print settings, and the start and end positions of the input information in each cell td. The print settings are set to a preset page print height value, and include the following steps:

[0019] S601. Compare and determine the calculated total height value of the flexible form table with the preset page print height value to obtain the determination result;

[0020] S602. If the determination result is that the total height of the flexible form table is less than or equal to the preset page printing height, then the flexible form is printed directly;

[0021] S603. If the judgment result is that the total height of the flexible form table is greater than the preset page printing height, calculate the end value py of each remaining printing page. If the end value py of the printing page exists between the starting position py value and the ending position py value of the information entered in cell td, then the printing page is printed to the position before the starting position py value.

[0022] Secondly, the present invention provides a form pagination printing system, comprising:

[0023] The parsing module is used to parse the data in the flex form and generate the data structure information of the flex form table.

[0024] The acquisition module is used to extract the data structure information of each table row (tr) in the flex form table based on the data structure information of the flex form table.

[0025] The first extraction module is used to extract the data structure information of all cells td based on each table row tr.

[0026] The determination module is used to determine the start and end positions of the input information in each cell td based on the data structure information of all cells td.

[0027] The calculation module is used to determine the height value of each table row tr based on the data structure information of all cell td, and add the height values ​​of each table row tr to obtain the total height value of the flexible form.

[0028] The split module is used to determine whether splitting the print operation is necessary by comparing the total height of the obtained flex table, the print settings, and the start and end positions of the input information in each cell (td).

[0029] In some possible implementations, the determining module includes:

[0030] A recording unit is used to record the height value of all cells td in the table row tr.

[0031] The comparison cell is used to compare the height values ​​of all cells (td) in a record to obtain the maximum height value.

[0032] The processing unit is used to take the maximum height value in the cell as the height value of the current table row tr.

[0033] In some possible implementations, the splitting module includes:

[0034] The judgment unit compares and judges the calculated total height value of the flexible form table with the preset page print height value to obtain the judgment result;

[0035] The first execution unit is used to directly print the elastic form if the total height of the elastic form table is less than or equal to the preset page printing height.

[0036] The second execution unit is used to calculate the end value py of each remaining print page when the judgment result is that the total height value of the flexible form table is greater than the preset page printing height value. If the end value py of the print page exists between the start position py value and the end position py value of the information input in cell td, then the print page is printed to the position before the start position py value.

[0037] In some feasible implementations, the data structure information of cell td includes handwritten input information and / or system input information, wherein the system input information is the text height calculated based on the font name and font size set by the system, and the handwritten input information is the handwritten height read from the td data structure information.

[0038] Thirdly, the present invention provides a terminal, comprising: at least one processor; and a memory; wherein the memory stores a program executable by the at least one processor, and instructions executed by the at least one processor to enable the at least one processor to perform the above-described form pagination printing method.

[0039] Compared with the prior art, the present invention has the following advantages and effects:

[0040] This invention uses a parsing module to parse a flexible form (table) and generate HTML tags. An acquisition module then obtains the data structure information of the flexible form (table) based on the generated HTML tags. A first extraction module extracts the data structure information of each row (tr) in the flexible form (table) based on this data structure information. A second extraction module extracts the data structure information of all cells (td) from each row (tr), including their height values. A determination module determines the height value of each row (tr) based on the data structure information of all cell (td). A calculation module adds the determined height values ​​of each row (tr) to obtain the total height of the flexible form. Finally, a splitting module compares the calculated total height of the flexible form (table) with a preset page printing height to determine whether splitting the form for printing is necessary. Therefore, this invention calculates the total height of the flexible form before splitting it for printing, ensuring that the printed effect of the flexible form is indistinguishable from a real paper form, saving time and costs. Attached Figure Description

[0041] Figure 1 This is a schematic diagram of the form pagination printing system of the present invention;

[0042] Figure 2 This is a schematic diagram of an embodiment of the form pagination printing system of the present invention;

[0043] Figure 3 This is a schematic diagram of an embodiment of the form pagination printing system of the present invention;

[0044] Figure 4 This is a schematic diagram of an embodiment of the form pagination printing system of the present invention;

[0045] Figure 5 This is a flowchart of the steps of the form pagination printing method of the present invention;

[0046] Figure 6 This is a flowchart of the steps of the form pagination printing method of the present invention;

[0047] Figure 7 This is a flowchart of an embodiment of the form pagination printing method of the present invention;

[0048] Figure 8 This is a flowchart of an embodiment of the form pagination printing method of the present invention. Detailed Implementation

[0049] To illustrate in detail the technical solutions adopted by the present invention to achieve the intended technical objectives, the technical solutions in 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, not all embodiments. Furthermore, the technical means or technical features in the embodiments of the present invention can be replaced without creative effort. The present invention will be described in detail below with reference to the accompanying drawings and embodiments.

[0050] Example 1

[0051] Figure 1 This is a schematic diagram of the structure of a form pagination printing system provided in an embodiment of the present invention; this embodiment provides a form pagination printing system, including:

[0052] Parsing module 1 is used to parse the data structure information of the flexible form table by parsing the flexible form data.

[0053] Module 2 is used to extract the data structure information of each table row (tr) in the flex form table based on the data structure information of the flex form table.

[0054] The first extraction module 3 is used to extract the data structure information of all cells td based on each table row tr; the td data structure information includes the height value of handwritten input information and the height value of system input information in td. The specific steps include: obtaining the handwritten input information and / or system input information of cell td, wherein the system input information is the text height calculated based on the font name and font size set by the system, and the handwritten input information is the height of handwritten input information read from the td data structure information.

[0055] Module 4 is used to determine the start and end positions of the input information in each cell td based on the data structure information of all cells td.

[0056] Calculation module 5 is used to determine the height value of each table row tr based on the data structure information of all cell td, and add the height values ​​of each table row tr to obtain the total height value of the flexible form;

[0057] The splitting module 6 is used to determine whether splitting the print operation is necessary by comparing the total height of the obtained flex table, the print settings, and the start and end positions of the input information in each cell td.

[0058] Furthermore, such as Figure 2 As shown, the determination module includes:

[0059] Recording unit 51 is used to record the height value of all cells td in the table row tr;

[0060] Comparison unit 52 is used to compare the height values ​​of all cells td in the record to obtain the maximum height value;

[0061] Processing unit 53 is used to take the maximum height value in the cell as the height value of the current table row tr.

[0062] In this embodiment, the present invention parses the flexible form (table) to generate HTML tags using a parsing module. An acquisition module obtains the data structure information of the flexible form (table) based on the generated HTML tags. A first extraction module extracts the data structure information of each row (tr) in the flexible form (table) based on the data structure information of the table. A second extraction module extracts the data structure information of all cells (td) in each row (tr) based on the data structure information of each cell (td), including the height value of the td. A determination module determines the height value of each row (tr) based on the data structure information of all cell (td). A calculation module adds the determined height values ​​of each row (tr) to obtain the total height value of the flexible form. Finally, a splitting module compares the calculated total height value of the flexible form (table) with the preset page printing height to determine whether splitting the print is necessary. Therefore, the present invention calculates the total height of the flexible form before splitting it for printing, ensuring that the printed effect of the flexible form is indistinguishable from that of a real paper form, saving time and costs.

[0063] Example 2

[0064] As one possible approach, reference is made to the appendix based on the above embodiments. Figure 3-4It is known that, in order to enrich the diversity of registration methods of the form pagination printing system, preferably, the splitting module 7 includes a judgment unit 71, which is used to compare and judge the calculated total height value of the flexible form table with the preset page printing height value to obtain the judgment result;

[0065] The first execution unit 72 is used to directly print the elastic form if the judgment result is that the total height value of the elastic form table is less than or equal to the preset page printing height value.

[0066] The second execution unit 73 is used to split and print according to the set print template when the judgment result is that the total height of the flexible form table is greater than the preset page print height. The second execution unit includes:

[0067] The acquisition unit 731 is used to acquire the set value of the bottom margin height of the printed page;

[0068] The first calculation unit 732 is used to subtract the bottom margin height value from the preset page print height value to obtain the homepage print height value;

[0069] The second calculation unit 733 is used to calculate the sum of the set top and bottom margin height values ​​of the printed page;

[0070] The third calculation unit 734 is used to subtract the sum of the top and bottom margin heights of the printed page from the preset page print height value to obtain the non-first page print height value;

[0071] The printing processing unit 735 is used to subtract the first page printing height from the total height value to obtain the remaining printing height value. If the remaining printing height value is less than or equal to the non-first page printing height value, it is printed directly. If the remaining printing height value is greater than the non-first page printing height value, it continues to subtract the non-first page printing height value from the remaining printing height value until the calculated remaining printing height value is less than the non-first page printing height value, at which point it is printed directly.

[0072] In this embodiment, the present invention differentiates the height settings of the flexible form for printing on the first page and non-first page by setting the unit structure of the split module. The calculated total height of the flexible form table is split and printed according to the printing requirements. Therefore, missing printed content is avoided, the accuracy of form printing is further improved, and the digital office environment is optimized.

[0073] Example 3

[0074] Figure 5 A flowchart of a form pagination printing method provided in an embodiment of the present invention; the present invention provides a form pagination printing method, including:

[0075] S100. Parse the flexible form table to generate HTML tags;

[0076] S200. Obtain the data structure information of the flexible form table based on the generated HTML tags;

[0077] S300. Extract the data structure information of each table row (tr) in the flex form table based on the data structure information of the flex form table;

[0078] S400. Extract the data structure information of all cells (td) based on each table row (tr). The td data structure information includes the height value of the td. The height value of the td includes: obtaining the handwritten input information and / or system input information of the cell td. The system input information is the text height calculated based on the font name and font size set by the system, and the handwritten input information is the handwritten height read from the td data structure information. As shown in the figure, because the width of each cell td is fixed, and the td may contain handwritten input information and system input information, the height of the handwritten input information exists in the data structure and can be directly read, thus obtaining the height of each tr table row. If a font is set, the information in the HTML tag is directly read.

[0079] S500. Determine the height value of each table row tr based on the data structure information of all cell td;

[0080] S600. Add the height values ​​of each determined table row tr to obtain the total height value of the flex form;

[0081] S700. Determine whether splitting the print operation is necessary by comparing the calculated total height of the flexible form (table) with the preset page print height.

[0082] A flex form consists of form data, which is composed of `tr` elements, each containing one or more `td` elements. Within a flex form, each `td` can be used to input area data and opinion data.

[0083] like Figure 6 As shown, specifically, step S500 determines the height value of each table row tr based on the data structure information of all cell td, including the following steps:

[0084] S501. Record the height values ​​of all cell td values ​​in the table row tr. Specifically, if a cell td contains both handwritten input and system input, the handwritten and system inputs are set to be entered on separate lines, and the font height values ​​of the handwritten and system inputs are added together to obtain the cell height. Furthermore, handwritten input can include not only fonts but also graphics, etc.

[0085] S502. Compare the height values ​​of all cell td values ​​in the record to obtain the maximum height value;

[0086] S503. Use the maximum height value in the cell as the height value of the current table row tr.

[0087] like Figure 7 As shown, specifically, step S700 compares the calculated total height of the flexible form table with the preset page print height to determine whether it needs to be split for printing, including the following steps:

[0088] S701. Compare and determine the calculated total height value of the flexible form table with the preset page print height value to obtain the determination result;

[0089] S702. If the judgment result is that the total height of the flexible form table is less than or equal to the preset page printing height, then print the flexible form directly;

[0090] S703. If the judgment result is that the total height of the flexible form table is greater than the preset page print height, split the print according to the set print template, such as... Figure 8 As shown, it specifically includes:

[0091] S7031. Set the bottom margin height value for the printed page;

[0092] S7032. Obtain the first page print height value by subtracting the bottom margin height value from the obtained first page print height value;

[0093] S7033. Obtain the sum of the set top and bottom margin height values ​​for the printed page;

[0094] S7034. Subtract the sum of the top and bottom margin heights of the printed page from the preset page print height value to obtain the non-first page print height value;

[0095] S7035. Subtract the first page print height from the total height to obtain the remaining print height. If the remaining print height is less than or equal to the non-first page print height, print directly. If the remaining print height is greater than the non-first page print height, continue to subtract the non-first page print height from the remaining print height until the calculated remaining print height is less than the non-first page print height, then print directly.

[0096] For example, assuming the calculated total height of the flex form is 3000 pixels, and the default page size is A4 paper (compared to the height of A4 paper, which defaults to 1448 pixels), and the top and bottom margins are set to 50 pixels by default during printing: a. If the total height is less than the height of the A4 paper, the flex form will be printed directly; b. If the total height is greater than the height of the A4 paper, the flex form will be split. The specific splitting is as follows:

[0097] Homepage: Starting from height 0, the height of an A4 sheet of paper minus the bottom margin is 1448 pixels - 50 pixels = 1398, which is height 0 pixels - 1398 pixels;

[0098] Page 2: Starting from 1399 pixels, the height value is 1348 pixels, i.e., 1398-2747. Since there is a margin of 50 pixels at the top and bottom, the printing height is 1448-50-50=1348 pixels. At this point, 3000-1398=1602. 1602 is greater than 1348 pixels, so we continue to split it; 1398+1348=2746.

[0099] Page 3: Starting from 2747 pixels, 3000-2747=253. The remaining total height value of 253 is less than 1348, so it is all printed on the third page.

[0100] Therefore, there's a difference when printing the first page and other pages: the first page starts at a height of 0, while subsequent pages start at a height of 50. This is because the flex form design already includes a margin at the top of the first page, so you need to set the margin height value when splitting the printout from the second page onwards.

[0101] The form pagination printing method shown in this embodiment can be used in... Figure 1 The form pagination printing system shown in the embodiment operates on the same principle and achieves the same technical effect, and will not be described again here.

[0102] The present invention also provides a terminal, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the above-described form pagination printing method.

[0103] It should be noted that implementations not shown or described in the accompanying drawings or the main text of the specification are implementations known to those skilled in the art and are not described in detail. Furthermore, the definitions of the elements and methods described above are not limited to the specific structures, shapes, or methods mentioned in the embodiments.

[0104] It should also be noted that this document provides examples of parameters containing specific values, but these parameters need not be exactly equal to the corresponding values, but can approximate the corresponding values ​​within acceptable error tolerances or design constraints. Furthermore, unless specifically described or required to occur in sequence, the order of the above steps is not limited to what is listed above and can be varied or rearranged according to the desired design. Moreover, the above embodiments can be used in combination with each other or with other embodiments based on design and reliability considerations; that is, technical features from different embodiments can be freely combined to form more embodiments.

[0105] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent substitutions, and improvements made to the above embodiments without departing from the scope of the present invention, based on the technical essence of the present invention and within the spirit and principles of the present invention, are all within the protection scope of the present invention.

Claims

1. A method for printing paginated forms, characterized in that, include: S100. Parse the flexible form data to generate the data structure information of the flexible form table; S200. Extract the data structure information of each table row (tr) in the flex form table based on the data structure information of the flex form table; S300. Extract the data structure information of all cells td based on each table row tr; S400. Determine the start and end positions (py values) of the input information in each cell (td) based on the data structure information of all cells (td); S500. Determine the height value of each table row tr based on the data structure information of all cell td, and add the height values ​​of each table row tr to get the total height value of the flexible form; S600. Based on the obtained total height value of the flexible form table, print settings, and the start and end positions of the input information in each cell td, determine whether splitting the print is necessary. Specifically, this includes: S701. Compare and determine the calculated total height value of the flexible form table with the preset page print height value to obtain the determination result; S702. If the judgment result is that the total height of the flexible form table is less than or equal to the preset page printing height, then print the flexible form directly; S703. If the determination result is that the total height of the flexible form table is greater than the preset page print height, print it separately according to the set print template, specifically including: S7031. Set the bottom margin height value for the printed page; S7032. Obtain the first page print height value by subtracting the bottom margin height value from the obtained first page print height value; S7033. Obtain the sum of the set top and bottom margin height values ​​for the printed page; S7034. Subtract the sum of the top and bottom margin heights of the printed page from the preset page print height value to obtain the non-first page print height value; S7035. Subtract the first page print height from the total height to obtain the remaining print height. If the remaining print height is less than or equal to the non-first page print height, print directly. If the remaining print height is greater than the non-first page print height, continue to subtract the non-first page print height from the remaining print height until the calculated remaining print height is less than the non-first page print height, then print directly.

2. The form pagination printing method according to claim 1, characterized in that: Step S400 extracts all cell td data structure information based on each table row tr. The td data structure information includes the height value of handwritten input information and the height value of system input information in the td. This includes: obtaining the handwritten input information and / or system input information of cell td. The system input information is the text height calculated based on the font name and font size set by the system. The handwritten input information is the height of the handwritten input information read from the td data structure information.

3. The form pagination printing method according to claim 2, characterized in that: In step S500, the height value of each table row tr is determined based on the data structure information of all cell td, including the following steps: S501. Record the height value of all cells td in the table row tr; S502. Compare the height values ​​of all cell td values ​​in the record to obtain the maximum height value; S503. Use the maximum height value in the cell as the height value of the current table row tr.

4. The form pagination printing method according to claim 3, characterized in that: S201. Record the height values ​​of all cells td in the table row tr. If the same cell td includes both handwritten input information and system input information, set the handwritten input information and system input information to be entered on separate lines, and add the font height values ​​of the handwritten input information and the font height values ​​of the system input information as the height value of the cell.

5. The form pagination printing method according to claim 1, characterized in that: Step S600 compares the total height of the obtained flexible form table, print settings, and the start and end positions of the input information in each cell td to determine whether splitting the print is necessary. The print settings are set to a preset page print height value, and include the following steps: S601. Compare and determine the calculated total height value of the flexible form table with the preset page print height value to obtain the determination result; S602. If the determination result is that the total height of the flexible form table is less than or equal to the preset page printing height, then the flexible form is printed directly; S603. If the judgment result is that the total height of the flexible form table is greater than the preset page printing height, calculate the end value py of each remaining printing page. If the end value py of the printing page exists between the starting position py value and the ending position py value of the information entered in cell td, then the printing page is printed to the position before the starting position py value.

6. A form pagination printing system, characterized in that, include: The parsing module (1) is used to parse the data structure information of the flexible form table to generate the flexible form data. The acquisition module (2) is used to extract the data structure information of each table row (tr) in the elastic form table based on the data structure information of the elastic form table; The first extraction module (3) is used to extract the data structure information of all cells td based on each table row tr; The determination module (4) is used to determine the start position py value and end position py value of the input information in each cell td based on the data structure information of all cells td; The calculation module (5) is used to determine the height value of each table row tr based on the data structure information of all cells td, and to add the height values ​​of each table row tr to obtain the total height value of the flexible form; The split module (6) is used to determine whether splitting the print operation is necessary by comparing the total height of the obtained elastic form table, the print settings, and the start and end positions of the input information in each cell td. The determining module includes: Recording unit (51) is used to record the height value of all cells td in the table row tr; Comparison unit (52) is used to compare the height values ​​of all cells td in the record to obtain the maximum height value; Processing unit (53) is used to take the maximum height value in the cell as the height value of the current table row tr; The splitting module (6) includes: Judgment unit (71) compares and judges the calculated total height value of the flexible form table with the preset page print height value to obtain the judgment result; The first execution unit (72) is used to directly print the elastic form if the judgment result is that the total height value of the elastic form table is less than or equal to the preset page printing height value. The second execution unit (73) is used to calculate the end value py of each remaining print page when the judgment result is that the total height value of the elastic form table is greater than the preset page printing height value. If the end value py of the print page exists between the starting position py value and the ending position py value of the information input in cell td, then the print page is printed to the position before the starting position py value. The specific steps for splitting the module include: S701. Compare and determine the calculated total height value of the flexible form table with the preset page print height value to obtain the determination result; S702. If the judgment result is that the total height of the flexible form table is less than or equal to the preset page printing height, then print the flexible form directly; S703. If the determination result is that the total height of the flexible form table is greater than the preset page print height, print it separately according to the set print template, specifically including: S7031. Set the bottom margin height value for the printed page; S7032. Obtain the first page print height value by subtracting the bottom margin height value from the obtained first page print height value; S7033. Obtain the sum of the set top and bottom margin height values ​​for the printed page; S7034. Subtract the sum of the top and bottom margin heights of the printed page from the preset page print height value to obtain the non-first page print height value; S7035. Subtract the first page print height from the total height to obtain the remaining print height. If the remaining print height is less than or equal to the non-first page print height, print directly. If the remaining print height is greater than the non-first page print height, continue to subtract the non-first page print height from the remaining print height until the calculated remaining print height is less than the non-first page print height, then print directly.

7. The form pagination printing system according to claim 6, characterized in that: The data structure information of cell td includes handwritten input information and / or system input information. The system input information is the system font height that is read and set, and the handwritten input information is the handwritten font height read from the data structure information of td.

8. A terminal, comprising: At least one processor; And a memory; wherein the memory stores a program executable by the at least one processor, the instructions of which are executed by the at least one processor to enable the at least one processor to perform the form pagination printing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Dynamic form paging printing method and system supporting vector handwriting and pictures

    CN114661255A