Laser printing method, printer and storage medium

By adjusting the length and number of fill lines in laser printing technology, the thickness between the target printed text and the text to be printed is achieved without printing the text outline, and the problem of inconsistent control of text thinner and thickness in the prior art is solved.

CN120116637AActive Publication Date: 2025-06-10TAI LI DE SHI DA YIN JI JIANG MEN YOU XIAN GONG SI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510242887.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-06-10
Estimated Expiration
2045-03-03

AI Technical Summary

Technical Problem

When marking text outlines, existing laser printing technology can easily lead to thin text, and the marking energy of text outlines affects the consistency of text thickness control.

Method used

By obtaining the reference contour line, the first fill line and the second fill line of the text to be printed, the theoretical contour line of the target print text is determined based on the text to be printed, and the length and number of the fill line are adjusted according to the actual adjustment distance to generate target print data, so as to achieve the consistency of the thickness between the target print text and the text to be printed without printing the text outline.

Benefits of technology

It solves the problem of finer text in target printing, and improves the consistency of text thickness control between different printing devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120116637A_ABST
    Figure CN120116637A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a laser printing method, a printer and a storage medium, and the method comprises the steps: obtaining a to-be-printed text, determining a reference contour line, a first filling line and a second filling line of the to-be-printed text, then determining a theoretical contour line of a target printing text according to the to-be-printed text, and then obtaining a target printing text; the method comprises the steps of determining the actual adjustment distance of a reference contour line relative to a theoretical contour line, then determining the adjustment length of a first filling line and the adjustment number of a second filling line according to the actual adjustment distance, then determining target printing data of a target printing text according to the adjustment length and the adjustment number, and finally determining the target printing data of the target printing text based on the target printing data. According to the technical scheme, the target printing text without the theoretical contour line is printed on the printing medium through the laser, and then the problem that the actual target printing text is too thin can be solved under the condition that the text contour line does not need to be printed on the basis of the free conversion mode of the filling line in the to-be-printed text.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a laser printing method, a printer, and a storage medium. Background Art

[0002] In the prior art, the process of laser marking text often requires marking the text contour. Without marking the text contour, the printed text will be too thin. However, marking the text contour also has the following problems: 1. The printing density inside the marked text will be lighter than that of the marked text contour. If the printing density inside the marked text is increased, the text contour is likely to be damaged, resulting in gaps in the actual printed text; 2. The marking energy of the text contour affects the thickness of the actual printed text, thereby reducing the consistency of text thickness control among different printing devices. Summary of the Invention

[0003] The main objective of the embodiments of this application is to propose a laser printing method, a printer, and a storage medium. By freely transforming the filling lines inside the text to be printed, it is possible to make the thickness of the actual target printed text consistent with that of the text to be printed without printing the text contour line, solve the problem that the actual target printed text is too thin, and improve the consistency of text thickness control among different printing devices.

[0004] To achieve the above objective, the first aspect of the embodiments of this application proposes a laser printing method, including: Obtain the text to be printed, and determine the reference contour line, the first filling line, and the second filling line of the text to be printed, where the first filling line and the second filling line are perpendicular to each other; Determine the theoretical contour line of the target printed text according to the text to be printed; Determine the actual adjustment distance of the reference contour line relative to the theoretical contour line; According to the actual adjustment distance, determine the adjustment length of the first filling line in the same direction as the actual adjustment distance; According to the actual adjustment distance, determine the adjustment quantity of the second filling line perpendicular to the actual adjustment distance; According to the adjustment length and the adjustment quantity, determine the target printing data of the target printed text; Based on the target printing data, laser print the target printed text without the theoretical contour line on the printing medium.

[0005] Further, in some embodiments, determining the theoretical contour line of the target printed text according to the text to be printed includes one of the following steps: Obtain the theoretical adjustment distance and the position of the reference contour line, and determine the theoretical contour line according to the theoretical adjustment distance and the position; Alternatively, obtain the line width and position of the reference contour line, and determine the theoretical contour line based on the line width and position.

[0006] Further, in some embodiments, obtaining the theoretical adjustment distance includes one of the following steps: Obtain a custom adjustment parameter input externally, and determine the theoretical adjustment distance based on the custom adjustment parameter; Alternatively, obtain the scaling ratio and scaling direction of the text to be printed, and determine the theoretical adjustment distance based on the scaling ratio and scaling direction.

