CN103268205A - Embedded laser printing method and printing device - Google Patents

Embedded laser printing method and printing device Download PDF

Info

Publication number
CN103268205A
CN103268205A CN2013101329952A CN201310132995A CN103268205A CN 103268205 A CN103268205 A CN 103268205A CN 2013101329952 A CN2013101329952 A CN 2013101329952A CN 201310132995 A CN201310132995 A CN 201310132995A CN 103268205 A CN103268205 A CN 103268205A
Authority
CN
China
Prior art keywords
printing
data
printer
language
converted
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
CN2013101329952A
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.)
Shenzhen Comen Medical Instruments Co Ltd
Original Assignee
Shenzhen Comen Medical Instruments 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 Shenzhen Comen Medical Instruments Co Ltd filed Critical Shenzhen Comen Medical Instruments Co Ltd
Priority to CN2013101329952A priority Critical patent/CN103268205A/en
Publication of CN103268205A publication Critical patent/CN103268205A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

The invention an embedded laser printing method, which comprises the following steps: creating drawing device context; drawing to-be-printed graphs and characters in the drawing device context; reading out data in the drawing device context in sequence; converting the data read out in sequence to an instruction stream which can be identified by a printer; and sending the instruction stream which can be identified by the printer to the printer. The invention also provides a corresponding embedded laser printing device.

Description

Embedded laser Method of printing and printing equipment
Technical field
The present invention relates to a kind of embedded laser Method of printing and printing equipment, particularly, the present invention relates to a kind of patient monitor embedded laser Method of printing and printing equipment.
Background technology
On patient monitor, usually need to connect a laser printing machine equipment, be used for printing data such as patient information, waveform, parameter and trend chart, and print information such as real-time report, cardiogram report, trend map statistical tables and reports announcement.Clinically at present, it is more and more to be connected to the demand of printer output report by patient monitor.Use traditional Method of printing can cause taking problems such as resource is many, print speed is slow, efficient is low.And less patient monitor can be supported external laser printing machine equipment, and main cause is that embedded system can not be supported the laser printing machine equipment.Both laser printer systems on traditional Linux is also because to take resource many, and print speed is applied to resource originally on the embedded system very in short supply slowly and not.And when when embedded system is printed multilingual character, need generate a large amount of raster fonts for print system, also take very big storage space.
Summary of the invention
In view of this, be necessary to provide a kind of resource that takies few and the embedded laser Method of printing of very fast print speed arranged.
In addition, also be necessary to provide a kind of corresponding embedded laser printing equipment.
A kind of embedded laser Method of printing comprises:
Create the plotting equipment content;
In described plotting equipment content, draw figure, the literal that desire is printed;
Read the data in the described plotting equipment content according to the order of sequence;
But described data of reading according to the order of sequence are converted to printer recognition instruction stream;
But described printer recognition instruction stream is sent to printer.
Alternatively, draw figure, the literal that described desire is printed by GUI drawing practice and/or text output intent.
Alternatively, data in the described plotting equipment content are read by row and/or by the row circulation by described data system of reading according to the order of sequence in the described plotting equipment content.
Alternatively, but the described step that described data of reading according to the order of sequence are converted to printer recognition instruction stream comprise:
Described data of reading according to the order of sequence are converted to the raster data of black and white;
But described raster data is converted to printer recognition instruction stream.
Alternatively, but according to the required printing descriptive language of described printer described raster data is converted to described printer recognition instruction stream, described printing descriptive language comprises PCL language, PostScript language, Esc/Page language, Capsyl language.
A kind of embedded laser printing equipment comprises:
Memory modules is used for creating the plotting equipment content and stores literal, the figure that desire is printed;
Graphics module is used for drawing figure, the literal that desire is printed in the plotting equipment content of described memory modules;
Modular converter, but be used for being converted to from the plotting equipment content-data that described memory modules is read according to the order of sequence printer recognition instruction stream;
Sending module, but be used for sending described printer recognition instruction stream to printer.
Alternatively, described graphics module is drawn figure, the literal that described desire is printed by GUI drawing practice and/or text output intent.
Alternatively, data in the described plotting equipment content are read by row and/or by the row circulation by described data system of reading according to the order of sequence in the described plotting equipment content.
Alternatively, but described modular converter is converted to printer recognition instruction stream with described data of reading according to the order of sequence comprises: the raster data that described data of reading according to the order of sequence is converted to black and white; But described raster data is converted to printer recognition instruction stream.
Alternatively, but described modular converter is converted to described printer recognition instruction stream according to the required printing descriptive language of described printer with described raster data, described printing descriptive language comprises PCL language, PostScript language, Esc/Page language, Capsyl language.
Embedded laser Method of printing of the present invention and printing equipment, the committed memory that has caused owing to the big complex disposal process of data volume when having overcome the conventional laser printing is more, print speed is slow, inefficient problem, has good performance aspect Embedded Application.
Description of drawings
Fig. 1 is the process flow diagram of the embedded laser Method of printing of the embodiment of the invention;
Fig. 2 is the modular structure figure of the embedded laser printing equipment of embodiment of the present invention.
Embodiment
As shown in Figure 1, the embedded laser Method of printing of one embodiment of the present invention may further comprise the steps:
Step 102, the plotting equipment content of establishment internal memory (or device context, Device Context is called for short DC).The size system of described drawing DC arranges according to the size of the paper that will print, is example with A4 paper, if landscape orientation, it is 3508 that width then is set, and highly is 2479.
Step 104 is drawn figure and the literal that desire is printed in described drawing DC.Example ground can utilize the GUI drawing practice arbitrary graphic of painting out easily, can also utilize the text output intent to draw size that multi-language text or amplification decrease font size etc.In optional embodiment, can also appoint figure and output string with MiniGui drawing practice drawing, MiniGui supports multilingual, thereby prints multilingual very convenient.Can directly output to drawing DC and realize Print Preview on the screen.
Step 106 sends initialization command and prints initiation command.Embodiment as a kind of example, the described initialization command that sends to printer comprised paper type, print resolution, print position, Print direction are set, whether be duplex printing etc., after receiving described printing initiation command, printer can begin to wait for the reception print data.
Step 108 is read the data among the described drawing DC according to the order of sequence.Example ground, the data of described drawing DC can be read by row or by the row circulation.
Step 110 is converted to described drawing DC data of reading according to the order of sequence the raster data of black and white.In possible embodiment, the data among the described drawing DC are represented with 8,16 or 24 RGB forms, by predetermined algorithm, described RGB form data can be converted to monochromatic raster data.
Step 112, but described raster data is converted to printer recognition instruction stream.Because each printer has the printing descriptive language that matches with it, described raster data need be converted to printer by corresponding printing descriptive language and can identify corresponding instruction stream.Example ground, described printing descriptive language comprises PCL language, PostScript language, Esc/Page language, Capsyl language etc.Because described printing descriptive language form is given, algorithm is simple, but thereby can under the less situation of committed memory, described raster data be converted to printer recognition instruction stream, can not have influence on whole operational efficiency.
Step 114, but described printer recognition instruction stream is sent to printer.In optional embodiment, can be by USB (universal serial bus) (USB) but or other network equipments described printer recognition instruction stream is sent to described printer.Example ground, described process of transmitting can be realized by bottom USB or the network-driven of linux system.
Step 116 finishes but judge whether described recognition instruction stream has sent.Example ground, but judge whether the process of transmitting of the described recognition instruction stream that sends has according to the order of sequence arrived last column or last row of described drawing DC.Do not finish if send as yet, then to continue the process of step 108 to 116.
According to the embedded laser Method of printing of above-mentioned embodiment, the committed memory that has caused owing to the big complex disposal process of data volume when having overcome the conventional laser printing is more, print speed is slow, inefficient problem.Embedded laser Method of printing of the present invention has good performance aspect Embedded Application, experiment showed, that printing an A4 paper at the AT91SAM9G45 platform needs about 6 seconds time, can satisfy the application on patient monitor.In addition, embedded laser Method of printing of the present invention has been realized multilingual printing easily by the combination of GUI and print system.
As shown in Figure 2, the embedded laser printing equipment 20 of one embodiment of the present invention comprises memory modules 202, graphics module 204, main control module 206, modular converter 208 and sending module 210.
Memory modules 202 is used for creating literal, the figure that plotting equipment content (or device context, Device Context is called for short DC) and storage desire are printed according to the instruction of main control module 206.The size system of described drawing DC arranges according to the size of the paper that will print, is example with A4 paper, if landscape orientation, it is 3508 that width then is set, and highly is 2479.
Graphics module 204 is used for drawing figure and the literal that desire is printed at the drawing DC of described memory modules 202.Example ground can utilize the GUI drawing practice arbitrary graphic of painting out easily, can also utilize the text output intent to draw size that multi-language text or amplification decrease font size etc.In optional embodiment, can also appoint figure and output string with MiniGui drawing practice drawing, MiniGui supports multilingual, thereby prints multilingual very convenient.Can directly output to drawing DC and realize Print Preview on the screen.
Main control module 206 is used for the work of this embedded laser printing equipment 20 of control, comprises job order, data flow etc.For example, main control module 206 can be used for sending initialization command and prints initiation command, sends described order through sending module 210 to printer.
Modular converter 208 is used for being converted to the raster data of black and white from the drawing DC data that described memory modules 202 is read according to the order of sequence.In possible embodiment, the data among the described drawing DC represent that with 8,16 or 24 RGB forms described modular converter 208 can be converted to described RGB form data monochromatic raster data by predetermined algorithm.In addition, but described modular converter 208 also be used for described raster data is converted to printer recognition instruction stream.Because each printer has the printing descriptive language that matches with it, need described raster data be converted to printer by corresponding printing descriptive language by described modular converter 208 and can identify corresponding instruction stream.Example ground, described printing descriptive language comprises PCL language, PostScript language, Esc/Page language, Capsyl language etc.Because described printing descriptive language form is given, algorithm is simple, but thereby can under the less situation of committed memory, described raster data be converted to printer recognition instruction stream, can not have influence on whole operational efficiency.
Sending module 210 is used for sending order and data to printer.For example, described sending module 210 is used for sending described initialization command and printing initiation command to printer under the instruction of described main control module 206.Embodiment as a kind of example, the described initialization command that sends to printer comprised paper type, print resolution, print position, Print direction are set, whether be duplex printing etc., after receiving described printing initiation command, printer can begin to wait for the reception print data.In addition, but described sending module 210 also be used for sending the printer recognition instruction stream that described modular converter 208 generates to printer.
The embedded laser Method of printing of the principle of work of the embedded laser printing equipment 20 of this embodiment and aforementioned embodiments of the present invention shown in Figure 1 is similar, repeats no more.
The committed memory that has caused owing to the big complex disposal process of data volume when embedded laser printing equipment of the present invention has overcome the conventional laser printing is more, print speed is slow, inefficient problem.This embedded laser printing equipment has good performance aspect Embedded Application.Experiment showed, that this embedded laser printing equipment needs about 6 seconds time at A4 paper of AT91SAM9G45 platform printing, can satisfy the application on patient monitor.In addition, embedded laser device of the present invention has been realized multilingual printing problem easily by the combination of GUI and print system.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (10)

1. embedded laser Method of printing comprises:
Create the plotting equipment content;
In described plotting equipment content, draw figure, the literal that desire is printed;
Read the data in the described plotting equipment content according to the order of sequence;
But described data of reading according to the order of sequence are converted to printer recognition instruction stream;
But described printer recognition instruction stream is sent to printer.
2. embedded laser Method of printing as claimed in claim 1 is characterized in that: draw figure, the literal that described desire is printed by GUI drawing practice and/or text output intent.
3. embedded laser Method of printing as claimed in claim 1 is characterized in that: data in the described plotting equipment content are read by row and/or by the row circulation by described data system of reading according to the order of sequence in the described plotting equipment content.
4. embedded laser Method of printing as claimed in claim 1 is characterized in that: but the described step that described data of reading according to the order of sequence are converted to printer recognition instruction stream comprises:
Described data of reading according to the order of sequence are converted to the raster data of black and white;
But described raster data is converted to printer recognition instruction stream.
5. embedded laser Method of printing as claimed in claim 4, it is characterized in that: but according to the required printing descriptive language of described printer described raster data is converted to described printer recognition instruction stream, described printing descriptive language comprises PCL language, PostScript language, Esc/Page language, Capsyl language.
6. embedded laser printing equipment comprises:
Memory modules is used for creating the plotting equipment content and stores literal, the figure that desire is printed;
Graphics module is used for drawing figure, the literal that desire is printed in the plotting equipment content of described memory modules;
Modular converter, but be used for being converted to from the plotting equipment content-data that described memory modules is read according to the order of sequence printer recognition instruction stream;
Sending module, but be used for sending described printer recognition instruction stream to printer.
7. embedded laser printing equipment as claimed in claim 6 is characterized in that: described graphics module is drawn figure, the literal that described desire is printed by GUI drawing practice and/or text output intent.
8. embedded laser printing equipment as claimed in claim 6 is characterized in that: data in the described plotting equipment content are read by row and/or by the row circulation by described data system of reading according to the order of sequence in the described plotting equipment content.
9. embedded laser printing equipment as claimed in claim 6 is characterized in that: comprise but described modular converter is converted to printer recognition instruction stream with described data of reading according to the order of sequence: the raster data that described data of reading according to the order of sequence is converted to black and white; But described raster data is converted to printer recognition instruction stream.
10. embedded laser printing equipment as claimed in claim 9, it is characterized in that: but described modular converter is converted to described printer recognition instruction stream according to the required printing descriptive language of described printer with described raster data, described printing descriptive language comprises PCL language, PostScript language, Esc/Page language, Capsyl language.
CN2013101329952A 2013-04-16 2013-04-16 Embedded laser printing method and printing device Pending CN103268205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101329952A CN103268205A (en) 2013-04-16 2013-04-16 Embedded laser printing method and printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101329952A CN103268205A (en) 2013-04-16 2013-04-16 Embedded laser printing method and printing device

Publications (1)

Publication Number Publication Date
CN103268205A true CN103268205A (en) 2013-08-28

Family

ID=49011840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101329952A Pending CN103268205A (en) 2013-04-16 2013-04-16 Embedded laser printing method and printing device

Country Status (1)

Country Link
CN (1) CN103268205A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1684052A (en) * 2004-04-12 2005-10-19 佳能株式会社 Printing apparatus and its control method
US7391535B2 (en) * 2003-08-18 2008-06-24 Hewlett-Packard Development Company, L.P. Raster image processing
CN102035979A (en) * 2009-09-30 2011-04-27 柯尼卡美能达系统研究所公司 In place line splitting process and method for multiple beam printers
CN102693109A (en) * 2012-05-24 2012-09-26 深圳市开立科技有限公司 Method and device for printing
CN102866868A (en) * 2012-09-07 2013-01-09 沈阳通用软件有限公司 Method for realizing watermark print by using GDI (Graphics Device Interface) hooking technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7391535B2 (en) * 2003-08-18 2008-06-24 Hewlett-Packard Development Company, L.P. Raster image processing
CN1684052A (en) * 2004-04-12 2005-10-19 佳能株式会社 Printing apparatus and its control method
CN102035979A (en) * 2009-09-30 2011-04-27 柯尼卡美能达系统研究所公司 In place line splitting process and method for multiple beam printers
CN102693109A (en) * 2012-05-24 2012-09-26 深圳市开立科技有限公司 Method and device for printing
CN102866868A (en) * 2012-09-07 2013-01-09 沈阳通用软件有限公司 Method for realizing watermark print by using GDI (Graphics Device Interface) hooking technology

Similar Documents

Publication Publication Date Title
US8830506B2 (en) Image processing system utilizing plural parallel processors and image processing method utilizing plural parallel processors
EP2806626A3 (en) Print control apparatus
US9830541B2 (en) Image output system, image output method, document server, and non-transitory computer readable recording medium
CN106371776B (en) Printer driver and information processing apparatus
US8397162B2 (en) Method, printing system and computer program for generating and processing document data streams
JP2017004277A (en) Information processor and information processing program
JP2012083973A5 (en)
CN103268205A (en) Embedded laser printing method and printing device
JP2018045577A (en) Information processing device, method and program
US9754197B2 (en) Information processing apparatus, print data generation method, and storage medium
JP2012022680A (en) Method for outputting document data sectioned by page, and computer program product
US20120250056A1 (en) Image processing apparatus, data processing method of image processing apparatus, and storage medium
CN102833449B (en) Automatic document processing method based on multifunctional machine
JP5936363B2 (en) Image processing apparatus and image processing method
US20150261486A1 (en) Image processing apparatus and image processing method
US8908227B2 (en) Image forming apparatus, image forming system, image data processing method, program, and storage medium
JP2010105191A (en) Image processing apparatus
US9613301B2 (en) Print data processing apparatus and non-transitory computer readable medium storing program for deforming image elements of a watermark from intermediate print data
CN104461406A (en) Printout method and device
JP2008176356A (en) Variable printing method
JP2014019112A5 (en)
JP5614084B2 (en) Information processing apparatus and information processing method
CN116339651A (en) Image forming apparatus and printing method
US9367525B2 (en) Data processing apparatus for page ordering, data processing method, and nontransitory storage medium for same
JP2008152652A (en) Imposition pdf creation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130828