CN106313907A - Thermal printer text printing method and thermal printer text printing system based on image conversion - Google Patents
Thermal printer text printing method and thermal printer text printing system based on image conversion Download PDFInfo
- Publication number
- CN106313907A CN106313907A CN201610673422.4A CN201610673422A CN106313907A CN 106313907 A CN106313907 A CN 106313907A CN 201610673422 A CN201610673422 A CN 201610673422A CN 106313907 A CN106313907 A CN 106313907A
- Authority
- CN
- China
- Prior art keywords
- data
- thermal printer
- picture
- 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
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J2/00—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed
- B41J2/315—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material
- B41J2/32—Typewriters or selective printing mechanisms characterised by the printing or marking process for which they are designed characterised by selective application of heat to a heat sensitive printing or impression-transfer material using thermal heads
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J29/00—Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
- B41J29/38—Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
- B41J29/393—Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
Abstract
The invention discloses a thermal printer text printing method and a thermal printer text printing system based on image conversion. The existing word stock of a principal computer operating system is processed, words are converted into images, and images are processed into lattice data for printing. The mode of text printing according to a word stock for an ordinary thermal printer is simplified, all fonts carried by the printing principal computer operating system are realized, the printing process is simplified, and the printing process is no longer restricted to the word stock of the printer. The method and the system are simpler to implement, there is no need for additional hardware control, and there is only need to make a little change in the principal computer.
Description
Technical field
The invention belongs to printing field, particularly relate to a kind of based on image conversion thermal printer characters print method and
System.
Background technology
Thermal printing technique uses the earliest on facsimile machine, and its ultimate principle is the data that printer receives to be converted into a little
Battle array signal controls the heating of temperature responsive unit, and heat susceptible coating on heat-sensitive paper is added heat development.Thermal printer is in POS terminal system
It is used widely in the fields such as system, banking system, Medical Instruments.Thermal printer can only use special heat-sensitive paper, heat-sensitive paper
On scribble one layer of heat and will produce the coating of chemical reaction and variable color, be similar to photographic film, but this layer of coating be heat
After can variable color, utilize this characteristic of heat susceptible coating, occur in that thermal printing technique.
The mobile interchange epoch arrive, along with the development of mobile office, the merit that the most various office printing devices are possessed
Can the most more hommization and comprehensively, the field of the products application of " short and pithy " is the most extensive.Portable thermal printer body
Long-pending small and exquisite, simple to operate, can be connected with the mobile terminal such as smart mobile phone, panel computer, it is adaptable to bank, traffic, logistics, zero
Sell, government administration etc. all trades and professions.
The thermal printer of main flow is generally all based on single-chip microcomputer, by entering the character library pre-saved in single-chip microcomputer now
Row reads, and obtains dot array data, and returns data to thermal printer control unit, and is printed to by word on heat-sensitive paper,
Complete print out task.This method efficiency is the highest, but also has certain inferior position.When certain word or font are not deposited in character library
Time arise that the situation of Print Garbled or blank.If word can be reduced print the dependency for character library, but sharp
Process by host computer operating system institute band character library, then transfer to printer to print, just can simplify print procedure, to printer
Also can be more convenient for exploitation.
Summary of the invention
Goal of the invention: the present invention proposes a kind of thermal printer word based on image conversion optimizing printing character mode
Method of printing and system.
Technical scheme: a kind of thermal printer characters print method based on image conversion, comprises the steps:
S1, in host computer, carry out the pretreatment of printing character, country variant, different size, different fonts word are turned
Change picture into;
S2, the picture obtaining step S1 carry out binary conversion treatment, are processed into the binaryzation picture data being easy to resolve;
S3, the binaryzation picture handling step S2 well carry out data parsing, resolve to the point of thermal printing function identification
Battle array data, and the transmission of Frame is carried out according to thermal printer data protocol, pass data to slave computer, until data pass
Pass, then printed.
The present invention also proposes a kind of thermal printer word print system based on image conversion, including:
Host computer, for the pretreatment of printing character, becomes figure by country variant, different size, different fonts text conversion
Sheet, and it is transferred to picture pretreatment module;
Picture pretreatment module, for receiving the image data of host computer, and carries out binary conversion treatment to it, is processed into just
In the binaryzation picture data resolved;
Thermal printer, carries out data parsing for the binaryzation picture handling picture pretreatment module well, resolves to
Dot array data, and the transmission of Frame is carried out according to data protocol, pass data to slave computer, until data have been transmitted,
Complete to print.
Beneficial effect: relative to prior art, this invention simplifies common thermal printer needs when printing character to depend on
The mode printed is carried out, it is achieved that print all fonts that host computer operating system is carried, simplify printed simultaneously according to character library
Journey, print procedure is no longer limited by printer institute band character library.The present invention realizes simpler, it is not necessary to increase extra hardware controls,
Have only to be modified slightly just can realizing in host computer.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of present system;
Fig. 2 is the flow chart of the inventive method.
Detailed description of the invention
Below in conjunction with accompanying drawing, the case study on implementation of the present invention is described in detail;
As it is shown in figure 1, the thermal printer word print system based on image conversion of the present invention, including:
Host computer, for the pretreatment of printing character, becomes figure by country variant, different size, different fonts text conversion
Sheet, and it is transferred to picture pretreatment module;
Picture pretreatment module, for receiving the image data of host computer, and carries out binary conversion treatment to it, is processed into just
In the binaryzation picture data resolved;
Thermal printer, carries out data parsing for the binaryzation picture handling picture pretreatment module well, resolves to
Dot array data, and the transmission of Frame is carried out according to data protocol, pass data to slave computer, until data have been transmitted,
Complete to print.
Host computer (PC or mobile phone) is communicated with bottom thermal printer by serial ports, and host computer advanced person composes a piece of writing the pre-of digital data
Process, then control bottom printer by certain data protocol and complete to print.
As in figure 2 it is shown, the thermal printer characters print method based on image conversion of the present invention, pre-including print data
It is processed into image book data, binary conversion treatment, image data analyzing, print command transmission.Mainly comprise the steps:
A, in host computer, carry out the pretreatment of printing character, by country variant, different size, different fonts text conversion
Become picture;
B, to conversion picture carry out binaryzation, be processed into be easy to resolve binaryzation picture data;
C, carry out data parsing for the binaryzation picture handled well, be processed into the dot matrix number of thermal printing function identification
According to, and the transmission of Frame is carried out according to thermal printer data protocol, pass data to slave computer, until data have been transmitted
Becoming, printing completes.
The present invention is a kind of improvement to thermal printer characters print method, relates generally to thermal printer and is printing not
With the problem that print driver when country, different size, different fonts word is unified.Utilize in host computer operating system and carry
Various language fonts, according to printer word to be printed, word is first converted into binaryzation picture, further according to picture
Carry out dot array data parsing, and pass data to slave computer thermal printer control end, complete printing.The present invention simplifies
Common thermal printer needs when printing character to carry out, according to character library, the mode that prints, it is achieved that print host computer operation system
All fonts that system is carried, simplify print procedure simultaneously, and print procedure is no longer limited by printer institute band character library.
Claims (2)
1. a thermal printer characters print method based on image conversion, it is characterised in that comprise the steps:
S1, in host computer, carry out the pretreatment of printing character, country variant, different size, different fonts text conversion are become
Picture;
S2, the picture obtaining step S1 carry out binary conversion treatment, are processed into the binaryzation picture data being easy to resolve;
S3, the binaryzation picture handling step S2 well carry out data parsing, resolve to the dot matrix number of thermal printing function identification
According to, and the transmission of Frame is carried out according to thermal printer data protocol, pass data to slave computer, until data have been transmitted
Become, then printed.
2. a thermal printer word print system based on image conversion, it is characterised in that including:
Host computer, for the pretreatment of printing character, becomes picture by country variant, different size, different fonts text conversion, and
It is transferred to picture pretreatment module;
Picture pretreatment module, for receiving the image data of host computer, and carries out binary conversion treatment to it, is processed into and is easy to solve
The binaryzation picture data of analysis;
Thermal printer, carries out data parsing for the binaryzation picture handling picture pretreatment module well, resolves to dot matrix
Data, and the transmission of Frame is carried out according to data protocol, pass data to slave computer, until data have been transmitted, complete
Print.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610673422.4A CN106313907A (en) | 2016-08-16 | 2016-08-16 | Thermal printer text printing method and thermal printer text printing system based on image conversion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610673422.4A CN106313907A (en) | 2016-08-16 | 2016-08-16 | Thermal printer text printing method and thermal printer text printing system based on image conversion |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106313907A true CN106313907A (en) | 2017-01-11 |
Family
ID=57740556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610673422.4A Pending CN106313907A (en) | 2016-08-16 | 2016-08-16 | Thermal printer text printing method and thermal printer text printing system based on image conversion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106313907A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062521A (en) * | 2018-07-20 | 2018-12-21 | 珠海智汇网络设备有限公司 | A kind of print data processing method and device, computer installation, storage medium |
CN109177510A (en) * | 2018-08-12 | 2019-01-11 | 深圳国微金融科技有限公司 | A kind of thermal printer based on external typesetting |
CN109634540A (en) * | 2018-11-29 | 2019-04-16 | 深圳市新国都支付技术有限公司 | A kind of mobile phone control image printing method and mobile phone |
CN110377246A (en) * | 2019-07-19 | 2019-10-25 | 厦门顶尖电子有限公司 | A kind of Method of printing and without character library printer |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050452A1 (en) * | 2003-08-27 | 2005-03-03 | Weitzel Wade D. | Systems and methods for generating an electronically publishable document |
CN1794218A (en) * | 2005-12-31 | 2006-06-28 | 无锡永中科技有限公司 | Generating method of computer format document and opening method |
CN1803460A (en) * | 2005-01-12 | 2006-07-19 | 长沙高新开发区佳程防伪科技有限公司 | Transverse typeset printing technology of minitype printer |
US20070052995A1 (en) * | 2005-08-24 | 2007-03-08 | Narendranath Kudlu | Portable device capable of printing documents and method of printing documents from portable device |
CN101335805A (en) * | 2008-05-30 | 2008-12-31 | 北京天语君锐科技有限公司 | Text file printing method in mobile terminal |
CN101419715A (en) * | 2008-11-28 | 2009-04-29 | 深圳创维数字技术股份有限公司 | Method and device for generating character or graphic dot matrix |
CN102591603A (en) * | 2012-01-06 | 2012-07-18 | 北京公达数码科技有限公司 | Printing method and printing system for micro printer |
CN102642381A (en) * | 2011-02-22 | 2012-08-22 | 理想科学工业株式会社 | Image data generating device and image data generating method |
CN103955349A (en) * | 2014-05-15 | 2014-07-30 | 深圳市几米电子有限公司 | Embedding type italic algorithm based on GSM/GPRS (global system for mobile communications/general packet radio service) and mobile terminal |
CN104126199A (en) * | 2012-05-21 | 2014-10-29 | 三菱电机株式会社 | Character drawing device |
CN104246686A (en) * | 2013-03-21 | 2014-12-24 | 文雅科一番株式会社 | Printing system and printing control program |
CN104932846A (en) * | 2015-06-08 | 2015-09-23 | 中国人民解放军海军航空工程学院 | Russian character printout method of test equipment |
CN105741330A (en) * | 2014-12-10 | 2016-07-06 | 上海新宇箴诚电控科技有限公司 | Code spraying method and code spraying device based on image dot matrix conversion |
-
2016
- 2016-08-16 CN CN201610673422.4A patent/CN106313907A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050050452A1 (en) * | 2003-08-27 | 2005-03-03 | Weitzel Wade D. | Systems and methods for generating an electronically publishable document |
CN1803460A (en) * | 2005-01-12 | 2006-07-19 | 长沙高新开发区佳程防伪科技有限公司 | Transverse typeset printing technology of minitype printer |
US20070052995A1 (en) * | 2005-08-24 | 2007-03-08 | Narendranath Kudlu | Portable device capable of printing documents and method of printing documents from portable device |
CN1794218A (en) * | 2005-12-31 | 2006-06-28 | 无锡永中科技有限公司 | Generating method of computer format document and opening method |
CN101335805A (en) * | 2008-05-30 | 2008-12-31 | 北京天语君锐科技有限公司 | Text file printing method in mobile terminal |
CN101419715A (en) * | 2008-11-28 | 2009-04-29 | 深圳创维数字技术股份有限公司 | Method and device for generating character or graphic dot matrix |
CN102642381A (en) * | 2011-02-22 | 2012-08-22 | 理想科学工业株式会社 | Image data generating device and image data generating method |
CN102591603A (en) * | 2012-01-06 | 2012-07-18 | 北京公达数码科技有限公司 | Printing method and printing system for micro printer |
CN104126199A (en) * | 2012-05-21 | 2014-10-29 | 三菱电机株式会社 | Character drawing device |
CN104246686A (en) * | 2013-03-21 | 2014-12-24 | 文雅科一番株式会社 | Printing system and printing control program |
CN103955349A (en) * | 2014-05-15 | 2014-07-30 | 深圳市几米电子有限公司 | Embedding type italic algorithm based on GSM/GPRS (global system for mobile communications/general packet radio service) and mobile terminal |
CN105741330A (en) * | 2014-12-10 | 2016-07-06 | 上海新宇箴诚电控科技有限公司 | Code spraying method and code spraying device based on image dot matrix conversion |
CN104932846A (en) * | 2015-06-08 | 2015-09-23 | 中国人民解放军海军航空工程学院 | Russian character printout method of test equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062521A (en) * | 2018-07-20 | 2018-12-21 | 珠海智汇网络设备有限公司 | A kind of print data processing method and device, computer installation, storage medium |
CN109062521B (en) * | 2018-07-20 | 2022-05-27 | 珠海智汇网络设备有限公司 | Print data processing method and device, computer device and storage medium |
CN109177510A (en) * | 2018-08-12 | 2019-01-11 | 深圳国微金融科技有限公司 | A kind of thermal printer based on external typesetting |
CN109634540A (en) * | 2018-11-29 | 2019-04-16 | 深圳市新国都支付技术有限公司 | A kind of mobile phone control image printing method and mobile phone |
CN109634540B (en) * | 2018-11-29 | 2022-06-07 | 深圳市新国都支付技术有限公司 | Mobile phone control image printing method and mobile phone |
CN110377246A (en) * | 2019-07-19 | 2019-10-25 | 厦门顶尖电子有限公司 | A kind of Method of printing and without character library printer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106313907A (en) | Thermal printer text printing method and thermal printer text printing system based on image conversion | |
CN106681673B (en) | A kind of thermal printer gray level printing method | |
US10459668B2 (en) | Print control device, printing system, and print control method for generating image print commands from print data in markup language | |
CN106484340A (en) | Watermark interpolation is carried out in print procedure to document knows method for distinguishing with watermark | |
CN105589686A (en) | Template-based information input and printing method and device under WinCE (Windows Embedded Compact) platform | |
CN1172231C (en) | Portable 2-byte character encoding | |
CN103738061A (en) | Printing device capable of automatic batching | |
US10963689B2 (en) | Image processing apparatus and method for controlling image processing apparatus | |
KR100223650B1 (en) | Data processing method for printer | |
JP2016221806A (en) | Image formation apparatus | |
JPH07311667A (en) | Printer | |
CN107092450A (en) | A kind of thermal printing method based on display frame | |
CN103042844A (en) | Printing control equipment | |
US7869069B2 (en) | Printing on pre-printed media | |
CN107193509A (en) | A kind of method for realizing any Windows fonts Chinese character printing | |
CN104850366A (en) | Printing task generating and controlling system for printer | |
JP6536016B2 (en) | PRINTING APPARATUS, PRINT PROCESSING METHOD, PROGRAM, AND PRINTING SYSTEM | |
CN204515925U (en) | A kind of self-service intelligent integrated machine | |
US8508754B2 (en) | Standard data format of printing data | |
CN109177510A (en) | A kind of thermal printer based on external typesetting | |
CN104394291B (en) | Endorsement scanner uni content input fixed point Method of printing based on integrating scanning and printing machine | |
CN211710386U (en) | Character printing system | |
CN206899995U (en) | High speed ink-jet printer free of discontinuities | |
CN102833449A (en) | Automatic document processing method based on multifunctional machine | |
CN111552445A (en) | Method for realizing mirror image printing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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: 20170111 |