[0007] Further, in some embodiments, determining the adjustment quantity of the second filling line according to the actual adjustment distance includes: Determine the ratio between the actual adjustment distance and the line spacing of the second filling line; Round down the ratio to obtain an integer value, and use the integer value as the numerical value of the adjustment quantity.

[0008] Further, in some embodiments, determining the target printing data of the target printed text according to the adjustment length and the adjustment quantity includes: Obtain the first reference length and the first reference quantity of the first filling line, and the second reference length and the second reference quantity of the second filling line; Determine the first target length and the first target quantity required for actually printing the first filling line according to the first reference length, the first reference quantity, and the adjustment length; Determine the second target length and the second target quantity required for actually printing the second filling line according to the second reference length, the second reference quantity, and the adjustment quantity; Generate the target printing data of the target printed text based on the first target length, the first target quantity, the second target length, and the second target quantity.

[0009] Further, in some embodiments, when the actual adjustment distance is a positive number, the adjustment length represents extending the length of the first filling line, and the adjustment quantity represents increasing the quantity of the second filling line; Alternatively, when the actual adjustment distance is a negative number, the adjustment length represents shortening the length of the first filling line, and the adjustment quantity represents reducing the quantity of the second filling line.

[0010] Further, in some embodiments, determining the first target length and the first target quantity required for actually printing the first filling line according to the first reference length, the first reference quantity, and the adjustment length includes: Determine the first reference quantity as the first target quantity; When the adjustment length represents extending the length of the first filling line, add the first reference length and the adjustment length to obtain the first target length; Alternatively, when the adjustment length is characterized by shortening the length of the first filling line, subtract the adjustment length from the first reference length to obtain the first target length.

[0011] Further, in some embodiments, according to the second reference length, the second reference quantity, and the adjustment quantity, determine the second target length and the second target quantity of the actually printed second filling line, including: Determine the second reference length as the second target length; When the adjustment quantity is characterized by increasing the quantity of the second filling line, add the adjustment quantity to the second reference quantity to obtain the second target quantity; Alternatively, when the adjustment quantity is characterized by decreasing the quantity of the second filling line, subtract the adjustment quantity from the second reference quantity to obtain the second target quantity.

[0012] To achieve the above object, a second aspect of the embodiments of the present application provides a printer, including: One or more processors; A memory, on which one or more programs are stored. When the one or more programs are executed by the one or more processors, the one or more processors implement the laser printing method of the first aspect above.

[0013] To achieve the above object, a third aspect of the embodiments of the present application provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the laser printing method of the first aspect above is implemented.

[0014] A laser printing method provided by the present application obtains a text to be printed, determines a reference contour line, a first filling line, and a second filling line of the text to be printed, wherein the first filling line and the second filling line are perpendicular to each other. Then, according to the text to be printed, determine the theoretical contour line of the target printed text. Next, determine the actual adjustment distance of the reference contour line relative to the theoretical contour line. Further, according to the actual adjustment distance, determine the adjustment length of the first filling line and the adjustment quantity of the second filling line. Then, according to the adjustment length and the adjustment quantity, determine the target printing data of the target printed text. Finally, based on the target printing data, laser print the target printed text without the theoretical contour line on a printing medium. Furthermore, based on the method of freely transforming the filling lines inside the text to be printed, it is possible to make the actual target printed text have the same thickness as the text to be printed without printing the text contour line, solve the problem that the actual target printed text is too thin, and improve the consistency of text thickness control between different printing devices. Description of the Drawings

[0015] Figure 1It is an alternative flowchart of the laser printing method provided by an embodiment of the present application; Figure 2 It is provided by an embodiment of the present application Figure 1 An alternative flowchart of step S104 in Figure 3 It is provided by an embodiment of the present application Figure 2 An alternative flowchart of step S202 in Figure 4 It is provided by an embodiment of the present application Figure 3 An alternative flowchart of step S302 in Figure 5 It is another alternative flowchart of the laser printing method provided by an embodiment of the present application; Figure 6 It is provided by an embodiment of the present application Figure 5 An alternative flowchart of step S503 in Figure 7 It is provided by an embodiment of the present application Figure 6 An alternative flowchart of step S602 in Figure 8 It is a schematic diagram of the hardware structure of the printer provided by an embodiment of the present application. Detailed implementation manners

[0016] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0017] It should be noted that although functional module division is performed in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order from the module division in the device or the flowchart in the flowchart. Terms such as "first" and "second" in the description, claims and the above drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0019] In the prior art, the process of laser marking text often requires marking the outline of the text. If the outline of the text is not marked, the printed text will be too thin. However, there are also the following problems with marking the outline of the text: 1. The printing density inside the marked text will be lighter than that of the marked text outline. If the printing density inside the marked text is increased, the text outline is likely to be damaged, resulting in gaps in the actual printed text; 2. The marking energy of the text outline will affect the thickness of the actual printed text, thereby reducing the consistency of text thickness control between different printing devices.

[0020] Based on this, the embodiment of the present application provides a laser printing method. By obtaining the text to be printed and determining the reference outline line, the first filling line, and the second filling line of the text to be printed, where the first filling line and the second filling line are perpendicular to each other. Then, according to the text to be printed, the theoretical outline line of the target printed text is determined. Next, the actual adjustment distance of the reference outline line relative to the theoretical outline line is determined. Further, according to the actual adjustment distance, the adjustment length of the first filling line and the adjustment quantity of the second filling line are determined. Then, according to the adjustment length and the adjustment quantity, the target printing data of the target printed text is determined. Finally, based on the target printing data, a target printed text without the theoretical outline line is laser printed on the printing medium. Thus, based on the free transformation of the filling lines inside the text to be printed, the thickness of the actual target printed text can be made consistent with that of the text to be printed without printing the text outline line, solving the problem that the actual target printed text is too thin and improving the consistency of text thickness control between different printing devices.

[0021] The laser printing method provided by the embodiment of the present application will be specifically described through the following embodiments.

[0022] Figure 1 is an optional flowchart of the laser printing method provided by the embodiment of the present application. Figure 1 The method in may include but is not limited to steps S101 to S107.

[0023] Step S101, obtain the text to be printed and determine the reference outline line, the first filling line, and the second filling line of the text to be printed.

[0024] Specifically, obtain the text to be printed and analyze the overall vector shape of the text to be printed to obtain text styles and font parameters (such as font spacing, font thickness, etc.). Then, determine the reference outline line, the first filling line, and the second filling line of the text to be printed.

[0025] Further, determine the fillable areas within the text to be printed based on the reference contour line, and then determine the overall layout of each first fill line and each second fill line within the fillable areas of the text to be printed, where both the first fill line and the second fill line are area lines for filling within the reference contour line.

[0026] Further, if the first fill line and the second fill line are perpendicular to each other, the line spacing of the first fill line can be further refined to represent the distance between two adjacent first fill lines, and the line spacing of the second fill line can be further refined to represent the distance between two adjacent second fill lines.

[0027] Preferably, the first fill line can be the reference fill line in the 0-degree direction, and the second fill line can be the reference fill line in the 90-degree direction.

[0028] Preferably, the first fill line can be the reference fill line in the 90-degree direction, and the second fill line can be the reference fill line in the 0-degree direction.

[0029] Step S102, determine the theoretical contour line of the target printed text according to the text to be printed.

[0030] Step S103, determine the actual adjustment distance of the reference contour line relative to the theoretical contour line.

[0031] Step S104, determine the adjustment length of the first fill line in the same direction as the actual adjustment distance according to the actual adjustment distance.

[0032] Step S105, determine the adjustment quantity of the second fill line perpendicular to the actual adjustment distance according to the actual adjustment distance.

[0033] Step S106, determine the target print data of the target printed text according to the adjustment length and the adjustment quantity.

[0034] Step S107, based on the target print data, laser print the target printed text without the theoretical contour line on the printing medium.

[0035] Specifically, based on the target print data, through laser printing technology, the target printed text can be generated on the printing medium (such as paper or other materials). Laser printing is an efficient and precise printing method that can output text and images at high speed and high quality. In this process, the laser printer uses a laser beam to create an electrostatic latent image on the photosensitive drum, then develops the image with toner, transfers the image to the printing medium, and fixes the toner on the surface of the medium by heating and pressurizing, thus forming a clear and durable printing result.

[0036] Steps S101 to S107 shown in the embodiments of the present application can, through the free transformation of the filling lines inside the text to be printed, make the thickness of the actual target printed text consistent with that of the text to be printed without printing the text outline, solve the problem that the actual target printed text is too thin, and improve the consistency of text thickness control among different printing devices.

[0037] Please refer to Figure 2 , Figure 2 which is an optional flowchart of step S104 provided by the embodiments of the present application. In some embodiments, step S104 may include but is not limited to steps S201 to S202. Figure 1

[0038] Step S201, obtain the theoretical adjustment distance and the position of the reference outline, and determine the theoretical outline according to the theoretical adjustment distance and the position.

[0039] In an optional embodiment, the theoretical adjustment distance is obtained through precise measurement and calculation, and combined with the position information of the reference outline, the theoretical outline can be determined.

[0040] It should be noted that the above-mentioned theoretical adjustment distance can be used to adjust only one side of the reference outline or the entire reference outline, and the present application does not make specific limitations.

[0041] Step S202, or, obtain the line width and position of the reference outline, and determine the theoretical outline according to the line width and the position.

[0042] It should be noted that the line width and position of the reference outline are key parameters for determining the theoretical outline. The line width of the reference outline determines the boundary thickness of the printed content, while its position defines the specific distribution of the printed content on the printing medium. By precisely measuring the line width and position of the reference outline, the theoretical outline can be accurately calculated, thereby ensuring the precise alignment and high-quality output of the printed content.

[0043] Specifically, the line width of the reference outline needs to be adjusted according to the printing requirements. For example, in high-precision printing tasks, a thinner line width can provide higher resolution and clearer boundaries. The determination of the position needs to be combined with the size of the printing medium and the layout of the printed content to ensure the correct distribution of the printed content on the medium. By obtaining these parameters, the theoretical outline can be generated, providing precise guidance for the printing process and thus achieving high-quality printing effects.

[0044] Please refer to Figure 3 , Figure 3 which is provided by the embodiments of the present application Figure 2An alternative flowchart of step S202. In some embodiments, step S202 may include, but is not limited to, steps S301 to S302.

[0045] Step S301, obtain a custom adjustment parameter input externally, and determine a theoretical adjustment distance according to the custom adjustment parameter.

[0046] Specifically, obtaining the custom adjustment parameter input externally is a key step in determining the theoretical adjustment distance. The custom adjustment parameter is mainly set according to the effective size of the actual marking beam of the laser printing device, which is mainly related to the hardware parameters of the laser printing device, the marking energy, and the marking material.

[0047] Step S302, or, obtain the scaling ratio and scaling direction of the text to be printed, and determine the theoretical adjustment distance according to the scaling ratio and scaling direction.

[0048] Specifically, the scaling ratio can be obtained through user input or preset printing settings. For example, when printing text, the user can choose to enlarge or reduce the text to fit a specific paper size or printing requirement. The scaling direction is selected according to the layout and design requirements of the printed content. For example, if more content needs to be printed within a limited paper space, the text can be scaled down vertically; if certain important information needs to be highlighted, the text can be scaled up horizontally.

[0049] According to the scaling ratio and scaling direction, the theoretical adjustment distance can be calculated. For example, if the text is enlarged, the theoretical adjustment distance may need to be increased to ensure that the print head can accurately cover a larger printing area. On the contrary, if the text is scaled down, the theoretical adjustment distance may need to be decreased to avoid the printed content being too dense or blurred.

[0050] It should also be noted that the scaling direction can be in any direction. For example, when the scaling direction is 45 degrees, this scaling direction will be decomposed into scaling in the 0-degree direction and scaling in the 90-degree direction, and then the theoretical adjustment distance in the 0-degree direction and the theoretical adjustment distance in the 90-degree direction can be obtained.

[0051] Please refer to Figure 4 , Figure 4 is provided by an embodiment of the present application Figure 3 An alternative flowchart of step S302. In some embodiments, step S302 may include, but is not limited to, steps S401 to S402.

