CN113553798B - Seal insertion method and device, electronic equipment and storage medium - Google Patents
Seal insertion method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN113553798B CN113553798B CN202010329209.8A CN202010329209A CN113553798B CN 113553798 B CN113553798 B CN 113553798B CN 202010329209 A CN202010329209 A CN 202010329209A CN 113553798 B CN113553798 B CN 113553798B
- Authority
- CN
- China
- Prior art keywords
- stamp
- text content
- seal
- height
- content
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012966 insertion method Methods 0.000 title description 7
- 238000003780 insertion Methods 0.000 claims abstract description 85
- 230000037431 insertion Effects 0.000 claims abstract description 85
- 238000000034 method Methods 0.000 claims abstract description 53
- 238000004891 communication Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention provides a seal inserting method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a first insertion position of a seal to be inserted in a first page of an electronic document; determining a seal shape of a seal to be inserted at a first insertion position; acquiring attribute parameter values corresponding to the shape of the stamp; acquiring a first text content to be displayed of a seal to be inserted; a seal to be inserted is generated based on the seal shape, the attribute parameter value, and the first text content, and inserted at a first insertion position in the first page. After the insertion position of the seal to be inserted in the electronic document is determined, the seal to be inserted can be directly generated in the electronic document and inserted into the insertion position, so that the complexity of the operation of adding the electronic seal in the electronic document is reduced, and the operation time of adding the electronic seal in the electronic document is shortened.
Description
Technical Field
The present invention relates to the field of electronic documents, and in particular, to a method and apparatus for inserting a seal, an electronic device, and a storage medium.
Background
Along with the continuous development of enterprise office to informatization and electronization, the quick and simple electronic seal is widely applied gradually. However, when a seal is inserted into an electronic document, the seal needs to be drawn manually on special drawing software, the drawn seal is converted into a picture format, and then the electronic seal in the picture format is inserted into the electronic document, so that the operation process is complex and the time consumption is long.
Disclosure of Invention
An object of an embodiment of the present invention is to provide a method, an apparatus, an electronic device, and a storage medium for inserting a seal, so as to reduce complexity of an operation of adding an electronic seal in an electronic document, and reduce operation time of adding the electronic seal in the electronic document. The specific technical scheme is as follows:
To achieve the above object, an embodiment of the present invention provides a seal inserting method, including:
Determining a first insertion position of a seal to be inserted in a first page of an electronic document;
Determining a seal shape of the seal to be inserted at the first insertion position;
Acquiring attribute parameter values corresponding to the shape of the stamp;
acquiring a first text content to be displayed of the stamp to be inserted;
and generating the seal to be inserted based on the seal shape, the attribute parameter value and the first text content, and inserting the seal to be inserted into the first page at the first insertion position.
Optionally, the step of generating the stamp to be inserted based on the stamp shape, the attribute parameter value and the first text content includes:
Judging whether the first text content comprises preset text content or not;
And if the first text content does not comprise preset text content, generating the stamp to be inserted for displaying the first text content based on the stamp shape and the attribute parameter value.
Optionally, after the step of determining whether the first text content includes the preset text content, the method further includes:
And if the first text content comprises preset text content, returning to the step of executing the first text content to be displayed for acquiring the seal to be inserted.
Optionally, after generating the stamp to be inserted, the method further comprises:
Obtaining a target configuration corresponding to the configuration to be modified in the stamp to be inserted; the configuration to be modified includes one or more of the first text content, the stamp shape, and the attribute parameter value;
and updating the configuration to be modified in the stamp to be inserted into the target configuration.
Optionally, the configuration to be modified includes the first text content, and the first text content includes a date;
the step of obtaining the target parameter value of the configuration to be modified in the seal to be inserted comprises the following steps:
acquiring the current date corresponding to the first text content in the seal to be inserted;
The step of updating the configuration to be modified in the stamp to be inserted into the target configuration includes:
And updating the date included in the first text content to be inserted into the seal to be the current date.
Optionally, after generating the stamp to be inserted, the method further comprises:
determining a plurality of second pages of the electronic document into which the stamp to be inserted is required to be inserted;
Determining a second insertion position of the stamp to be inserted in each second page based on the first insertion position;
the stamp to be inserted is inserted at the second insertion position in each second page.
Optionally, the attribute parameter value includes a seal height of the seal to be inserted;
The step of generating the stamp to be inserted based on the stamp shape, the attribute parameter value, and the first text content includes:
Generating a basic appearance of the stamp to be inserted based on the stamp shape and the stamp height;
Determining the content height of the first text content according to the seal height and a preset proportion value, wherein the preset proportion value is a proportion value of a display area of the first text content in the basic appearance to the basic appearance;
Determining a starting coordinate position of the first text content displayed in the basic appearance according to the content height;
and displaying the first text content in the basic appearance by taking the initial coordinate position as a starting point to obtain the stamp to be inserted.
Optionally, the number of the first text contents is multiple, the stamp to be inserted includes multiple display areas corresponding to the multiple first text contents, and the first text contents are in one-to-one correspondence with the display areas;
the step of determining the content height of the first text content according to the seal height and a preset proportional value comprises the following steps:
determining a first content height of first text content displayed in a first display area according to the seal height and a preset proportion value, wherein the first display area is a display area which is positioned at a preset position of the basic appearance in a plurality of display areas;
And determining a second content height of the first text content displayed in a second display area according to the seal height and the first content height, wherein the second display area is a display area except the first display area in a plurality of display areas.
Optionally, the step of determining the first content height of the first text content displayed in the first display area according to the seal height and the preset proportional value includes:
Determining a first content height of the first text content displayed within the first display area using the following formula:
h1=nRatio*2r;
Wherein h 1 is the first content height, nRatio is a preset ratio value, and r is the seal height.
Optionally, the step of determining the second content height of the first text content displayed in the second display area according to the seal height and the first content height includes:
determining a second content height of the first text content displayed in the second display area in the stamp to be inserted using the following formula:
Wherein h 2 is the second content height, h 1 is the first content height, and r is the seal height.
To achieve the above object, an embodiment of the present invention further provides a stamp inserting apparatus, including:
A first determining module, configured to determine a first insertion position in a first page of the electronic document, where a seal is to be inserted;
a second determining module, configured to determine a stamp shape of the stamp to be inserted at the first insertion position;
the first acquisition module is used for acquiring attribute parameter values corresponding to the shape of the stamp;
the second acquisition module is used for acquiring the first text content to be displayed of the stamp to be inserted;
And the generating module is used for generating the stamp to be inserted based on the stamp shape, the attribute parameter value and the first text content and inserting the stamp to be inserted into the first page at the first inserting position.
Optionally, the generating module includes:
the judging submodule is used for judging whether the first text content comprises preset text content or not;
And the first generation sub-module is used for generating the stamp to be inserted for displaying the first text content based on the stamp shape and the attribute parameter value under the condition that the judging result of the judging sub-module is negative.
Optionally, the second obtaining module is specifically configured to:
and under the condition that the judging result of the judging sub-module is yes, acquiring the first text content to be displayed by the stamp to be inserted.
Optionally, the apparatus further includes:
The third acquisition module is used for acquiring target configuration corresponding to configuration to be modified in the seal to be inserted after the seal to be inserted is generated; the configuration to be modified includes one or more of the first text content, the stamp shape, and the attribute parameter value;
and the updating module is used for updating the configuration to be modified in the stamp to be inserted into the target configuration.
Optionally, the configuration to be modified includes the first text content, and the first text content includes a date;
the third obtaining module is specifically configured to obtain a current date corresponding to the first text content in the seal to be inserted;
The updating module is specifically configured to update a date included in the first text content to be inserted into the seal to a current date.
Optionally, the apparatus further includes:
a third determining module, configured to determine, after the stamp to be inserted is generated, a plurality of second pages of the electronic document into which the stamp to be inserted is to be inserted;
a fourth determining module, configured to determine, based on the first insertion positions, second insertion positions of the stamps to be inserted in each second page;
and the inserting module is used for inserting the stamp to be inserted into each second page at the second inserting position.
Optionally, the attribute parameter value includes a seal height of the seal to be inserted;
The generation module comprises:
A second generation sub-module, configured to generate a basic outline of the stamp to be inserted based on the stamp shape and the stamp height;
The first determining submodule is used for determining the content height of the first text content according to the seal height and a preset proportion value, wherein the preset proportion value is a proportion value of a display area of the first text content in the basic appearance to the basic appearance;
A second determining sub-module, configured to determine, according to the content height, a start coordinate position at which the first text content is displayed in the basic outline;
And the display module is used for displaying the first text content in the basic appearance by taking the initial coordinate position as a starting point to obtain the stamp to be inserted.
Optionally, the number of the first text contents is multiple, the stamp to be inserted includes multiple display areas corresponding to the multiple first text contents, and the first text contents are in one-to-one correspondence with the display areas;
The first determination submodule is specifically configured to:
determining a first content height of first text content displayed in a first display area according to the seal height and a preset proportion value, wherein the first display area is a display area which is positioned at a preset position of the basic appearance in a plurality of display areas;
And determining a second content height of the first text content displayed in a second display area according to the seal height and the first content height, wherein the second display area is a display area except the first display area in a plurality of display areas.
Optionally, the first determining submodule is specifically configured to:
Determining a first content height of the first text content displayed within the first display area using the following formula:
h1=nRatio*2r;
Wherein h 1 is the first content height, nRatio is a preset ratio value, and r is the seal height.
Optionally, the first determining submodule is specifically configured to:
determining a second content height of the first text content displayed in the second display area in the stamp to be inserted using the following formula:
Wherein h 2 is the second content height, h 1 is the first content height, and r is the seal height.
In order to achieve the above object, an embodiment of the present invention further provides an electronic device, where the electronic device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
A memory for storing a computer program;
and a processor for implementing any of the above-described method steps when executing a program stored on the memory.
To achieve the above object, an embodiment of the present invention further provides a computer readable storage medium, in which a computer program is stored, which when executed by a processor, implements any of the above-described method steps.
Embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the method steps described above.
The embodiment of the invention has the beneficial effects that:
According to the seal inserting method, the device, the electronic equipment and the storage medium, the inserting position of the seal to be inserted in the electronic document, which is needed by a user, can be determined, the shape of the seal to be inserted, the attribute parameter value and the first text content which is needed to be displayed by the seal to be inserted are determined, then the seal to be inserted is generated based on the shape of the seal, the attribute parameter value and the first text content, and the inserting position is inserted. In the embodiment of the invention, after the insertion position of the seal to be inserted in the electronic document is determined, the seal to be inserted can be directly generated in the electronic document and inserted into the insertion position, so that the complexity of the operation of adding the electronic seal in the electronic document is reduced, and the operation time of adding the electronic seal in the electronic document is shortened.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a seal insertion method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for displaying first text content according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a stamp including two first text contents according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a stamp including three first text contents according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for determining the height of a text content in a seal according to an embodiment of the present invention;
FIG. 6 is another flowchart of a seal insertion method according to an embodiment of the present invention;
FIG. 7 is a flowchart of a method for updating a configuration to be modified according to an embodiment of the present invention;
FIG. 8 is a flowchart of a method for batch stamp insertion in an electronic document according to an embodiment of the present invention;
FIG. 9 is a block diagram of a seal inserting apparatus according to an embodiment of the present invention;
Fig. 10 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, when a seal is inserted into an electronic document, the seal is required to be drawn manually on special drawing software, the drawn seal is converted into a picture format, and then the electronic seal in the picture format is inserted into the electronic document, so that the operation process is complex and the time consumption is long.
In order to reduce the complexity of the operation of adding an electronic seal in an electronic document and reduce the operation time of adding the electronic seal in the electronic document, the embodiment of the invention provides a seal inserting method, a device, electronic equipment and a storage medium. A method, apparatus, electronic device, and storage medium for inserting a stamp according to embodiments of the present invention will be described in detail with reference to fig. 1 to 10.
Referring to fig. 1, fig. 1 is a flowchart of a seal inserting method according to an embodiment of the present invention. The method can be applied to the electronic equipment such as mobile terminals, personal computers, tablet computers and the like with the function of processing electronic documents. For ease of understanding, the following description will be made with the electronic device as the execution subject. The method comprises the following steps.
Step 101, determining a first insertion position of a seal to be inserted in a first page of an electronic document.
The first page is a page in the electronic document, in which a user needs to insert a seal to be inserted. The first insertion position is a position where the user inserts a stamp to be inserted on the first page.
In the embodiment of the invention, the user can directly select a certain position in the first page through clicking operation, and after receiving the position selected by the user, the electronic equipment determines the position selected by the user as the first insertion position. The user can also input the coordinate value of the first insertion position in the first page in a text input mode, and after receiving the coordinate value input by the user, the electronic equipment determines the first insertion position needing to be inserted with the seal based on the coordinate value. The first insertion position of the stamp to be inserted may also be determined in other manners according to the embodiment of the present invention, which is not particularly limited.
In one embodiment of the present invention, in order to facilitate the insertion of a stamp, a stamp insertion function may be integrated in an electronic document. The user clicks a seal insertion function in the electronic document, and the electronic device displays a seal position input box. The user can input the position where the stamp is to be inserted into the stamp position input box. After the electronic equipment receives the first insertion position input by the user, determining the current page of the electronic document as a first page, and determining the position where the stamp needs to be inserted as the first insertion position of the stamp to be inserted in the first page.
Step 102, determining a seal shape of the seal to be inserted at the first insertion position.
The stamp shape may include, but is not limited to, rectangular, circular, regular hexagonal, etc. The electronic device determines a stamp shape of a stamp to be inserted at the first insertion location.
In one embodiment of the present invention, in order to facilitate the insertion of the stamp, a shape selection box is provided in the stamp insertion function. The user clicks a stamp insertion function in the electronic document, and the electronic device displays a shape selection box. The drop down menu of the shape selection box includes a plurality of shape options.
In one example, the user may input the shape of the stamp to be inserted in the shape selection box, and the electronic device acquires the shape of the stamp to be inserted.
In another example, the user may select the target shape as the stamp shape of the stamp to be inserted from among a plurality of shape options of the shape selection frame, and the electronic device acquires the stamp shape of the stamp to be inserted.
In yet another example, the user may select a default shape as the shape of the stamp to be inserted, and the electronic device obtains the shape of the stamp to be inserted. The default shape is preset, and can be set according to actual demands of users.
The shape of the stamp may be determined in other ways according to embodiments of the present invention, which are not particularly limited.
And step 103, obtaining attribute parameter values corresponding to the shape of the stamp.
Among them, the attribute parameter values may include, but are not limited to, a seal size, a seal color, a seal shading, and the like. The stamp size may include, but is not limited to, stamp height, stamp width, stamp radius, stamp diameter, and the like.
Taking the example that the attribute parameter value includes the stamp height and the stamp color as the examples, in one embodiment of the present invention, in order to facilitate the insertion of the stamp, the stamp insertion function has a stamp shape attribute frame including a stamp height selection sub-frame and a stamp color selection sub-frame. The drop-down menu of the seal height selection sub-frame includes a plurality of height options, and the drop-down menu of the seal color selection sub-frame includes a plurality of color options.
In one example, the user inputs the seal height in a seal height selection box and the seal color of the seal in a seal color selection box. And the electronic equipment acquires the attribute parameter value corresponding to the shape of the stamp.
In another example, the user may select a target height from among a plurality of height options of the subframe from the seal heights as the seal height of the seal to be inserted; the user can select a target color as a stamp color to be inserted into the stamp from among a plurality of color options of the sub-frame. And the electronic equipment acquires the attribute parameter value corresponding to the shape of the stamp.
In yet another example, the user may also directly select a default height as the stamp height of the stamp to be inserted, and select a default color as the stamp color of the stamp to be inserted. And the electronic equipment acquires the attribute parameter value corresponding to the shape of the stamp. The default height and the default color can be preset, and can be set according to actual demands of users.
The embodiment of the invention may also acquire the attribute parameter value by other modes, which is not particularly limited.
In one embodiment of the present invention, different seal shapes may correspond to either the same seal shape attribute frame or different seal shape attribute frames. The electronic device may provide a corresponding stamp shape attribute frame according to the stamp shape selected by the user.
Taking the example that the shape of the stamp includes a circle, a rectangle and a regular hexagon, in one example, the stamp shape attribute frames corresponding to the circle stamp, the rectangle stamp and the regular hexagon stamp are stamp shape attribute frames including a height selection subframe and a width selection subframe.
In another example, the seal shape attribute frame corresponding to the circular seal is a seal shape attribute frame including a seal radius selection subframe or a seal diameter selection subframe, and the seal shape attribute frames corresponding to the rectangular seal and the regular hexagon seal are seal shape attribute frames including a height selection subframe and a width selection subframe.
And 104, acquiring first text content to be displayed by the stamp to be inserted.
In one embodiment of the present invention, in order to facilitate the insertion of a stamp, a content dialog is provided in the stamp insertion function. The user clicks a stamp insertion function in the electronic document, and the electronic device displays a content dialog box including, but not limited to, date, time, etc. content options in a drop-down menu of the content dialog box.
In one example, the user may input first text content to be displayed in the stamp to be inserted in the content dialog box, and the electronic device obtains the first text content of the stamp to be inserted.
In another example, the user may select the target content from the plurality of content options as the first text content of the stamp to be inserted, and the electronic device obtains the first text content of the stamp to be inserted.
In yet another example, the user may select the default content as the first text content displayed in the stamp to be inserted, and the electronic device obtains the first text content of the stamp to be inserted. The default content is preset, and may also be set according to the actual requirement of the user, where the default content may include, but is not limited to, the name, the position, and the like of the user. The embodiment of the invention may also acquire the first text content by other modes, which is not limited in particular.
In one embodiment, the shape selection box, the seal height selection sub-box, the seal color selection sub-box, and the content dialog box may be QLINEEDIT (single line text editing) based text entry boxes. QLINEEDIT is a single line text editor, which allows a user to input and edit a single line text, and has some editing functions, such as undoing, cutting, pasting, etc., so that the application range is wide.
By adopting the text input box based on QLINEEDIT as the shape selection box, the seal height selection sub-box, the seal color selection sub-box and the content dialog box, information input in a plurality of different forms can be realized.
Step 105, generating a seal to be inserted based on the seal shape, the attribute parameter value and the first text content, and inserting the seal at a first insertion position in the first page.
In the embodiment of the invention, after the insertion position of the seal to be inserted in the electronic document is determined, the seal to be inserted can be generated in the electronic document according to the shape of the seal, the attribute parameter value and the first text content of the seal to be inserted, and the first insertion position is inserted. According to the embodiment of the invention, the electronic document is directly operated, and the stamp is inserted into the electronic document, so that the complexity of the operation of adding the electronic stamp into the electronic document is reduced, and the operation time of adding the electronic stamp into the electronic document is shortened.
In one embodiment, step 105 may be refined to the following steps, as shown in FIG. 2, in order to make the appearance of the stamp to be inserted more neat and attractive.
Step 201, based on the shape of the stamp and the height of the stamp, a basic outline of the stamp to be inserted is generated.
In the embodiment of the invention, the basic appearance of the stamp to be inserted, that is, the basic frame of the stamp to be inserted, does not contain the first text content.
In one embodiment, the base outline of the stamp to be inserted may also be generated based on the shape of the stamp in conjunction with the attribute parameters of the stamp. Among them, attribute parameters of the stamp include, but are not limited to, stamp height, stamp width, stamp radius, etc.
Step 202, determining the content height of the first text content according to the seal height and a preset proportion value, wherein the preset proportion value is a proportion value of a display area of the first text content in the basic appearance to the basic appearance.
In the embodiment of the invention, the content height of the first text content is the font height of characters in the first text content. The preset ratio value may be a ratio of an area of a display area of the first text content in the basic outline to an overall area of the basic outline, or may be a ratio of an area height of the display area of the first text content in the basic outline to an overall height of the basic outline. The larger the preset proportion value is, the larger the font in the first text content is represented, and the higher the font height is; the smaller the preset scale value, the smaller the font in the representing first text content, and the smaller the height of the font.
In one embodiment of the present invention, in order to facilitate the insertion of a stamp, a scale value option box is provided in the stamp insertion function. The user clicks a seal insertion function in the electronic document, and the electronic device displays a scale value option box, and a drop-down menu of the content dialog box includes a plurality of scale value options.
In one example, the user may directly select the default scale value as the preset scale value, and the electronic device further obtains the preset scale value of the first text content. Wherein the default ratio value is a preset ratio value. In another example, the user may also select the target scale value from the multiple scale value options as the preset scale value, and the electronic device further obtains the preset scale value of the first text content. The embodiment of the invention may also determine the preset proportional value by other manners, which is not limited in particular.
In one embodiment, when the shape of the stamp to be inserted into the stamp is rectangular, in order to reduce the operation difficulty and the calculation difficulty, the word size of the words in the first text content may be determined first, and the content height of the first text content may be determined according to the word size of the words in the first text content.
In one embodiment, one to-be-inserted stamp may include 2 first text contents and two display areas, as shown in fig. 3, one to-be-inserted stamp may further include 3 first text contents and three display areas, as shown in fig. 4, and the number of the first text contents may be adjusted according to actual requirements, which is not particularly limited in the embodiment of the present invention. Meanwhile, a dividing line exists between every two adjacent display areas, and the first text content corresponds to the display areas one by one, namely, each display area contains a first text content.
When the to-be-inserted stamp includes a plurality of first text contents and includes a plurality of display areas corresponding to the plurality of first text contents, in order to ensure that the arrangement of the plurality of first text contents is reasonable, the to-be-inserted stamp is more attractive, as shown in fig. 5, step 202 may be refined as the following steps.
Step 501, determining a first content height of a first text content displayed in a first display area according to a seal height and a preset proportion value, wherein the first display area is a display area located at a preset position of a basic appearance in a plurality of display areas.
The first indication area may be an area where any first text content is located in the stamp to be inserted. For example, when the stamp to be inserted includes three first text contents, the three first text contents are located in an upper region, a middle region, and a lower region of the stamp to be inserted, respectively, the first display region may be any one of the upper region, the middle region, and the lower region.
In one embodiment, the first content height of the first text content displayed in the first display area may be determined using the following formula.
h1=nRatio*2r;
Wherein h 1 is the first content height, nRatio is a preset scale value, and r is the seal height, wherein the preset scale value may be different when the number of the first text contents is different.
In one embodiment, the first content height of the first text content displayed in the first display area may also be determined using the following formula.
h1=nRatio*2r+k;
Wherein h 1 is the first content height, nRatio is a preset ratio value, r is the stamp height, and k is a preset parameter.
Step 502, determining a second content height of the first text content displayed in a second display area according to the seal height and the first content height, wherein the second display area is a display area except the first display area in the plurality of display areas.
In one embodiment, the second content height of the first text content displayed in the second display area may be determined using the following formula.
Where h 2 is the second content height, h 1 is the first content height, and r is the seal height.
In one embodiment, the following formula may also be utilized to determine the second content height of the first text content displayed within the second display area.
Wherein h 2 is the second content height, h 1 is the first content height, r is the stamp height, and λ is a preset parameter.
In an embodiment, when two first text contents and two display areas are included in the seal to be inserted, as shown in fig. 3, the areas of the two display areas to be inserted in the seal may be the same, so that the first content height in the first display area is the same as the second content height in the second display area. The two display areas in the stamp to be inserted have the same area, so that the stamp to be inserted is more neat and attractive.
In an embodiment, when three first text contents and three display areas are included in the stamp to be inserted, as shown in fig. 4, the middle display area may be taken as the first display area, and the area of the upper display area and the area of the lower display area may be made the same. That is, the second content height of the first text content in the upper display area is made the same as the second content height of the first text content in the lower display area. The area of the upper display area and the area of the lower display area in the seal to be inserted are the same, so that the seal to be inserted is more neat and attractive.
And 203, determining the initial coordinate position of the first text content displayed on the basic appearance according to the content height.
And 204, displaying the first text content in the basic appearance by taking the initial coordinate position as a starting point to obtain the stamp to be inserted.
In the embodiment of the invention, the initial coordinate position of the first text content displayed in the seal to be inserted can be determined through the content height of the first text content and the display format of the first text content in the seal to be inserted. Wherein the display format is in which form the first text content is displayed within the stamp to be inserted. For example: centered, right aligned, left aligned, etc.
In the embodiment of the invention, the initial coordinate position of the first text content displayed in the stamp to be inserted can be determined through the content height of the first text content, and the first text content is displayed in the stamp to be inserted by taking the initial coordinate position as a starting point. The content height of the first text content is obtained according to the seal height of the seal to be inserted, so that the height and the position of the first text content in the seal to be inserted are more reasonable, and the layout of the seal to be inserted is reasonable. Meanwhile, when the height of the stamp to be inserted is increased or reduced, the content height of the first text content is also increased or reduced along with the increase or reduction, and when the size of the stamp to be inserted is adjusted, the size of the first text content in the stamp to be inserted is not required to be adjusted any more, so that the adjustment flow of the stamp to be inserted is simplified.
In the embodiment of the present invention, the execution order of steps 101 to 104 is not limited.
In one embodiment, to ensure that the generated first text content to be inserted into the stamp can be displayed normally, as shown in fig. 6, step 105 may be refined as follows.
Step 601, judging whether the first text content comprises preset text content, if yes, returning to execute step 104; if not, step 602 is performed.
Step 602, based on the shape of the stamp and the attribute parameter value, generating a stamp to be inserted displaying the first text content.
The preset text content is limited content with illegal hidden danger, such as national institutional name or enterprise name. Meanwhile, in order to make the preset text content more comprehensive, the preset text content needs to be updated regularly. The stamp to be inserted including the first text content may be generated only when the first text content does not have the illicit potential.
In one embodiment, if the first text content includes the preset text content, the process returns to step 104.
If the first text content includes the preset text content, the user cannot generate the seal to be inserted including the first text content, at this time, the electronic device displays a prompt box for inputting again that the first text content includes the limited content, and the user needs to input the first text content again until the input first text content does not include the preset text content, and the seal to be inserted including the first text content can be generated.
In one embodiment, after the to-be-inserted stamp is generated, the user can select the stamp to be saved in the stamp inserting function, the electronic device can store the generated to-be-inserted stamp in the custom stamp library after receiving the stamp saving instruction, and when the user needs to reuse the to-be-inserted stamp, the user can directly call the stamp from the custom stamp library. Further reducing the complexity of the operation of adding the electronic seal in the electronic document and reducing the operation time of adding the electronic seal in the electronic document.
In one embodiment, after the user invokes the seal to be inserted from the custom seal library, the invoked seal to be inserted may be updated, and as shown in fig. 7, the update method of the seal to be inserted may include the following steps.
Step 701, obtaining a target configuration corresponding to the configuration to be modified in the stamp to be inserted. Wherein the configuration to be modified includes one or more of a first text content, a stamp shape, and an attribute parameter value.
And step 702, updating the configuration to be modified in the stamp to be inserted into the target configuration.
In the embodiment of the invention, the configuration to be modified is the part to be modified in the seal to be inserted, which is called by the user, and the configuration to be modified in the seal to be inserted is updated to be the target configuration, namely the process of modifying the seal to be inserted, which is called by the user in the custom seal library.
In one embodiment, the configuration to be modified may include a first text content including a date. At this time, the process of acquiring the target configuration corresponding to the configuration to be modified in the seal to be inserted, that is, the current date corresponding to the first text content in the seal to be inserted is acquired. And updating the configuration to be modified in the seal to be inserted into the target configuration, namely updating the date included in the first text content in the seal to be inserted into the current date.
In the embodiment of the invention, when the first text content of the seal to be inserted, which is called by the user in the custom seal library, comprises a date, and the user needs to change the date, the date to be inserted in the seal can be directly updated to the current system date.
In one embodiment, as shown in fig. 8, the above-mentioned stamp inserting method further includes the following steps.
Step 801 determines a plurality of second pages of the electronic document into which the stamp to be inserted is to be inserted.
The second page is a page in the electronic document, into which a seal to be inserted is required to be inserted. The plurality of second pages may or may not include the first page.
To facilitate batch insertion of stamps, a stamp batch insertion function may be integrated in an electronic document. The user clicks the seal batch insertion function, and the electronic device displays a page selection frame, wherein a drop-down menu of the page selection frame comprises a plurality of page options.
In one example, the user may enter the number of page codes for a plurality of second pages, such as page 1, page 3, and page 5, in the page selection box. The user may also enter a page range of a plurality of second pages, such as pages 1-5, in the page selection box. And the electronic equipment acquires the page code number of the plurality of second pages. In another example, the user may select one or more target pages as the second page from among a plurality of page options of the page selection box. And the electronic equipment further acquires the page code number of the second page. The page options comprise all page options, and when the user needs to insert the seal to be inserted into all pages in the electronic document, the user can directly select all page options in the page options. And the electronic equipment further acquires the page number of all the pages as the page number of the plurality of second pages. The embodiment of the invention may also determine the plurality of second pages in other manners, which is not limited in particular.
Step 802, determining a second insertion position of the stamp to be inserted in each second page based on the first insertion position.
Step 803, inserting the stamp to be inserted into each second page at a second insertion position.
In the embodiment of the invention, the second insertion positions of the stamps to be inserted in the second pages can be the same or different. The position coordinate values of the respective second insertion positions may be the same as or different from the coordinate values of the first insertion positions. The second insertion position may be determined according to a preset insertion rule.
For example, the preset insertion rule may be that the position coordinate values of the respective second insertion positions are the same as the coordinate values of the first insertion positions. After a plurality of second pages are determined, a first coordinate value of the first insertion position in the first page is determined, a second coordinate value which is the same as the first coordinate value in each second page is obtained according to the first coordinate value, a second insertion position in each second page is determined according to the second coordinate value, and then the stamp to be inserted is inserted into the second insertion position.
The preset inserting rule may further be that a preset deviation value exists between the second coordinate value of each second inserting position and the first coordinate value of the first inserting position. And after determining a plurality of second pages, acquiring a preset deviation value, acquiring a first coordinate value of a first insertion position in the first page, acquiring a second coordinate value in each second page according to the first coordinate value and the preset deviation value, determining a second insertion position in each second page according to the second coordinate value, and inserting the stamp to be inserted into the second insertion position.
In the embodiment of the invention, the preset insertion rule can be adjusted according to the actual situation, and the method is not particularly limited.
The steps 801-803 enable the seal to be simultaneously inserted into a plurality of pages in the electronic document, so that the operation difficulty of inserting the seal in the plurality of pages is reduced, and meanwhile, the operation time of inserting the seal in the plurality of pages is saved.
In one embodiment, when the electronic document is a PDF (Portable Document Format ) document, the to-be-inserted seal may also be converted into a picture format by a batch embedding function of the PDF document, and inserted into each of the second pages at the same time.
In the embodiment of the invention, the electronic document can also be a word (text) document, an Excel (form) document and the like. This is not limited.
In order to reduce the complexity of the operation of adding an electronic seal in an electronic document and reduce the operation time of adding an electronic seal in an electronic document, an embodiment of the present invention further provides a seal inserting apparatus, as shown in fig. 9, including:
a first determining module 901, configured to determine a first insertion position in a first page of an electronic document where a seal is to be inserted.
A second determining module 902 is configured to determine a stamp shape of a stamp to be inserted at the first insertion position.
The first obtaining module 903 is configured to obtain an attribute parameter value corresponding to the shape of the stamp.
A second obtaining module 904, configured to obtain a first text content to be displayed by the stamp to be inserted.
The generating module 905 is configured to generate a seal to be inserted based on the seal shape, the attribute parameter value, and the first text content, and insert the seal into the first page at a first insertion position.
In one embodiment, the generating module 905 may include:
And the judging sub-module is used for judging whether the first text content comprises preset text content or not.
And the first generation sub-module is used for generating a seal to be inserted for displaying the first text content based on the seal shape and the attribute parameter value under the condition that the judging result of the judging sub-module is negative.
In one embodiment, the second obtaining module 904 may be specifically configured to:
and under the condition that the judging result of the judging submodule is yes, acquiring first text content to be displayed by the stamp to be inserted.
In one embodiment, the apparatus may further include:
the third acquisition module is used for acquiring target configuration corresponding to configuration to be modified in the stamp to be inserted after the stamp to be inserted is generated; the configuration to be modified includes one or more of a first text content, a stamp shape, and an attribute parameter value.
And the updating module is used for updating the configuration to be modified in the stamp to be inserted into the target configuration.
In one embodiment, the configuration to be modified may include first text content, which may include a date.
The third obtaining module may be specifically configured to obtain a current date corresponding to the first text content to be inserted into the seal.
The updating module may be specifically configured to update a date included in the first text content to be inserted into the seal to a current date.
In one embodiment, the apparatus may further include:
And the third determining module is used for determining a plurality of second pages of the electronic document needing to be inserted with the stamp to be inserted after the stamp to be inserted is generated.
And the fourth determining module is used for determining second insertion positions of the stamps to be inserted in the second pages based on the first insertion positions.
And the inserting module is used for inserting the to-be-inserted stamp into each second page at a second inserting position.
In one embodiment, the attribute parameter value may include a stamp height of a stamp to be inserted.
The generating module 905 may include:
And the second generation sub-module is used for generating a basic appearance of the stamp to be inserted based on the shape of the stamp and the height of the stamp.
And the first determining submodule is used for determining the content height of the first text content according to the stamp height and a preset proportion value, wherein the preset proportion value is the proportion value of the display area of the first text content in the basic appearance to the basic appearance.
And the second determining submodule is used for determining the initial coordinate position of the first text content displayed in the basic appearance according to the content height.
And the display module is used for displaying the first text content in the basic appearance by taking the initial coordinate position as a starting point to obtain the stamp to be inserted.
In one embodiment, the number of the first text contents can be multiple, the stamp to be inserted comprises a plurality of display areas corresponding to the first text contents, and the first text contents are in one-to-one correspondence with the display areas.
The first determination submodule may be specifically configured to:
and determining a first content height of the first text content displayed in a first display area according to the seal height and a preset proportion value, wherein the first display area is a display area which is positioned at a preset position of the basic appearance in a plurality of display areas.
And determining a second content height of the first text content displayed in a second display area according to the seal height and the first content height, wherein the second display area is a display area except the first display area in the plurality of display areas.
In one embodiment, the first determination submodule may be specifically configured to:
the first content height of the first text content displayed in the first display area is determined using the following formula.
h1=nRatio*2r;
Wherein h 1 is the first content height, nRatio is a preset ratio value, and r is the seal height.
In one embodiment, the first determination submodule may be specifically configured to:
The second content height of the first text content displayed in the second display area in the stamp to be inserted is determined using the following formula.
Where h 2 is the second content height, h 1 is the first content height, and r is the seal height.
In order to reduce the complexity of the operation of adding an electronic seal in an electronic document and reduce the operation time of adding the electronic seal in the electronic document, the embodiment of the invention also provides an electronic device, as shown in fig. 10, which comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004.
A memory 1003 for storing a computer program;
the processor 1001 is configured to implement any of the steps of the above-described seal insertion method when executing the program stored in the memory 1003.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In still another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the steps of any of the above-described seal insertion methods.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-described seal insertion methods.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium and the computer program product, the description is relatively simple, as it is substantially similar to the method embodiments, and the relevant points are found in the partial description of the method embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (20)
1. A method of seal insertion, the method comprising:
Determining a first insertion position of a seal to be inserted in a first page of an electronic document;
Determining a seal shape of the seal to be inserted at the first insertion position;
Acquiring attribute parameter values corresponding to the shape of the stamp;
acquiring a first text content to be displayed of the stamp to be inserted;
Generating the stamp to be inserted based on the stamp shape, the attribute parameter value and the first text content, and inserting the stamp to be inserted into the first page at the first insertion position;
The generating the stamp to be inserted based on the stamp shape, the attribute parameter value, and the first text content, and inserting the stamp to be inserted into the first page at the first insertion position includes:
generating a basic appearance of the stamp to be inserted based on the stamp shape and the stamp height of the attribute parameter value;
Determining the content height of the first text content according to the seal height and a preset proportion value, wherein the preset proportion value is a proportion value of a display area of the first text content in the basic appearance to the basic appearance;
Determining a starting coordinate position of the first text content displayed in the basic appearance according to the content height;
and displaying the first text content in the basic appearance by taking the initial coordinate position as a starting point to obtain the stamp to be inserted.
2. The method of claim 1, wherein the step of generating the stamp to be inserted based on the stamp shape, the attribute parameter value, and the first text content comprises:
Judging whether the first text content comprises preset text content or not;
And if the first text content does not comprise preset text content, generating the stamp to be inserted for displaying the first text content based on the stamp shape and the attribute parameter value.
3. The method of claim 2, wherein after the step of determining whether the first text content includes preset text content, the method further comprises:
And if the first text content comprises preset text content, returning to the step of executing the first text content to be displayed for acquiring the seal to be inserted.
4. The method of claim 1, wherein after generating the stamp to be inserted, the method further comprises:
Obtaining a target configuration corresponding to the configuration to be modified in the stamp to be inserted; the configuration to be modified includes one or more of the first text content, the stamp shape, and the attribute parameter value;
and updating the configuration to be modified in the stamp to be inserted into the target configuration.
5. The method of claim 4, wherein the configuration to be modified comprises the first text content, the first text content comprising a date;
The step of obtaining the target configuration of the configuration to be modified in the stamp to be inserted comprises the following steps:
acquiring the current date corresponding to the first text content in the seal to be inserted;
The step of updating the configuration to be modified in the stamp to be inserted into the target configuration includes:
And updating the date included in the first text content to be inserted into the seal to be the current date.
6. The method of claim 1, wherein after generating the stamp to be inserted, the method further comprises:
determining a plurality of second pages of the electronic document into which the stamp to be inserted is required to be inserted;
Determining a second insertion position of the stamp to be inserted in each second page based on the first insertion position;
the stamp to be inserted is inserted at the second insertion position in each second page.
7. The method according to claim 1, wherein the first text content is plural, the stamp to be inserted includes plural display areas corresponding to the plural first text content, and the first text content corresponds to the display areas one by one;
the step of determining the content height of the first text content according to the seal height and a preset proportional value comprises the following steps:
determining a first content height of first text content displayed in a first display area according to the seal height and a preset proportion value, wherein the first display area is a display area which is positioned at a preset position of the basic appearance in a plurality of display areas;
And determining a second content height of the first text content displayed in a second display area according to the seal height and the first content height, wherein the second display area is a display area except the first display area in a plurality of display areas.
8. The method of claim 7, wherein the step of determining the first content height of the first text content displayed in the first display area according to the stamp height and a preset scale value comprises:
Determining a first content height of the first text content displayed within the first display area using the following formula:
h1=nRatio*2r;
Wherein h 1 is the first content height, nRatio is a preset ratio value, and r is the seal height.
9. The method of claim 7, wherein the step of determining a second content height of the first text content displayed in the second display area based on the stamp height and the first content height comprises:
determining a second content height of the first text content displayed in the second display area in the stamp to be inserted using the following formula:
Wherein h 2 is the second content height, h 1 is the first content height, and r is the seal height.
10. A seal insertion device, the device comprising:
A first determining module, configured to determine a first insertion position in a first page of the electronic document, where a seal is to be inserted;
a second determining module, configured to determine a stamp shape of the stamp to be inserted at the first insertion position;
the first acquisition module is used for acquiring attribute parameter values corresponding to the shape of the stamp;
the second acquisition module is used for acquiring the first text content to be displayed of the stamp to be inserted;
A generating module, configured to generate the stamp to be inserted based on the stamp shape, the attribute parameter value, and the first text content, and insert the stamp to be inserted into the first page at the first insertion position;
The generation module comprises:
A second generation sub-module, configured to generate a basic outline of the stamp to be inserted based on the stamp shape and the stamp height of the attribute parameter value;
The first determining submodule is used for determining the content height of the first text content according to the seal height and a preset proportion value, wherein the preset proportion value is a proportion value of a display area of the first text content in the basic appearance to the basic appearance;
A second determining sub-module, configured to determine, according to the content height, a start coordinate position at which the first text content is displayed in the basic outline;
And the display module is used for displaying the first text content in the basic appearance by taking the initial coordinate position as a starting point to obtain the stamp to be inserted.
11. The apparatus of claim 10, wherein the generating module comprises:
the judging submodule is used for judging whether the first text content comprises preset text content or not;
And the first generation sub-module is used for generating the stamp to be inserted for displaying the first text content based on the stamp shape and the attribute parameter value under the condition that the judging result of the judging sub-module is negative.
12. The apparatus of claim 11, wherein the second acquisition module is specifically configured to:
and under the condition that the judging result of the judging sub-module is yes, acquiring the first text content to be displayed by the stamp to be inserted.
13. The apparatus of claim 10, wherein the apparatus further comprises:
The third acquisition module is used for acquiring target configuration corresponding to configuration to be modified in the seal to be inserted after the seal to be inserted is generated; the configuration to be modified includes one or more of the first text content, the stamp shape, and the attribute parameter value;
and the updating module is used for updating the configuration to be modified in the stamp to be inserted into the target configuration.
14. The apparatus of claim 13, wherein the configuration to be modified comprises the first text content, the first text content comprising a date;
the third obtaining module is specifically configured to obtain a current date corresponding to the first text content in the seal to be inserted;
The updating module is specifically configured to update a date included in the first text content to be inserted into the seal to a current date.
15. The apparatus of claim 10, wherein the apparatus further comprises:
a third determining module, configured to determine, after the stamp to be inserted is generated, a plurality of second pages of the electronic document into which the stamp to be inserted is to be inserted;
a fourth determining module, configured to determine, based on the first insertion positions, second insertion positions of the stamps to be inserted in each second page;
and the inserting module is used for inserting the stamp to be inserted into each second page at the second inserting position.
16. The apparatus of claim 10, wherein the first text content is a plurality of, the stamp to be inserted comprising a plurality of display areas corresponding to the plurality of first text content, the first text content being in one-to-one correspondence with the display areas;
The first determination submodule is specifically configured to:
determining a first content height of first text content displayed in a first display area according to the seal height and a preset proportion value, wherein the first display area is a display area which is positioned at a preset position of the basic appearance in a plurality of display areas;
And determining a second content height of the first text content displayed in a second display area according to the seal height and the first content height, wherein the second display area is a display area except the first display area in a plurality of display areas.
17. The apparatus of claim 16, wherein the first determination submodule is specifically configured to:
Determining a first content height of the first text content displayed within the first display area using the following formula:
h1=nRatio*2r;
Wherein h 1 is the first content height, nRatio is a preset ratio value, and r is the seal height.
18. The apparatus of claim 16, wherein the first determination submodule is specifically configured to:
determining a second content height of the first text content displayed in the second display area in the stamp to be inserted using the following formula:
Wherein h 2 is the second content height, h 1 is the first content height, and r is the seal height.
19. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus;
A memory for storing a computer program;
A processor for implementing the method steps of any one of claims 1-9 when executing a program stored on a memory.
20. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010329209.8A CN113553798B (en) | 2020-04-23 | 2020-04-23 | Seal insertion method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010329209.8A CN113553798B (en) | 2020-04-23 | 2020-04-23 | Seal insertion method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113553798A CN113553798A (en) | 2021-10-26 |
CN113553798B true CN113553798B (en) | 2024-06-18 |
Family
ID=78129511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010329209.8A Active CN113553798B (en) | 2020-04-23 | 2020-04-23 | Seal insertion method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113553798B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719371A (en) * | 2005-07-08 | 2006-01-11 | 上海中标软件有限公司 | Document digital signature and its method for realizing electronic seal and handwritten signature |
CN109934003A (en) * | 2019-03-13 | 2019-06-25 | 中国建设银行股份有限公司 | A kind of E-seal covers method, apparatus and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000099725A (en) * | 1998-09-18 | 2000-04-07 | Mitsubishi Electric Corp | Electronic seal making method, electronic seal stamping system, and electronic document falsification check system |
JP2004032138A (en) * | 2002-06-24 | 2004-01-29 | Hitachi Software Eng Co Ltd | Electronic tally impression system and program |
CN108109187A (en) * | 2017-12-04 | 2018-06-01 | 泰康保险集团股份有限公司 | E-seal generation method, device and electronic equipment |
-
2020
- 2020-04-23 CN CN202010329209.8A patent/CN113553798B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1719371A (en) * | 2005-07-08 | 2006-01-11 | 上海中标软件有限公司 | Document digital signature and its method for realizing electronic seal and handwritten signature |
CN109934003A (en) * | 2019-03-13 | 2019-06-25 | 中国建设银行股份有限公司 | A kind of E-seal covers method, apparatus and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113553798A (en) | 2021-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109801347B (en) | Method, device, equipment and medium for generating editable image template | |
US9880978B2 (en) | System and method for selective control of zoom adjustments in an electronic publication | |
CN110738037B (en) | Method, apparatus, device and storage medium for automatically generating electronic form | |
WO2021101655A1 (en) | Automatic template generation with inbuilt template logic interface | |
CN113535165A (en) | Interface generation method and device, electronic equipment and computer readable storage medium | |
US20130290837A1 (en) | Method and Apparatus for Correcting Document Formatting Based on Source Document | |
CN109213480B (en) | Method, storage medium, equipment and system for developing background management page | |
CN109783782B (en) | Method, equipment, storage medium and device for generating electronic contract template | |
CN112597266A (en) | Editor generation method and processing method for processing game template data | |
CN112417832B (en) | Method and device for converting format of electronic form document and electronic equipment | |
CN112052647B (en) | Document editing method and device, electronic equipment and readable storage medium | |
US20210064691A1 (en) | Techniques for automated resizing of text content responsive to layout changes | |
CN109992759B (en) | Table object editing method and device, electronic equipment and storage medium | |
CN113553798B (en) | Seal insertion method and device, electronic equipment and storage medium | |
KR101498533B1 (en) | Component separate display based electronic document display device and method | |
KR20130057417A (en) | System and method for automatic continuation marks in an electronic publication | |
CN116306539A (en) | Method, device and equipment for creating detail table in engineering drawing and readable storage medium | |
CN114518925A (en) | Mobile application generation method, data processing method and related device | |
CN112950167A (en) | Design service matching method, device, equipment and storage medium | |
CN112784542B (en) | Document editing method and device | |
CN119045702B (en) | Method and device for customizing prompt components of ECharts charts | |
CN110688108A (en) | Model generation method and device and storage medium | |
CN117056539B (en) | Method and device for generating pptx format file in real time and electronic equipment | |
CN114895995B (en) | Control view generation method and device, electronic equipment and readable medium | |
CN118429995A (en) | Text overflow detection method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |