Method and device for stamping paging seal in electronic seal system

By using preset pixel offset rules and methods of calculating offset pixels in the electronic seal system, the electronic seal collection is generated and segmented, and the problem of difficult to prevent page numbers from being added or substituted in the prior art is solved, and the integrity and resistance to document are achieved.

CN120068162APending Publication Date: 2025-05-30湖北省楚天云有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411935729.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

When handling multi-page documents, it is difficult to effectively prevent page numbers from being added or substituted, resulting in the inability to guarantee document integrity.

Method used

By using preset horizontal and vertical pixel offset rules in the electronic seal system, the horizontal and vertical offset pixels of each electronic seal are calculated, and the electronic seal collection is generated, and they are divided and added to each page document, ensuring that each page has a stamped electronic seal.

Benefits of technology

After the document is printed, it is possible to ensure that the home page and the last page of the document have electronic seals to prevent the page number from being added or substituted, ensure the integrity of the document and play a role in resisting resistance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120068162A_ABST
    Figure CN120068162A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for stamping a perforation seal in an electronic seal system, and the method for stamping the perforation seal in the electronic seal system comprises the steps: determining the transverse pixel density of an electronic seal for stamping each page of a to-be-stamped document, and calculating to obtain the number of the electronic seals needing to be stamped; according to a preset transverse pixel offset rule, a pixel value between any electronic seal and the first side of the document to be sealed is obtained through calculation; according to a preset longitudinal pixel offset rule, a pixel value between any electronic seal and the first end of the document to be sealed is obtained through calculation; obtaining an electronic seal set based on the transverse offset pixel and the longitudinal offset pixel corresponding to each electronic seal; on the basis of the page number of the to-be-stamped document, the electronic seal set is transversely segmented, and segmented blocks corresponding to all pages of the to-be-stamped document are obtained; and adding each segmentation block to the corresponding page to obtain the document after signature and capping. Page number increase and decrease or content replacement can be prevented, and document integrity is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of split seals, and particularly to a method and device for stamping split seals in an electronic seal system. Background Art

[0002] A split seal refers to a seal stamped at the junction of multiple pages of a document, and when stamping, it should press on the edge seams of each page of the document. The split seal has the function of preventing the addition or deletion of page numbers in the document. Whether there are more or fewer pages can be identified, preventing patching or adding pages for fraud, so as to maintain the integrity of the document. After stamping the split seal, each page of the document should have a part of the seal, and there should be no missing pages. When the document is unfolded as a whole, the split seal can be restored to the original seal. Therefore, it can prevent the content of the document from being replaced and play a role in anti-repudiation.

[0003] An electronic seal is a data including the holder's information and graphical content signed by the producer, which can be used to sign electronic documents. It simulates the use of split seals in traditional paper documents. The electronic seal uses digital technology to embed a visual mark or semi-transparent layer on each page or specific position of the electronic document. When the document is correctly sorted and unfolded, these marks can be spliced into a complete graph or information, visually simulating the effect of a traditional split seal to ensure the integrity of the document and prevent the addition or deletion of page numbers or the replacement of content. Summary of the Invention

[0004] In order to prevent the addition or deletion of page numbers or the replacement of content and ensure the integrity of the document, the present invention provides a method and device for stamping split seals in an electronic seal system.

[0005] In a first aspect, an embodiment of the present invention provides a method for stamping a split seal in an electronic seal system, including:

[0006] Based on the number of pages of the document to be stamped, the preset pixel attributes of the electronic seal, and the preset minimum horizontal pixel density threshold, determine the horizontal pixel density of the electronic seal to be stamped on each page of the document to be stamped, and calculate the number of electronic seals required to be stamped;

[0007] According to the preset horizontal pixel offset rule, based on the number of pages of the document to be stamped, the horizontal pixel density, the pixel attributes of the electronic seal, and the number of electronic seals, calculate the pixel value between any electronic seal and the first side of the document to be stamped as the horizontal offset pixel corresponding to the electronic seal; wherein, the preset horizontal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first side of the document to be stamped, and the outer contour line of the last electronic seal is flush with the second side of the document to be stamped;

[0008] According to the preset vertical pixel offset rule, based on the height of the document to be stamped, the printing resolution of the printing device, the preset electronic seal pixel attributes, and the number of the electronic seals, calculate the pixel value between any one of the electronic seals and the first end of the document to be stamped as the vertical offset pixel corresponding to the electronic seal; wherein, the preset vertical pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first end of the document to be stamped, and the outer contour line of the last electronic seal is flush with the second end of the document to be stamped;

[0009] Based on the horizontal offset pixel and the vertical offset pixel corresponding to each of the electronic seals, obtain an electronic seal set;

[0010] Based on the number of pages of the document to be stamped, horizontally divide the electronic seal set to obtain a divided block corresponding to each page of the document to be stamped;

[0011] Add each of the divided blocks to the corresponding page to obtain the stamped document.

[0012] Optionally, the preset electronic seal pixel attributes at least include the width pixel value;

