CN104714763A - Method for printing electronic signature on mobile terminal - Google Patents

Method for printing electronic signature on mobile terminal Download PDF

Info

Publication number
CN104714763A
CN104714763A CN201310693792.0A CN201310693792A CN104714763A CN 104714763 A CN104714763 A CN 104714763A CN 201310693792 A CN201310693792 A CN 201310693792A CN 104714763 A CN104714763 A CN 104714763A
Authority
CN
China
Prior art keywords
blue
mobile terminal
electronic signature
printing
tooth printer
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
CN201310693792.0A
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 Yaxon Networks Co Ltd
Original Assignee
Xiamen Yaxon Networks 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 Yaxon Networks Co Ltd filed Critical Xiamen Yaxon Networks Co Ltd
Priority to CN201310693792.0A priority Critical patent/CN104714763A/en
Publication of CN104714763A publication Critical patent/CN104714763A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention relates to an image printing method, in particular to a method for printing an electronic signature on a mobile terminal. According to the method, processing the electronic signature of the mobile terminal comprises the operations that A, a colorized electronic signature original image is converted to a single-color image; B, the single-color image is zoomed to a standard image according to printable height and width standards of a Bluetooth printer; C, the standard image is divided into multiple bar charts according to the actual printing height of the Bluetooth printer; D, all bar charts are sequentially converted into corresponding printing data strings according to the printing data format of the Bluetooth printer; E, after linefeed commands are added to all the printing data strings in sequence, the printing data strings are sent to the Bluetooth printer through a Bluetooth module. Printing of the electronic signature through the Bluetooth printer comprises the operation that F, all printing data strings and linefeed commands sent from the mobile terminal are received and then printed in sequence. The Bluetooth printer can be used for printing the electronic signature on the mobile terminal.

Description

Print the method that mobile terminal signs electronically
Technical field
The present invention relates to a kind of method of printed drawings picture, particularly relate to a kind of method printing lines image on character type printer.
Background technology
Along with mobile Internet is fast-developing, mobile office has been a kind of trend.Mobile office personnel often need to sign electronically on mobile terminals, and the spread-sheet data of signing is sent to enterprise's Cloud Server stores.Such as, the business personnel of fast consumables industry utilizes hand-held mobile terminal to carry out the operation placed an order usually, and passes order data back enterprise headquarters in time.In order to make order data have legal effect, need the name signing business personnel below the order data uploaded.Sign in the region that business personnel specifies with hand-written or electronic pen ways of writing on the touch-screen of hand-held mobile terminal.The stroke order of signing to keep everyone and writing feature, hand-held mobile terminal software will adopt the method for handwriting recognition to carry out Text region and preservation to signature as traditional handwriting process, the handwriting characteristic of signature will be lost like that, but the picture of a bitmap format is preserved in the signature word in touch-screen appointed area.After signature, the image data of current signature is attached to and is sent to enterprise headquarters after order data and carries out storing or printing by hand-held mobile terminal.But this method placed an order cannot give client's papery authority confirmed an order at the scene in time, makes troubles to work.
In order to address this problem, usual mobile office enterprise all can expect being equipped with the printing that authority receipt is carried out at miniature blue-tooth printer scene to business personnel, but blue-tooth printer can only print the character type information of the dot matrix format that 8 row * 384 arrange at present, and the essence of electronic signature is a picture with signer's handwriting characteristic, the amount of pixels of electronic signature picture is all far longer than the pel array specification that this 8 row * 384 arrange usually.Moreover the coloured picture of Color Bitmap form of normally every pixel 24 Bit data of picture preserved of hand-held mobile terminal or the coloured picture of the Color Bitmap form of every pixel 16 Bit data; So blue-tooth printer is not supported to print this electronic signature.If other manual signature on the voucher receipt that business personnel prints at the scene, then whether the order of litigant's extremely difficult conviction voucher receipt being specified is genuine is confirmed by mobile office enterprise, brings puzzlement to work.
Summary of the invention
The present invention aims to provide and a kind ofly uses the method that the printing mobile terminal of blue-tooth printer signs electronically.
Technical scheme of the present invention is: print the method that mobile terminal signs electronically, and the process and the blue-tooth printer that comprise mobile terminal process electronic signature print the process signed electronically;
The operation that the process of mobile terminal process electronic signature performs has:
Operation A, changes into achromatic sheet by former for the electronic signature of colour figure;
Operation B, is scaled to standardization figure by achromatic sheet according to the printable height of blue-tooth printer and width specification;
Operation C, is highly divided into multiple bar chart by standardization figure according to the actual printing of blue-tooth printer;
Operation D, changes into corresponding print data string by each bar chart according to the printing data format of blue-tooth printer successively respectively;
Operation E, issues blue-tooth printer by bluetooth module after successively each print data string being added line replace command;
The operation that the process that blue-tooth printer prints electronic signature performs has:
Operation F, each print data string and line replace command that mobile terminal receive is sent, and print successively.
Preserve the former figure of electronic signature that display screen gathers Color Bitmap form, the handwriting characteristic of signing can be kept; According to the Zoom module of the bit map type master drawing sheet of maps processing Plays, former figure is decoloured for achromatic sheet by the requirement of image data form, the former figure of electronic signature that different size display screen various on various different mobile terminal obtains can be scaled and meet the printable height of blue-tooth printer and the standardization figure of width specification.The standardization figure of acquisition is divided into several bar chart according to the printable height of blue-tooth printer, then each bar chart is converted into the print data string meeting blue-tooth printer printing and require, after additional line replace command, issue blue-tooth printer.After blue-tooth printer receives, print by row from top to bottom in order, draw black and white signature map on all four with electronics handwriting signature on mobile terminal.
The picture of people's custom is high: wide ratio has 2:3,3:4,6:9,9:16.Generally speaking, the picture frame that various mobile terminal signs electronically also can continue to use these conventional picture specifications, and the picture of electronic signature is high: wide ratio is always within the scope of 1:3.Therefore, consider the printable height of blue-tooth printer and width specification, even if be highly 8 pixels for printing, width is the blue-tooth printer of 384 pixels, specification prints highly calmly to 40 pixels, and the width of standardization figure can not more than 120 pixels.Width leaves sufficient redundance.In a preferred embodiment: performing step in described operation B has:
Step B1, obtains height and the width of achromatic sheet, performs step B2;
Step B2, by the pantograph ratio of the printable height of blue-tooth printer and the high computational achromatic sheet of width specification, performs step B3;
Step B3, is scaled to standardization figure according to pantograph ratio by achromatic sheet; Exit this operation.
This processing mode of pressing the printable height of blue-tooth printer and the height determination achromatic sheet pantograph ratio of width specification, can simplify computing, improves processing speed.
The present invention prints the method that mobile terminal signs electronically, having broken blue-tooth printer can only the usage of trade of printable character, transfer of breaking the normal procedure again uses the Zoom module of the bit map type master drawing sheet of maps processing Plays to carry out convergent-divergent process to the electronic signature picture on the mobile terminal display screen of various different size, meets the requirement of the printing specification of blue-tooth printer.Finally achieve and print with blue-tooth printer the hope that mobile terminal signs electronically.The present invention takes full advantage of the potential of Bluetooth mobile terminal and blue-tooth printer, without the need to adding hardware, just can meet different user intermediate-resolution and high-resolution field print needs.The present invention is easy to implement and promote, and has good market outlook.Especially to needing the business personnel of field print receipt authority to have convenience, as printed the authoritys such as order, bill, stock-taking, the need of work of mobile office personnel is met.
Accompanying drawing explanation
Fig. 1 is the printing type of blue-tooth printer and the schematic diagram of print data corresponding relation.
Fig. 2 is the process flow diagram that the present invention prints mobile terminal process electronic signature process in method embodiment that mobile terminal signs electronically.
Fig. 3 is the sub-step process flow diagram realizing step S4 in Fig. 2 process flow diagram.
Fig. 4 is the another kind of sub-step process flow diagram realizing step S4 in Fig. 1 process flow diagram.
Embodiment
We analyze, and when current blue-tooth printer prints the character type information of dot matrix format that 8 row * 384 arrange, are be a number in 1-384 with 8 bit print data dn(n a succession of shown in Fig. 1), express the monochromatic character that will print.In Fig. 1, each grid represents the pixel printed, and " 0 " in grid represents blank, and " 1 " represents color dot.The print data dn of 8 bits produces 8 pixels (high-order b7 upper, low level b0 under) of the n-th row in Fig. 1.The print data dn that in Fig. 1, from left to right each row pixel is corresponding is followed successively by: d1=0x00, d2=0xFF, d3=0x60, d4=0x1C, d5=0x03, d6=0x1C, d7=0x60, d8=0xFF, d9=0x00.The result printed be the 1st row blank after one " M ", be again that row are blank afterwards.
For this feature of blue-tooth printer, we print the basic imagination that mobile terminal signs electronically by proposition blue-tooth printer: the printer paper of blue-tooth printer is that rolling uses, and after printing a typesetting symbol, a typesetting symbol is laid in line feed.The restriction of the dot matrix format that the quantity of often setting up type symbol arranges by 8 row * 384, but the row printed continuously is unrestricted.If symbol of often setting up type to be changed into the bar chart of 8 row * 384 row pixels, multiple bar chart just can be spliced into the electronic signature figure of needs.
According to this imagination, basic technical scheme of the present invention is: Bluetooth mobile terminal first gathers the former figure of electronic signature (color pixel data is 24 bits/pixel or 16 bits/pixel) of Color Bitmap form from display screen, to keep the handwriting characteristic of signing; Again former figure is decoloured for achromatic sheet (include monochrome pixels data are 8 bits/pixel), so that the Zoom module meeting the bit map type master drawing sheet of maps processing Plays is to the requirement of image data form, uses the Zoom module of this picture to be converted into by the former figure of electronic signature that different size display screen various on various different mobile terminal obtains and meet the printable height of blue-tooth printer and the standardization figure of width specification.And then be divided into several bar chart (at least will have 16 pixels according to the height of the feature standardization figure of Chinese according to the printable height of blue-tooth printer in the standardization figure of acquisition, for meeting for blue-tooth printer that printable height is 8 pixels, standardization figure at least will have 2 height to be the bar chart of 8 pixels.In order to print the various complex form of Chinese characters signature of stroke and fancy signature, standardization figure at least will have 3 height to be the bar chart of 8 pixels).Again each bar chart is converted into and meets the print data string that blue-tooth printer prints requirement, after additional line replace command, issue blue-tooth printer.After blue-tooth printer receives, carry out by row from top to bottom in order printing (such as printing 3 bar charts), form a complete signature picture.After Print All, draw black and white signature map on all four with electronics handwriting signature on mobile terminal.
Be summed up, the present invention prints the method that mobile terminal signs electronically and comprises the process of mobile terminal process electronic signature and the process of blue-tooth printer printing electronic signature.
The operation that the process of mobile terminal process electronic signature performs has:
Operation A, changes into achromatic sheet by former for the electronic signature of colour figure;
Operation B, is scaled to standardization figure by achromatic sheet according to the printable height of blue-tooth printer and width specification;
Operation C, is highly divided into multiple bar chart by standardization figure according to the actual printing of blue-tooth printer;
Operation D, changes into corresponding print data string by each bar chart according to the printing data format of blue-tooth printer successively respectively;
Operation E, issues blue-tooth printer by bluetooth module after successively each print data string being added line replace command;
The operation that the process that blue-tooth printer prints electronic signature performs has:
Operation F, each print data string and line replace command that mobile terminal receive is sent, and print successively.
Fig. 2 illustrates the flow process of mobile terminal process electronic signature process in the present embodiment:
Step S1, starts, enters this process, performs step S2.
Step S2, preserves the former figure of electronic signature; Obtain colored electronic signature data bitmap (color pixel data is 24 bits/pixel or 16 bits/pixel) from display screen, and save as the former figure of electronic signature; Perform step S3;
Step S3, former figure changes into achromatic sheet; Be criterion with the intermediate value of color pixel data (intermediate value of the such as color pixel data of 24 bits/pixel is 0x F7F7F7, grey), one by one the color data of each pixel in former figure be converted into monochromatic data, be kept in achromatic sheet; Specifically, the pixel exactly all numerical value in the former figure of electronic signature being more than or equal to this intermediate value is designated as the numerical value 0 of 8 Bit datas, the pixel that all numerical value is less than this intermediate value is designated as the numerical value 1 of 8 Bit datas, saves as the achromatic sheet that pixel data is 8 bits in the form of a bitmap.Perform step S4.
Step S4, calculates pantograph ratio; (printing of such as blue-tooth printer is highly 8 pixels to calculate the pantograph ratio required for standardization figure achromatic sheet being scaled to applicable blue-tooth printer printing in specification, printable breadth extreme is 384 pixels, then this specification is: printable height must select one to be the numerical value of digital 8 integral multiples, as 24 pixels; Printable width is 384 pixels.Determine that the height of specification figure is 24 pixels with this, width is 384 pixels), preserve this pantograph ratio (pantograph ratio is floating number, and concrete numerical value can be integer, also can be decimal).Perform step S5.
Step S5, changes into standardization figure by pantograph ratio by achromatic sheet; Use the Zoom module of the bit map type master drawing sheet of maps processing Plays, by pantograph ratio achromatic sheet is scaled to and meets the printable height of blue-tooth printer and the standardization figure of width specification.Perform step S6.
Step S6, is divided into multiple bar chart according to printing height by standardization figure; By standardization figure according to the actual printing of blue-tooth printer be highly divided into multiple bar chart (the height of specification figure be 24 pixels, width is 384 pixels, with the actual printing of blue-tooth printer be highly 8 pixels, width be 384 pixel when, standardization figure should be divided into the bar chart that 3 height are 8 pixels, width is not more than 384 pixels); Perform step S7.
Step S7, changes into a print data string by each bar chart; Specifically, be exactly successively according to the printing data format of blue-tooth printer, corresponding print data string is changed into respectively to each bar chart.Perform step S8.
Step S8, sends a print data string and a line replace command to printer; Get successively after a print data string adds line replace command and issue blue-tooth printer by bluetooth module; Perform step S9.
Step S9, checking whether that all print data strings are all sent, is perform step S10, otherwise performs step S8.
Step S10, exits this operation.
Fig. 3 illustrates in step S4 the sub-step flow process calculating pantograph ratio:
Sub-step S40, starts this step, performs sub-step S41.
Sub-step S41, obtains height and the width of achromatic sheet, performs sub-step S42.
Sub-step S42, by the pantograph ratio of the printable height of blue-tooth printer and the high computational achromatic sheet of width specification, performs sub-step S43;
Sub-step S43, exits this step.
Fig. 4 illustrates the sub-step flow process in step S7, each bar chart being changed into a print data string:
Sub-step S70, starts this step, performs sub-step S71.
Sub-step S71, takes out a bar chart successively, performs sub-step S72;
Sub-step S72, the data transformations taking out a row pixel successively becomes a print data, and order is stored in print data string; Concrete example, consider that the actual printing of blue-tooth printer is highly 8 pixels, this sub-step be exactly to current bar figure from 8 pixels of first row, 8 bit data value of each pixel are first transferred to the data of 1 bit, then by the data of these 81 bits according to pixels position order from top to bottom form a high position upper, low level under the print data of these row 8 pixels of 8 bits; And by the print data string of this print data order stored in this bar chart.Perform sub-step S73.
Sub-step S73, judging whether these row when pre-treatment are last row, is perform sub-step S74; Otherwise perform sub-step S72, so successively the pixel data of all subsequent column of this bar chart is processed, obtain the print data string of this bar chart.
Sub-step S74, using the print data string of current bar figure as the node sequence printed in chained list stored in.Perform sub-step S75.
Sub-step S75, judging that whether current bar figure is last bar chart of this standardization figure, is perform sub-step S76; Otherwise perform step sub-step S71, next bar chart is carried out to the conversion of printable data string, until Current specifications figure is converted into each print data string printed in chained list completely.
Sub-step S76, exits this step.
The above, be only present pre-ferred embodiments, do not limit scope of the invention process with this, and equivalence change and the modification done according to technical scheme of the present invention and description, all should belong to the scope that the present invention is contained.

Claims (2)

1. print the method that mobile terminal signs electronically, the process and the blue-tooth printer that comprise mobile terminal process electronic signature print the process signed electronically;
The operation that the process of mobile terminal process electronic signature performs has:
Operation A, changes into achromatic sheet by former for the electronic signature of colour figure;
Operation B, is scaled to standardization figure by achromatic sheet according to the printable height of blue-tooth printer and width specification;
Operation C, is highly divided into multiple bar chart by standardization figure according to the actual printing of blue-tooth printer;
Operation D, changes into corresponding print data string by each bar chart according to the printing data format of blue-tooth printer successively respectively;
Operation E, issues blue-tooth printer by bluetooth module after successively each print data string being added line replace command;
The operation that the process that blue-tooth printer prints electronic signature performs has:
Operation F, each print data string and line replace command that mobile terminal receive is sent, and print successively.
2. method printing mobile terminal according to claim 1 signed electronically, is characterized in that: performing step in described operation B has:
Step B1, obtains height and the width of achromatic sheet, performs step B2;
Step B2, by the pantograph ratio of the printable height of blue-tooth printer and the high computational achromatic sheet of width specification, performs step B3;
Step B3, is scaled to standardization figure according to pantograph ratio by achromatic sheet; Exit this operation.
CN201310693792.0A 2013-12-17 2013-12-17 Method for printing electronic signature on mobile terminal Pending CN104714763A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310693792.0A CN104714763A (en) 2013-12-17 2013-12-17 Method for printing electronic signature on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310693792.0A CN104714763A (en) 2013-12-17 2013-12-17 Method for printing electronic signature on mobile terminal

Publications (1)

Publication Number Publication Date
CN104714763A true CN104714763A (en) 2015-06-17

Family

ID=53414148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310693792.0A Pending CN104714763A (en) 2013-12-17 2013-12-17 Method for printing electronic signature on mobile terminal

Country Status (1)

Country Link
CN (1) CN104714763A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569755A (en) * 2016-10-26 2017-04-19 深圳盒子支付信息技术有限公司 Printing method and printing deice for mobile payment terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1192550A (en) * 1997-01-23 1998-09-09 莱克斯马克国际公司 Method and apparatus for compacting swatch data for printers
US7431213B2 (en) * 2005-11-15 2008-10-07 Xerox Corporation Barcode printing system
CN101520772A (en) * 2008-02-25 2009-09-02 北京书生国际信息技术有限公司 Realizing method of electronic seal
CN101825996A (en) * 2001-01-19 2010-09-08 福来西奥德技术公司 System for universal data output
CN103021006A (en) * 2011-09-22 2013-04-03 张国俊 Method for manufacturing electronic seal pattern model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1192550A (en) * 1997-01-23 1998-09-09 莱克斯马克国际公司 Method and apparatus for compacting swatch data for printers
CN101825996A (en) * 2001-01-19 2010-09-08 福来西奥德技术公司 System for universal data output
US7431213B2 (en) * 2005-11-15 2008-10-07 Xerox Corporation Barcode printing system
CN101520772A (en) * 2008-02-25 2009-09-02 北京书生国际信息技术有限公司 Realizing method of electronic seal
CN103021006A (en) * 2011-09-22 2013-04-03 张国俊 Method for manufacturing electronic seal pattern model

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106569755A (en) * 2016-10-26 2017-04-19 深圳盒子支付信息技术有限公司 Printing method and printing deice for mobile payment terminal

Similar Documents

Publication Publication Date Title
JP5028920B2 (en) Barcode image generation device, barcode image reading device, and barcode image generation reading system
CN102572210A (en) Color value acquiring method, image processing method, color value acquiring apparatus, image processing apparatus, and recording medium
CN101226594B (en) Pattern separating extraction device and pattern separating extraction method
EP1600896B1 (en) Character image generation
JP2015130158A (en) Cloud-based font service system
CN111768461A (en) Picture generation method based on electronic price tags
KR102471343B1 (en) Online print production system using keyword analysis of text data input from users
CN108829363A (en) Business voucher Method of printing and device
CN112000303B (en) Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
JP2009540359A (en) Remote subpixel resolution characteristics
CN109934003A (en) A kind of E-seal covers method, apparatus and electronic equipment
CN104133809B (en) Font style bolding method
KR101371406B1 (en) Method and system for manufacturing e-book by source analysis of pdf document
US20130293911A1 (en) Data generating apparatus, data generating method, and storage medium
US6738071B2 (en) Dynamically anti-aliased graphics
US9940557B2 (en) Document printing using hardware-dependent fonts
CN104714763A (en) Method for printing electronic signature on mobile terminal
JP2016114652A (en) Training aid for character learning
US7154511B2 (en) Fast rendering of ink
JP6462930B1 (en) Character recognition apparatus, method and program
CN107193509A (en) A kind of method for realizing any Windows fonts Chinese character printing
CN101243487A (en) Image data generator, image data generating method, program and storage medium
US20200202156A1 (en) Information processing device and information processing method
Aydemir Comparison of the printing areas for commonly used font types: Example of green information
JP6614857B2 (en) Image processing apparatus, image processing method, and program

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

Application publication date: 20150617

RJ01 Rejection of invention patent application after publication