CN115202597A - Print preview method, device, equipment and storage medium - Google Patents

Print preview method, device, equipment and storage medium Download PDF

Info

Publication number
CN115202597A
CN115202597A CN202210874442.3A CN202210874442A CN115202597A CN 115202597 A CN115202597 A CN 115202597A CN 202210874442 A CN202210874442 A CN 202210874442A CN 115202597 A CN115202597 A CN 115202597A
Authority
CN
China
Prior art keywords
print preview
print
printed
content
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210874442.3A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Hanyin Electronic Technology Co Ltd
Original Assignee
Xiamen Hanyin Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Hanyin Electronic Technology Co Ltd filed Critical Xiamen Hanyin Electronic Technology Co Ltd
Priority to CN202210874442.3A priority Critical patent/CN115202597A/en
Publication of CN115202597A publication Critical patent/CN115202597A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client
    • G06F3/1256User feedback, e.g. print preview, test print, proofing, pre-flight checks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1207Improving or facilitating administration, e.g. print management resulting in the user being informed about print result after a job submission
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1208Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1259Print job monitoring, e.g. job status

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

The embodiment of the invention provides a print preview method, a print preview device, print preview equipment and a storage medium, wherein the method comprises the following steps: establishing a communication connection with a printer; when a print preview instruction is received, acquiring content to be printed and state parameters returned by a sensor; wherein the state parameters comprise real-time state of the printer and related parameters influencing print preview; performing printing pretreatment on the content to be printed based on the state parameters, and generating a printing preview page; and displaying the print preview page so that a user can check the print effect. The invention can preview the real-time state of the printer and the influence of relevant parameters influencing the print preview on the printing effect, thereby checking whether the expected printing effect can be obtained according to the print preview page.

Description

