Print data processing device and printing system

Through the printing data processing device and the printing system, users can select cells in the table document and automatically obtain the format to generate sliding printing content, solving the problem of cumbersome format setting when printing table documents by hand-held printers, and realizing the effect of direct printing and format retention.

CN114691053BActive Publication Date: 2025-06-17RICOH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011583617.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-28
Publication Date
2025-06-17
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

When printing table documents using handheld printers, users need to frequently format the cell content, especially when there are many cells, which is very troublesome. In addition, when handheld printers print through APP, the text format is incompatible, resulting in the user need to reset the content format of each cell.

Method used

A printing data processing device and a printing system are provided. Through a table document storage unit, a screen storage unit, an input display unit, a cell content acquisition unit, a data format conversion unit and a sliding printing content processing unit, a user can select cells to be printed in a table document, and the system automatically obtains text content and formats, and generates formatted text and bitmaps, which are processed as sliding printing content, and realizes direct printing.

Benefits of technology

Users do not need to repeatedly set the format in the table document, and can directly print the table document through a handheld printer, retaining the text format of each cell, improving printing efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691053B_ABST
    Figure CN114691053B_ABST
Patent Text Reader

Abstract

The present invention provides a printing data processing device and a printing system that enable a user to directly print a table document through a handheld printer. It is characterized in that, after the content of the table document is displayed on the printing data processing device and the user selects the cells to be printed, the text content and text format of each cell are obtained from the table document through the cell content acquisition unit, and formatted text corresponding to each cell is generated through the formatted text generation unit. Further, the bitmap generation unit can generate a corresponding bitmap based on the formatted text and process it into a scrolling print content through the scrolling print content processing unit for the user to print. Therefore, through this printing system, as long as the user selects the cells to be printed in the table document, the handheld printer can print the table document, avoiding the need for the user to repeatedly set the format in the table document through other means and enabling direct printing to be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a print data processing device and a printing system, and particularly to a print data processing device and a printing system that enable a user to directly print a table document through a handheld printer. Background Art

[0002] In daily life, some people often inevitably need to fill in a large amount of table content, such as couriers filling in express waybills, and finance personnel filling in accounting forms. In most cases, these table contents are filled in by handwritten means. With the increasingly widespread application of handheld printers, users can rely on the handheld printers carried with them to replace the process of handwritten input, that is, directly print the content to be filled in on various tables through the handheld printers.

[0003] However, on the one hand, when printing table content through a handheld printer, for each cell printed by the user, the format of the content in the cell needs to be set correspondingly. Especially when there are a large number of cells to be printed, the user needs to repeatedly perform format settings, which is very troublesome.

[0004] On the other hand, even if the user pre-edits the format of each cell through a table document, because the printing method of the handheld printer through the APP is different from that of the traditional printer using a driver, the text format in the table document cannot be compatible with the text format of the APP. Therefore, the user still needs to reset the corresponding content format for the content of each cell. Summary of the Invention

[0005] To solve the above problems, a print data processing device and a printing system are provided that enable a user to directly print a table document through a handheld printer and can retain the text format of each cell in the table document. The present invention adopts the following technical solutions:

[0006] <Structure One>

[0007] The present invention provides a print data processing device, which is communicatively connected to a handheld printer. The handheld printer is used for enabling a user to perform sliding printing on a printing medium. The print data processing device is characterized by comprising: a table document storage unit, a screen storage unit, an input display unit, a cell content acquisition unit, a data format conversion unit, and a sliding print content processing unit. The table document storage unit stores a table document including a plurality of cell contents, and each cell content contains text content and a corresponding text format. The screen storage unit stores a table printing setting screen. The input display unit displays the table printing setting screen and displays the table content of the table document to enable the user to select a plurality of cells to be printed from the table content. Once the user selects the cells to be printed, the cell content acquisition unit sequentially acquires the text content and the text format in each cell from the table document. The formatted text generation unit generates formatted text corresponding to each cell according to the text format and the text content respectively. The bitmap generation unit generates a bitmap corresponding to each cell according to the formatted text. The sliding print content processing unit sequentially processes each bitmap into sliding print content corresponding to each sliding print.

[0008] <Structure II>

[0009] The present invention provides a printing system, which is characterized by comprising: a print data processing device; and a handheld printer communicatively connected to the print data processing device. The print data processing device is the print data processing device in Structure I. The handheld printer receives the sliding print content and, each time the user holds the handheld printer and slides it on the printing medium, sequentially performs printing processing on the sliding print content.

[0010] Functions and effects of the invention

[0011] According to the print data processing device and the printing system of the present invention, after the print data processing device displays the content of the table document and enables the user to select the cells to be printed, the cell content acquisition unit acquires the text content and the text format in each cell from the table document, and the formatted text generation unit generates formatted text corresponding to each cell. Further, the bitmap generation unit can generate a corresponding bitmap based on the formatted text and process it into sliding print content through the sliding print content processing unit for the user to print. Therefore, through this printing system, as long as the user selects the cells to be printed in the table document, the handheld printer can print the table document, avoiding the need for the user to repeatedly set the format in the table document by other means and directly realizing printing. Description of the drawings

[0012] Figure 1 is a block diagram of the printing system in Embodiment 1 of the present invention;

[0013] Figure 2 It is a block diagram of the print data processing device in the first embodiment of the present invention;

[0014] Figure 3 It is a schematic diagram of the table document in the first embodiment of the present invention;

[0015] Figure 4 It is a schematic diagram of the table print setting screen in the first embodiment of the present invention;

[0016] Figure 5 It is a schematic diagram of the cell content confirmation screen in the first embodiment of the present invention;

[0017] Figure 6 It is a schematic diagram of the print status display screen in the first embodiment of the present invention;

[0018] Figure 7 It is a block diagram of the bitmap generation unit in the first embodiment of the present invention;

[0019] Figure 8 It is a flowchart of the printing process in the first embodiment of the present invention;

[0020] Figure 9 It is a block diagram of the print data processing device in the second embodiment of the present invention;

[0021] Figure 10 It is a block diagram of the bitmap generation unit in the second embodiment of the present invention;

[0022] Figure 11 It is a schematic diagram of the line text bitmap in the second embodiment of the present invention;

[0023] Figure 12 It is a flowchart of the printing process in the second embodiment of the present invention; and

[0024] Figure 13 It is a schematic diagram of the table print setting screen in the third embodiment of the present invention. Detailed Embodiments

[0025] In order to make the technical means, creative features, achieved purposes and effects of the present invention easy to understand, the printing system of the present invention will be specifically described below in conjunction with the embodiments and the drawings.

[0026] As an implementation form, the present invention provides a print data processing device, which is communicatively connected to a handheld printer. The handheld printer is used for enabling a user to perform sliding printing on a printing medium. The print data processing device is characterized by including: a table document storage unit, a screen storage unit, an input display unit, a cell content acquisition unit, a data format conversion unit, and a sliding print content processing unit. The table document storage unit stores a table document including a plurality of cell contents, and each cell content contains text content and a corresponding text format. The screen storage unit stores a table printing setting screen. The input display unit displays the table printing setting screen and displays the table content of the table document to enable the user to select a plurality of cells to be printed from the table content. Once the user selects the cells to be printed, the cell content acquisition unit sequentially acquires the text content and the text format in each cell from the table document. The formatted text generation unit generates formatted text corresponding to each cell according to the text format and the text content respectively. The bitmap generation unit generates a bitmap corresponding to each cell according to the formatted text. The sliding print content processing unit sequentially processes each bitmap into sliding print content corresponding to each sliding print.

[0027] In the above print data processing device, it may further have the following technical feature: each piece of sliding print content corresponds to a cell. The bitmap generation unit includes: a text size determination unit that respectively determines the text width occupied by each formatted text in the horizontal direction and the text height occupied by each formatted text in the vertical direction during actual printing; a bitmap size setting unit that sequentially sets the bitmap size corresponding to each formatted text according to the corresponding text height and text width; and a bitmap generation unit that generates a plurality of bitmaps with corresponding bitmap sizes according to the formatted text respectively.

[0028] In the above print data processing device, it may further have the following technical feature: the selected cells are arranged in a row-column form, and each piece of sliding print content corresponds to a row of cells. The bitmap generation unit includes: a text size determination unit that respectively determines the text width occupied by each formatted text in the horizontal direction and the text height occupied by each formatted text in the vertical direction during actual printing; a bitmap size setting unit that, based on the row-column relationship between the selected cells, sequentially sets the bitmap size corresponding to each formatted text according to the maximum text height in the same row and the maximum text width in the same column; a cell bitmap generation unit that generates a plurality of cell bitmaps with corresponding bitmap sizes and corresponding to each cell according to the formatted text respectively; and a row bitmap generation unit that splices the cell bitmaps corresponding to a row of cells at a predetermined interval to form a row text bitmap as the bitmap.

[0029] In the above printing data processing apparatus, it may further have the following technical feature, and further includes: a plural format determination unit and an image capture unit. Among them, there are multiple types of text formats. Once the cell content acquisition unit acquires all the text formats in a cell, the plural format determination unit sequentially determines whether there are multiple text formats of the same type in each cell. When the plural format determination unit determines that there are multiple text formats of the same type in a cell, the image capture unit captures the content of the cell displayed in the table printing setting screen to obtain a corresponding cell image, and the bitmap generation unit further generates a bitmap corresponding to the cell according to the cell image.

[0030] In the above printing data processing apparatus, it may further have the following technical feature, and further includes: a prompt image generation unit. The screen storage unit also stores a printing prompt screen. Once the sliding printing content is sent to the handheld printer, the prompt image generation 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 this screen for the user to refer to and confirm.

[0031] In the above printing data processing apparatus, it may further have the following technical feature, where the screen storage unit also stores a cell content confirmation screen. The table printing setting screen also has a confirmation section for the user to confirm whether to confirm the cell content to be printed. Once the user needs to confirm the cell content to be printed, the input display unit displays the cell content confirmation screen and displays each bitmap for the user to confirm the cell content to be printed.

[0032] As another embodiment, the present invention further provides a printing system, which is characterized in that it includes: a printing data processing apparatus; and a handheld printer, communicatively connected to the printing data processing apparatus, where the printing data processing apparatus is the printing data processing apparatus in the above embodiment, and the handheld printer receives the sliding printing content and sequentially performs printing processing on the sliding printing content each time the user holds the handheld printer and slides it on the printing medium.

[0033] <Example 1>

[0034] Figure 1 It is a structural block diagram of the printing system in the first embodiment of the present invention.

[0035] As Figure 1 shown, the printing system 10 includes a handheld printer 11, a printing data processing apparatus 12, and a communication network 13.

[0036] In this embodiment, the print data processing device 12 can communicate with the handheld printer 11 through the communication network 13 without installing a print driver. The communication network 13 can be a Bluetooth network or a wireless network.

[0037] The handheld printer 11 is a portable printer that can be carried around by the user, allowing the user to perform sliding printing at different positions on the printing medium, thus conveniently printing the print content to be printed at any position on the printing medium.

[0038] As Figure 1 shown, the handheld printer 11 has an inkjet printing unit 21, a sensing unit 22, a printing-side communication unit 23, and a printing-side control unit 21.

[0039] The inkjet printing unit 21 contains a print head that is used to perform inkjet printing in the sliding direction with a predetermined inkjet amplitude during sliding printing.

[0040] The inkjet printing unit 21 includes an inkjet array formed by arranging a plurality of inkjet heads on the handheld printer 11. When the user presses the side of the handheld printer 11 with the print head against the printing medium (such as a paper with a print frame) and slides it in the sliding direction, the inkjet array can perform inkjet under the control of the printing-side control unit 21 to perform printing within the print frame. Among them, the length of the inkjet array is the maximum allowable inkjet amplitude during inkjet printing.

[0041] The sensing unit 12 is used to sense whether the side of the handheld printer 11 with the inkjet printing unit 21 is pressed against the printing medium by the user. Once the sensing unit 12 senses the user's pressing, the inkjet printing unit 21 performs inkjet printing until the user lifts the handheld printer 11 and completes a sliding printing.

[0042] The printing-side communication unit 112 is used to perform data interaction between the handheld printer 11 and the print data processing device 12.

[0043] The print data processing device 12 can be a computer or a smart phone held by the user.

[0044] Figure 2 is a block diagram of the print data processing device in the first embodiment of the present invention.

[0045] As Figure 2 shown, the print data processing device 12 has a table document storage unit 31, a screen storage unit 32, an input display unit 33, a cell content acquisition unit 34, a plural format determination unit 35, a formatted text generation unit 36, an image capture unit 37, a bitmap generation unit 38, a sliding print content processing unit 39, a user-side communication unit 40, and a user-side control unit 41 for controlling the above-mentioned units.

[0046] The form document storage unit 31 stores the user's form documents. In this embodiment, the form document is an Excel document pre-edited by the user (such as an Excel document exported from a database).

[0047] Figure 3 It is a schematic diagram of the form document in the first embodiment of the present invention.

[0048] As Figure 3 shown, the form document 311 contains a plurality of cells arranged in rows and columns, and each cell stores text content with different preset text formats. The types of these text formats include font, font size, bold, italic, underline, strikethrough, etc.

[0049] Taking A, B, C,... as column numbers and 1, 2, 3,... as row numbers, it can be seen that in each row record, the warehousing date, commodity name, commodity number, and warehousing status of the commodity are stored in columns A to D in sequence. Among them, in each cell of column B, the set text format is bold and underlined; in cell D2, the first half of "Warehoused (ahead of schedule)", i.e., "Warehoused", has a format of bold 14-point font, and the second half, i.e., "(ahead of schedule)", has a format of non-bold 11-point font.

[0050] The screen storage unit 32 stores a form printing setting screen, a cell content confirmation screen, and a printing status display screen.

[0051] The form printing setting screen 321 is used to be displayed when the user opens the form document.

[0052] Figure 4 It is a schematic diagram of the form printing setting screen in the first embodiment of the present invention.

[0053] As Figure 4 shown, the form printing setting screen 321 contains a form document display part 322, a cell content determination area 323, and a confirmation selection button 331. The form document display part 322 displays the specific content of the form document for the user to select the cells to be printed therefrom; the cell content determination area 324 is used for the user to check whether to re-confirm the content to be printed before printing; the confirmation selection button 323 is used for the user to click to start the subsequent printing process after the user selects the cells and checks in the cell content determination area 324.

[0054] In this embodiment, the form document is an Excel document, and the form printing setting screen is the display screen of Excel software. The printing button 323 therein is a program developed in advance through VBA and run in Excel in the form of a macro. Taking Figure 3Taking the shown tabular document 311 as an example, the cells selected by the user are all the cells from A2 to D3. At this time, once the print button 322 is pressed, the macro will obtain the cell range Range(A2, D3) selected by the user and send it to the cell content acquisition unit 34.

[0055] Once the user selects the cells A2 to D3 that need to be printed and checks the radio box corresponding to "Yes" in the cell content determination area 323, and then clicks the confirmation selection button 323, the cell content acquisition unit 34, the plural format determination unit 35, the formatted text generation unit 36, the image capture unit 37, and the bitmap generation unit 38 will successively process the selected cells to generate bitmaps corresponding to each cell. Next, the input display unit will further display a cell content confirmation screen for the user to confirm the cell content.

[0056] Figure 5 It is a schematic diagram of the cell content confirmation screen in the first embodiment of the present invention.

[0057] The cell content confirmation screen 324 has a bitmap display part 325, a cell content display part 326, and a confirmation print button 332. Each bitmap generated by the bitmap generation unit 38 is displayed in the bitmap preview part 325; the cell content display part 326 displays the content of the selected cells, so that the user can confirm whether the bitmap displayed in the bitmap preview part 325 matches the cell content; the confirmation print button 326 allows the user to click after confirmation to start printing with the handheld printer 11.

[0058] Figure 6 It is a schematic diagram of the print status display screen in the first embodiment of the present invention.

[0059] As Figure 6 shown, the print status display screen 327 has a plurality of bitmap display parts 328 and a sliding print times display part 329. Among them, the bitmap display part 328 is used to display all the bitmaps that need to be printed, and on the currently printed bitmap, a sliding direction mark 330 is displayed to prompt the user of the sliding print direction; the sliding print times display part 329 is used to display the remaining print times.

[0060] The input display unit 33 is used to display the above-mentioned tabular print setting screen 321, cell content confirmation screen 324, and print status display screen 327, so that the user can complete the corresponding human-computer interaction through these screens.

[0061] Once the user specifies multiple cells to be printed through the tabular print setting screen 321, the cell content acquisition unit 34 will traverse each cell in the tabular document in the order of rows and columns and obtain all the text content and text formats in the corresponding cells.

[0062] In this embodiment, the text content of each cell obtained by the cell content acquisition unit 34 is temporarily stored correspondingly through a two-dimensional array, and the text format of each cell is stored in a two-dimensional object of a FontSettings class.

[0063] The plural format determination unit 35 sequentially determines for each cell whether there are plural formats of the same type in the text format of the cell. For example, it determines whether there are two or more fonts set in a cell at the same time, or determines whether bold, non-bold, etc. are set at the same time.

[0064] For example, for cell B2, the text content obtained by the cell content acquisition unit 34 is "Product A", and the obtained text format is 11-point font, bold, and underlined. At this time, the plural format determination unit 35 can determine that 11-point font, bold, and underlined all belong to different types of formats. Therefore, there are no plural formats of the same type in the text format of cell B2.

[0065] In contrast, for cell D2, the text content obtained by the cell content acquisition unit 34 is "In stock (ahead of schedule)", and the obtained text formats are 11-point font, 14-point font, bold, and non-bold. At this time, the plural format determination unit 35 can determine that 11-point font and 14-point font belong to the same type of format, and bold and non-bold also belong to the same type of format. Therefore, there are plural formats of the same type in the text format of cell D2.

[0066] The formatted text generation unit 36 is used to generate formatted text corresponding to each cell according to the text format and the text content when the plural format determination unit 35 determines that there are no plural formats in the cell.

[0067] In this embodiment, the above-mentioned cell content acquisition unit 34 and the formatted text generation unit 36 are equivalent to an intermediate program for converting the text format of the VBA language obtained from the execl into the text format supported by the bitmap generation unit 38 as the SDK below. Specifically, the formatted text is an object implemented by the RichTextBox control required by the SDK. The formatted text generation unit 36 traverses the two-dimensional array and the two-dimensional object of the cell content acquisition unit 34 through a loop, and converts the data structures of the text content and the text format of each cell into the data structures supported by the SDK, so as to form the formatted text corresponding to each cell.

[0068] The image capture unit 37 is used to capture an image of the content of the cell displayed on the table printing setting screen 321 to obtain a corresponding cell image when the plural format determination unit 35 determines that there are no plural formats in the cell.

[0069] In this embodiment, the cell image captured by the image capture unit 37 is the image directly displayed on the screen of the print data processing device 12, and the clarity of this image is related to the screen resolution of the print data processing device 12.

[0070] The bitmap generation unit 38 is used to generate a corresponding bitmap according to the formatted text, and generate a corresponding bitmap according to the cell image.

[0071] Figure 7 It is a block diagram of the bitmap generation unit in the first embodiment of the present invention.

[0072] As Figure 7 shown, the bitmap generation unit 38 has a text size determination unit 381, a bitmap size setting unit 382, and a cell bitmap generation unit 383.

[0073] The text size determination unit 381 respectively determines the text width occupied by each formatted text in the horizontal direction and the text height occupied in the vertical direction during actual printing. In this embodiment, the text width and text height are related to the format setting of the formatted text. For example, the larger the font size, the larger the text width and text height.

[0074] The bitmap size setting unit 382 sequentially sets the bitmap size corresponding to each formatted text according to the corresponding text height and text width.

[0075] The cell bitmap generation unit 383 generates a plurality of corresponding cell bitmaps as the finally generated bitmap according to the formatted text, the bitmap size, and the inkjet amplitude of the handheld printer 11.

[0076] In this embodiment, if in the case of horizontal printing, the height of the bitmap size exceeds the inkjet amplitude, then when generating the bitmap for the corresponding formatted text, it will be cut and form multiple bitmaps with a height not exceeding the inkjet amplitude.

[0077] When the bitmap generation unit 38 generates all the bitmaps corresponding to the cell selected by the user, the input display unit 33 displays the cell content confirmation screen 132 and allows the user to confirm whether to start printing.

[0078] Once the user confirms to start printing, the sliding print content processing unit 39 is used to convert each pixel point in each bitmap into binary data and form the sliding print content corresponding to the corresponding sliding print. In this embodiment, the sliding print content is RPCS-R data that can be directly recognized by the handheld printer 11.

[0079] After the sliding print content is processed by the sliding print content processing unit 39, the user-side communication unit 40 will send the sliding print content to the handheld printer 11, enabling the user to perform sliding printing on each cell separately.

[0080] Figure 8 It is a flowchart of the printing process in the first embodiment of the present invention.

[0081] As Figure 8 shown, when the user needs to print a table document and starts the print data processing device 101, the following steps begin:

[0082] Step S11-1, the input display unit 33 displays a table print setting screen and shows the content of the table document 311 in this screen. The user selects the cells A2 to D3 that need to be printed, and then proceeds to step S11-2;

[0083] Step S11-2, the cell content acquisition unit 34 sequentially acquires the print content and print format of the cells A2 to D3, and then proceeds to step S11-3;

[0084] Step S11-3, the plural format determination unit 35 sequentially determines the cells A2 to D3 to determine whether there are plural text formats of the same type in each cell. If the determination is no, it proceeds to S11-4; if the determination is yes, it proceeds to step S11-5;

[0085] Step S11-4, the formatted text generation unit 36 generates corresponding formatted text according to the text format and text content of the cells determined to be no in step S11-3, and then proceeds to step S11-6;

[0086] Step S11-5, the image capture unit 37 captures the content of the cells determined to be yes in step S11-3 in the table print setting screen displayed by the input display unit 33 to obtain the corresponding cell images, and then proceeds to step S11-6;

[0087] Step S11-6, it is determined whether there are still cells in A2 to D3 that have not been determined by the plural format determination unit 35. If yes, it proceeds to step S11-3; if no, it proceeds to step S11-7;

[0088] Step S11-7, the bitmap generation unit 38 generates bitmaps corresponding to the cells A2 to D3 respectively according to the formatted text generated in step S11-4 and the cell images captured in step S11-5, and then proceeds to step S11-8;

[0089] Step S11-8: The sliding print content processing unit 39 processes the bitmap generated in step S11-7 into sliding print content corresponding to each sliding print, and then proceeds to step S11-9;

[0090] Step S11-9: The user-side communication unit 40 sends the sliding print content to the handheld printer 11, enabling the user to perform sliding printing on each cell in sequence. After the user completes all sliding prints, it enters the end state.

[0091] Function and Effect of Embodiment 1

[0092] According to the printing data processing device and printing system provided in this Embodiment 1, since the content of the table document is displayed on the printing data processing device for the user to select the cells to be printed, the text content and text format of each cell are obtained from the table document by the cell content acquisition unit, and the formatted text generation unit generates formatted text corresponding to each cell. Further, the bitmap generation unit can generate a corresponding bitmap based on the formatted text and process it into sliding print content through the sliding print content processing unit for the user to print. Therefore, through this printing system, as long as the user selects the cells to be printed in the table document, the handheld printer can print the table document, avoiding the need for the user to repeatedly set the format in the table document by other means and enabling direct printing.

[0093] In addition, in the above Embodiment 1, since the printing data processing device has a plural format judgment unit that can judge whether there are plural text formats of the same type in a cell, when there are plural text formats of the same type in the format set for the text content in a cell, the cell image can be intercepted by the image interception unit, and further a corresponding bitmap can be generated by the bitmap generation unit. However, since the clarity of the cell image intercepted by the image interception unit corresponds to the resolution of the display screen of the printing data processing device, the generated bitmap may not be as clear as the bitmap generated based on the formatted text.

[0094] In addition, in the above Embodiment 1, since each sliding print corresponds to a cell, for example, in forms such as files and questionnaires, since the information filling positions such as name, gender, and ID number are often not in the same row, the user can print the content of each cell to the corresponding information filling position in sequence. In addition, in this way, the user can also use it to print and fill in the information filling positions located in the same row respectively, but this may cause the cell content in the same row to be more difficult to align.

[0095] <Embodiment 2>

[0096] In the second embodiment, the same symbols are given to the constituent elements having the same structure as those in the first embodiment, and the corresponding descriptions are omitted.

[0097] Compared with the first embodiment, the difference in the second embodiment is that each piece of sliding print content generated by the print data processing device corresponds to a row of cells in the table document, so that the user can perform sliding printing on each row of cells.

[0098] Figure 9 It is a block diagram of the print data processing device in the second embodiment of the present invention.

[0099] As Figure 9 shown, the print data processing device 50 has a table document storage unit 31, a screen storage unit 32, an input display unit 33, a cell content acquisition unit 34, a plural format determination unit 35, a formatted text generation unit 36, an image capture unit 37, a bitmap generation unit 51, a sliding print content processing unit 39, a user-side communication unit 40, and a user-side control unit 41 for controlling the above-mentioned units.

[0100] Figure 10 It is a block diagram of the bitmap generation unit in the second embodiment of the present invention.

[0101] As Figure 10 shown, the bitmap generation unit 51 has a text size determination unit 511, a bitmap size setting unit 512, a cell bitmap generation unit 513, and a row bitmap generation unit 514.

[0102] The text size determination unit 511 respectively determines the text width occupied by each formatted text and the cell image in the horizontal direction and the text height occupied in the vertical direction during actual printing.

[0103] The bitmap size setting unit 512 sets the bitmap size corresponding to the formatted text based on the row and column relationships between the selected cells, successively setting the maximum text height in the same row and the maximum text width in the same column for each formatted text and the cell image.

[0104] The cell bitmap generation unit 513 respectively generates a plurality of cell bitmaps corresponding to each cell and having the corresponding bitmap size according to the formatted text.

[0105] The row bitmap generation unit 514 splices the cell bitmaps corresponding to a row of cells at a predetermined interval to form a row text bitmap as the finally generated bitmap.

[0106] Figure 11 It is a schematic diagram of the row text bitmap in the second embodiment of the present invention.

[0107] As Figure 11As shown, in the line text bitmaps 521 and 522 generated by the sliding print content processing unit 52, it can be seen that although the text lengths of "In stock (ahead of schedule)" and "Waiting for stock (urged)" which belong to the same column of cells are different, the bitmap sizes generated after setting the bitmap size by the bitmap size setting unit 512 are the same. Next, in the sliding print content processing unit 52, the bitmaps of the same row are spliced at a predetermined interval 523, and the bitmaps in the line text bitmaps 521 and 522 are aligned. Therefore, when the user finally prints through the handheld printer 11, the cell contents of one row are all aligned.

[0108] Figure 12 It is the flowchart of the printing process in the second embodiment of the present invention.

[0109] As Figure 12 shown, when the user needs to print a table document and starts the print data processing device 101, the following steps are started:

[0110] Step S12-1, the input display unit 33 displays a table print setting screen and displays the content of the table document 311 on this screen, allowing the user to select the cells to be printed, and then entering step S12-2;

[0111] Step S12-2, the cell content acquisition unit 34 sequentially acquires the print content and print format of the cells, and then enters step S12-3;

[0112] Step S12-3, the plural format determination unit 35 sequentially determines the cells to determine whether there are plural text formats of the same type in each cell. If the determination is no, it enters S11-4. If the determination is yes, it enters step S12-5;

[0113] Step S12-4, the formatted text generation unit 36 generates corresponding formatted text according to the text format and text content of the cells determined to be no in step S12-3, and then enters step S12-6;

[0114] Step S12-5, the image capture unit 37 captures the content of the cells determined to be yes in step S12-3 in the table print setting screen displayed by the input display unit 33 to obtain corresponding cell images, and then enters step S12-6;

[0115] Step S12-6, determine whether there are still cells in the cell that have not been determined by the plural format determination unit 35. If yes, enter step S12-3. If no, enter step S12-7;

[0116] Step S12-7: The bitmap generation unit 38 generates bitmaps corresponding to the cells respectively according to the formatted text generated in Step S12-4 and the cell images intercepted in Step S12-5, and then proceeds to Step S12-8;

[0117] Step S12-8: The sliding print content processing unit 39 splices the bitmaps corresponding to a row of cells at a predetermined interval to form a row text bitmap, and processes the row text bitmap into sliding print content corresponding to each sliding print, and then proceeds to Step S12-9;

[0118] Step S12-9: The user-side communication unit 40 sends the sliding print content to the handheld printer 11, enabling the user to perform sliding printing on the cells of each row, and then entering the end state after the user completes all sliding printing.

[0119] Functions and Effects of Embodiment 2

[0120] According to the printing data processing device and printing system provided in Embodiment 2 of the present invention, in addition to having the effect in Embodiment 1 that allows the user to select the cells to be printed in the table document and enables the handheld printer to print the table document. Also, since the bitmap generation unit has a bitmap size setting unit, it can generate cell bitmaps correspondingly according to the formatted text with the largest size in a row and a column, and splice the bitmaps of all cells in a row to form a row text bitmap. Therefore, when printing some information filling positions in the same row, such as printing business cards, data that needs to be printed in a row, such as names, QR codes, etc., the user can use the above-mentioned row-by-row printing method to make each row of cells printed finally aligned in rows and columns.

[0121] <Embodiment 3>

[0122] In this Embodiment 3, the same symbols are given to the constituent elements having the same structure as in Embodiment 1, and the corresponding descriptions are omitted.

[0123] Compared with Embodiments 1 and 2, the difference in this Embodiment 3 is that the printing data processing device has two bitmap generation units, namely the bitmap generation unit 38 in Embodiment 1 and the bitmap generation unit 51 in Embodiment 2. At the same time, the table printing setting screen also has a printing mode selection part, enabling the user to select through this printing mode selection part whether to print each cell separately or each row of cells separately during printing.

[0124] Figure 13 It is a schematic diagram of the table printing setting screen in Embodiment 3 of the present invention.

[0125] As Figure 13As shown in the figure, in addition to including a table document display section 322, a cell content determination area 323, and a confirmation selection button 331, the table printing setting screen 621 also includes a printing mode selection section 622.

[0126] The printing mode selection section 622 is used to allow the user to select cell-by-cell printing or row-by-row printing.

[0127] Once the user selects cell-by-cell printing, the bitmap generation unit 38 generates a bitmap corresponding to each cell in the same manner as in the first embodiment, so that the user can print each cell one by one.

[0128] Once the user selects row-by-row printing, the bitmap generation unit 51 generates a bitmap corresponding to each row of cells in the same manner as in the second embodiment, so that the user can print each row of cells row by row.

[0129] Functions and effects of the third embodiment

[0130] According to the printing data processing device and the printing system provided in the third embodiment, since the table printing setting screen has a printing mode selection section for the user to select cell-by-cell printing or row-by-row printing, the user can flexibly select the printing mode according to the actual printing requirements, which is convenient for the user's daily use.

[0131] The above embodiments are only used to illustrate the specific implementation manners of the present invention, and the present invention is not limited to the description scope of the above embodiments.

Claims

1. A printing data processing device, communicatively connected to a handheld printer, which is used for a user to perform sliding printing on a printing medium, characterized in that, Including: A table document storage unit, a screen storage unit, an input display unit, a cell content acquisition unit, a formatted text generation unit, a bitmap generation unit, and a sliding print content processing unit, The table document storage unit stores a table document including a plurality of cell contents, and each of the cell contents contains text content and a corresponding text format, The screen storage unit stores a table printing setting screen, The input display unit displays the table printing setting screen and displays the table content of the table document to allow the user to select a plurality of cells to be printed from the table content, Once the user selects the cells to be printed, the cell content acquisition unit sequentially acquires the text content and text format in each of the cells from the table document, The formatted text generation unit generates formatted text corresponding to each cell according to the text format and the text content respectively, The bitmap generation unit generates a bitmap corresponding to each cell according to the formatted text, The sliding print content processing unit sequentially processes each bitmap into sliding print content corresponding to each sliding print.

2. The printing data processing device according to claim 1, characterized in that: Wherein, Each piece of the sliding print content corresponds to one of the cells, The bitmap generation unit includes: A text size determination unit that respectively determines the text width occupied by each of the formatted texts in the horizontal direction and the text height occupied in the vertical direction during actual printing; A bitmap size setting unit that sequentially sets the bitmap size corresponding to each of the formatted texts according to the corresponding text height and text width; and A cell bitmap generation unit that generates a plurality of bitmaps with corresponding bitmap sizes according to the formatted texts respectively.

3. The printing data processing device according to claim 1, It is characterized in that: Among them, the selected cells are arranged in a row-column form, Each piece of the sliding print content corresponds to a row of the cells, The bitmap generation unit includes: A text size determination unit that respectively determines the text width occupied by each of the formatted texts in the horizontal direction and the text height occupied in the vertical direction during actual printing; A bitmap size setting unit that, based on the row-column relationship between the selected cells, sequentially sets the bitmap size corresponding to each of the formatted texts according to the maximum text height in the same row and the maximum text width in the same column; and A cell bitmap generation unit that generates a plurality of cell bitmaps with corresponding bitmap sizes and corresponding to each cell according to the formatted texts respectively; and A row bitmap generation unit that splices the cell bitmaps corresponding to a row of cells at a predetermined interval to form a row text bitmap as the bitmap.

4. The printing data processing device according to claim 1, characterized in that, It further includes: A plural format judgment unit and an image cropping unit, Among them, there are multiple types of the text formats, Once the cell content acquisition unit acquires all the text formats in the cell, the plural format judgment unit sequentially judges whether there are plural text formats of the same type in the text format of each cell, When the plural format determination unit determines that there are plural text formats of the same type in the cell, the image capture unit captures an image of the content of the cell displayed in the table printing setting screen to obtain a corresponding cell image. The bitmap generation unit further generates the bitmap corresponding to the cell according to the cell image.

5. The printing data processing device according to claim 1, characterized in that, It further includes: a prompt image generation unit; The screen storage unit further stores a print prompt screen. Once the sliding print content is sent to the handheld printer, the prompt image generation 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 print prompt screen and displays the prompt image in the screen for the user to refer to and confirm.

6. The printing data processing apparatus according to claim 1, wherein: wherein, The screen storage unit further stores a cell content confirmation screen. The table printing setting screen further has a confirmation part for the user to confirm whether it is necessary to confirm the cell content to be printed. Once the user needs to confirm the cell content to be printed, the input display unit displays the cell content confirmation screen and displays each bitmap for the user to confirm the cell content to be printed.

7. A printing system, characterized in that, It includes: a print data processing device; and a handheld printer, communicatively connected to the print data processing device. Wherein, the print data processing device is the print data processing device according to any one of claims 1-6. The handheld printer receives the sliding print content and, each time the user holds the handheld printer and slides it on the print medium, sequentially performs print processing on the sliding print content.

Citation Information

Patent Citations

  • Image based search to identify objects in documents

    CN106575300A

  • View drawing method and device, electronic equipment and storage medium

    CN110930496A