[0052] Step S401, determine the ratio between the actual adjustment distance and the line spacing of the second filling line.

[0053] In an alternative embodiment, the actual adjustment distance / line spacing of the second filling line is adjusted, and the ratio between the actual adjustment distance and the line spacing of the second filling line is obtained.

[0054] Step S402: Round down the ratio to obtain an integer value, and use the integer value as the numerical value of the adjustment quantity.

[0055] In an alternative embodiment, when the text to be printed needs to be reduced, the actual adjustment distance is expressed as a shortening of 0.04 mm, and the line spacing of the second filling line is 0.02 mm. Then the ratio between the actual adjustment distance and the line spacing of the second filling line is 0.04 mm / 0.02 mm = 2. Then round down this ratio to obtain an integer value of 2, and the adjustment quantity is characterized as a reduction of 2 second filling lines.

[0056] In an alternative embodiment, when the text to be printed needs to be enlarged, the actual adjustment distance is expressed as an extension of 0.05 mm, and the line spacing of the second filling line is 0.02 mm. Then the ratio between the actual adjustment distance and the line spacing of the second filling line is 0.05 mm / 0.02 mm = 2.5. Then round down this ratio to obtain an integer value of 2, and the adjustment quantity is characterized as an increase of 2 second filling lines.

[0057] In an alternative embodiment, when the text to be printed needs to be enlarged, the actual adjustment distance is expressed as an extension of 0.01 mm, and the line spacing of the second filling line is 0.02 mm. Then the ratio between the actual adjustment distance and the line spacing of the second filling line is 0.01 mm / 0.02 mm = 0.5. Then round down this ratio to obtain an integer value of 0, and the adjustment quantity is characterized as an increase of 0 second filling lines.

[0058] Please refer to Figure 5 , Figure 5 which is another alternative flowchart of the laser printing method provided by the embodiments of the present application. In some embodiments, the laser printing method may include but is not limited to steps S501 to S504.

[0059] Step S501: Obtain the first reference length and the first reference quantity of the first filling line, and the second reference length and the second reference quantity of the second filling line.

[0060] Wherein, the first reference length is the filling length of the first filling line required for printing the text to be printed, the first reference quantity is the filling quantity of the first filling line required for printing the text to be printed, the second reference length is the filling length of the second filling line required for printing the text to be printed, and the second reference quantity is the filling quantity of the second filling line required for printing the text to be printed.

[0061] Step S502: Determine a first target length and a first target quantity required for actually printing a first filling line according to a first reference length, a first reference quantity, and an adjustment length.

[0062] Among them, the first target length is the filling length of the first filling line required for actually printing a target printed text, and the first target quantity is the filling quantity of the first filling line required for actually printing the target printed text.

[0063] Step S503: Determine a second target length and a second target quantity required for actually printing a second filling line according to a second reference length, a second reference quantity, and an adjustment quantity.

[0064] Among them, the second target length is the filling length of the second filling line required for actually printing the target printed text, and the second target quantity is the filling quantity of the second filling line required for actually printing the target printed text.

[0065] Step S504: Generate target printing data of the target printed text based on the first target length, the first target quantity, the second target length, and the second target quantity.

[0066] Steps S501 to S505 illustrated in the embodiments of the present application can freely determine the target printing data required for actually printing the target printed text by an adjustment length and an adjustment quantity, and further solve the problem that the actual target printed text is too thin or too thick during the process of resizing the text to be printed.

[0067] It should be noted that when the actual adjustment distance is a positive number, the adjustment length represents extending the length of the first filling line, and the adjustment quantity represents increasing the quantity of the second filling line; Or, when the actual adjustment distance is a negative number, the adjustment length represents shortening the length of the first filling line, and the adjustment quantity represents reducing the quantity of the second filling line.

[0068] Please refer to Figure 6 , Figure 6 which is an optional flowchart of step S503 provided by the embodiments of the present application. In some embodiments, step S503 may include but is not limited to steps S601 to S603. Figure 5

[0069] Step S601: Determine the first reference quantity as the first target quantity.

[0070] In an optional embodiment, if the first reference quantity of the first filling line is 20, then the first target quantity of the first filling line is 20.

[0071] ​Step S602: when the adjusted length is characterized by extending the length of the first filling line, the first reference length is added to the adjusted length to obtain a first target length.

[0072] In an optional embodiment, when the adjustment length is characterized by extending the length of the first filling line, and the adjustment length is 0.02 mm, and the first reference length is 2 mm, the first reference length is added to the adjustment length to obtain a first target length of 2 mm+0.02 mm=2.02 mm.

[0073] Step S603 , or when the adjusted length is characterized by shortening the length of the first filling line, the first reference length is subtracted from the adjusted length to obtain a first target length.

[0074] In an optional embodiment, when the adjusted length is characterized by shortening the length of the first filling line, and the adjusted length is 0.05 mm, and the first reference length is 2 mm, the first reference length is subtracted from the adjusted length to obtain a first target length of 2 mm-0.05 mm=1.95 mm.

[0075] See also Figure 7 , Figure 7 The embodiment of this application provides Figure 6 An optional flowchart of step S602 in FIG. 5 . In some embodiments, step S602 may include but is not limited to steps S701 to S702.

[0076] Step S701: determine the second reference length as the second target length.

[0077] In an optional embodiment, the second reference length of the second filling line is 2 mm, and the second target length of the second filling line is 2 mm.

[0078] Step S702: when the adjustment quantity is characterized by increasing the number of second filling lines, the second reference quantity is added to the adjustment quantity to obtain a second target quantity.

[0079] In an optional embodiment, when the adjusted length is characterized by increasing the number of second filling lines, and the adjusted number is 2, and the second reference number is 20, the second reference number is added to the adjusted number to obtain a second target number of 20+2=22.

[0080] Step S703 , or when the adjusted quantity is characterized by reducing the quantity of the second filling lines, the second reference quantity is subtracted from the adjusted quantity to obtain the second target quantity.

[0081] In an alternative embodiment, when the adjusted length is characterized by reducing the number of second filling lines, and the adjusted quantity is 2 and the second reference quantity is 20, then the second reference quantity is subtracted from the adjusted quantity to obtain a second target quantity of 20 - 2 = 18.

[0082] An embodiment of the present application further provides a printer that can implement the above control method. The printer includes: one or more processors; a memory storing one or more programs thereon. When the one or more programs are executed by the one or more processors, the one or more processors implement the above laser printing method.

[0083] Please refer to Figure 8 , Figure 8 which is a schematic diagram of the hardware structure of the printer provided by the embodiment of the present application. The printer includes: A processor 801, which can be implemented by using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solution provided by the embodiment of the present application; A memory 802, which can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 802 can store an operating system and other application programs. When implementing the technical solution provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 802 and are called by the processor 801 to execute the control method of the embodiment of the present application; An input / output interface 803, which is used to implement information input and output; A communication interface 804, which is used to implement communication interaction between this device and other devices, and can implement communication through a wired method (such as USB, network cable, etc.) or through a wireless method (such as mobile network, WIFI, Bluetooth, etc.); A bus 805, which transmits information between various components of the device (such as the processor 801, the memory 802, the input / output interface 803, and the communication interface 804); Among them, the processor 801, the memory 802, the input / output interface 803, and the communication interface 804 are communicatively connected to each other inside the device through the bus 805.

[0084] The embodiments of the present application also provide a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-described laser printing method is implemented.

[0085] As a non-transitory computer-readable storage medium, a memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include high-speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely disposed relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0086] The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0087] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figures, or combine certain steps, or different steps.

[0088] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0089] Those of ordinary skill in the art can understand that all or some of the steps in the above-disclosed methods, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof.

[0090] In the description of this application and the above-mentioned accompanying drawings, terms such as "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0091] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (one) of the following" or its similar expression refers to any combination of these items, including any combination of single items (ones) or plural items (ones). For example, at least one (one) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0092] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above-mentioned division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical, or other forms.

[0093] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] In addition, in each embodiment of the present application, each functional unit can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0095] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store programs.

[0096] The preferred embodiments of the embodiments of the present application have been described above with reference to the accompanying drawings. This does not limit the scope of the rights of the embodiments of the present application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of the present application shall be within the scope of the rights of the embodiments of the present application.

Claims

1. A laser printing method, characterized in that: include: Acquire a text to be printed, and determine a reference contour line, a first filling line, and a second filling line of the text to be printed, wherein the first filling line and the second filling line are perpendicular to each other; Determine a theoretical contour line of a target printed text according to the text to be printed; Determining an actual adjustment distance of the reference contour line relative to the theoretical contour line; According to the actual adjustment distance, determining an adjustment length of the first filling line in the same direction as the actual adjustment distance; According to the actual adjustment distance, determining an adjustment amount of the second filling line perpendicular to the actual adjustment distance; Determining target printing data of the target printing text according to the adjustment length and the adjustment quantity; Based on the target printing data, the target printing text without the theoretical contour line is laser printed on a printing medium.

2. The laser printing method according to claim 1, characterized in that: Determining the theoretical contour line of the target printed text according to the to-be-printed text comprises one of the following steps: Acquiring a theoretical adjustment distance and a position of the reference contour line, and determining the theoretical contour line according to the theoretical adjustment distance and the position; Alternatively, the line width and position of the reference contour line are acquired, and the theoretical contour line is determined according to the line width and the position.

3. The laser printing method according to claim 2, characterized in that: The step of obtaining the theoretical adjustment distance comprises one of the following steps: Obtaining externally input custom adjustment parameters, and determining the theoretical adjustment distance according to the custom adjustment parameters; Alternatively, the scaling ratio and scaling direction of the text to be printed are acquired, and the theoretical adjustment distance is determined according to the scaling ratio and the scaling direction.

4. The laser printing method according to claim 1, characterized in that: The step of determining the adjustment amount of the second filling line according to the actual adjustment distance includes: determining a ratio between the actual adjustment distance and the line spacing of the second filling lines; The ratio is rounded down to obtain an integer value, and the integer value is used as the numerical value of the adjustment quantity.

5. The laser printing method according to claim 1, characterized in that: Determining target printing data of the target printing text according to the adjusted length and the adjusted quantity includes: Acquire a first reference length and a first reference quantity of the first filling line, and a second reference length and a second reference quantity of the second filling line; Determining a first target length and a first target quantity required for actually printing the first fill line according to the first reference length, the first reference quantity, and the adjusted length; Determining a second target length and a second target quantity required for actually printing the second fill line according to the second reference length, the second reference quantity, and the adjustment quantity; Target print data of the target print document is generated based on the first target length, the first target quantity, the second target length, and the second target quantity.

6. The laser printing method according to claim 5, characterized in that: If the actual adjustment distance is a positive number, the adjustment length is characterized by extending the length of the first filling line, and the adjustment amount is characterized by increasing the amount of the second filling line; Alternatively, if the actual adjustment distance is a negative number, the adjustment length is characterized by shortening the length of the first filling line, and the adjustment amount is characterized by reducing the amount of the second filling line.

7. The laser printing method according to claim 6, characterized in that: The step of determining a first target length and a first target number of actually printing the first fill line according to the first reference length, the first reference number, and the adjusted length includes: determining the first benchmark quantity as the first target quantity; When the adjusted length is characterized by extending the length of the first filling line, the first reference length is added to the adjusted length to obtain the first target length; Alternatively, when the adjusted length is characterized by shortening the length of the first filling line, the first reference length is subtracted from the adjusted length to obtain the first target length.

8. The laser printing method according to claim 6, characterized in that: Determining the second target length and the second target quantity of actually printing the second fill line according to the second reference length and the second reference quantity, and the adjustment quantity, comprises: determining the second reference length as the second target length; When the adjustment quantity is characterized by increasing the number of the second filling lines, the second reference quantity is added to the adjustment quantity to obtain the second target quantity; Alternatively, when the adjustment quantity is characterized by reducing the number of the second filling lines, the second reference quantity is subtracted from the adjustment quantity to obtain the second target quantity.

9. A printer, characterized in that: include: one or more processors; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the laser printing method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The medium stores a computer program, and when the computer program is executed by a processor, the laser printing method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • A dual-laser single-galvanometer printing system

    CN218799127U

  • Method of modifying the fatness of characters to be output on a raster output device

    US5673371A

  • Non-gray scale Anti-aliasing method for laser printers

    WO1991007843A1