Print preview method, device, equipment and storage medium
(this application is a divisional application for 2020105813.7 a print preview method, apparatus, device and storage medium)
Technical Field
The invention relates to the technical field of printed image display, in particular to a print preview method, a print preview device, print preview equipment and a storage medium.
Background
Printers are widely available in daily life, and can be generally divided into needle type, ink jet type, laser type, thermal transfer type and the like. Any printer faces a challenge as to whether the print effect can satisfy the print effect expectation of the user. The common print preview is only that print data is generated for a print file in an upper computer (a computer or a mobile phone) and then is sent to a printer for direct printing, and only the typesetting of a print page can be judged in advance.
In the prior art, a user cannot predict the influence of the real-time state, configuration parameters and the like of a printer on printing, cannot predict whether the printing effect can meet the expectation of the user, and can only obtain the real printing effect through the printer or a printed sample sheet after the printing task is finished or predict the problems of the printer.
Disclosure of Invention
In view of the above, an object of the embodiments of the present invention is to provide a print preview method, apparatus, device and storage medium, so as to preview and display a print result according to a status parameter returned by a sensor.
The embodiment of the invention provides a print preview method, which comprises the following steps:
establishing a communication connection with a printer;
when a print preview instruction is received, acquiring content to be printed and state parameters returned by a sensor; wherein the state parameters comprise the real-time state of the printer and relevant parameters influencing print preview;
performing printing pretreatment on the content to be printed based on the state parameters, and generating a printing preview page;
and displaying the print preview page so that a user can check the print effect.
Preferably, the status parameter includes a consumable balance; performing printing pretreatment on the content to be printed based on the state parameters, and generating a print preview page, which specifically includes:
judging the required consumable amount according to the content to be printed;
judging whether the consumable allowance is larger than the required consumable amount or not;
if so, completely displaying the content to be printed on the print preview page;
if not, displaying part of the content to be printed on the print preview page according to the proportion of the consumable allowance to the required consumable amount.
Preferably, the status parameter comprises a current temperature of the print head; performing printing preprocessing on the content to be printed based on the state parameter, and generating a print preview page, which specifically includes:
acquiring a temperature range of the printing head in normal work;
judging whether the current temperature of the printing head is in the temperature range or not;
if so, displaying the content to be printed on the print preview page in a normal density;
if not, determining the concentration to be displayed according to the difference value between the current temperature and the temperature range, and displaying the content to be printed on the print preview page according to the concentration to be displayed.
Preferably, the status parameter comprises an operating status of a heating spot on the print head; performing printing preprocessing on the content to be printed based on the state parameter, and generating a print preview page, which specifically includes:
acquiring the working state of each heating point on the printing head;
judging whether a heating point in a fault state exists or not;
if so, acquiring the column corresponding to the heating point in the fault state, and rendering the corresponding column of the print preview page to generate a white line;
if not, normally displaying the content to be printed on the print preview page.
Preferably, the state parameter includes a defect condition of the paper; performing printing preprocessing on the content to be printed based on the state parameter, and generating a print preview page, which specifically includes:
acquiring a scanned image of a paper to be printed;
judging whether the paper is defective or not according to the scanned image;
if so, displaying a defect part in the scanned image on the print preview page, and displaying the content to be printed according to the defect part;
and if not, completely displaying the content to be printed on the print preview page.
Preferably, the method further comprises the following steps:
when the print preview page is judged to be abnormal;
and displaying abnormal printing prompt information on the print preview page.
Preferably, the method further comprises the following steps:
acquiring key information needing suspension display;
generating a floating window containing the key information based on the state parameters;
and displaying the floating window on the print preview page.
An embodiment of the present invention further provides a print preview apparatus, including:
a communication connection establishing unit for establishing a communication connection with the printer;
the data acquisition unit is used for acquiring the content to be printed and the state parameters returned by the sensor when receiving a print preview instruction; wherein the state parameters comprise the real-time state of the printer and relevant parameters influencing print preview;
the print preview page generating unit is used for carrying out print pretreatment on the content to be printed based on the state parameters and generating a print preview page;
and the first display unit is used for displaying the print preview page so that a user can check the print effect.
The embodiment of the invention also provides a printing abnormity preview device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the printing preview method.
An embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the print preview method as described above.
In the embodiment, the real printing process can be simulated by performing printing pretreatment on the content to be printed based on the real-time state of the printer and the relevant parameters influencing the printing preview and displaying the generated printing preview page, and the influence of the real-time state of the printer and the relevant parameters influencing the printing preview on the printing effect can be previewed, so that whether the expected printing effect can be obtained or not can be checked according to the printing preview page, whether the printing operation is further executed or not is determined, and the utilization rate of printing consumables is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a print preview method according to a first embodiment of the present invention.
Fig. 2 is a schematic diagram of a preview page in a preferred embodiment of the first embodiment of the present invention.
Fig. 3 is a schematic diagram of a preview page according to another preferred embodiment of the first embodiment of the present invention.
Fig. 4 is a schematic diagram of a preview page according to another preferred embodiment of the first embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a print preview device according to a second embodiment of the present invention.
Icon: 201-a communication connection establishing unit; 202-a data acquisition unit; 203-print preview page generating unit; 204-first display unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely a relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The word "if" as used herein may be interpreted as "at 8230; \8230;" or "when 8230; \8230;" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In the embodiments, the references to "first \ second" merely distinguish similar objects and do not represent a specific ordering for the objects, and it is to be understood that "first \ second" may interchange a specific order or sequence where permitted. It should be understood that "first \ second" distinguishing objects may be interchanged under appropriate circumstances such that the embodiments described herein may be implemented in sequences other than those illustrated or described herein.
As shown in fig. 1, a first embodiment of the present invention provides a print preview method, executable by a print preview device, including at least the steps of:
s101, communication connection is established with the printer.
S102, when a print preview instruction is received, acquiring content to be printed and state parameters returned by a sensor; wherein the status parameters include a real-time status of the printer and related parameters affecting the print preview.
In this embodiment, the print preview device may be a mobile phone, a tablet computer, a notebook, a computer, or a like smart terminal device with a display interface, and may establish a communication connection with a printer in a wired or wireless manner (e.g., bluetooth, WIFI, USB, etc.) to obtain the status parameters returned by the sensor. The sensor may be built in the printer, or may be derived from a device connected to the printer, such as a camera, a scanning component, a print preview device itself, or the like.
The real-time status of the printer refers to the actual working status of the printer, and may be consumable material allowance, printing head working status, printing head temperature, task amount of a printing queue, and the like.
The relevant parameters affecting print preview may be printer resolution, printable color, print effect, paper color, paper defect condition, ribbon color, preview display brightness, etc., and may be print parameter configuration of the printer itself, or parameters detected by a sensor by a relevant device connected to the printer, which may affect the real print effect, and the present invention is not limited in particular.
In this embodiment, the print preview device is installed with general Office software such as Office, WPS, adobe Reader, ireader, and the like, and can preview and display the content to be printed.
S103, performing printing pretreatment on the content to be printed based on the state parameters, and generating a printing preview page.
Different from a general print preview mode, in the embodiment, different state parameters of the printer correspond to different print preprocessing modes, so that a print preview page generated after print preprocessing is performed on the basis of the state parameters can simulate a real print effect, the influence of the state parameters returned by the sensor on a print result can be judged in advance, timely adjustment is facilitated, and occurrence of print errors is reduced.
And S104, displaying the print preview page for the user to check the print effect.
In this embodiment, the print preview result is displayed on the display interface of the print preview device, so that the user can conveniently determine whether the print effect meets the print expectation. When the printing effect meets the printing expectation, the content to be printed can be sent to a printer for printing; otherwise, the abnormity of the printer can be judged according to the printing effect, so that the printer can print after relevant adjustment.
In summary, the content to be printed is pre-processed by printing based on the real-time state of the printer and the relevant parameters influencing the printing preview, and the generated printing preview page is displayed, so that the real printing process can be simulated, the influence of the real-time state of the printer and the relevant parameters influencing the printing preview on the printing effect is previewed, whether the printing operation is further executed or not is determined according to the printing effect, and the utilization rate of printing consumables is improved.
Referring to FIG. 2, based on the above embodiment, in a preferred embodiment, the status parameters include consumable balance; step 103 specifically includes:
judging the required consumable amount according to the content to be printed;
judging whether the consumable allowance is larger than the required consumable amount or not;
if so, completely displaying the content to be printed on the print preview page;
if not, displaying part of the content to be printed on the print preview page according to the proportion of the consumable allowance to the required consumable amount.
The consumable can be a carbon ribbon, carbon powder, printing paper and the like, is a consumable in the printing process, and can continuously reduce the allowance of the consumable along with printing.
In this embodiment, when the remaining amount of consumable is greater than the required amount of consumable, it indicates that the consumable is sufficient and the printing effect is not affected, and then the complete content to be printed can be obtained; when the consumable material allowance is smaller than the required consumable material amount, the consumable material is not enough to print the current content to be printed, and the content to be printed needs to be partially displayed according to the ratio of the consumable material allowance to the required consumable material amount, for example, when the ratio of the consumable material allowance to the required consumable material amount is 1.
On the basis of the above embodiment, in a preferred embodiment, the state parameter includes a current temperature of the print head; step 103 specifically includes:
acquiring a temperature range of the printing head in normal work;
judging whether the current temperature of the printing head is in the temperature range;
if so, displaying the content to be printed on the print preview page in normal density;
if not, determining the concentration to be displayed according to the difference value between the current temperature and the temperature range, and displaying the content to be printed on the print preview page according to the concentration to be displayed.
In this embodiment, when the temperature of the print head is too low or too high, the situation of unclear printing and poor quality is likely to occur.
When the current temperature of the printing head is not within the temperature range, the printing head is in an under-temperature state or an over-temperature state, and the concentration to be displayed needs to be determined according to the difference value between the current temperature and the temperature range. Specifically, when the current temperature is greater than the maximum value of the temperature range, the concentration to be displayed is greater than the normal concentration, and the greater the difference between the two is, the greater the concentration to be displayed is. And when the current temperature is lower than the minimum value of the temperature range, the concentration to be displayed is lower than the normal concentration, and the larger the difference between the two is, the smaller the concentration to be displayed is.
Referring to fig. 3, based on the above embodiment, in a preferred embodiment, the status parameter includes an operating status of a heating point on the print head; step 103 specifically includes:
acquiring the working state of each heating point on the printing head;
judging whether a heating point in a fault state exists or not;
if so, acquiring a column corresponding to the heating point in the fault state, and rendering the corresponding column of the print preview page to generate a white line;
if not, normally displaying the content to be printed on the print preview page.
In this embodiment, when a heating dot on the print head is in a failure state (e.g., a short circuit or necrosis of the heating dot), a corresponding column on the print preview page cannot be printed normally, and the column corresponding to the heating dot in the failure state needs to be rendered into a white line to obtain a real printing effect.
On the basis of the above embodiment, in a preferred embodiment, the status parameter includes a defect condition of the paper; performing printing pretreatment on the content to be printed based on the state parameters, and generating a print preview page, which specifically includes:
acquiring a scanned image of a paper to be printed;
judging whether the paper is defective or not according to the scanned image;
if so, displaying a defect part in the scanned image on the print preview page, and displaying the content to be printed according to the defect part;
and if not, completely displaying the content to be printed on the print preview page.
In this embodiment, the printer may be connected to a scanning assembly that is provided with a sensor, and the scanning assembly may acquire a scanned image of the paper and transmit the scanned image back to the print preview device. When the print preview device judges that the paper is defective, the defective part can be displayed on the print preview page to approximate the real printing effect.
Of course, in some other embodiments, the printer may be connected to a matching camera component, and the camera component may obtain the color of the paper and the color of the ribbon, and display the paper background and the font color of the corresponding color on the print preview page. In other embodiments, the printer may also be connected to the print preview device itself, and obtain the status parameter of the print preview device, for example, obtain that the current brightness of the mobile phone is turned down or the screen is from a different provider, and adjust the original image according to the current brightness and the color developed by the provider, so that the preview result presented on the print preview page is always closest to the real print effect.
On the basis of the above embodiment, in a preferred embodiment, the method further includes:
when the print preview page is judged to be abnormal;
and displaying abnormal printing prompt information on the print preview page.
In this embodiment, the real-time status of printer constantly changes, and the printer often can the abnormal conditions appear, if the consumptive material is not enough, the hot spot is too warm, necrosis, shower nozzle block up etc. what correspond will lead to the print preview page to appear showing unusually such as incomplete, the concentration of display is low, white line, can be according to this unusually printing unusual prompt information that corresponds at the print preview page demonstration to remind the user.
Referring to fig. 2, in a specific embodiment, when the print page is incompletely displayed, the corresponding print exception notification information may be displayed on the print preview page: the mask area cannot be printed due to the insufficient carbon ribbon.
Referring to fig. 3, in another specific embodiment, when a printed page appears with a white line or a black line, a corresponding print exception prompting message may be displayed on the print preview page: the white/black line area cannot be normally printed due to the damage of the print head.
It should be noted that, when the print abnormality prompt information is displayed on the print preview page, the user may decide whether to further perform the printing operation according to the print effect: if abnormal prompt information of insufficient carbon ribbon appears on the print preview page, the corresponding position of the print preview page has no print content, or the user does not accept the abnormal prompt information, the printing can be continued. Another example is: when the abnormal prompt information of the abnormal black line appears on the print preview page, the corresponding position of the print preview page has less print content or the influence of the print effect is not great, and the printing can be continued.
Referring to fig. 4, on the basis of the above embodiment, in a preferred embodiment, the method further includes:
acquiring key information required to be displayed in a suspended manner;
generating a floating window containing the key information based on the state parameters;
and displaying the floating window on the print preview page.
The key information may include one or more of the state parameters, and may be set in a user-defined manner in advance, which is not limited in the present invention.
For example, the key information required to be displayed in a floating manner can be preset: the residual capacity of the printer, the printing progress, the consumable allowance and the like, so that the printing state can be acquired in real time in the printing process.
In this embodiment, the print preview device may actively query the status parameters returned by the sensor in real time, and display preset key information on a print preview page in real time. Therefore, in the printing process, a user can conveniently and timely perform printing adjustment according to the key information on the print preview page.
Referring to fig. 5, a print preview apparatus according to a second embodiment of the present invention includes:
a communication connection establishing unit 201 for establishing a communication connection with the printer;
the data acquisition unit 202 is used for acquiring the content to be printed and the state parameters returned by the sensor when a print preview instruction is received; wherein the state parameters comprise real-time state of the printer and related parameters influencing print preview;
a print preview page generating unit 203, configured to perform print preprocessing on the content to be printed based on the status parameter, and generate a print preview page;
and a first display unit 204, configured to display the print preview page, so that the user can view the print effect.
Preferably, the status parameter includes a consumable balance; the print preview page generating unit 203 specifically includes:
the consumable quantity acquisition module is used for judging the required consumable quantity according to the content to be printed;
the consumable amount judging module is used for judging whether the consumable allowance is larger than the required consumable amount or not;
the first display module is used for completely displaying the content to be printed on the print preview page when the consumable allowance is larger than the required consumable amount;
and the second display module is used for displaying part of the content to be printed on the print preview page according to the proportion of the consumable allowance to the required consumable amount when the consumable allowance is smaller than the required consumable amount.
Preferably, the status parameter comprises a current temperature of the print head; the print preview page generating unit 203 specifically includes:
the temperature range acquisition module is used for acquiring the temperature range of the printing head in normal work;
the temperature range judging module is used for judging whether the current temperature of the printing head is in the temperature range;
the third display module is used for displaying the content to be printed on the print preview page at a normal density when the current temperature of the printing head is within the temperature range;
and the fourth display module is used for determining the concentration to be displayed according to the difference value between the current temperature and the temperature range when the current temperature of the printing head is not in the temperature range, and displaying the content to be printed on the print preview page at the concentration to be displayed.
Preferably, the status parameter comprises an operating status of a heating spot on the print head; the print preview page generating unit 203 specifically includes:
the working state acquisition module is used for acquiring the working state of each heating point on the printing head;
the fault heating point judging module is used for judging whether a heating point in a fault state exists or not;
the fifth display module is used for acquiring a column corresponding to the heating point in the fault state when the heating point in the fault state exists, and rendering the corresponding column of the print preview page to generate a white line;
and the sixth display module is used for normally displaying the content to be printed on the print preview page when no heating point in a fault state exists.
Preferably, the state parameter includes a defect condition of the paper; the print preview page generating unit 203 specifically includes:
a scanned image acquiring unit for acquiring a scanned image of a sheet to be printed;
a defect condition judging unit for judging whether the paper is defective or not according to the scanned image;
a seventh display module, configured to display a defective portion in the scanned image on the print preview page when the scanned image is defective, and display the content to be printed according to the defective portion;
and the eighth display module is used for completely displaying the content to be printed on the print preview page when the content is not defective.
Preferably, the method further comprises the following steps:
an abnormality judgment unit configured to judge whether the print preview page is abnormal;
and the abnormity prompting unit is used for displaying printing abnormity prompting information on the print preview page.
Preferably, the method further comprises the following steps:
the key information acquisition unit is used for acquiring key information needing suspension display;
the floating window generating unit is used for generating a floating window containing the key information based on the state parameter;
and the floating window display unit is used for displaying the floating window on the print preview page.
A third embodiment of the present invention provides a print exception preview device including a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the print preview method as described above when executing the program.
A fourth embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the print preview method as described above.
Illustratively, the computer programs described herein can be divided into one or more modules that are stored in the memory and executed by the processor to implement the invention. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the implementation device. For example, the device described in the second embodiment of the present invention.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an APPlication Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the printing method, and various interfaces and lines connecting the various parts throughout the implementation of the document printing method.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the printing method by executing or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, a text conversion function, etc.), and the like; the storage data area may store data (such as audio data, text message data, etc.) created according to the use of the user terminal, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Wherein, the module for realizing the user terminal can be stored in a computer readable storage medium if it is realized in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
It should be noted that the above-described device embodiments are merely illustrative, where the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection therebetween, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement without inventive effort.
While the invention has been described with reference to specific preferred embodiments, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the following claims. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (10)