[0013] The calculating, according to the preset horizontal pixel offset rule, the pixel value between any one electronic seal and the first side of the document to be stamped as the horizontal offset pixel corresponding to the electronic seal based on the number of pages of the document to be stamped, the horizontal pixel density, the electronic seal pixel attributes, and the number of the electronic seals includes:

[0014] According to the preset horizontal pixel offset rule, based on the number of pages of the document to be stamped and the horizontal pixel density, calculate the product of the number of pages of the document to be stamped and the horizontal pixel density as the first product value;

[0015] Based on the first product value and the width pixel value, calculate the difference between the first product value and the width pixel value as the horizontal displacement pixel;

[0016] Based on the horizontal displacement pixel and the number of the electronic seals, calculate the pixel value between any one electronic seal and the first side of the document to be stamped as the horizontal offset pixel corresponding to the electronic seal.

[0017] Optionally, the method for stamping a continuous seal in the electronic seal system further includes: calculating the horizontal offset pixel according to the following formula:

[0018] X m =(m - 1)×X'÷(n - 1)

[0019] In the above formula, Xm represents the horizontal offset pixels of the m-th electronic seal; X' represents the horizontal displacement pixels; n represents the number of electronic seals.

[0020] Optionally, the preset electronic seal pixel attributes at least include the height pixel value;

[0021] Based on the preset vertical pixel offset rule, based on the height of the document to be stamped obtained, the printing resolution of the printing device, the preset electronic seal pixel attributes, and the number of electronic seals, calculating the pixel value between any one of the electronic seals and the first end of the document to be stamped as the vertical offset pixel corresponding to the electronic seal, includes:

[0022] Obtaining the height of the document to be stamped and the printing resolution of the printing device;

[0023] According to the preset vertical pixel offset rule, based on the height of the document to be stamped and the printing resolution of the printing device, calculating the product of the height of the document to be stamped and the printing resolution of the printing device as the second product value;

[0024] Based on the second product value and the height pixel value, calculating the difference between the second product value and the height pixel value as the vertical displacement pixel;

[0025] Based on the vertical displacement pixel and the number of electronic seals, calculating the pixel value between any one of the electronic seals and the first end of the document to be stamped as the vertical offset pixel corresponding to the electronic seal; wherein, the vertical offset pixel is calculated according to the following formula:

[0026] Y m =(m - 1)×Y'÷(n - 1)

[0027] In the above formula, Y m represents the vertical offset pixels of the m-th electronic seal; Y' represents the vertical displacement pixels; n represents the number of electronic seals.

[0028] Optionally, the preset electronic seal pixel attributes at least include the width pixel value;

[0029] Based on the number of pages of the document to be stamped obtained, the preset electronic seal pixel attributes, and the preset minimum horizontal pixel density threshold, determining the horizontal pixel density of the electronic seal to be signed and stamped on each page of the document to be stamped, and calculating the number of electronic seals required to be signed and stamped, includes:

[0030] Obtaining the number of pages and the width pixel value of the document to be stamped;

[0031] Determine the horizontal pixel density of the electronic seal to be affixed to each page of the document to be sealed based on the number of pages of the document to be sealed, the width pixel value, and a preset minimum horizontal pixel density threshold;

[0032] Calculate the number of electronic seals to be affixed based on the horizontal pixel density, the number of pages of the document to be sealed, and the width pixel value.

[0033] Optionally, the method for affixing a seam seal in the electronic seal system further includes: determining the horizontal pixel density of the electronic seal to be affixed to each page of the document to be sealed according to the following formula;

[0034]

[0035] In the above formula, A represents the number of pages of the document to be sealed; ρ x represents the horizontal pixel density; a represents the width pixel value; C represents the preset minimum horizontal pixel density threshold;

[0036] And, calculate the number of electronic seals to be affixed according to the following formula:

[0037] n = A × ρ x ÷ a

[0038] In the above formula, n represents the number of electronic seals.

[0039] In a second aspect, an embodiment of the present invention further provides a device for affixing a seam seal in an electronic seal system, including:

[0040] A first calculation module, configured to determine the horizontal pixel density of the electronic seal to be affixed to each page of the document to be sealed based on the number of pages of the document to be sealed obtained, the preset pixel attributes of the electronic seal, and a preset minimum horizontal pixel density threshold, and calculate the number of electronic seals to be affixed;

[0041] A second calculation module, configured to calculate, according to a preset horizontal pixel offset rule, the pixel value between any electronic seal and the first side of the document to be sealed based on the number of pages of the document to be sealed, the horizontal pixel density, the pixel attributes of the electronic seal, and the number of electronic seals, as the horizontal offset pixel corresponding to the electronic seal; wherein, the preset horizontal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first side of the document to be sealed, and the outer contour line of the last electronic seal is flush with the second side of the document to be sealed;

[0042] A third computing module, configured to calculate, according to a preset vertical pixel offset rule, a pixel value between any one of the electronic seals and a first end of the document to be sealed, based on the height of the document to be sealed obtained, the printing resolution of the printing device, the preset electronic seal pixel attributes, and the number of the electronic seals, as the vertical offset pixels corresponding to the electronic seal; wherein, the preset vertical pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first end of the document to be sealed, and the outer contour line of the last electronic seal is flush with the second end of the document to be sealed;

[0043] A merging module, configured to obtain an electronic seal set based on the horizontal offset pixels and the vertical offset pixels corresponding to each of the electronic seals;

[0044] A splitting module, configured to horizontally split the electronic seal set based on the number of pages of the document to be sealed, to obtain split blocks corresponding to each page of the document to be sealed;

[0045] A stamping module, configured to add each of the split blocks to the corresponding page to obtain a stamped document.

[0046] In a third aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method for affixing a split seal in the electronic seal system described in the first aspect is implemented.

[0047] In a fourth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the method for affixing a split seal in the electronic seal system described in the first aspect is implemented.

[0048] In a fifth aspect, an embodiment of the present invention further provides a computer program product including instructions, and when the computer program product runs on a computer device, the computer device is enabled to execute the method for affixing a split seal in the electronic seal system described in the first aspect.

[0049] The beneficial effects of the above technical solutions provided in the embodiments of the present invention at least include:

[0050] An embodiment of the present invention provides a method for affixing a split seal in an electronic seal system. By presetting a horizontal pixel offset rule and a vertical pixel offset rule, it is ensured that the first page and the last page of the document to be sealed are both sealed with electronic seals, preventing the phenomenon of adding or deleting page numbers or replacing content from the first page or the last page of the document, so as to ensure the integrity of the document. At the same time, the outer contour lines of the first electronic seal and the last electronic seal are both aligned with the corresponding boundaries of the document to be sealed, ensuring the standardization and consistency of the seal.

[0051] By calculating the horizontal offset pixels and vertical offset pixels corresponding to each electronic seal, the offset pixel size of each electronic seal is determined. Based on the offset pixel sizes of each electronic seal, all the electronic seals are combined and drawn to generate an electronic seal set. And by setting the horizontal pixel offset rule and the vertical pixel offset rule, the uniqueness of the combination order of all the electronic seals is ensured. The signed document is printed. Due to the uniqueness of the combination order of all the electronic seals, the printed paper document can be combined into a continuous seal pattern that is exactly the same as the order of the electronic document according to the continuous seal pattern on each page, preventing the document from being inserted from the front, middle or end, and also preventing pages from being removed from the document. According to the characteristic that the electronic seal itself has a digital signature, it also ensures that the content of the document page will not be tampered with, guarantees the integrity of the document, and plays a role in anti-repudiation.

[0052] Other features and advantages of the present invention will be described in the following specification, and in part will be obvious from the specification, or will be understood by implementing the present invention. The objectives and other advantages of the present invention can be realized and obtained by the structure specifically pointed out in the written specification and the drawings.

[0053] The technical solutions of the present invention will be further described in detail below with reference to the drawings and embodiments. Description of the Drawings

[0054] The drawings are used to provide a further understanding of the present invention, and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention, and do not constitute a limitation to the present invention. In the drawings:

[0055] Figure 1 is a flowchart of the method for affixing a continuous seal in the electronic seal system provided in the embodiment of the present invention;

[0056] Figure 2 is an example diagram of the electronic seal provided in the embodiment of the present invention;

[0057] Figure 3 is an example diagram of the first electronic signature method provided in the embodiment of the present invention;

[0058] Figure 4 is an example diagram of the document to be sealed provided in the embodiment of the present invention;

[0059] Figure 5 is a schematic diagram of the device for affixing a continuous seal in the electronic seal system provided in the embodiment of the present invention. Detailed Embodiments

[0060] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be fully conveyed to those skilled in the art.

[0061] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", "far", "near", "front", "rear", etc. is based on the orientation or positional relationship shown in the drawings. These are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and should not be construed as indicating or implying relative importance.

[0062] In the description of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "mounted", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

[0063] The inventor found that for electronic documents that need to be stamped with a split seal, when the number of pages of the electronic document exceeds the pixel density of the electronic seal picture (for example, the electronic document has 200 pages and the size of the electronic seal is 150×150 pixels), it is only possible to repeatedly stamp additional electronic signatures on the exceeded pages that cannot be pieced together to form a complete seal pattern, and only 1 to 2 pixels of width can be covered on a single page. The effect after printing the electronic document deviates from the user's expectations. At the same time, since there may be the same partial seal patterns on multiple pages in this way, when swapping these pages, the user can neither identify them nor easily confirm the correct page order when stamping by splicing. In this case, the split seal stamping method of the electronic seal cannot intuitively play the role of ensuring the integrity of the document and anti-repudiation after the document is printed.

[0064] To solve the above problems, through research and development, the inventor proposed a method and device for stamping a split seal in an electronic seal system to ensure the uniqueness of the splicing order of the printed paper document, thereby preventing the document from being inserted from the front, middle, or tail, ensuring the integrity of the document and playing the role of anti-repudiation.

[0065] To facilitate a better understanding of the content of the embodiments of the present invention, the following provides explanations of the proprietary terms that appear in the following embodiments.

