Paper saving method for printer and printer
By designing a paper-saving method for receipt printers, adjusting the effective area and blank area of receipts, the problem of waste of paper for receipts in the prior art is solved, and the paper consumption and resource saving of the printing of receipt content is reduced.
Patent Information
- Application Number
- CN202411805318.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-02-14
AI Technical Summary
Existing receipt printers are difficult to achieve accurate modification of receipt content and format, resulting in the inability to effectively reduce the waste of receipt paper, limiting the potential for saving resources and the environment.
Design a paper-saving method for printers. By receiving user instructions, determine whether there is paper inside the printer, and adjust the valid and blank areas of the receipt according to the paper-saving mode, including adjusting blank lines, line spacing, font sharpening and Typesetting optimization, controls movable blade cutting and motor reverse drive for efficient paper utilization.
It realizes the selection of customized receipt saving methods based on customer configuration, reduces paper consumption for printing receipt content, saves the use of excess paper outside the receipt content, and reduces operating costs and resource waste.
Smart Images

Figure CN119427954A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of printing technology, and in particular to a paper saving method for a printer and a printer. Background Art
[0002] Paper receipts are commonly used as transaction vouchers in restaurants, convenience stores, supermarkets, etc. Although the amount of paper used for each receipt is not large, due to frequent daily transactions, the total amount of paper used is considerable, which not only increases operating costs, but also puts a certain amount of pressure on resources and the environment.
[0003] In the prior art, merchants usually lack the ability to accurately modify the content and format of receipts. The length, layout and content of receipts are mostly generated by the system by default, which is difficult to flexibly customize according to specific needs. This limitation makes it impossible for merchants to effectively reduce the waste of receipt paper, limiting the potential for saving resources.
[0004] Therefore, there is an urgent need for a paper-saving method for a printer so that users can customize the receipts and achieve the goal of saving paper. Summary of the invention
[0005] In view of this, the present application discloses a paper-saving method for a printer and a printer, which enables users to customize receipts and thereby achieve the goal of saving paper.
[0006] In a first aspect, the present application discloses a paper-saving method for a printer, wherein the printer is configured to receive information of a target receipt and print the target receipt, wherein the target receipt includes a valid area and a blank area, and the method includes: receiving a user instruction and determining a paper-saving mode based on the user instruction; before printing, determining whether there is paper inside the printer, and controlling the relative position of the paper based on the result of the determination and the paper-saving mode; when starting to print, caching and parsing the target receipt, and adjusting the valid area of the target receipt based on the paper-saving mode; transmitting the adjusted target receipt to the print head, and adjusting the blank area of the target receipt based on the paper-saving mode.
[0007] Optionally, the paper saving mode includes a first paper saving operation; determining whether there is paper inside the printer, and controlling the relative position of the paper based on the determination result and the paper saving mode, including: when the first paper saving operation is triggered and there is paper inside the printer, returning the paper to the roller of the printer.
[0008] Optionally, the paper saving mode includes a second paper saving operation; determining whether there is paper inside the printer, and controlling the relative position of the paper based on the determination result and the paper saving mode, including: when the second paper saving operation is triggered and there is no paper inside the printer, returning the paper to the roller of the printer after the paper loading is completed.
[0009] Optionally, the printer has a paper-out sensor; the method includes: determining a judgment result according to feedback information of the paper-out sensor.
[0010] Optionally, the target receipt is cached and parsed, and the effective area of the target receipt is adjusted based on the paper-saving mode, including at least one of the following steps: adjusting blank lines and line spacing in the effective area based on the paper-saving mode; sharpening the font and / or optimizing the layout of the effective area based on the paper-saving mode; dividing the effective area into blocks, and adjusting the information in the same block based on a preset ratio.
[0011] Optionally, the paper saving mode includes a third paper saving operation; adjusting the blank lines and line spacing in the effective area based on the paper saving mode includes: setting proportional coefficients of the blank lines and line spacing respectively; when the third paper saving operation is triggered, adjusting the effective area based on the proportional coefficient.
[0012] Optionally, the paper-saving mode includes a fourth paper-saving operation; based on the paper-saving mode, the effective area is font sharpened and / or typesetting optimized, including: judging whether to perform a sharpening operation based on the degree of blurriness of the text in the effective area, and when performing the sharpening operation, rasterizing the text in the effective area; when the fourth paper-saving operation is triggered, information located in different rows in the effective area is merged into the same row.
[0013] Optionally, the printer has a motor and a movable blade, and the paper saving mode includes a fifth paper saving operation; adjusting the blank area of the target receipt based on the paper saving mode includes: after printing is completed, controlling the movable blade to cut the target receipt; when the fifth paper saving operation is triggered, controlling the motor to drive in reverse so that the paper coupled to the bottom of the target receipt returns to the roller of the printer.
[0014] Optionally, the target receipt is a multi-copy receipt, and the multi-copy receipt includes a first copy and a second copy, and the paper-saving mode includes a sixth paper-saving operation; the blank area of the target receipt is adjusted based on the paper-saving mode, including: after the first copy is printed, controlling the movable blade to cut the target receipt; when the sixth paper-saving operation is triggered and before the second copy starts printing, controlling the motor to drive in reverse so that the paper coupled to the bottom of the first copy returns to the roller of the printer.
[0015] In a second aspect, the present application discloses a printer using the paper saving method for a printer disclosed in the first aspect above.
[0016] To sum up, the paper-saving method for a printer and the printer disclosed in the present application have at least the following beneficial effects: the method can customize the receipt saving method according to the customer's configuration selection, and adjust the receipt as a whole to save the use of excess paper other than the receipt content, and reduce the paper consumption for printing the receipt content without affecting the display of the receipt content and the overall effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The following is a brief introduction to the drawings used in describing the embodiments of the present application:
[0018] Figure 1 This is an example flow chart of a paper-saving method for a printer provided in an embodiment of the present application.
[0019] Figure 2 This is a comparison chart before and after paper saving provided in an embodiment of the present application.
[0020] Figure 3 This is another comparison diagram before and after paper saving provided in an embodiment of the present application.
[0021] Figure 4 This is another comparison diagram before and after paper saving provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the specific implementation methods of the present application will be described below with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other accompanying drawings and other implementation methods can be obtained based on these drawings without creative work. Adjustments and improvements made without departing from the concept of the present application are all within the scope of protection of the present application.
[0023] In order to simplify the drawings, only the parts related to the corresponding embodiments are schematically shown in each figure, and they do not represent the actual structure of the product. In addition, in order to simplify the drawings and facilitate understanding, only part of the components with the same structure or function in some figures are schematically drawn, and there may be more or fewer components with the same structure or function in reality.
[0024] In this application, unless otherwise clearly specified and limited, ordinal numbers, such as "first", "second", etc., are only used to distinguish and describe associated objects, and cannot be understood as indicating or implying the relative importance or order between associated objects; in addition, they do not represent the number of associated objects. "Multiple" includes two or more, and other quantifiers are similar. " / " is used to describe the relationship between associated objects, which indicates the "or" relationship between associated objects. "And / or" is used to describe the relationship between associated objects, which includes any combination relationship between associated objects, such as "a and / or b" includes: "alone a", "alone b", or "a and b". "One or more" or "at least one" in multiple objects refers to any object or any combination of multiple objects, such as "one or more of a1, a2, a3" or "at least one of a1, a2, a3" includes: "alone a1", "alone a2", "alone a3", "a1 and a2", "a1 and a3", "a2 and a3", or "a1, a2 and a3".
[0025] Restaurants, convenience stores, supermarkets and other places generally use paper receipts as transaction vouchers. Although the amount of paper used for each receipt seems small, due to frequent daily transactions, the total amount of paper used is considerable. This not only increases the operating costs of merchants, but also puts a lot of pressure on resources and the environment. In addition, due to structural design problems, the current receipt printers on the market do not immediately perform the cutting action after printing. Instead, the paper needs to go through a blank area before cutting to avoid accidentally cutting the content of the receipt. This blank area may become the head of the next receipt, further causing paper waste.
[0026] Although some methods of saving paper have been introduced in the prior art, the results are not ideal. For example, the width and height of a single line of characters can be reduced by compressing in units of dot lines, but the number of lines of printed content that occupies multiple lines cannot be saved, and it may cause blurred printing and affect readability. In addition, this method cannot optimize and adjust the receipt as a whole, nor can it solve the problem of waste of blank parts before and after the receipt. Similarly, simply reducing the spacing between rows of receipts also has limitations. Although the spacing reduction can slightly reduce the length of paper, there is no improvement in the blank areas at the head and tail of the receipt, the optimization and adjustment of the font, and the rationality of the layout, making it difficult to achieve maximum paper savings from a global perspective. Therefore, the existing technical solutions for saving paper have not fully realized their potential, and there is still a lot of room for improvement in optimizing the amount of paper receipts used by merchants.
[0027] At present, there are many kinds of printers on the market, and there are certain differences between different printers. Compared with general printers, receipt printers have the following characteristics. In terms of size, receipt printers are usually compact and small, which is convenient to place in a small space such as a cash register; while general printers (such as inkjet printers or laser printers) are larger in size, usually used on desktops or independent workstations, and require more space. In terms of printing media, receipt printers use rolled thermal paper or plain paper, focusing on fast output of narrow monochrome text and simple patterns; while general printers mostly support flat paper of different sizes, and can print color images, text or charts, suitable for a variety of document needs. In terms of working methods, receipt printers mostly use thermal technology or dot matrix printing, directly heating the thermal paper to form images or tapping the ribbon to form content, with fast speed and low noise; general printers are mostly inkjet or laser technology, focusing on high-resolution output and color performance, with slower printing speed but higher quality. In terms of cost, receipt printers are relatively cheap, with simple structures and single functions to meet high-frequency, low-cost business needs; while general printers are complex in design, support multiple functions (such as scanning, copying, and wireless connections), and have higher production and use costs.
[0028] Although both receipt printers and general printers are essentially printing devices, the differences in their structural design, working principles and application scenarios make it difficult to directly transfer the technology that can be directly applied to general printers to receipt printers. First of all, the printing methods of the two are different. The inkjet and laser technologies of general printers tend to be high-precision and multi-functional, but for receipt printers, these technologies are not only costly but also not suitable for their fast and low-cost characteristics. The thermal and dot matrix technologies of receipt printers are more suitable for their simplified uses, and are not directly compatible with general printer technologies. At the same time, the structural design of receipt printers is optimized around narrow paper and high-frequency paper cutting. Its print head width, paper transmission path and paper cutter configuration are completely different from the wide width and continuous paper feeding of general printers. Therefore, many typesetting, nozzle positioning or color calibration technologies that are suitable for general printers have no practical significance on receipt printers. In addition, the technical pursuit of receipt printers focuses more on speed, paper utilization and simple maintenance, while general printers need to balance resolution, color accuracy and versatility. Directly converting technology may result in performance that cannot match actual needs. To sum up, there are significant differences in structure and technical design between receipt printers and general printers. Although some technical concepts are of reference value, the two cannot be easily equated. Directly quoting the technology of general printers often cannot meet the specific needs of receipt printers.
[0029] Therefore, the idea of this application is to design a paper-saving method specifically for receipt printers, so that it can be customized according to the customer's configuration options, and the receipt can be adjusted as a whole, so as to save the use of excess paper other than the receipt content, and reduce the paper consumption of printing the receipt content without affecting the display of the receipt content and the overall effect.
[0030] The following is a description with reference to the accompanying drawings.
[0031] Figure 1 This is a flowchart of a paper saving method for a printer provided in an embodiment of the present application. Figure 1 The present application discloses a paper saving method for a printer, wherein the printer is configured to receive information of a target ticket and print the target ticket, wherein the target ticket includes a valid area and a blank area, and the method includes:
[0032] S100, receiving a user instruction, and determining a paper saving mode based on the user instruction;
[0033] S200, before printing, determining whether there is paper inside the printer, and controlling the relative position of the paper based on the determination result and the paper saving mode;
[0034] S300, when printing starts, cache and parse the target receipt, and adjust the effective area of the target receipt based on the paper saving mode;
[0035] S400, transmitting the adjusted target receipt to the print head, and adjusting the blank area of the target receipt based on the paper saving mode.
[0036] After the printer is powered on, it first receives user instructions and determines the paper saving mode based on the user instructions. Exemplarily, the user instructions may be local Web configuration data, and its data format may be, for example, XML (Extensible Markup Language), JSON (JavaScript Object Notation), YAML (YAML A in't Markup Language), INI (Initialization File Format) or other possible data formats, which is not limited in this application. Subsequently, the printer determines the power saving mode for this time based on the data in the local Web configuration. Each time the printer is powered on, it can read the local Web configuration to determine the paper saving mode used this time. That is, the user can change the power saving mode by re-powering on.
[0037] Before the printer starts printing, the printer determines whether there is paper inside, and controls the relative position of the paper based on the result of the judgment and the paper-saving mode. In some embodiments of the present application, the printer has a paper-out sensor, and the printer can determine the result of the judgment based on the feedback information of the paper-out sensor. For example, when it is detected that there is no paper, the paper-out sensor can transmit an indication signal to the printer so that the printer reminds the user to load paper. Regardless of whether there is paper inside the current printer, the corresponding paper-saving operation can be performed. The paper-saving mode includes a first paper-saving operation and a second paper-saving operation. When it is determined that there is paper inside the printer, the first paper-saving operation can be performed, and when it is determined that there is no paper inside the printer, the second paper-saving operation can be performed. The above two paper-saving operations can control the relative position of the paper, such as the position of the paper relative to the roller inside the printer. Exemplarily, when the first paper-saving operation or the second paper-saving operation is performed, the paper is returned to the roller of the printer. Due to the structure inside the printer, after each printing of the receipt is completed and the cutter is cut, there may be a part of the paper redundant. The relevant explanation is detailed above, and it will not be repeated here. Therefore, before starting this printing, there may be a portion of paper between the printer's roller and the paper outlet. If this portion of paper is not processed, there will be an extra blank area at the top of the printed receipt. After performing the first paper saving operation or the second paper saving operation, this extra blank area can be eliminated to achieve the purpose of saving paper. For a receipt, the core idea of saving paper is to reduce the blank area in the receipt as much as possible, and to compress the space of the effective area while taking into account the performance effect.
[0038] In some embodiments of the present application, the first paper-saving operation may be referred to as power-on paper-saving. If there is paper in the printer and power-on paper-saving is activated, the paper located on the outside of the roller is returned to the roller. The second paper-saving operation may be referred to as cover-closing paper-saving. If there is no paper in the printer, the paper-out sensor will feed this information back to the printer, and the printer can inform the user of this situation. After the user completes the paper loading operation, there may also be excess paper on the outside of the roller. When cover-closing paper-saving is activated, the paper located on the outside of the roller can be returned to the roller. The above two paper-saving operations correspond to different application scenarios, respectively, and can ultimately cause the paper located on the outside of the roller to be returned to the roller, thereby achieving the purpose of saving paper.
[0039] When printing starts, the printer caches and parses the target receipt, and adjusts the effective area of the target receipt based on the paper saving mode; and transmits the adjusted target receipt to the print head, and adjusts the blank area of the target receipt based on the paper saving mode. That is to say, the printer will first adjust the effective area of the receipt according to the preset paper saving mode, and then adjust the blank area to achieve the purpose of paper saving. The printer receives printing instructions and data from the host computer (such as the cash register system, management system or POS machine), and temporarily stores the information of the target receipt in the internal storage area or memory of the printer. The role of the cache is to ensure data integrity and provide a basis for subsequent parsing and printing. The printer will not print immediately, but wait for the data to be fully received. The printer interprets and processes the receipt data in the cache, and converts the abstract instructions or data into an actual operable printing format. Parsing is to convert the instructions sent by the host computer into actions that can be executed by the printer hardware. For example, adjust the font size, draw a table or generate a barcode. For the receipt, it is divided into an effective area and a blank area. Among them, the effective area refers to the part of the receipt where the actual content is printed, including information related to the transaction, and the user can intuitively see its value. For example, store information (such as name, address, and phone number), transaction details (such as product name, quantity, unit price, and total price), payment information (such as payment method, change amount), and legally required notes (such as tax number and invoice information). The blank area refers to the part of the receipt without any actual printed content, including the blank space before printing, after printing, or between effective areas. Adjusting the effective area and blank area of the target receipt successively can effectively save paper, reduce operating costs, and avoid wasting resources.
[0040] In some embodiments of the present application, the target receipt is cached and parsed, and the effective area of the target receipt is adjusted based on the paper-saving mode, including at least one of the following steps: adjusting the blank lines and line spacing in the effective area based on the paper-saving mode; sharpening and / or optimizing the layout of the effective area font based on the paper-saving mode; dividing the effective area into blocks, and adjusting the information in the same block based on a preset ratio. Exemplarily, each effective area includes at least one of text, pictures, QR codes, bar codes, and icons.
[0041] When printing, first determine whether to adjust the font and layout. If the font and layout are not adjusted, adjust the blank lines and line spacing in the effective area based on the paper saving mode. Exemplarily, the paper saving mode includes a third paper saving operation, which can also be called blank reduction; adjusting the blank lines and line spacing in the effective area based on the paper saving mode includes: setting the proportional coefficients of the blank lines and line spacing respectively; when the third paper saving operation is triggered, adjust the effective area based on the proportional coefficient. The proportional coefficient can be set between 0 and 1. Figure 2 This is a comparison chart before and after paper saving provided by the embodiment of the present application. Please refer to Figure 2 The receipt on the left is a receipt that can be printed by a printer of the prior art, and the receipt on the right is a receipt that is printed by a printer using the paper-saving method of the present application. By comparing the two, it can be seen that by performing the third paper-saving operation above, the blank lines in the effective area of the receipt can be effectively eliminated and the line spacing can be reduced, thereby achieving the purpose of saving paper. For example, in Figure 2 Delete the blank space between "Citywide delivery" and "Historical orders, please do not prepare duplicate stock". Figure 2 It can be seen that after the paper saving operation, the receipt can still display complete information and will not have a substantial impact on the user's use. For a receipt, the length of paper that can be saved is about several centimeters. However, considering the usage scenarios of the receipt printer, the length of paper saved after a large number of uses is considerable. For example, originally a roll of paper can print 100 receipts, but after using the paper saving mode, a roll of paper can print 120 receipts.
[0042] If the font and layout are adjusted, the font in the effective area can be sharpened and / or the layout can be optimized. Exemplarily, the paper-saving mode includes a fourth paper-saving operation, which can also be called layout optimization; based on the paper-saving mode, the effective area is sharpened and / or the layout is optimized, including: judging whether to perform a sharpening operation based on the blurriness of the text in the effective area, and when performing a sharpening operation, rasterizing the text in the effective area; when the fourth paper-saving operation is triggered, merging information in different rows in the effective area into the same row.
[0043] Figure 3 This is another comparison chart before and after paper saving provided by the embodiment of the present application. Please refer to Figure 3 The receipt on the left is the receipt that can be printed by the printer that performs the third paper-saving operation above, and the receipt on the right is the receipt that can be printed by the printer that performs the fourth paper-saving operation above. By comparing the two, it can be seen that by performing the fourth paper-saving operation above, the blank space in the effective area can be further filled, so that the effective area is fully utilized. And from Figure 3 It can be seen that the receipt after the paper-saving operation can still display complete information and will not have a substantial impact on the user's use. When the font is too small, the display blur problem is solved by raster bitmap or printing refinement; after the font changes, the multi-line display content is automatically adjusted to reduce the actual number of lines used; there may be multiple font sizes in the receipt, and the proportion and style are not changed during optimization. By merging content with similar structure layout but not displayed on the same line into the same line, paper consumption can be further reduced. For example Figure 3In the example above, the "SKU" data and the "UPC" data are combined into the same line. In addition, the font can be set to a vector font, which uses Bezier curves, drawing instructions, and mathematical formulas to draw. It can be scaled without deformation or discoloration. Using a vector font can make the font on the receipt clearer and avoid font blur caused by scaling.
[0044] After processing the fonts and layout, you can also divide the effective area into blocks, and scale the information in the same block according to the preset ratio. The information in the block includes pictures, QR codes, barcodes, and icons. In this way, the overall layout can be made more compact while maintaining the relative proportion and clarity of each element, thereby improving the space utilization of the receipt. When the block content is too scattered or the size is uneven, the elements can be arranged more harmoniously through scaling to avoid wasting blank areas. At the same time, scaling can adjust the visual proportion according to the importance of the content, such as allowing the QR code or barcode to occupy a larger space for easy scanning, while reducing less important icons or patterns to highlight key information. In addition, the width of the receipt and the printing area of the printer may be different. Block scaling can adapt to a variety of devices and paper widths without modifying the overall design.
[0045] In some embodiments of the present application, the printer has a motor and a movable blade, and the paper saving mode includes a fifth paper saving operation; the blank area of the target receipt is adjusted based on the paper saving mode, including: after printing is completed, controlling the movable blade to cut the target receipt; when the fifth paper saving operation is triggered, controlling the motor to drive in reverse so that the paper coupled to the bottom of the target receipt returns to the roller of the printer.
[0046] After the effective area of the receipt is processed, the data of the target receipt is transmitted to the print head, and the thermal head in the print head prints the target receipt. After printing is completed, the movable blade is controlled to cut the target receipt. The motor in the printer can be a stepper motor, which can run forward and backward, output paper in the forward direction, and retract paper in the reverse direction, and run smoothly without losing steps. Similar to the first and second paper-saving operations above, the fifth paper-saving operation is essentially to retract the paper located outside the roller to the roller so that there will be no extra blank space at the top of the next printed receipt. The difference between them is that the first and second paper-saving operations are performed between the power-on and printing start of the printer, while the fifth paper-saving operation is performed after each printing is completed. In this way, each print can save blank paper at the head of the receipt.
[0047] In some embodiments of the present application, the target ticket is a single multi-copy ticket, and the single multi-copy ticket includes a first copy and a second copy, and the paper-saving mode includes a sixth paper-saving operation; adjusting the blank area of the target ticket based on the paper-saving mode includes: after the first copy is printed, controlling the movable blade to cut the target ticket; when the sixth paper-saving operation is triggered and before the second copy starts printing, controlling the motor to drive in reverse so that the paper coupled to the bottom of the first copy is returned to the roller of the printer. The above fifth paper-saving operation and the sixth paper-saving operation can both be called cutter paper-saving. A single multi-copy ticket is a common form of bills, which is usually used to record transactions or transmit information. In this form, a document is divided into multiple copies (multiple copies), and each copy usually has a specific purpose or circulation object. This design facilitates recording, preservation and management of information. For ease of description, the first and second copies of a single multi-copy ticket are used as an example for explanation, and the operations between other copies can refer to the operations between the first copy and the second copy.
[0048] Figure 4 This is another comparison chart before and after paper saving provided by the embodiment of the present application. Please refer to Figure 4 , Figure 4 The receipts on the left and right are both single multi-copy receipts. The receipt on the left is a receipt that can be printed by a printer in the prior art, and the receipt on the right is a receipt printed by a printer that performs the sixth paper-saving operation above. By comparing the two, it can be seen that by performing the sixth paper-saving operation above, after the first copy is printed, the motor can be reversely driven to return the paper to the roller of the printer to avoid unnecessary blank space at the top of the second copy. It can be seen that whether it is processing a conventional receipt or a single multi-copy receipt, the paper for the next receipt (or the next copy) can be saved by cutting the paper after printing is completed.
[0049] Based on a similar technical concept, the present application discloses a printer using the paper saving method for a printer disclosed in the above embodiments.
[0050] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments. In addition, the above embodiments can be freely combined as needed.
Claims
1. A paper saving method for a printer, characterized in that: The printer is configured to receive information of a target ticket and print the target ticket, wherein the target ticket includes a valid area and a blank area, and the method includes: receiving a user instruction, and determining a paper saving mode based on the user instruction; Before printing, determining whether there is paper inside the printer, and controlling the relative position of the paper based on the determination result and the paper saving mode; When printing starts, the target receipt is cached and parsed, and the effective area of the target receipt is adjusted based on the paper saving mode; The adjusted target ticket is transmitted to the print head, and the blank area of the target ticket is adjusted based on the paper saving mode.
2. The method according to claim 1, characterized in that The paper saving mode includes a first paper saving operation; the step of judging whether there is paper inside the printer and controlling the relative position of the paper based on the judgment result and the paper saving mode includes: When the first paper-saving operation is triggered and there is paper inside the printer, the paper is retracted to the roller of the printer.
3. The method according to claim 1, characterized in that The paper saving mode includes a second paper saving operation; the step of judging whether there is paper inside the printer and controlling the relative position of the paper based on the judgment result and the paper saving mode includes: When the second paper saving operation is triggered and there is no paper in the printer, the paper is returned to the roller of the printer after paper loading is completed.
4. The method according to any one of claims 1 to 3, characterized in that: The printer has a paper out sensor; the method comprises: The result of the judgment is determined according to feedback information of the paper-out sensor.
5. The method according to claim 1, characterized in that The caching and parsing of the target receipt, and adjusting the effective area of the target receipt based on the paper saving mode, includes at least one of the following steps: Adjusting the blank lines and line spacing in the effective area based on the paper saving mode; Based on the paper-saving mode, performing font sharpening and / or typesetting optimization on the effective area; The effective area is divided into blocks, and information in the same block is adjusted based on a preset ratio.
6. The method according to claim 5, characterized in that The paper-saving mode includes a third paper-saving operation; and the adjusting of the blank lines and the line spacing in the effective area based on the paper-saving mode includes: respectively setting the ratio coefficients of the blank line and the line spacing; When the third paper saving operation is triggered, the effective area is adjusted based on the scale factor.
7. The method according to claim 5, characterized in that The paper-saving mode includes a fourth paper-saving operation; the step of performing font sharpening and / or typesetting optimization on the effective area based on the paper-saving mode includes: Determining whether to perform a sharpening operation based on the blurriness of the text in the effective area, and when performing the sharpening operation, rasterizing the text in the effective area; When the fourth paper-saving operation is triggered, information located in different rows in the effective area is merged into the same row.
8. The method according to claim 1, characterized in that The printer has a motor and a movable blade, and the paper saving mode includes a fifth paper saving operation; The step of adjusting the blank area of the target receipt based on the paper saving mode includes: After printing is completed, controlling the movable blade to cut the target ticket; When the fifth paper-saving operation is triggered, the motor is controlled to drive in reverse so that the paper coupled to the bottom of the target ticket is retracted to the roller of the printer.
9. The method according to claim 8, characterized in that The target ticket is a single multi-copy ticket, and the single multi-copy ticket includes a first copy and a second copy, and the paper-saving mode includes a sixth paper-saving operation; the blank area of the target ticket is adjusted based on the paper-saving mode, including: After the first copy is printed, controlling the movable blade to cut the target ticket; When the sixth paper-saving operation is triggered and before the second copy starts printing, the motor is controlled to drive in reverse so that the paper coupled to the bottom of the first copy is retracted to the roller of the printer.
10. A printer, characterized in that: Use the paper saving method for a printer as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Printing control method and device, and printing device
CN102452233A
Correction of printing position
JP1996142437A
Image display device and image display method
JP2009104535A
Mountless label printer
JP2012096387A