Print data processing device, printing system and print data processing method
Through the printing font size determination unit, occupied area determination unit and bitmap generation unit of the print data processing device, the character offset problem caused by proportional fonts is solved, ensuring that the characters are in the center of the printing frame, achieving beautiful and neat printing effects.
Patent Information
- Application Number
- CN202010475135.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-05-29
AI Technical Summary
When using proportional fonts for printing, the different occupied areas of the characters will cause offsets between the characters and the printing box, especially when the printing boxes are distributed at unequal spacing, causing the characters to be printed outside the box, especially when there are many printing boxes. , when the number of characters is large, the offset accumulation is serious.
A print data processing device is provided, which includes a screen storage unit, an input display unit, a printing font size determination unit, an occupied area determination unit, and a bitmap generation unit. The user inputs printing content and fonts, determines the printing confirmation font size and character position information, and generates Corresponding bitmap to ensure characters are printed in the center of the print box.
No matter how the font changes or the size and position of the print box are different, ensure that the characters are in the center of the print box to avoid overflow of printed characters and ensure beautiful and neat printing.
Smart Images

Figure CN113741824B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of printing services, and relates to a printing data processing device, a printing system and a printing data processing method. Background Art
[0002] Handheld printers can freely slide and print at any position of the printing medium (such as postcards, envelopes, bank receipts, etc.), so that users do not need to manually write names, addresses, etc. As the application of handheld printers becomes more and more widespread, handheld printers can also print postal codes on postal code boxes on postcards and envelopes, or print ID numbers on ID code filling boxes on bank receipts. When printing the numbers or letters in these postal codes and ID numbers as printing characters, users usually need to select various fonts.
[0003] However, some commonly used fonts are proportional fonts. When using such proportional fonts for printing, the width of the area occupied by the printed characters is proportional to the image width of the characters themselves, so that the occupied areas of the printed characters are different. Therefore, even if the printing boxes are evenly spaced, the different occupied areas of different characters will cause the characters and the printing boxes to gradually shift. Especially when the printing boxes are not evenly spaced, the shift is more serious. When there are many printing boxes and many different printing characters, this shift will accumulate and even cause the characters to be printed outside the boxes. Summary of the invention
[0004] To solve the above problems, a print data processing device is provided, which can print each character at the center of the frame when printing in the print frames of different print frame groups, and a printing system and a printing method including the print data processing device are provided.
[0005] In order to achieve the above-mentioned purpose, the present invention adopts the following structure and method:
[0006] <Structure 1>
[0007] The present invention provides a printing data processing device, characterized in that it includes: a screen storage unit, an input display unit, a printing font size determination unit, an occupied area determination unit, a character position determination unit and a bitmap generation unit, wherein the screen storage unit stores a printing content input screen for allowing a user to input a plurality of printing characters to be printed in a plurality of printing frames of a printing frame group set on a printing medium as printing content, and the input display unit displays the printing content input screen for allowing the user to input a plurality of printing characters and corresponding printing fonts, and once the user confirms the input printing content and printing font, the printing font size determination unit determines a printing confirmation font size that enables the printing characters to be printed in the corresponding printing frame and confirmed by the user according to the printing font and the size of the printing frame, the occupied area determination unit determines the occupied area actually occupied by each printing character in the corresponding printing frame according to the printing font and the printing confirmation font size, the character position determination unit determines the character position information of the printing character according to at least the size and position information of each printing frame and the occupied area of each printing character, and the bitmap generation unit generates a bitmap corresponding to the printing content according to at least the printing character, the printing font, the printing confirmation font size, the occupied area of each printing character and the character position information.
[0008] <Structure 2>
[0009] The present invention provides a printing system, characterized in that it includes: a printing data processing device; and a handheld printer, which is communicatively connected to the printing data processing device, wherein the printing data processing device is the printing data processing device in structure 1, and the handheld printer receives printing data corresponding to a bitmap, and prints printing characters in multiple printing frames of a predetermined printing frame group according to the printing data.
[0010] <Method 1>
[0011] The present invention provides a printing method, characterized in that it includes the following steps: displaying a printing content input screen for allowing a user to input a plurality of printing characters to be printed in a plurality of printing frames set in a printing frame group on a printing medium as printing content, allowing the user to input a plurality of printing characters and corresponding printing fonts; once the user determines the input printing content and printing font, determining a printing confirmation font size that enables the printing characters to be printed in the corresponding printing frame and confirmed by the user at least based on the printing font and the size of the printing frame; determining the occupied area actually occupied by each printing character in the corresponding printing frame based on the printing font and the printing confirmation font size; determining the character position information of the printing character based on the size and position information of each printing frame and the occupied area of each printing character; and generating a bitmap corresponding to the printing content based on the printing font, the printing character, the printing confirmation font size, the occupied area of each printing character and the character position information.
[0012] Function and Effect of the Invention
[0013] According to the printing data processing device and printing system of the present invention, since the printing data processing device has a printing font size determination unit, an occupied area determination unit, a character position determination unit and a bitmap generation unit, after the user inputs the printing content and selects the printing font, printing direction and template name in the printing content input screen, the printing font size determination unit determines the printing confirmation font size of the printing characters, and the occupied area determination unit determines the occupied area corresponding to each printing character, and further determines the character position information that can make each printing character located in the center of each printing frame through the character position determination unit, and then the bitmap generation unit generates a bitmap corresponding to the printing content. Therefore, no matter how the font of the printing character changes or how the size of the printing frame and the position information of each printing frame are different, it is guaranteed that the handheld printer prints each printing character in the center of each printing frame when printing, avoiding printing the printing character outside the frame due to different fonts, thereby ensuring the beauty and neatness of the printing. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 is a structural block diagram of a printing system in Embodiment 1 of the present invention;
[0015] Figure 2 is a schematic diagram of a postcard in Embodiment 1 of the present invention;
[0016] Figure 3 is a structural block diagram of a print data processing device in Embodiment 1 of the present invention;
[0017] Figure 4 is a schematic diagram of a template parameter table in Embodiment 1 of the present invention;
[0018] Figure 5 is a schematic diagram of a print content input screen in Embodiment 1 of the present invention;
[0019] Figure 6 is a schematic diagram of a print font size confirmation screen in the first embodiment of the present invention;
[0020] Figure 7 is a schematic diagram of printed characters within a printing frame during horizontal printing in Embodiment 1 of the present invention;
[0021] Figure 8 is a schematic diagram of two adjacent print frames during horizontal printing in Embodiment 1 of the present invention;
[0022] Fig. 9 is a schematic diagram of a prompt image in Embodiment 1 of the present invention;
[0023] Fig.10 is a structural block diagram of a handheld printer in Embodiment 1 of the present invention;
[0024] Fig.11is a schematic diagram of a handheld printer printing on a medium in the first embodiment of the present invention;
[0025] Fig.12 is a flow chart of a printing system in Embodiment 1 of the present invention;
[0026] Fig.13 is an action flow chart of a print font size determination unit in the first embodiment of the present invention;
[0027] Fig.14 is an action flow chart of a character position determination unit in the first embodiment of the present invention;
[0028] Fig.15 is a structural block diagram of a printing system in Embodiment 2 of the present invention;
[0029] Fig.16 is a structural block diagram of a print data processing device in Embodiment 2 of the present invention;
[0030] Fig.17 It is a structural block diagram of a mobile terminal in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0031] The printing system of the present invention is described in detail below in conjunction with the embodiments and drawings.
[0032] As a first embodiment, the present invention provides a print data processing device, characterized in that it includes: a screen storage unit, an input display unit, a print font size determination unit, an occupied area determination unit, a character position determination unit and a bitmap generation unit, wherein the screen storage unit stores a print content input screen for allowing a user to input a plurality of print characters to be printed in a plurality of print frames of a print frame group set on a print medium as print content, the input display unit displays the print content input screen for allowing the user to input a plurality of print characters and corresponding print fonts, once the user confirms the input print content and print font, the print font size determination unit determines a print confirmation font size that enables the print characters to be printed in the corresponding print frame and confirmed by the user based on the print font and the size of the print frame, the occupied area determination unit determines an occupied area actually occupied by each print character in the corresponding print frame based on the print font and the print confirmation font size, the character position determination unit determines the character position information of the print character based at least on the size and position information of each print frame and the occupied area of each print character, and the bitmap generation unit generates a bitmap corresponding to the print content based at least on the print character, the print font, the print confirmation font size, the occupied area of each print character and the character position information.
[0033] In the first embodiment, it can also have such a technical feature, wherein the print font size determination unit has a maximum font size acquisition unit, a preview image generation unit and a font size setting unit, the screen storage unit also stores a print font size confirmation screen, the maximum font size acquisition unit acquires the maximum font size that allows the print character to be printed in the corresponding print box according to the height and width of the print box, the print font and the predetermined font size reduction rule, the preview image generation unit generates a maximum font size preview image formed when the print character is set in the corresponding print box according to at least one print character, the maximum font size and the size of the print box, once the maximum font size preview image is generated, the input display unit displays the print font size confirmation screen and displays the maximum font size preview image in the screen to let the user confirm whether to use the maximum font size as the font size for printing, and once the user confirms the print font size, the font size setting unit sets the maximum font size as the print confirmation font size.
[0034] In the first embodiment, it can also have such a technical feature, wherein the print font size confirmation screen also has a print ratio setting area, which is used to allow the user to set the reduction ratio for the maximum font size preview image. Once the user confirms the reduction ratio, the font size setting unit obtains the current font size based on the reduction ratio and the maximum font size, and the preview image generation unit generates a current font size preview image formed when the current font size is set in the corresponding print box. The input display unit displays the print font number confirmation screen and displays the current font size preview image in the screen to allow the user to confirm whether to use the current font size as the font size for printing. Once the user confirms the print font size, the font size setting unit sets the current font size as the print confirmation font size.
[0035] In the first embodiment, it can also have such technical features, wherein the character position determination unit has a character starting position acquisition unit and a character spacing acquisition unit, the character starting position acquisition unit acquires the character starting position that can make the center point of the printed character coincide with the center point of the printed frame based on the size of the printing frame corresponding to the first printed character and the occupied area of the printed character, and the character spacing acquisition unit acquires the distance between the occupied areas of adjacent printed characters as the character spacing based on at least the distance between each printing frame and the occupied area of each printed character, and the character starting position and each character spacing constitute the character position information.
[0036] In the first embodiment, it can also have such a technical feature, wherein the print content input screen also has a print direction selection area for allowing the user to select the print direction of each print character. When the print direction is horizontal printing, the character spacing calculation unit calculates the horizontal distance between the two occupied areas corresponding to adjacent print characters according to the horizontal distance information of each print frame and the width of the occupied area of each print character as the character spacing. When the print direction is vertical printing, the character spacing calculation unit calculates the vertical distance between the two occupied areas corresponding to adjacent print characters according to the vertical distance information of each print frame and the height of the occupied area of each print character as the character spacing.
[0037] In the first embodiment, it can also have such a technical feature, wherein the bitmap contains a bitmap starting position and a bitmap height, the bitmap starting position is determined by the left edge or the upper edge of the first print frame in the print frame group, and the bitmap height is determined by the width of the print head used for printing in the handheld printer in a direction perpendicular to the sliding direction.
[0038] In the first embodiment, it can also have such technical features, including: a template data storage unit, a screen storage unit also storing a template selection screen, the template data storage unit storing the template name of each print frame group and the size and position information of each print frame corresponding to the template name, an input display unit displaying the template selection screen and displaying the stored template name in the screen for the user to select, a print font size determination unit determining the print confirmation font size according to the size of the print frame corresponding to the template name, and a character position determination unit determining the character position information according to the size and position of the print frame corresponding to the template name.
[0039] In the first embodiment, the printing content input screen may also have a printing frame parameter input area for allowing the user to input the size and position information of each printing frame.
[0040] In the first embodiment, it may also have such technical features, including: a prompt image generating unit, a screen storage unit also storing a printing prompt screen, once the printing data corresponding to the bitmap is sent to the handheld printer, the prompt image generating unit generates a prompt image indicating the starting position and sliding direction of the bitmap based on the bitmap, once the prompt image is generated, the input display unit displays the printing prompt screen and displays the prompt image in the screen for the user to refer to and confirm.
[0041] In addition, as a second embodiment, the present invention also provides a printing system, characterized in that it includes: a print data processing device; and a handheld printer, which is communicatively connected to the print data processing device, wherein the print data processing device is the print data processing device in the first embodiment, and the handheld printer receives print data corresponding to the bitmap, and prints print characters in multiple print frames of a predetermined print frame group according to the print data.
[0042] In the second embodiment, it may also have such technical features, including: a mobile terminal, held by a user, communicatively connected to a print data processing device, having a scanning acquisition unit, a parsing acquisition unit and an information sending unit, the scanning acquisition unit scans the print frame group to acquire scan data, the parsing acquisition unit parses the scan data to acquire the size and position information of each print frame, and the information sending unit sends the size and position information of each print frame to the print data processing device.
[0043] In addition, as a third embodiment, the present invention also provides a printing method, including the following steps: displaying a print content input screen for allowing the user to input multiple print characters to be printed in multiple print frames of a print frame group set on a print medium as print content, allowing the user to input multiple print characters and corresponding print fonts; once the user determines the input print content and print font, determining a print confirmation font size that allows the print characters to be printed in the corresponding print frame and confirmed by the user at least based on the print font and the size of the print frame; determining the occupied area actually occupied by each print character in the corresponding print frame based on the print font and the print confirmation font size; determining the character position information of the print character based on the size and position information of each print frame and the occupied area of each print character; and generating a bitmap corresponding to the print content based on the print font, print character, print confirmation font size, the occupied area of each print character and the character position information.
[0044] <Example 1>
[0045] Figure 1 It is a structural block diagram of the printing system in the first embodiment of the present invention.
[0046] like Figure 1 As shown, the printing system 100 includes a print data processing device 1 and a handheld printer 2 . The print data processing device 1 is communicatively connected to the handheld printer 2 via a communication network 3 .
[0047] In this embodiment, the communication network 3 is a wireless network, and the handheld printer 2 communicates with the print data processing device 1 via the wireless network.
[0048] Figure 2 It is a schematic diagram of a postcard in the first embodiment of the present invention.
[0049] like Figure 2 As shown, this embodiment is described by taking printing a zip code in a zip code frame on a postcard 200 as an example. The upper right corner of the postcard 200 has a zip code frame group 201, and the zip code frame group 201 has 7 zip code frames 202 of the same size. In this embodiment, the zip code frame group 201 is used as a printing frame group, and the zip code frame is used as a printing frame.
[0050] Figure 3 It is a structural block diagram of a printing data processing device in Embodiment 1 of the present invention.
[0051] like Figure 3 As shown, the printing data processing device 1 has a template data storage unit 11, a screen storage unit 12, an input display unit 13, a printing font size determination unit 14, an occupied area determination unit 15, a character position determination unit 16, a bitmap generation unit 17, a data conversion unit 18, a prompt image generation unit 19, a processing side communication unit 20 and a processing side control unit 21.
[0052] The template data storage unit 11 is used to store the template names of multiple print frame groups and the size and position information of each print frame in the print frame group in advance, that is, the template data storage unit 11 stores a template parameter table. The print frame size includes the print frame width and the print frame height, and the print frame position information is the coordinates of each print frame.
[0053] Figure 4 It is a schematic diagram of the template parameter table in the first embodiment of the present invention.
[0054] like Figure 4 As shown, the template parameter table stores the template name, print frame width W, print frame height H, and print frame coordinates X1, X2, ...X n When searching, the corresponding print frame width W, print frame height H and print frame coordinates X1, X2, ...X can be retrieved according to the template name. n For example, in the template parameter table, the template name in the first row is "Template 1", and the corresponding print frame width W is "W1", the print frame height H is "H1", and the print frame coordinates X 11 ,X 12 ,...X 1n .
[0055] The screen storage unit 12 stores a print content input screen 121 , a print font size confirmation screen 122 , a print prompt screen 123 , and a template creation screen 124 .
[0056] The input display unit 13 displays a print content input screen 121 , a print font size confirmation screen 122 , a print prompt screen 123 , and a template creation screen 124 to allow the user to input data or make various selections and confirmations.
[0057] The print content input screen 121 allows the user to input characters constituting the print content and select the print font. The print font size confirmation screen 122 allows the user to confirm the font size for printing. The print prompt screen 122 is used to prompt the user how to operate the handheld printer 2. The template creation screen 124 allows the user to create a new template.
[0058] Figure 5 1 is a schematic diagram of the print content input screen 121 in the first embodiment of the present invention. Figure 5 (a) is a schematic diagram of the print content input screen 121 when template selection and print content input are not performed in the first embodiment of the present invention. Figure 5 (b) is a schematic diagram of the print content input screen 121 after template selection and print content input in the first embodiment of the present invention.
[0059] like Figure 5 As shown in (a), the print content input screen 121 includes a template selection area 121a, a template content display area 121b, a print content input area 121c, a font selection area 121d, a direction selection area 121e, and a confirmation button 121f.
[0060] The template selection area 121a is a pull-down selection menu, in which all template names stored in the template data storage unit 11 are displayed to allow the user to select one of the template names.
[0061] For example, Template 1 is Figure 2 The template of the postcard shown, the user selects the template named "Template 1" in this embodiment; Figure 4 The template parameter table, the print box width corresponding to "Template 1" is "W1", the print box height is "W1", and the print box coordinates are "X 11 ,X 12 ,...X 1n ", the number of print frames n = 7.
[0062] like Figure 5 As shown in (b), after the user selects a template, the template content display area 121b displays the template name of template 1 and the corresponding print frame width W1, print frame height H1, print frame coordinates X 11 ,X 12 ,...X 1n This embodiment also displays a thumbnail of the template in the template content display area 121b, that is, Figure 5(b) is a small picture on the left side of the template content display area 121b.
[0063] The user inputs a plurality of printing characters constituting the printing content in the printing content input area 121c, selects a printing font in the font selection area 121d, and selects a printing direction in the direction selection area 121e. Figure 5 As shown in (b), the user inputs the seven characters of the postal code "1234567" as the print content, selects the print font as "bold", and selects the print direction as "horizontal printing".
[0064] In addition, the print input screen also has a template creation button 121g for the user to select a new template. If the size and position information of the print frame actually used to print the characters input by the user is not stored in the template data storage unit 11, the user can also obtain the size and position information of the print frame by querying external data or measuring it by himself, and then create a new template by clicking the template creation button 121g. Once the user selects the template creation button 121g, the input display unit will display the template creation screen 124 for the user to enter the template name corresponding to the print frame group to be created, the number of print frames in the print frame n, the height H, the width W, and the coordinates X1, X2, ... X of each print frame. n .
[0065] Once the user presses the confirmation button 121g to confirm the information selected and input in the print content input screen, including the print font, print direction and print content, the print font size determination unit 14 determines the print confirmation font size that allows the print characters to be printed in the corresponding print box and confirmed by the user based on the print font and the size of the print box.
[0066] The print font size determination unit 14 includes a maximum font size acquisition unit 141 , a preview image generation unit 142 , and a font size setting unit 143 .
[0067] The maximum font size acquisition unit 141 acquires the maximum font size that enables the printing characters to be printed in the corresponding printing frame according to the printing frame height H, the printing frame width W, the printing font, and a predetermined font size reduction rule.
[0068] For example, for the "Template 1" selected by the user, the maximum font size acquisition unit 141 first acquires the height H1 and width W1 of the print frame according to the template name "Template 1" selected by the user; then, according to the height H1 of the print frame, a font size that can satisfy the requirement of printing characters in the corresponding print frame in the height direction is calculated as the maximum font size to be determined. The unit of the height H1 of the print frame is mm, and the inch size of the font size is the font size divided by 72, 1 inch = 25.4 mm, so the calculation formula of the maximum font size to be determined is as follows:
[0069]
[0070] Then, the width of the occupied area actually occupied by each printing character is determined according to all printing characters, printing fonts, and the maximum font size to be determined; and it is further determined whether the width of the occupied area of each printing character is less than the height H1 of the printing frame.
[0071] If the judgment is yes, the undetermined maximum font size is set as the maximum font size.
[0072] If the judgment is negative, the maximum font size to be determined is reduced according to the predetermined font size reduction rule and the reduced font size is used as the new maximum font size to be determined, and the width of the occupied area of each printed character is determined according to the new maximum font size to be determined, and then the judgment is performed again until the width of the occupied area of the printed characters corresponding to the maximum font size to be determined is less than the width W1 of the print frame, and the maximum font size to be determined at this time is set as the maximum font size. The predetermined font size reduction rule is: each time the judgment module 141c judges negative, the maximum font size to be determined is subtracted by 0.5pt.
[0073] The preview image generation unit 142 generates a preview image of the maximum font size formed when the printing characters are set in the corresponding printing frame according to all the printing characters, the printing font, the maximum font size, and the size of the printing frame.
[0074] Figure 6 : is a schematic diagram of a print font size confirmation screen in the first embodiment of the present invention. Figure 6 (a) is a schematic diagram of displaying a maximum font size preview image on a print font size confirmation screen in the first embodiment of the present invention. Figure 6 (b) is a schematic diagram of a preview image of the current font size when the reduction ratio is 40% on the print font size confirmation screen in the first embodiment of the present invention.
[0075] like Figure 6 As shown, the print size confirmation screen 122 includes a preview image display area 122 a , a reduction ratio setting area 122 b , and a ratio confirmation button 122 c .
[0076] like Figure 6 As shown in (a), once the maximum font size preview image 122d is generated, the input display unit 13 displays the print font size confirmation screen 122 and displays the maximum font size preview image 122d in the screen to allow the user to confirm whether the maximum font size preview image meets the printing requirements, that is, to confirm whether the maximum font size corresponding to the maximum font size preview image 122d is used as the font size for printing.
[0077] Once the user confirms the maximum font size preview image 122d (ie, presses the ratio confirmation button 122c), the font size setting unit 143 sets the maximum font size as the print confirmation font size.
[0078] If the user is not satisfied with the size of the characters in the displayed maximum font size preview image 122d, for example, if the characters are too full in the print frame and do not look good, and if the user wishes to have a larger margin between the characters and the frame, the user can set the reduction ratio of the printed characters in the reduction ratio setting area 122b. For example, in this embodiment, the reduction ratio is set to "40%".
[0079] Once the user enters the reduction ratio and confirms the reduction ratio (i.e., presses the ratio confirmation button 122c), the font size setting unit 143 obtains the font size obtained by multiplying the maximum font size by the reduction ratio as the current font size, and then the preview image generation unit 142 generates a current font size preview image 122e corresponding to the current font size. Figure 6 As shown in (b), the input display unit then displays the current font size preview image 122e in the preview image display area 122a of the print font size confirmation screen 122, so that the user can confirm whether the current font size preview image 122e meets the printing requirement.
[0080] If the user confirms the current font size preview image 122e, the font size setting unit 143 sets the current font size as the print confirmation font size; if the user is still not satisfied with the current font size preview image 122e, a new reduction ratio can be set in the ratio setting area 122b, and the process of obtaining the current font size preview image 122e can be repeated until the user confirms the displayed current font size preview image 122e and the font size setting unit 143 sets the print confirmation font size.
[0081] The occupied area determination unit 15 determines the height and width of the occupied area of each printed character according to the printing font and the print confirmation font size. Generally, there is a certain amount of margin on the top, bottom, left, and right sides of the character, and these margins together with the character itself constitute the occupied area actually occupied by the character. The height of the occupied area actually occupied by characters of different fonts under the same font size is equal, but the width of the occupied area may be different. For example, the width of the occupied area of the number 1 is significantly smaller than the width of the number 2.
[0082] Since the height of the area occupied by each printed character is equal, and the width of the area occupied by different printed characters is different, the height of the area occupied by the printed character is h and the width is w i , i∈(1,2,...n).
[0083] The character position determination unit 16 determines the character position information of the printed characters consisting of the character start position and the character spacing according to the size of the print frame, the position information of each print frame, the print direction and the occupied area of each printed character, and has a character start position acquisition unit 161 and a character spacing acquisition unit 162.
[0084] Figure 7It is a schematic diagram of printing characters within a printing frame during horizontal printing in the first embodiment of the present invention.
[0085] like Figure 7 As shown in the figure, a two-dimensional plane coordinate system is established with the lower left corner of the first print frame in the print frame group as the origin, the lower edge as the x-axis, and the left edge as the y-axis. Then the print frame coordinate X 11 ,X 12 ,...X 1n That is, the distance between the point at the lower left corner of each print box and the origin, where X 11 =0 (not shown in the figure).
[0086] The character starting position acquisition unit 161 obtains the character starting position based on the height H1 and width W1 of the print frame corresponding to the first print character in the print content and the height h and width w of the area occupied by the print character. i The leftmost position of the occupied area of the printing character that enables the printing character to coincide with the center point of the corresponding printing frame is obtained as the character starting position.
[0087] In this embodiment, the character starting position is the coordinate (x1, y) of the point at the lower left corner of the occupied area of the first printed character in the coordinate system, where x1 and y are the horizontal and vertical coordinates of the point at the lower left corner of the occupied area of the first printed character. The calculation formulas of x1 and y are as follows:
[0088]
[0089]
[0090] Since the print boxes in the print box group are arranged horizontally, the vertical coordinates of the points at the lower left corners of the occupied areas of all printed characters are equal, namely y.
[0091] Figure 8 It is a schematic diagram of two adjacent print frames during horizontal printing in the first embodiment of the present invention.
[0092] like Figure 8 As shown, the character spacing acquisition unit 162 obtains the character spacing according to the print frame width W1 and the coordinates X of each print frame. 11 ,X 12 ,...X 1n And the width w of the area occupied by each printed character i The distance between the occupied areas of adjacent printed characters is obtained as the character interval. Figure 7 and Figure 8 The medium grey area is the area occupied by the characters.
[0093] First, the character spacing acquisition unit 162 calculates the position of the center line of each print frame in the horizontal direction according to the width W1 of the print frame and the position information, and sets the horizontal coordinate of the center line as c i, c i The calculation formula is as follows:
[0094]
[0095] Then, according to the position of the center line and the width of the occupied area of the printed character, the distance between the right edge of the occupied area of the previous printed character and the left edge of the occupied area of the next printed character is calculated as the character interval d i , where the interval between the first printed character and the previous character is defined as d1 = 0. When i>1, d i The calculation formula is as follows:
[0096]
[0097] When the printing direction is selected by the user as vertical printing, the print frame coordinate X 11 ,X 12 ,...X 1n That is, the distance between the point at the upper left corner of each print frame and the point at the upper left corner of the first print frame. The character starting position is the topmost position of the occupied area of the print character that allows the print character to coincide with the center point of the corresponding print frame. The character spacing calculation unit calculates the vertical distance between two occupied areas corresponding to adjacent print characters as the character spacing d according to the vertical distance of each print frame and the height of the occupied area of each print character. i ′, the specific process is similar to that of horizontal printing and will not be repeated here.
[0098] The bitmap generation unit 17 generates a bitmap corresponding to the printing content according to the printing characters, printing fonts, printing confirmation font size, printing direction, the occupied area of each printing character, the character start position and the character interval.
[0099] The height G of the bitmap is equal to the width of the print head used for printing in the handheld printer 2 in a direction perpendicular to the sliding direction, which is also the maximum allowable inkjet amplitude of the handheld printer 2 during inkjet printing.
[0100] When the printing direction is horizontal, the starting position of the bitmap is determined by the left edge of the first print frame in the print frame group. The position of the first print character in the bitmap is the character starting position. The distance between the lower left corner of the print character and the left edge of the bitmap is The distance from the bottom edge of the bitmap is The characters printed in the bitmap are arranged horizontally, and a character space d is inserted between the occupied areas of two adjacent characters. i .
[0101] When the printing direction is vertical, the starting position of the bitmap is determined by the upper edge of the first print frame in the print frame group. The position of the first printed character in the bitmap is the character starting position. The distance between the upper left corner of the printed character and the upper edge of the bitmap is The distance between each printed character and the upper left corner and the left edge of the bitmap is The printed characters in the bitmap are arranged vertically, and a character space d is inserted between the occupied areas of two adjacent printed characters. i ′.
[0102] Once the bitmap is generated, the data conversion unit 18 converts each pixel in the bitmap into binary data as print data.
[0103] The processing-side communication unit 20 has a data transmission function. When the data conversion unit 18 generates print data, the processing-side communication unit 20 transmits the print data to the handheld printer 2 .
[0104] Fig. 9 It is a schematic diagram of a prompt image in the first embodiment of the present invention.
[0105] like Fig. 9 As shown, once the processing side communication unit 20 sends the print data to the handheld printer 2, the prompt image generation unit 19 generates a prompt image 123c indicating the starting position 123a and the sliding direction 123b of the bitmap based on the bitmap. The input display unit 13 displays the print prompt screen 123 and displays the prompt image in the screen for the user to refer to and confirm.
[0106] The print prompt screen 123 has a prompt message "Please print as follows", prompting the user to operate the handheld printer 2 to print according to the content displayed in the screen. At the starting position 123a of the bitmap, there is an arrow indication and a prompt message "Please align the reference line on the right side of the handheld printer with the left line position of the first print frame indicated by the arrow", prompting the user to the position where the handheld printer 2 starts to slide on the medium. On the left side of the sliding direction 123b, there is a prompt message "Please slide the handheld printer at a normal speed (0.5 cm / s to 1 cm / s) along the direction of the arrow", prompting the user to slide the handheld printer in the direction.
[0107] The processing-side control unit 21 stores a computer program for controlling the operation of each component of the print data processing apparatus 1 .
[0108] The handheld printer 2 is a portable printer carried by the user. The user can slide the printer at different positions on the print medium to print, thereby conveniently printing the content to be printed at any position on the print medium.
[0109] Fig.10It is a structural block diagram of the handheld printer in the first embodiment of the present invention.
[0110] like Fig.10 As shown, the handheld printer 2 includes an inkjet printing unit 26 , a sensing unit 27 , a printing-side communication unit 28 , and a printing-side control unit 29 .
[0111] The inkjet printing section 26 includes a printing head for performing inkjet printing in a sliding direction with a predetermined inkjet width when performing slide printing.
[0112] Fig.11 It is a schematic diagram of the handheld printer printing on a medium in the first embodiment of the present invention.
[0113] like Fig.11 As shown, the inkjet printing unit 26 includes an inkjet array 26a formed by arranging a plurality of inkjet heads on the handheld printer 2. When the user presses the side of the handheld printer 2 with the print head on the print medium and slides along the sliding direction 26b in the area 26c where the print frame group is located, the inkjet array 26a can spray ink under the control of the printing side control unit 29 to print in the print frame. The length D of the inkjet array 26a is the maximum allowable inkjet width during inkjet printing.
[0114] A reference line 2a is provided on the housing of the handheld printer 2. The reference line 2a can be a raised line or a printed line, and is located on a side perpendicular to the side with the print head. The reference line is parallel to the inkjet array 26a, and has a length equal to D, D=G, and is used to indicate the position of the print head and the length of the inkjet array 26a. Before printing, the user presses the handheld printer 2 on the medium so that the reference line is aligned with the left edge or upper edge of the first print frame in the print frame group, and the center of the reference line is aligned with the center of the left edge or upper edge of the first print frame, so that the inkjet array 26a is aligned with the left edge or upper edge of the first print frame.
[0115] The sensing unit 27 is used to sense whether the side of the handheld printer 2 with the print head is pressed on the print medium by the user and whether the user presses the handheld printer 2 on the print medium to slide. The sliding condition is whether the handheld printer 2 slides a certain distance.
[0116] There is a print button on the shell of the handheld printer 2. Whenever the user presses the print button, the sensing unit 27 senses whether the handheld printer 2 is pressed by the user to slide on the printing medium. Once the sensing unit 27 senses that the handheld printer 2 is pressed by the user to slide on the printing medium, the printing side control unit 29 controls the inkjet printing unit 26 to perform sliding printing within the printing frame group according to the printing data received by the printing side communication unit. Further, when the sensing unit 27 senses that the handheld printer 2 leaves the printing medium, the inkjet printing unit 26 is controlled to stop printing, thereby completing the sliding printing of the time.
[0117] In this embodiment, regardless of whether the inkjet printing unit 26 has completed printing the current print data, once the sensing unit 27 senses that the handheld printer 2 has left the print medium, the printing side control unit 29 will control the inkjet printing unit 26 to stop printing and determine that the current sliding printing has been completed.
[0118] At the same time, each time the slide printing is completed, the printing side control unit 29 controls the printing side communication unit 28 to send a slide printing completion message corresponding to the current print data to the print data processing device 1.
[0119] The printing-side control unit 29 stores a computer program for controlling the operation of each component of the handheld printer 2 .
[0120] Fig.12 It is an action flow chart of the printing system in the first embodiment of the present invention.
[0121] like Fig.12 As shown, the printing system 100 is used to print the characters to be printed input by the user in each printing frame of a predetermined printing frame group on the medium, and each character to be printed is located at the center of the corresponding printing frame. When the user uses the printing system 100, taking horizontal printing as an example, the action flow of inputting the printing content and performing sliding printing is as follows:
[0122] In step S1, the input display unit 13 displays the print content input screen 121 to allow the user to input print characters as the print content, select a template name, a print font, and a print direction, and confirm, and then proceed to step S2.
[0123] For example, the user selects a template named "Template 1" in the template selection area 121a, enters the print characters "1234567" as the print content in the print content input area 121d, selects the font as "bold" in the font setting area 121d, selects "landscape" in the direction selection area 121e, and finally clicks the confirmation button 121f to confirm the above input or selected settings.
[0124] In step S2, the print font size determination unit 14 determines the print confirmation font size that allows the print characters to be printed in the print box and confirmed by the user based on the print font, the print box height H and the print box width W corresponding to the template name selected in step S1, and then enters step S3.
[0125] In this embodiment, the print font size determination unit 14 retrieves the corresponding print frame height H1 and print frame width W1 in the template parameter table according to "Template 1", and then determines the print confirmation font size that can allow the print characters to be printed in the print frame corresponding to "Template 1" and confirmed by the user based on the print frame height H1 and print frame width W1 and the "bold" font.
[0126] Step S3: The occupied area determination unit 15 determines the height h and width w of the occupied area of each printed character according to the printing font and the print confirmation font size determined in step S2. i , then go to step S4.
[0127] In this embodiment, the occupied area determination unit 15 determines the height h and width w of the occupied area of each printed character in the user input "1234567" according to the "bold" and the print confirmation font size determined in step S2. i .
[0128] Step S4, the character position determination unit 16 determines the position of the character according to the printing direction, the print frame height H, the print frame width W, and the print frame coordinates X1, X2, ... X n And the height h and width w of the area occupied by each printed character i Determine the coordinates (x1, y) of the starting position of the character and the character spacing d between each printed character i Then proceed to step S5.
[0129] Step S5, the bitmap generation unit 17 generates a bitmap based on the print character, print direction, print font, and print confirmation font size to generate a height h and a width w of the occupied area of each print character. i , the coordinates of the starting position of the character (x1, y) and the character spacing d between each printed character i Generate a bitmap corresponding to the printing content, and then enter step S6.
[0130] In step S6 , the data conversion unit 18 converts each pixel in the bitmap generated in step S5 into binary data as print data, and then proceeds to step S7 .
[0131] In step S7 , the processing side communication unit 20 sends the print data converted and acquired in step S6 to the handheld printer 2 , and then proceeds to step S8 .
[0132] In step S8, the prompt image generating unit 19 generates a prompt image 123c according to the bitmap generated in step S5, and the input display unit 13 displays the print prompt screen 123 and displays the prompt image 123c in the screen for the user to refer to, and then proceeds to step S9.
[0133] Step S9: The user operates the handheld printer 2 according to the content of the prompt image 123c. Once the user aligns the reference line 2a of the handheld printer 2 with the Figure 2 When the left edge of the first zip code box 202 of the zip code box group 201 on the postcard is aligned and the print button is pressed, and the sensing unit 27 senses that the handheld printer 2 is pressed and slid on the postcard by the user, step S10 is entered.
[0134] In step S10, the printing side control unit 29 controls the inkjet printing unit 26 to perform sliding printing in the zip code frame group 201 according to the received printing data, and then enters the end state.
[0135] Fig.13 It is an action flow chart of the print font size determination unit in the first embodiment of the present invention.
[0136] like Fig.13 As shown, the specific action flow of the print font size determination unit 14 determining the print confirmation font size in step S2 is as follows:
[0137] Step S2.1, the maximum font size acquisition unit 141 acquires the height H and width W of the print frame, and then proceeds to step S2.2;
[0138] Step S2.2, the maximum font size acquisition unit 141 calculates the maximum font size to be determined according to the height H1 of the print frame. The calculation formula of the maximum font size to be determined is: Then proceed to step S2.3;
[0139] Step S2.3, the maximum font size acquisition unit 141 determines the actual occupied width w corresponding to each printed character according to all printed characters, the printed font, and the undetermined maximum font size calculated in step S2.2. i , and determine the width w of the area occupied by each printed character i Are they both smaller than the width W of the print frame? If so, proceed to step S2.4; if so, proceed to step S2.5;
[0140] Step S2.4, the maximum font size acquisition unit 141 takes the maximum font size to be determined calculated in step S2.2 minus 0.5 pt as the new maximum font size to be determined, and then proceeds to step S2.3;
[0141] Step S2.5, the maximum font size acquisition unit 141 sets the to-be-determined maximum font size as the maximum font size, and then proceeds to step S2.6;
[0142] Step S2.6, the preview image generating unit 142 generates a maximum font size preview image 122d according to the maximum font size, and the input display unit 13 displays the print font size confirmation screen 123 and displays the maximum font size preview image 122d in the screen for the user to confirm. If the user confirms, the process proceeds to step S2.7. If the user inputs a reduction ratio, the process proceeds to step S2.8.
[0143] Step S2.7, the font size setting unit 143 sets the maximum font size as the print confirmation font size, and then enters the end state;
[0144] Step S2.8, the font size setting unit 143 obtains the font size obtained by multiplying the maximum font size by the reduction ratio as the current font size, and the preview image generating unit 142 generates the current font size preview image 122e according to the current font size, the input display unit displays the print font size confirmation screen 123 and displays the current font size preview image 122e in the screen for the user to confirm, if the user confirms, then the process proceeds to step S2.9, if the user enters the reduction ratio again, then step S2.8 is repeated;
[0145] Step S2.9, the font size setting unit 143 sets the current font size as the print confirmation font size, and then enters step S3.
[0146] Fig.14 It is an action flow chart of the character position determination unit in the first embodiment of the present invention.
[0147] like Fig.14 As shown, the specific action flow of the character position determination unit 16 obtaining the character position information in step S4 is as follows:
[0148] Step S4.1, the character starting position acquisition unit 161 obtains the character starting position according to the print frame height H, the print frame width W, and the height h and width w of the area occupied by the first print character in the print content. i Calculate the coordinates (x1, y) of the starting position of the character. The calculation formulas for x1 and y are: Then proceed to step S4.2;
[0149] Step S4.2: the character spacing acquisition unit 162 obtains the character spacing according to the print frame width W and the coordinates X1, X2, ...X n Calculate the horizontal coordinate c of the center line of each print frame in the horizontal direction i , c i The calculation formula is: Then proceed to step S4.3;
[0150] Step S4.3: The character spacing acquisition unit 162 calculates the horizontal coordinate c of the center line obtained in step S4.2. i, the width w of the area occupied by each printed character i Calculate the distance between the occupied areas of adjacent printed characters as the character spacing d i , define the interval between the first printed character and the previous character d1 = 0, when i>1, d i The calculation formula is: Then proceed to step S5.
[0151] Example Function and Effect
[0152] According to the print data processing device and the printing system provided in this embodiment, since the print data processing device has a print font size determination unit, an occupied area determination unit, a character position determination unit and a bitmap generation unit, after the user inputs the print content and selects the print font, print direction and template name in the print content input screen, the print font size determination unit determines the print confirmation font size of the print character, and the occupied area determination unit determines the occupied area corresponding to each print character, and further determines the character position information that enables each print character to be located in the center of each print frame through the character position determination unit, and then the bitmap generation unit generates a bitmap corresponding to the print content and sends the print data corresponding to the bitmap to the handheld printer. Therefore, no matter how the font of the print character changes or how the size of the print frame and the position information of each print frame are different, the handheld printer is guaranteed to print each print character in the center of each print frame during printing, avoiding printing the print character outside the frame due to different fonts, thereby ensuring the beauty and neatness of the printing.
[0153] In addition, since the print data processing device has a template data storage unit that stores some commonly used print frame parameters, the user can select the template name to make the various components of the print data processing device call the print frame parameters corresponding to the template name, without having to obtain the print frame parameters through measurement before each printing, thereby reducing the user's workload.
[0154] In addition, for some print frames of special sizes and positions, users can create a new template through the template creation button and template creation screen, enter the corresponding print frame size and position information, set the template name, and store it in the template data storage unit. When the print frame parameters in the template need to be used again, you can select and call it again.
[0155] In addition, after the bitmap is generated, the prompt image generation unit will generate a prompt image indicating the starting position and sliding direction of the bitmap based on the bitmap, reminding the user of the sliding direction of the mobile handheld printer that needs to be controlled when printing. For users who use the handheld printer for the first time, users can quickly learn how to use the handheld printer.
[0156] <Example 2>
[0157] In the second embodiment, components having the same structure as those in the first embodiment are given the same reference numerals and corresponding descriptions are omitted.
[0158] Fig.15 It is a structural block diagram of the printing system in the second embodiment of the present invention.
[0159] like Fig.15 As shown, the printing system 300 of the second embodiment has a handheld printer 2, a communication network 3, a communication network 5, and a print data processing device 6. Compared with the first embodiment, the difference is that the printing system 300 of the second embodiment further has a mobile terminal 4. The mobile terminal 4 is held by the user and is connected to the print data processing device 6 through the communication network 5. In this embodiment, the communication network 3 and the communication network 5 are both wireless networks.
[0160] Fig.16 It is a structural block diagram of a printing data processing device in the second embodiment of the present invention.
[0161] like Fig.16 As shown, the print data processing device 6 includes a template data storage unit 11, a screen storage unit 12, an input display unit 13, a print font size determination unit 14, an occupied area determination unit 15, a character position determination unit 16, a bitmap generation unit 17, a data conversion unit 18, a prompt image generation unit 19, a processing side communication unit 20, and a processing side control unit 21. Compared with the first embodiment, the print data processing device 6 of the second embodiment further includes a parameter storage control unit 61.
[0162] Fig.17 It is a structural block diagram of a mobile terminal in Embodiment 2 of the present invention.
[0163] like Fig.17 As shown, the mobile terminal 4 comprises a scanning acquisition unit 41, an analysis acquisition unit 42, a terminal side communication unit 43 and a terminal side control unit 44. In this embodiment, the mobile terminal 4 is a mobile phone with a camera.
[0164] The terminal-side communication unit 43 is used for data communication between the various components of the mobile terminal 4 and between the mobile terminal 4 and the print data processing device 6 , and the terminal-side control unit 44 stores a computer program for controlling the operation of the various components of the mobile terminal 4 .
[0165] The scanning acquisition unit 41 is used to scan the print frame group on the medium to obtain a scanned image containing the print frame group. In this embodiment, the scanning acquisition unit 41 is a camera of a mobile phone. The user uses the mobile phone to take a photo of the medium with the print frame group to obtain a photo image, which is a scanned image containing the print frame group.
[0166] The analysis and acquisition unit 42 is used to analyze the scanned image to obtain the size and position information of each print frame. The analysis and acquisition unit 42 first identifies the print frame in the scanned image, and then analyzes the identified print frame to obtain the size and position information corresponding to each print frame.
[0167] The information sending unit 43 sends the size and position information of each print frame as parameter information to the print data processing device 6. After the processing side communication unit 20 receives the parameter information, the processing side control unit 21 controls the input display unit 13 to display the template creation screen 124, and displays the received parameter information in the template creation screen 124, allowing the user to confirm the parameter information and enter the corresponding template name.
[0168] When the user confirms the input template name, the parameter storage control unit 61 stores the template name and the size and position information of each print frame in the parameter information in the template data storage unit 11 in correspondence with each other.
[0169] In this case, the user does not need to select a new template in the print content input screen 121 to manually input the size and position information of each print frame in the print frame group.
[0170] In this embodiment, since the printing system also has a mobile terminal, the scanning acquisition unit of the mobile terminal is used to scan the print frame group on the medium to obtain a scanned image, and the analysis acquisition unit analyzes the scanned image to obtain the size and position information of each print frame, and further sends the size and position information of each print frame to the print data processing device. This print frame parameter acquisition method no longer requires the user to obtain the height, width and position of each print frame by manual measurement, which reduces the user's workload and improves printing efficiency.
[0171] The above embodiments are only used to illustrate specific implementation modes of the present invention, and the present invention is not limited to the description scope of the above embodiments.
[0172] For example, in the above embodiment, the preview image generation unit may also generate a maximum font size preview image containing only the character and a print frame based on the printed character with the largest width in the occupied area, allowing the user to confirm whether the widest printed character meets the requirements, or may generate a corresponding maximum font size preview image based on any printed character for the user to confirm.
[0173] For another example, in the above embodiment, the print content input screen may also have a ratio setting area, so that the user can set the print ratio to be scaled before seeing the maximum font size preview image, so that the first preview image generally meets the user's needs.
[0174] For another example, in the above embodiment, the print font size determination unit may also not have a font size setting unit. Each time a bitmap is generated, the bitmap is directly generated according to the maximum font size. In this case, a preview image is no longer generated, and the user no longer sets the print ratio. The character occupied area determination unit directly obtains the occupied area of the printed characters based on the maximum font size, thereby simplifying the user's operation process.
[0175] For another example, in the above embodiment, the selection of the printing direction is included, but in daily use scenarios, most printing frames are arranged horizontally. Therefore, in other embodiments, the user may not select the printing direction, and the character position determination unit only determines the character position information based on the size and position information of the printing frame arranged horizontally.
[0176] For another example, in the above embodiment, the sizes of the various print frames in the print frame group are equal, but for a print frame group with print frames of different sizes, the print confirmation font size and character position information need to be determined according to the size of each print frame.
[0177] For another example, in the above embodiment, the print data processing device and the handheld printer are connected for communication via a communication network, while in other embodiments, the print data processing device may also be built into the handheld printer to send print data via internal transmission.
[0178] For another example, in the above embodiment, the communication network may also be Bluetooth or a USB data connection.
Claims
1. A print data processing device, connected in communication with a handheld printer, characterized in that: include: a screen storage unit, an input display unit, a print font size determination unit, an occupied area determination unit, a character position determination unit, and a bitmap generation unit, The screen storage unit stores a print content input screen for allowing the user to input a plurality of print characters to be printed in a plurality of print frames of a print frame group set on a print medium as print content. The input display unit displays the print content input screen to allow the user to input the plurality of print characters and corresponding print fonts. The print content input screen also has a print frame parameter input area for allowing the user to input the size and position information of each print frame to be printed. Once the user confirms the input printing content and the printing font, the printing font size determination unit determines the printing confirmation font size that enables the printing characters to be printed in the corresponding printing frame and has passed the user's confirmation according to the printing font and the size of the printing frame. The occupied area determination unit determines the occupied area actually occupied by each of the printed characters in the corresponding printing frame according to the printing font and the printing confirmation font size. The character position determination unit determines the character position information of the printing characters based on at least the size and position information of each printing frame and the occupied area of each printing character. The bitmap generation unit generates a bitmap corresponding to the printing content based on at least the printing characters, the printing font, the printing confirmation font size, the occupied area of each printing character, and the character position information. The print font size determination unit comprises a maximum font size acquisition unit, a preview image generation unit and a font size setting unit. The screen storage unit also stores a print size confirmation screen. The maximum font size acquisition unit acquires the maximum font size that can allow the print character to be printed in the corresponding print frame according to the height and width of the print frame, the print font, and a predetermined font size reduction rule. The preview image generating unit generates a preview image of the maximum font size formed when the printing character is set in the corresponding printing frame according to at least one of the printing characters, the maximum font size and the size of the printing frame, Once the maximum font size preview image is generated, the input display unit displays the print font size confirmation screen and displays the maximum font size preview image on the screen to allow the user to confirm whether to use the maximum font size as the font size for printing. Once the user confirms the print font size, the font size setting unit sets the maximum font size as the print confirmed font size.
2. The print data processing device according to claim 1, characterized in that: in, The print font size confirmation screen also has a print ratio setting area for allowing the user to set a reduction ratio for the maximum font size preview image. Once the user confirms the reduction ratio, the font size setting unit obtains the current font size according to the reduction ratio and the maximum font size. The preview image generating unit generates a preview image of the current font size formed when the current font size is set in the corresponding print frame, The input display unit displays the print font size confirmation screen and displays the current font size preview image in the screen to allow the user to confirm whether to use the current font size as the font size for printing. Once the user confirms the print font size, the font size setting unit sets the current font size as the print confirmed font size.
3. The print data processing device according to claim 1, characterized in that: in, The character position determination unit comprises a character start position acquisition unit and a character interval acquisition unit. The character starting position acquisition unit acquires the character starting position that enables the center point of the printing character to coincide with the center point of the printing frame according to the size of the printing frame corresponding to the first printing character and the occupied area of the printing character. The character spacing acquisition unit acquires the distance between the occupied areas of the adjacent printed characters as the character spacing based at least on the distance between the respective print frames and the occupied areas of the respective printed characters. The character starting position and each of the character intervals constitute the character position information.
4. The print data processing device according to claim 3, characterized in that: in, The print content input screen also has a print direction selection area for allowing the user to select a print direction. When the printing direction is selected by the user as horizontal printing, the character spacing calculation unit calculates the horizontal distance between two occupied areas corresponding to the adjacent printing characters according to the horizontal distance between the printing frames and the width of the occupied area of each printing character as the character spacing. When the printing direction is selected by the user as vertical printing, the character interval calculation unit calculates the vertical distance between two occupied areas corresponding to adjacent printing characters as the character interval according to the vertical distance between each printing frame and the height of the occupied area of each printing character.
5. The print data processing device according to claim 1, characterized in that: in, The bitmap has a bitmap start position and a bitmap height, The starting position of the bitmap is determined by the left edge or the top edge of the first print frame in the print frame group. The height of the bitmap corresponds to the width of a print head used for printing in the handheld printer in a direction perpendicular to a sliding direction.
6. The print data processing device according to claim 1, characterized in that: Also includes: Template data storage unit, The screen storage unit also stores a template selection screen. The template data storage unit stores the template name of each print frame group and the size and position information of each print frame corresponding to the template name. The input display unit displays the template selection screen and displays the stored template names on the screen to allow the user to select. The print font size determination unit determines the print confirmation font size according to the size of the print frame corresponding to the template name selected by the user. The character position determination section determines the character position information based on the size and position of the print frame corresponding to the template name selected by the user.
7. The print data processing device according to claim 1, characterized in that: Also includes: prompting the image generating unit, The screen storage unit also stores a print prompt screen. Once the print data corresponding to the bitmap is sent to the handheld printer, the prompt image generation unit generates a prompt image indicating a start position and a sliding direction of the bitmap based on the bitmap. When the prompt image is generated, the input display unit displays the print prompt screen and displays the prompt image on the screen for the user to check and refer to.
8. A printing system, characterized in that: include: Print data processing device; as well as A handheld printer is connected in communication with the print data processing device. The print data processing device is the print data processing device according to any one of claims 1 to 7. The handheld printer receives the printing data corresponding to the bitmap and prints the printing characters in a plurality of the printing frames of a predetermined printing frame group according to the printing data.
9. The printing system according to claim 8, characterized in that: Also includes: The mobile terminal is held by the user, is connected to the print data processing device for communication, and has a scanning acquisition unit, an analysis acquisition unit, and an information sending unit. The scanning and acquiring unit is used to scan the printing frame group printed on the printing medium that the user needs to print and acquire a scanned image. The analyzing and acquiring unit analyzes the scanned image to acquire the size and position information of each print frame in the print frame group. The information transmitting section transmits the size and position information of each of the print frames to the print data processing device.
10. A printing data processing method, characterized in that: The steps include: Displaying a print content input screen for allowing a user to input a plurality of print characters to be printed in a plurality of print frames set on a print frame group on a print medium as print content, allowing the user to input the plurality of print characters and corresponding print fonts, The printing content input screen having a printing frame parameter input area is also displayed, allowing the user to input the size and position information of each printing frame to be printed. Once the user determines the input printing content and the printing font, a printing confirmation font size that enables the printing characters to be printed in the corresponding printing box and is confirmed by the user is determined at least according to the printing font and the size of the printing box. Determine the occupied area actually occupied by each of the printing characters in the corresponding printing frame according to the printing font and the printing confirmation font size, determining the character position information of the printing characters according to the size and position information of each printing frame and the occupied area of each printing character, Generate a bitmap corresponding to the printing content according to the printing font, the printing characters, the printing confirmation font size, the occupied area of each printing character and the character position information, According to the height and width of the print frame, the print font and a predetermined font size reduction rule, a maximum font size that can allow the print character to be printed in the corresponding print frame is obtained, generating a preview image of the maximum font size formed when the printing character is set in the corresponding printing frame according to at least one of the printing characters, the maximum font size and the size of the printing frame, Once the maximum font size preview image is generated, a print font size confirmation screen is displayed and the maximum font size preview image is displayed on the screen to allow the user to confirm whether to use the maximum font size as the font size for printing. Once the user confirms the print font size, the maximum font size is set as the print confirmed font size.