[0066] Split seal: A split seal refers to a seal affixed at the junction of multiple pages of a document. When stamping, it should press on the edge seams of each page of the document. The split seal serves to prevent the addition or deletion of page numbers within the document. Whether pages are missing or extra can be identified, preventing forgery through patching or adding pages, thus maintaining the integrity of the document. After affixing the split seal, each page of the document should have a part of the seal, and there should be no missing pages. When the entire document is unfolded, the split seal can be restored to the original seal. Therefore, it can prevent the replacement of the document content and play a role in anti-repudiation.

[0067] Electronic seal: A data including the holder's information and graphical content signed by the producer, which can be used to sign electronic documents.

[0068] Electronic signature: The process of using an electronic seal to sign an electronic document.

[0069] Pixel density: Data used to represent the size of an electronic image, with the unit of pixel. The minimum unit is 1 pixel and it cannot be further divided.

[0070] Print resolution: The resolution used by devices with printing functions such as printers when printing an electronic document. Common values are 72 dpi, and the resolution of a high-definition printer may reach 300 dpi.

[0071] Embodiment 1

[0072] Refer to Figure 1 , this embodiment proposes a method for affixing a split seal in an electronic seal system, including the following steps:

[0073] Step S1: Based on the number of pages of the document to be sealed, the preset pixel attributes of the electronic seal, and the preset minimum horizontal pixel density threshold, determine the horizontal pixel density of the electronic seal to be affixed to each page of the document to be sealed, and calculate the number of electronic seals required to be affixed;

[0074] Step S2: According to the preset horizontal pixel offset rule, based on the number of pages of the document to be sealed, the horizontal pixel density, the preset pixel attributes of the electronic seal, and the number of electronic seals, calculate the pixel value between any electronic seal and the first side of the document to be sealed as the horizontal offset pixel corresponding to the electronic seal;

[0075] Step S3: According to the preset vertical pixel offset rule, based on the height of the document to be sealed obtained, the print resolution of the printing device, the preset pixel attributes of the electronic seal, and the number of electronic seals, calculate the pixel value between any electronic seal and the first end of the document to be sealed as the vertical offset pixel corresponding to the electronic seal;

[0076] Step S4: Obtain an electronic seal set based on the horizontal offset pixels and vertical offset pixels corresponding to each electronic seal.

[0077] Step S5: Horizontally divide the electronic seal set based on the number of pages of the document to be stamped, and obtain the divided blocks corresponding to each page of the document to be stamped.

[0078] Step S6: Add each divided block to the corresponding page to obtain the stamped document.

[0079] Refer to Figure 2 , which is an example diagram of an electronic seal. The pixel value in the horizontal direction of the electronic seal (i.e., the width of the seal) is used as the width pixel value, and the pixel value in the vertical direction of the electronic seal (i.e., the height of the seal) is used as the height pixel value. That is, the preset electronic seal pixel attributes include the width pixel value a and the height pixel value b. The system has pre-set the electronic seal pixel attributes, and the electronic seal pixel attributes of different electronic seals are fixed. According to the style of the electronic seal selected by the user, the system automatically determines the corresponding electronic seal pixel attributes of the electronic seal.

[0080] This embodiment provides two ways of electronic signature and seal. Refer to Figure 3 , which is the first way of electronic signature and seal. The electronic seals are arranged evenly from the lower left corner to the upper right corner of the document to be stamped. The first electronic seal is located at the lower left corner of the document to be stamped, that is, Figure 3 the first seal marked in Figure 3 . The last electronic seal is located at the upper right corner of the document to be stamped, that is, Figure 3 the nth seal marked in Figure 3 . The first side of the document to be stamped mentioned below is the Figure 3 left side of the document to be stamped in Figure 3 . The second side of the document to be stamped is the

[0081] right side of the document to be stamped in

[0082] The second way of electronic signature and seal is as follows: The electronic seals are arranged evenly from the lower right corner to the upper left corner of the document to be stamped. The first electronic seal is located at the lower right corner of the document to be stamped, and the last electronic seal is located at the upper left corner of the document to be stamped. The first side of the document to be stamped mentioned below is the right side of the document to be stamped, and the second side of the document to be stamped is the left side of the document to be stamped. The first end of the document to be stamped is the lower end of the document to be stamped, and the second end of the document to be stamped is the upper end of the document to be stamped.

[0082] Both electronic signature seals preset horizontal pixel offset rules and vertical pixel offset rules. The preset horizontal pixel offset rules include that the outer contour line of the first electronic seal is flush with the first side of the document to be sealed, and the outer contour line of the last electronic seal is flush with the second side of the document to be sealed. The preset vertical pixel offset rules include that the outer contour line of the first electronic seal is flush with the first end of the document to be sealed, and the outer contour line of the last electronic seal is flush with the second end of the document to be sealed. By presetting the horizontal pixel offset rules and vertical pixel offset rules, it is ensured that the first page and the last page of the document to be sealed are both sealed with electronic seals, preventing the phenomenon of adding or deleting page numbers or replacing content from the first page or the last page of the document, so as to ensure the integrity of the document. At the same time, the outer contour lines of the first electronic seal and the last electronic seal are both aligned with the corresponding boundaries of the document to be sealed, ensuring the standardization and consistency of the signature seal.

[0083] In actual use, the system can provide a pop-up window or interface to list two ways of electronic signature seals for the user to choose. A short description or illustration can be attached beside each of the above ways to help the user understand its layout characteristics. The user determines the electronic signature seal method by clicking or checking. After the user determines the electronic signature seal method, the first side of the document to be sealed, the second side of the document to be sealed and the corresponding horizontal pixel offset rules and vertical pixel offset rules are all pre-configured with the electronic signature seal method, and the user does not need to confirm again, which can greatly simplify the operation process and improve the user's satisfaction and efficiency.

[0084] In order to more clearly explain the method of affixing the overlapping seal in the above electronic seal system, the following will be described in detail in combination with each step.

[0085] In the above step S1, the specific process of determining the horizontal pixel density of the electronic seal to be signed and sealed on each page of the document to be sealed and calculating the number of electronic seals to be signed and sealed can include the following steps:

[0086] Step S11: Obtain the number of pages and the width pixel value of the document to be sealed.

[0087] In the above step S11, in actual application, the user inputs the number of pages of the document to be sealed through the system interface, or the system automatically obtains the number of pages by reading the metadata of the document to be sealed. Refer to Figure 4 , as an example of the document to be sealed, A shown in the figure is the number of pages of the document to be sealed.

[0088] Step S12: Based on the number of pages, the width pixel value of the document to be sealed and the preset minimum horizontal pixel density threshold, determine the horizontal pixel density of the electronic seal to be signed and sealed on each page of the document to be sealed according to the following formula:

[0089]

[0090] In the above formula (1), A represents the number of pages of the document to be stamped; ρ x represents the horizontal pixel density; a represents the width pixel value; C represents the preset minimum horizontal pixel density threshold.

[0091] In the above step S12, the preset minimum horizontal pixel density threshold represents the minimum pixel density of the electronic seal stamped on each page of the document to ensure the clarity and readability of the electronic seal. In actual use, the system pre-sets the default value of the minimum horizontal pixel density threshold. If the user needs to modify this value, the user can modify the value of the minimum horizontal pixel density threshold in the corresponding function area of the system interface. By setting ρ x ≥2×a÷A, that is, to ensure at least 2 electronic seals, so as to ensure that at least one page will cover part of the patterns of the front and back two electronic seals at the joint of two adjacent electronic seals, avoiding the situation that some pages are not covered by the electronic seal, and then leading to the situation of inserting or adding pages in the document to be stamped, thus effectively ensuring the integrity of the document.

[0092] Through the above formula (1), the minimum value of the horizontal pixel density (that is, the pixel value occupied by the electronic seal in the horizontal direction on each page of the document to be stamped) can be obtained. In actual use, the system can provide a pop-up window or interface for the user to adjust the horizontal pixel density according to actual needs; if the user does not adjust, the system defaults to use the calculated minimum value of the horizontal pixel density as the finally determined horizontal pixel density.

[0093] Step S13: Based on the horizontal pixel density, the number of pages of the document to be stamped, and the width pixel value, calculate the number of electronic seals to be stamped according to the following formula:

[0094] n = A×ρ x ÷a (2)

[0095] In the above formula (2), n represents the number of electronic seals; A represents the number of pages of the document to be stamped; a represents the width pixel value.

[0096] In the above step S2, the calculation process of the horizontal offset pixels corresponding to the electronic seal specifically includes the following steps:

[0097] Step S21: According to the preset horizontal pixel offset rule, based on the number of pages of the document to be stamped and the horizontal pixel density, calculate the product of the number of pages of the document to be stamped and the horizontal pixel density as the first product value.

[0098] In the above step S21, the first product value calculated according to the product of the number of pages of the document to be stamped and the horizontal pixel density represents the total pixel value of the entire document to be stamped in the horizontal direction.

[0099] Step S22: Based on the first product value and the width pixel value, calculate the difference between the first product value and the width pixel value as the horizontal displacement pixel. The horizontal displacement pixel can be expressed by the following formula (3):

[0100] X' = A × ρ x -a(3)

[0101] In the above formula (3), X' represents the horizontal displacement pixel; A represents the number of pages of the document to be stamped; ρ x represents the horizontal pixel density; a represents the width pixel value.

[0102] In the above step S22, refer to Figure 3 , due to the preset horizontal pixel offset rule, the outer contour line of the last electronic seal is flush with the second side of the document to be stamped. The horizontal displacement pixel represents the pixel value between the last electronic seal and the first side of the first document to be stamped. By determining the horizontal displacement pixel of the last electronic seal, the horizontal offset pixels of other electronic seals are calculated based on this.

[0103] Step S23: Refer to Figure 3 , based on the horizontal displacement pixel and the number of electronic seals, calculate the pixel value between any electronic seal and the first side of the document to be stamped as the horizontal offset pixel corresponding to the electronic seal; among them, the horizontal offset pixel is calculated according to the following formula:

[0104] X m = (m - 1) × X' ÷ (n - 1)(4)

[0105] In the above formula (4), X m represents the horizontal offset pixel of the mth electronic seal; n represents the number of electronic seals.

[0106] In the above step S3, the calculation process of the vertical offset pixel corresponding to the electronic seal specifically includes the following steps:

[0107] Step S31: Obtain the height of the document to be stamped and the printing resolution of the printing device.

[0108] In the above step S31, refer to Figure 4 , the height of the document to be stamped is the longitudinal length of the document to be stamped. In actual application, the user inputs the height of the document to be stamped through the system interface, or the system automatically obtains it by reading the metadata of the document to be stamped. The system has pre-set the printing resolutions of common printing devices, and these settings can be configured according to the model of the device and the specifications of the manufacturer. Of course, the user can select the printing device in the system interface, and the system will automatically load its printing resolution according to the selected device.

[0109] Step S32: According to the preset vertical pixel offset rule, based on the height of the document to be stamped and the printing resolution of the printing device, calculate the product of the height of the document to be stamped and the printing resolution of the printing device as the second product value.

[0110] In the above step S32, the second product value calculated based on the product of the height of the document to be stamped and the printing resolution of the printing device represents the total pixel value of the entire document to be stamped in the vertical direction.

[0111] Step S33: Based on the second product value and the height pixel value, calculate the difference between the second product value and the height pixel value as the vertical displacement pixel. The vertical displacement pixel can be expressed by the following formula (5):

[0112] Y' = (B × R) - b (5)

[0113] In the above formula (5), Y' represents the vertical displacement pixel; B represents the height of the document to be stamped; R represents the printing resolution of the printing device; b represents the height pixel value.

[0114] In the above step S33, referring to Figure 3 , due to the preset vertical pixel offset rule, the outer contour line of the last electronic seal is flush with the second end of the document to be stamped. The vertical displacement pixel represents the pixel value between the last electronic seal and the first end of the first document to be stamped. By determining the vertical displacement pixel of the last electronic seal, the vertical offset pixels of other electronic seals are calculated based on this.

[0115] Step S34: Referring to Figure 3 , based on the vertical displacement pixel and the number of electronic seals, calculate the pixel value between any electronic seal and the first end of the document to be stamped as the vertical offset pixel corresponding to the electronic seal. Among them, the vertical offset pixel is calculated according to the following formula:

[0116] Y m = (m - 1) × Y' ÷ (n - 1) (6)

[0117] In the above formula (6), Y m represents the vertical offset pixel of the mth electronic seal; Y' represents the vertical displacement pixel; n represents the number of electronic seals.

[0118] In the above step S4, based on the horizontal offset pixel and the vertical offset pixel corresponding to each electronic seal, determine the offset pixel size (X m , Y m ) of each electronic seal, and based on the offset pixel size of each electronic seal, piece together and draw all the electronic seals to generate an electronic seal set. The width and height pixel density of this electronic seal set is (A × ρ x , B × R).

[0119] In the above step S5, based on the determined number of pages of the document to be stamped, the electronic seal set is evenly horizontally divided to obtain divided blocks corresponding to each page of the document to be stamped. Refer to Figure 3 , the area between adjacent vertical dotted lines represents a divided block, and the width and height pixel density of the divided block is (ρ x , B×R). It should be noted that Figure 3 the vertical dotted lines in

[0120] are only drawn for the convenience of identifying the divided blocks, and these vertical dotted lines will not be displayed in the actual stamped document.

[0121] The method of this embodiment can be effectively applied to the situation where the number of document pages is very large, even exceeding the width pixel value of the electronic seal. Since the minimum horizontal pixel density threshold is defined, that is, the horizontal pixel density of the electronic seal stamped on each page of the document cannot be less than this minimum horizontal pixel density threshold, it is ensured that the seam pattern on each page of the document will not be too small to be noticed by the naked eye, ensuring the clarity of the seam pattern and facilitating the verification by piecing together in the paper document.

[0122] Embodiment 2

[0123] Based on the same inventive concept, refer to Figure 5 , this embodiment provides a device for stamping a seam seal in an electronic seal system, including:

[0124] A first calculation module 101, configured to determine the horizontal pixel density of the electronic seal to be stamped on each page of the document to be stamped based on the obtained number of pages of the document to be stamped, the preset electronic seal pixel attributes, and the preset minimum horizontal pixel density threshold, and calculate the number of electronic seals to be stamped;

[0125] The second calculation module 102 is configured to calculate, according to a preset horizontal pixel offset rule, the pixel value between any electronic seal and the first side of the document to be sealed, based on the number of pages of the document to be sealed, the horizontal pixel density, the pixel attributes of the electronic seal, and the number of electronic seals, as the horizontal offset pixels corresponding to the electronic seal; wherein, the preset horizontal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first side of the document to be sealed, and the outer contour line of the last electronic seal is flush with the second side of the document to be sealed;

[0126] The third calculation module 103 is configured to calculate, according to a preset vertical pixel offset rule, the pixel value between any electronic seal and the first end of the document to be sealed, based on the height of the document to be sealed obtained, the printing resolution of the printing device, the preset pixel attributes of the electronic seal, and the number of electronic seals, as the vertical offset pixels corresponding to the electronic seal; wherein, the preset vertical pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first end of the document to be sealed, and the outer contour line of the last electronic seal is flush with the second end of the document to be sealed;

[0127] The merging module 104 is configured to obtain an electronic seal set based on the horizontal offset pixels and the vertical offset pixels corresponding to each electronic seal;

[0128] The splitting module 105 is configured to horizontally split the electronic seal set based on the number of pages of the document to be sealed, to obtain split blocks corresponding to each page of the document to be sealed;

[0129] The stamping module 106 is configured to add each split block to the corresponding page to obtain the stamped document.

[0130] The device for stamping a continuous seal in the electronic seal system provided by the embodiments of the present invention has a similar implementation principle and technical effect to those of Embodiment 1, which will not be elaborated here.

[0131] Embodiment 3

[0132] Based on the same inventive concept, an embodiment of the present application also proposes a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the method for stamping a continuous seal in the electronic seal system as in Embodiment 1.

[0133] The computer-readable storage medium may be included in the device / device described in the above embodiments; or it may exist alone without being assembled into the device / device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to Embodiment 1 of the present invention is implemented.

[0134] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present invention, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0135] Embodiment 4

[0136] Based on the same inventive concept, an embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the method of affixing a split seal in the electronic seal system in Embodiment 1.

[0137] Embodiment 5

[0138] Based on the same inventive concept, an embodiment of the present application provides a computer program product containing instructions. When the computer program product runs on a computer device, it causes the computer device to execute the method of affixing a split seal in the electronic seal system in Embodiment 1.

[0139] The principles of solving problems by the above-mentioned device, client, medium, and related equipment in the embodiments of the present invention are similar to those of the foregoing method. Therefore, the implementation thereof can refer to the implementation of the foregoing method, and the repeated parts will not be elaborated.

[0140] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0141] The present invention is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementation in the processFigure 1 one process or multiple processes and / or blocks Figure 1 a device for the functions specified in one block or multiple blocks.

[0142] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, and the instruction device implements the processes Figure 1 one process or multiple processes and / or blocks Figure 1 the functions specified in one block or multiple blocks.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide for implementing the processes Figure 1 one process or multiple processes and / or blocks Figure 1 the steps of the functions specified in one block or multiple blocks.

[0144] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. The present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.

Claims

1. A method for stamping a saddle seal in an electronic seal system, characterized in that: include: Based on the acquired number of pages of the document to be stamped, the preset electronic seal pixel attributes and the preset minimum horizontal pixel density threshold, determine the horizontal pixel density of the electronic seal to be stamped on each page of the document to be stamped, and calculate the required number of electronic seals to be stamped; According to a preset horizontal pixel offset rule, based on the number of pages of the document to be stamped, the horizontal pixel density, the electronic seal pixel attribute and the number of electronic seals, a pixel value between any electronic seal and the first side of the document to be stamped is calculated as the horizontal offset pixel corresponding to the electronic seal; wherein the preset horizontal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first side of the document to be stamped, and the outer contour line of the last electronic seal is flush with the second side of the document to be stamped; According to a preset longitudinal pixel offset rule, based on the acquired height of the document to be stamped and the print resolution of the printing device, the preset electronic seal pixel attribute and the number of electronic seals, the pixel value between any of the electronic seals and the first end of the document to be stamped is calculated as the longitudinal offset pixel corresponding to the electronic seal; wherein the preset longitudinal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first end of the document to be stamped, and the outer contour line of the last electronic seal is flush with the second end of the document to be stamped; Based on the horizontal offset pixels and the vertical offset pixels corresponding to each electronic seal, an electronic seal set is obtained; Based on the number of pages of the document to be stamped, the electronic seal set is horizontally divided to obtain a segmented block corresponding to each page of the document to be stamped; Each of the segmented blocks is added to the corresponding page to obtain a signed document.

2. The method for stamping a saddle seal in an electronic seal system as claimed in claim 1, characterized in that: The preset electronic seal pixel attributes at least include a width pixel value; The step of calculating, according to a preset horizontal pixel offset rule, the pixel value between any electronic seal and the first side of the document to be stamped, based on the number of pages of the document to be stamped, the horizontal pixel density, the electronic seal pixel attribute and the number of electronic seals, as the horizontal offset pixel corresponding to the electronic seal, comprises: According to a preset horizontal pixel offset rule, based on the number of pages of the document to be stamped and the horizontal pixel density, the product of the number of pages of the document to be stamped and the horizontal pixel density is calculated as a first product value; Based on the first product value and the width pixel value, a difference between the first product value and the width pixel value is calculated as a horizontal displacement pixel; Based on the lateral displacement pixels and the number of electronic seals, the pixel value between any electronic seal and the first side of the document to be stamped is calculated as the lateral displacement pixel corresponding to the electronic seal.

3. The method for stamping a saddle seal in an electronic seal system as claimed in claim 2, characterized in that: Also includes: The horizontal offset pixels are calculated according to the following formula: X m =(m-1)×X'÷(n-1) In the above formula, X m represents the horizontal offset pixel of the mth electronic seal; X' represents the horizontal displacement pixel; n represents the number of electronic seals.

4. The method for stamping a saddle seal in an electronic seal system according to any one of claims 1 to 3, characterized in that: The preset electronic seal pixel attributes at least include a height pixel value; The step of calculating, according to a preset longitudinal pixel offset rule, a pixel value between any of the electronic seals and the first end of the document to be stamped, as the longitudinal offset pixel corresponding to the electronic seal, based on the acquired height of the document to be stamped and the printing resolution of the printing device, the preset electronic seal pixel attribute, and the number of electronic seals, comprises: Obtaining the height of the document to be stamped and the printing resolution of the printing device; According to a preset longitudinal pixel offset rule, based on the height of the document to be stamped and the printing resolution of the printing device, the product of the height of the document to be stamped and the printing resolution of the printing device is calculated as a second product value; Based on the second product value and the height pixel value, a difference between the second product value and the height pixel value is calculated as a vertical displacement pixel; Based on the longitudinal displacement pixels and the number of electronic seals, the pixel value between any of the electronic seals and the first end of the document to be stamped is calculated as the longitudinal displacement pixel corresponding to the electronic seal; wherein the longitudinal displacement pixel is calculated according to the following formula: Y m =(m-1)×Y'÷(n-1) In the above formula, Y m represents the longitudinal offset pixel of the mth electronic seal; Y' represents the longitudinal displacement pixel; n represents the number of electronic seals.

5. The method for affixing a saddle seal in an electronic seal system as claimed in claim 1, characterized in that: The preset electronic seal pixel attributes at least include a width pixel value; The method of determining the horizontal pixel density of the electronic seal to be stamped on each page of the document to be stamped based on the number of pages of the document to be stamped, the preset electronic seal pixel attributes and the preset minimum horizontal pixel density threshold, and calculating the number of electronic seals required to be stamped, includes: Get the page number and width pixel value of the document to be stamped; Determine the horizontal pixel density of the electronic seal to be stamped on each page of the document to be stamped based on the number of pages of the document to be stamped, the width pixel value and a preset minimum horizontal pixel density threshold; The number of electronic seals required to be signed is calculated based on the horizontal pixel density, the number of pages of the document to be stamped and the width pixel value.

6. The method for affixing a saddle seal in an electronic seal system as claimed in claim 5, characterized in that: Also includes: Determine the horizontal pixel density of the electronic seal stamped on each page of the document to be stamped according to the following formula; In the above formula, A represents the number of pages of the document to be stamped; ρ x represents the horizontal pixel density; a represents the width pixel value; C represents the preset minimum horizontal pixel density threshold; And, calculate the number of electronic seals required according to the following formula: n=A×ρ x ÷a In the above formula, n represents the number of electronic seals.

7. A device for stamping a saddle seal in an electronic seal system, characterized in that: include: A first calculation module is used to determine the horizontal pixel density of the electronic seal to be stamped on each page of the document to be stamped based on the acquired number of pages of the document to be stamped, the preset electronic seal pixel attributes and the preset minimum horizontal pixel density threshold, and calculate the required number of electronic seals to be stamped; A second calculation module is used to calculate the pixel value between any electronic seal and the first side of the document to be stamped as the horizontal offset pixel corresponding to the electronic seal according to a preset horizontal pixel offset rule, based on the number of pages of the document to be stamped, the horizontal pixel density, the electronic seal pixel attribute and the number of electronic seals; wherein the preset horizontal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first side of the document to be stamped, and the outer contour line of the last electronic seal is flush with the second side of the document to be stamped; A third calculation module is used to calculate the pixel value between any electronic seal and the first end of the document to be stamped as the longitudinal offset pixel corresponding to the electronic seal according to a preset longitudinal pixel offset rule, based on the acquired height of the document to be stamped and the printing resolution of the printing device, the preset electronic seal pixel attribute and the number of electronic seals; wherein the preset longitudinal pixel offset rule includes that the outer contour line of the first electronic seal is flush with the first end of the document to be stamped, and the outer contour line of the last electronic seal is flush with the second end of the document to be stamped; A merging module, used for obtaining an electronic seal set based on the horizontal offset pixels and the vertical offset pixels corresponding to each of the electronic seals; A segmentation module, used for horizontally segmenting the electronic seal set based on the number of pages of the document to be stamped, to obtain segmentation blocks corresponding to each page of the document to be stamped; The signing and capping module is used to add each of the segmented blocks to the corresponding page to obtain a signed and capped document.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for stamping a saddle seal in an electronic seal system as described in any one of claims 1 to 6 is implemented.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for stamping a perforated seal in an electronic seal system according to any one of claims 1 to 6 is implemented.

10. A computer program product comprising instructions, which, when executed on a computer device, enables the computer device to execute the method for affixing a saddle seal in an electronic seal system as claimed in any one of claims 1 to 6.