1. A print preview method, comprising the steps of:
establishing a communication connection with a printer;
when a print preview instruction is received, acquiring content to be printed and state parameters returned by a sensor; wherein the state parameters comprise the real-time state of the printer and relevant parameters influencing print preview;
performing printing pretreatment on the content to be printed based on the state parameters, and generating a printing preview page;
and displaying the print preview page so that a user can check the print effect.
2. The print preview method of claim 1, wherein the status parameter includes a consumable remaining amount; performing printing preprocessing on the content to be printed based on the state parameter, and generating a print preview page, which specifically includes:
judging the required consumable amount according to the content to be printed;
judging whether the consumable allowance is larger than the required consumable amount or not;
if so, completely displaying the content to be printed on the print preview page;
if not, displaying part of the content to be printed on the print preview page according to the proportion of the consumable allowance to the required consumable amount.
3. The print preview method of claim 1, wherein the status parameter includes a current temperature of the print head; performing printing preprocessing on the content to be printed based on the state parameter, and generating a print preview page, which specifically includes:
acquiring a temperature range of the printing head in normal work;
judging whether the current temperature of the printing head is in the temperature range;
if so, displaying the content to be printed on the print preview page in a normal density;
if not, determining the concentration to be displayed according to the difference value between the current temperature and the temperature range, and displaying the content to be printed on the print preview page according to the concentration to be displayed.
4. The print preview method of claim 1, wherein the status parameter includes an operating status of a heated dot on a print head; performing printing preprocessing on the content to be printed based on the state parameter, and generating a print preview page, which specifically includes:
acquiring the working state of each heating point on the printing head;
judging whether a heating point in a fault state exists or not;
if so, acquiring a column corresponding to the heating point in the fault state, and rendering the corresponding column of the print preview page to generate a white line;
if not, normally displaying the content to be printed on the print preview page.
5. The print preview method of claim 1, wherein the status parameter includes a paper defect condition; performing printing pretreatment on the content to be printed based on the state parameters, and generating a print preview page, which specifically includes:
acquiring a scanned image of a paper to be printed;
judging whether the paper is defective or not according to the scanned image;
if so, displaying a defect part in the scanned image on the print preview page, and displaying the content to be printed according to the defect part;
and if not, completely displaying the content to be printed on the print preview page.
6. The print preview method of claim 1, further comprising:
when the print preview page is judged to be abnormal;
and displaying abnormal printing prompt information on the print preview page.
7. The print preview method of claim 1, further comprising:
acquiring key information needing suspension display;
generating a floating window containing the key information based on the state parameters;
and displaying the floating window on the print preview page.
8. A print preview device characterized by comprising:
a communication connection establishing unit for establishing a communication connection with the printer;
the data acquisition unit is used for acquiring the content to be printed and the state parameters returned by the sensor when receiving a print preview instruction; wherein the state parameters comprise real-time state of the printer and related parameters influencing print preview;
the printing preview page generating unit is used for carrying out printing pretreatment on the content to be printed based on the state parameters and generating a printing preview page;
and the first display unit is used for displaying the print preview page so that a user can check the print effect.
9. A print exception preview device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements a print preview method according to any of claims 1 to 7.
10. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the print preview method of any one of claims 1 to 7.
CN202210874442.3A 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium Pending CN115202597A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210874442.3A CN115202597A (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210874442.3A CN115202597A (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium
CN202010585813.7A CN111857611B (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202010585813.7A Division CN111857611B (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115202597A true CN115202597A (en) 2022-10-18

Family

ID=72988063

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202010585813.7A Active CN111857611B (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium
CN202210874442.3A Pending CN115202597A (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202010585813.7A Active CN111857611B (en) 2020-06-24 2020-06-24 Print preview method, device, equipment and storage medium

Country Status (1)

Country Link
CN (2) CN111857611B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116954531A (en) * 2023-09-19 2023-10-27 德卡云创科技(西安)有限公司 Method and system for remote visual print preview

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112571972B (en) * 2020-12-12 2021-06-22 深圳市捷诚技术服务有限公司 Thermal printer heating control method and device and thermal printer
CN112667173A (en) * 2020-12-23 2021-04-16 深圳开立生物医疗科技股份有限公司 Medical image printing method and device, medical equipment and readable storage medium
CN113031885B (en) * 2021-03-22 2024-04-09 珠海奔图电子有限公司 File printing preview method and device and file printing system
CN114953464B (en) * 2022-04-07 2024-05-31 深圳市猿人创新科技有限公司 Intelligent diagnosis method and device for 3D printer, electronic equipment and storage medium
CN115480717A (en) * 2022-09-21 2022-12-16 珠海华人智创科技有限公司 Man-machine interaction system and method for printer based on Internet of things

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001067347A (en) * 1999-06-23 2001-03-16 Canon Inc Information processor, information processing method and storage medium storing computer-readable program
US7239412B2 (en) * 2002-01-31 2007-07-03 Sharp Laboratories Of America, Inc. True print preview method and apparatus
US7148977B2 (en) * 2002-10-08 2006-12-12 Hewlett-Packard Development Company, L.P. Consumable availability with print preview
JP4298362B2 (en) * 2003-04-17 2009-07-15 キヤノン株式会社 Information processing apparatus and print preview display method
US10154163B2 (en) * 2011-06-29 2018-12-11 Markem-Imaje Holding Dynamic user interface
JP2014191552A (en) * 2013-03-27 2014-10-06 Seiko Epson Corp Printing system and information processor
JP6409430B2 (en) * 2014-09-11 2018-10-24 セイコーエプソン株式会社 Print image generation apparatus, print system, print image generation method, and program
CN109597591B (en) * 2018-10-24 2023-04-07 厦门汉印电子技术有限公司 Printing information synchronous display method, device, system, printer and user terminal
CN110515566B (en) * 2019-08-17 2020-12-29 深圳市汉森软件有限公司 Industrial ink-jet printing preview method, device, equipment and storage medium
CN110936745A (en) * 2019-12-17 2020-03-31 杨勇志 Novel carbon ribbon type artistic name sticker processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116954531A (en) * 2023-09-19 2023-10-27 德卡云创科技(西安)有限公司 Method and system for remote visual print preview
CN116954531B (en) * 2023-09-19 2023-12-08 德卡云创科技(西安)有限公司 Method and system for remote visual print preview

Also Published As

Publication number Publication date
CN111857611B (en) 2022-11-11
CN111857611A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111857611B (en) Print preview method, device, equipment and storage medium
CN101998026B (en) Image processing apparatus and image processing method
US8851593B1 (en) Image processing apparatus, image forming apparatus, non-transitory computer readable medium, and image processing method
CN111708499A (en) Printing management method, device, equipment and storage medium for printing pages
CN111722815A (en) Printing control method and device for automatic typesetting and electronic equipment
US20190056689A1 (en) System and method for printing with depleting toner or ink levels
US8988448B2 (en) Image generation method for performing color conversion on an image
US9597908B2 (en) Printer displays heating elements status and sets a check range to determine whether the heating elements is normal or abnormal
CN112363679A (en) Printing method of electronic invoice and mobile phone file
JP4725148B2 (en) Printing apparatus and program
CN103179306A (en) Image forming apparatus and control method of same
CN115495030A (en) Job exception handling method, job exception handling device, image forming apparatus, and storage medium
JP6917285B2 (en) Image forming device
US8705077B2 (en) Printing system and printing method
CN113608708B (en) Printing preview method and printing preview device based on GDI framework
KR101665661B1 (en) Automatic typesetting equipment and automated printing system comprising it
JP2002254770A (en) Image forming device
JP2011039160A (en) Information processor, image forming system, and program
US11249697B2 (en) Printing system and printing method
US20240075755A1 (en) Storage medium storing program, information processing apparatus, and control method
CN113448522B (en) Variable data printing output method and device, terminal equipment and readable storage medium
JP4821450B2 (en) Information processing apparatus, information processing method, and information processing program
JP2023170876A (en) Image creation device and image processing program
JP2017065202A (en) Printing device, printing system, control method, and program
JP2021133552A (en) Handy printer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination