CN108189568A - Receipt printer and its control method - Google Patents
Receipt printer and its control method Download PDFInfo
- Publication number
- CN108189568A CN108189568A CN201711384225.1A CN201711384225A CN108189568A CN 108189568 A CN108189568 A CN 108189568A CN 201711384225 A CN201711384225 A CN 201711384225A CN 108189568 A CN108189568 A CN 108189568A
- Authority
- CN
- China
- Prior art keywords
- invoice
- paper
- opened
- driving lever
- margin
- 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
- 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
-
- 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
- B41J3/00—Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Record Information Processing For Printing (AREA)
Abstract
The present invention discloses a kind of control method of receipt printer, including:Obtained after printing invoice instruction is received it is to be printed opened electronic invoice image, from having opened electronic invoice image zooming-out characteristic information;Database of the judging characteristic Information locating driving lever position margin away from mapping relations whether there is with characteristic information establish mapping positioning driving lever position, margin away from;It, according to positioning driving lever position adjustment positioning driving lever, is operated if in the presence of if according to margin away from printing invoice is performed.The invention also discloses a kind of receipt printers.Receipt printer provided by the present invention and its control method, user need not readjust positioning driving lever position and margin away from situation, it can be ensured that the paper invoice printed is consistent with having opened electronic invoice, prevent to fill out in the exhausted paper invoice printed and occur the phenomenon that content exceeds the setting regions of paper invoice, compared to the mode of existing receipt printer printed invoice, the time and efforts of user is saved, user experience effect is good.
Description
Technical field
The present invention relates to office equipment technical field more particularly to a kind of receipt printer and its control methods.
Background technology
The margin that existing receipt printer needs to adjust paper invoice before printed invoice is away to ensure to have held successfully
The related content of electronic invoice print to the corresponding position of paper invoice.
The prior art is in order to adjust margin away from user is needed to be debugged with same kind of waste and old invoice, this adjustment
Mode is difficult once to adjust successfully, needs adjustment multiple, needs to spend user time and energy, user experience effect poor.
Invention content
It is a primary object of the present invention to need to adjust papery hair to be printed before solving printing invoice in the prior art
The margin of ticket is away from time-consuming and laborious, the technical issues of user experience effect is poor.
To achieve the above object, the present invention provides a kind of control method of receipt printer, the control of the receipt printer
Method processed includes:
After printing invoice instruction is received, obtain it is to be printed opened electronic invoice image, opened electronics hair from described
Characteristic information is extracted in ticket image;
Judge to whether there is and institute in preset characteristic information-positioning driving lever position-database of the margin away from mapping relations
State characteristic information establish the positioning driving lever position of mapping relations, margin away from;
The positioning driving lever positions of mapping relations, margin are established away from then with the characteristic information when existing in the database
The positioning driving lever is adjusted according to the positioning driving lever position, is grasped according to the margin away from corresponding paper invoice printing is performed
Make.
Preferably, it is described to judge preset characteristic information-positioning driving lever position in the control method of the receipt printer
Put-margin away from mapping relations database in the presence or absence of the positioning driving lever position for establishing with the characteristic information mapping relations
It puts, margin away from further including later:
When be not present in the database with the characteristic information establish the positioning driving lever positions of mapping relations, margin away from,
Then obtain it is to be printed opened electronic invoice image, opened electronic invoice picture size adjustment positioning driving lever position according to described;
Institute's fill substance in electronic invoice image has been opened described in identification, electronic invoice has been opened described according to institute's fill substance
Position in image, set the margin of paper invoice to be printed away from;
Characteristic information in electronic invoice image has been opened described in obtaining, has established the characteristic information-positioning driving lever position-margin
It is included in the database away from the mapping relations between three, and by the mapping relations;
After paper invoice to be printed is in place, operated according to the margin away from corresponding printing invoice is performed.
Preferably, it in the control method of the receipt printer, is being sent out according to the margin away from corresponding papery is performed
It is further included before ticket printing:
Paper invoice after scanning is in place obtains paper invoice image, extract it is described it is in place after paper invoice image
Identification coding;
Judge it is described it is in place after paper invoice image in identification coding compiled with the identification opened in electronic invoice
Whether code is consistent;
The identification coding in paper invoice image when described in place after is encoded with the identification opened in electronic invoice
Unanimously, then it is operated according to the margin away from corresponding printing invoice is performed.
Preferably, in the control method of the receipt printer, it is described judge it is described it is in place after paper invoice image
In the identification coding opened in electronic invoice with described of identification coding whether consistent further include later:
The identification coding in paper invoice image when described in place after is encoded with the identification opened in electronic invoice
Inconsistent, then perform the paper invoice moves back paper operation, and play the prompt message for replacing paper invoice.
Preferably, in the control method of the receipt printer, the prompt message is information of voice prompt or word
Prompt message.
In addition, to achieve the above object, the present invention also provides a kind of receipt printer, the receipt printer includes:
Acquisition module to be printed has opened electronic invoice image for after printing invoice instruction is received, obtaining;
Characteristic extracting module, for extracting characteristic information from described opened in electronic invoice image;
Judgment module, for judging in preset characteristic information-positioning driving lever position-database of the margin away from mapping relations
With the presence or absence of established with the characteristic information positioning driving lever positions of mapping relations, margin away from;
Position adjusting type modules, for working as the positioning group for existing in the database and mapping relations being established with the characteristic information
Bar position, margin are away from then according to the positioning driving lever position adjustment positioning driving lever;
Print execution module, for according to the margin away from performing corresponding paper invoice printing.
Preferably, the receipt printer further includes:Content identifier module, mapping relations establish module;
The acquisition module is additionally operable to be not present in the database and establishes determining for mapping relations with the characteristic information
Position driving lever position, margin away from when, obtain and to be printed opened electronic invoice image;
The position adjusting type modules are additionally operable to open electronic invoice picture size adjustment positioning driving lever position according to;
The content identifier module, for identify it is described opened institute's fill substance in electronic invoice image, according to being filled in
Content it is described opened electronic invoice image in position, set the margin of paper invoice to be printed away from;
The characteristic extracting module described has opened characteristic information in electronic invoice image for obtaining;
The mapping relations establish module, for establishing the characteristic information-positioning driving lever position-margin away between three
Mapping relations, and the mapping relations are included in the database;
The print execution module, is additionally operable to after paper invoice to be printed is in place, according to the margin away from execution phase
The printing invoice operation answered.
Preferably, the receipt printer further includes:Scan module;
The scan module, before performing corresponding paper invoice printing for the print execution module, scanning
Paper invoice after in place, obtains paper invoice image;
The extraction module, for extract it is described it is in place after paper invoice image identification coding;
The judgment module, for judge it is described it is in place after paper invoice image in identification coding opened electricity with described
Whether the identification coding in sub- invoice is consistent;
The print execution module, specifically for work as it is described it is in place after paper invoice image in identification coding with it is described
Opened identification coding in electronic invoice it is consistent when, operated according to the margin away from corresponding printing invoice is performed.
Preferably, the receipt printer further includes:Move back paper execution module, for work as it is described it is in place after paper invoice figure
Identification coding and the identification coding opened in electronic invoice as in is inconsistent, then perform the paper invoice moves back paper behaviour
Make;
Invoice replaces reminding module, for playing the prompt message for replacing paper invoice.
Preferably, in the receipt printer, the prompt message is information of voice prompt or text prompt information.
Receipt printer provided by the present invention and its control method, by after printing invoice instruction is received, obtaining
To be printed has opened electronic invoice image, and characteristic information is extracted from described opened in electronic invoice image;Judge preset feature
It whether there is in information-positioning driving lever position-database of the margin away from mapping relations and establish mapping relations with the characteristic information
Positioning driving lever position, margin away from;When there is the positioning driving lever of establishing with the characteristic information mapping relations in the database
Position, margin are away from then according to the positioning driving lever position adjustment positioning driving lever, according to the margin away from the corresponding paper of execution
Matter printing invoice operation mode, user need not readjust positioning driving lever position and margin away from situation, it can be ensured that beat
The paper invoice printed off prevents to fill out content in the exhausted paper invoice printed beyond paper invoice with having opened that electronic invoice is consistent
Setting regions the phenomenon that occur, compared to the mode of existing receipt printer printed invoice, saved time and the essence of user
Power, user experience effect are good.
Description of the drawings
Fig. 1 is the flow diagram of the control method first embodiment of the receipt printer of the present invention;
Fig. 2 is the flow diagram of the control method second embodiment of the receipt printer of the present invention;
Fig. 3 is the flow diagram of the control method 3rd embodiment of the receipt printer of the present invention;
Fig. 4 is the high-level schematic functional block diagram of the receipt printer first embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the receipt printer second embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the receipt printer 3rd embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the receipt printer fourth embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of the 5th embodiment of receipt printer of the present invention;
Fig. 9 is the high-level schematic functional block diagram of the receipt printer sixth embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
The preferred embodiment of the present invention is illustrated below in conjunction with Figure of description, it should be understood that described herein
Preferred embodiment is merely to illustrate and explain the present invention, and is not intended to limit the present invention, and in the absence of conflict, this hair
The feature in embodiment and embodiment in bright can be combined with each other.
The present invention proposes the control method first embodiment of receipt printer.With reference to Fig. 1, the invoice that Fig. 1 is the present invention is beaten
The flow diagram of the control method first embodiment of print machine.In the present first embodiment, the controlling party of the receipt printer
Method includes:
Step S10:After printing invoice instruction is received, obtain it is to be printed opened electronic invoice image, from it is described
It opens in electronic invoice image and extracts characteristic information.
Receipt printer described in this first embodiment can set entity button, and user is by clicking the entity button
Mode realize input printing invoice instruction.
Characteristic information described in the present embodiment refers to that same type of invoice is different from the feature letter of other types invoice
Breath, such as invoice size, various content region positions in invoice to be filled out.In the present embodiment electronics hair has been opened from same
The one group of characteristic information extracted in ticket image corresponds to a kind of invoice type.
Step S20:Judge in preset characteristic information-positioning driving lever position-database of the margin away from mapping relations whether
In the presence of established with the characteristic information positioning driving lever positions of mapping relations, margin away from.
Step S30:When there is positioning driving lever position, the page of establishing with the characteristic information mapping relations in the database
Back gauge then adjusts the positioning driving lever, according to the margin away from the corresponding paper invoice of execution according to the positioning driving lever position
Printing.
This first embodiment passes through according to the positioning driving lever position adjustment that mapping relations are established with the characteristic information
Positioning driving lever and establish the side of the margins of mapping relations away from the corresponding paper invoice printing of execution with the characteristic information
Formula, user need not readjust positioning driving lever position and margin away from situation, it can be ensured that the paper invoice that prints with
It opens that electronic invoice is consistent, prevents to fill out the phenomenon that content exceeds the setting regions of paper invoice in the exhausted paper invoice printed and send out
It is raw, compared to the mode of existing receipt printer printed invoice, save the time and efforts of user, user experience effect
It is good.
The present invention proposes the control method second embodiment of the receipt printer.Referring to Fig. 2, Fig. 2 is the hair of the present invention
The flow diagram of the control method second embodiment of ticket printer.This second embodiment is on the basis of above-mentioned first embodiment
Improved, theed improvement is that, it is described judge preset characteristic information-positioning driving lever position-margin away from mapping relations
Database in whether there is and establish the positioning driving lever positions of mapping relations, margin away from further including later with the characteristic information:
Step S201:When there is no the positioning driving lever positions that mapping relations are established with the characteristic information in the database
Put, margin away from, then obtain it is to be printed opened electronic invoice image, opened the adjustment positioning of electronic invoice picture size according to described
Driving lever position.
Driving lever position is positioned according to having opened electronic invoice image and can determine in this second embodiment, and then can be realized pair
The positioning driving lever carries out corresponding position adjustment.
Step S202:Identification described in opened institute's fill substance in electronic invoice image, according to institute's fill substance it is described
Open the position in electronic invoice image, set the margin of paper invoice to be printed away from.
Occurrence of the margin away from setting described in this step S202 is being sent out with filling out content in the paper invoice that prints
Position is with having drawn a bill middle filled out content subject to the position consistency in invoice in ticket.
Step S203:Characteristic information in electronic invoice image has been opened described in obtaining, has established the characteristic information-positioning driving lever
Position-margin is included in away from the mapping relations between three, and by the mapping relations in the database.
Step S204:After paper invoice to be printed is in place, grasped according to the margin away from corresponding printing invoice is performed
Make.
This second embodiment by obtain described in opened characteristic information in electronic invoice image, establish the characteristic information-
Positioning driving lever position-margin is included in away from the mapping relations between three, and by the mapping relations in the database, it is follow-up
It prints same type of invoice and provides unified positioning driving lever position, margin away from adjustment standard, without each printed invoice of user
Positioning driving lever position and margin are readjusted before away from improving user experience effect.
The present invention proposes the control method 3rd embodiment of the receipt printer.Referring to Fig. 3, Fig. 3 is the hair of the present invention
The flow diagram of the control method 3rd embodiment of ticket printer.This third embodiment is on the basis of above-mentioned first embodiment
It is improved, is theed improvement is that, further included before according to the margin away from the corresponding paper invoice printing of execution:
Step S301:Paper invoice after scanning is in place obtains paper invoice image, extract it is described it is in place after papery hair
The identification coding of ticket image.
Step S302:Judge it is described it is in place after paper invoice image in identification coding opened in electronic invoice with described
Identification coding it is whether consistent.
Current embodiment require that it is described it is in place after paper invoice image in identification coding opened electronic invoice with described
In identification coding it is consistent when, operated according to the margin away from corresponding printing invoice is performed.
This third embodiment is by identification coding in the paper invoice after judging in place with having opened the identification in electronic invoice
Whether coding is consistent, and the two unanimously then performs the mode of printing invoice operation, can prevent to be printed because manually misplacing
Paper invoice leads to the paper invoice printed and has opened the inconsistent situation appearance of electronic invoice.
The present invention proposes the control method fourth embodiment of the receipt printer.This fourth embodiment is real above-mentioned second
Apply and improved on the basis of example, theed improvement is that, according to the margin away from performing corresponding paper invoice printing behaviour
Above-mentioned steps S301 to step S302 is performed before making;And it is described it is in place after paper invoice image in identification coding and institute
State the identification coding opened in electronic invoice it is consistent when, operated according to the margin away from corresponding printing invoice is performed.
This fourth embodiment is by identification coding in the paper invoice after judging in place with having opened the identification in electronic invoice
Whether coding is consistent, and the two unanimously then performs the mode of printing invoice operation, can prevent to be printed because manually misplacing
Paper invoice leads to the paper invoice printed and has opened the inconsistent situation appearance of electronic invoice.
The present invention proposes the 5th embodiment of control method of the receipt printer.This fifth embodiment is in above-mentioned third reality
Apply and improved on the basis of example, theed improvement is that, judge it is described it is in place after paper invoice image in identification compile
Whether code unanimously further includes later with the identification coding opened in electronic invoice:Paper invoice image when described in place after
In the identification coding opened in electronic invoice with described of identification coding it is inconsistent, then the paper that moves back for performing the paper invoice is grasped
Make, and play the prompt message for replacing paper invoice.Wherein, the prompt message is believed for information of voice prompt or text prompt
Breath.
This fifth embodiment is by identification coding in the paper invoice after judging in place with having opened the identification in electronic invoice
Whether coding is consistent, and the two is inconsistent, and perform the paper invoice moves back paper operation, and play the prompting for replacing paper invoice
The mode of information can prevent because manually misplacing paper invoice to be printed, and the paper invoice for causing to print is with having opened
The inconsistent situation of electronic invoice occurs.
The present invention proposes the control method sixth embodiment of the receipt printer.This sixth embodiment is real the above-mentioned 4th
Apply and improved on the basis of example, theed improvement is that, judge it is described it is in place after paper invoice image in identification compile
Whether code unanimously further includes later with the identification coding opened in electronic invoice:Paper invoice image when described in place after
In the identification coding opened in electronic invoice with described of identification coding it is inconsistent, then the paper that moves back for performing the paper invoice is grasped
Make, and play the prompt message for replacing paper invoice.Wherein, the prompt message is believed for information of voice prompt or text prompt
Breath.
This sixth embodiment is by identification coding in the paper invoice after judging in place with having opened the identification in electronic invoice
Whether coding is consistent, and the two is inconsistent, and perform the paper invoice moves back paper operation, and play the prompting for replacing paper invoice
The mode of information can prevent because manually misplacing paper invoice to be printed, and the paper invoice for causing to print is with having opened
The inconsistent situation of electronic invoice occurs.
The present invention proposes a kind of receipt printer.Referring to Fig. 4, Fig. 4 is the receipt printer first embodiment of the present invention
High-level schematic functional block diagram.In the present first embodiment, the receipt printer 100 includes:Acquisition module 110, feature extraction mould
Block 120, judgment module 130, position adjusting type modules 140, print execution module 150.Wherein, the acquisition module 110, for
After receiving printing invoice instruction, obtain and to be printed opened electronic invoice image.The characteristic extracting module 120, for from
Described opened in electronic invoice image extracts characteristic information.The judgment module 130, for judging preset characteristic information-fixed
It whether there is the positioning group that mapping relations are established with the characteristic information in position driving lever position-database of the margin away from mapping relations
Bar position, margin away from.The position adjusting type modules 140 are reflected for working as in the database to exist with characteristic information foundation
The positioning driving lever position of relationship, margin are penetrated away from then adjusting the positioning driving lever according to the positioning driving lever position.The printing is held
Row module 150, for according to the margin away from performing corresponding paper invoice printing.
Receipt printer described in this first embodiment can set entity button, and user is by clicking the entity button
Mode realize input printing invoice instruction.
Characteristic information described in the present embodiment refers to that same type of invoice is different from the feature letter of other types invoice
Breath, such as invoice size, various content region positions in invoice to be filled out.In the present embodiment electronics hair has been opened from same
The one group of characteristic information extracted in ticket image corresponds to a kind of invoice type.
This first embodiment establishes determining for mapping relations by the position adjusting type modules 140 according to the characteristic information
Position driving lever position adjusts the positioning driving lever and the print execution module 150 and establishes mapping according to the characteristic information
The margin of relationship away from the mode for performing corresponding paper invoice printing, user need not readjust positioning driving lever position and
Margin away from situation, it can be ensured that the paper invoice printed prevents the exhausted papery printed hair with having opened that electronic invoice is consistent
It fills out and occurs in ticket the phenomenon that content exceeds the setting regions of paper invoice, compared to the side of existing receipt printer printed invoice
Formula, has saved the time and efforts of user, and user experience effect is good.
The present invention proposes the receipt printer second embodiment.Referring to Fig. 5, Fig. 5 is the receipt printer the of the present invention
The high-level schematic functional block diagram of two embodiments.This second embodiment is improved on the basis of above-described embodiment, improvements
It is, the receipt printer further includes:Content identifier module 160, mapping relations establish module 170.Wherein, the acquisition mould
Block 110 is additionally operable to that positioning driving lever position, the margin for establishing mapping relations with the characteristic information are not present in the database
Away from when, obtain and to be printed opened electronic invoice image.The position adjusting type modules 140 are additionally operable to open electronics according to
Invoice picture size adjustment positioning driving lever position.The content identifier module 160 described has opened electronic invoice image for identifying
Middle institute's fill substance, according to institute's fill substance it is described opened electronic invoice image in position, papery to be printed is set to send out
The margin of ticket away from.The characteristic extracting module 120 described has opened characteristic information in electronic invoice image for obtaining.It is described to reflect
The relationship of penetrating establishes module 170, for establishing the characteristic information-positioning driving lever position-margin away from the mapping relations between three,
And the mapping relations are included in the database.The print execution module 150, is additionally operable in paper invoice to be printed
After in place, operated according to the margin away from corresponding printing invoice is performed.
Position adjusting type modules 140 described in this second embodiment can determine positioning driving lever according to electronic invoice image has been opened
Position, and then can realize and corresponding position adjustment is carried out to the positioning driving lever.
Occurrence of the margin described in this second embodiment away from setting is existed with filling out content in the paper invoice that prints
Position is with having drawn a bill middle filled out content subject to the position consistency in invoice in invoice.
This second embodiment is obtained by the characteristic extracting module 120 and described opened feature in electronic invoice image and believe
Breath, the mapping relations establish module 170 and establish the characteristic information-positioning driving lever position-margin away from the mapping between three
Relationship, and the mapping relations are included in the mode of the database, for subsequently print same type of invoice provide it is unified
Driving lever position, margin are positioned away from adjustment standard, without readjusting positioning driving lever position and page before each printed invoice of user
Back gauge improves user experience effect.
The present invention proposes the receipt printer 3rd embodiment.Referring to Fig. 6, Fig. 6 is the receipt printer the of the present invention
The high-level schematic functional block diagram of three embodiments.This third embodiment is improved on the basis of above-mentioned first embodiment, is improved
Part is that the receipt printer 100 further includes:Scan module 180.Wherein, the scan module 180, beats for described
Before print execution module 150 performs corresponding paper invoice printing, the paper invoice after scanning is in place obtains paper invoice
Image.The extraction module 110, for extract it is described it is in place after paper invoice image identification coding.The judgment module
130, for judge it is described it is in place after paper invoice image in identification coding compiled with the identification opened in electronic invoice
Whether code is consistent.The print execution module 150, specifically for work as it is described it is in place after paper invoice image in identification encode
When consistent with the identification coding opened in electronic invoice, operated according to the margin away from corresponding printing invoice is performed.
This third embodiment by the judgment module 130 judge it is in place after paper invoice in identification coding with having opened electricity
Whether the identification coding in sub- invoice is consistent, and the print execution module 150 performs printing invoice operation when the two is consistent
Mode can prevent because manually misplacing paper invoice to be printed, leading to the paper invoice printed and having opened electronics hair
The inconsistent situation of ticket occurs.
The present invention proposes the receipt printer fourth embodiment.Referring to Fig. 7, Fig. 7 is the receipt printer the of the present invention
The high-level schematic functional block diagram of four embodiments.This fourth embodiment is improved on the basis of above-mentioned second embodiment, is improved
Part is that the receipt printer 100 further includes:Scan module 180.Wherein, the scan module 180, beats for described
Before printing the corresponding paper invoice printing of execution module execution, the paper invoice after scanning is in place obtains paper invoice figure
Picture.The extraction module 110, for extract it is described it is in place after paper invoice image identification coding.The judgment module
130, for judge it is described it is in place after paper invoice image in identification coding compiled with the identification opened in electronic invoice
Whether code is consistent.The print execution module 150, specifically for work as it is described it is in place after paper invoice image in identification encode
When consistent with the identification coding opened in electronic invoice, operated according to the margin away from corresponding printing invoice is performed.
This fourth embodiment by the judgment module 130 judge it is in place after paper invoice in identification coding with having opened electricity
Whether the identification coding in sub- invoice is consistent, and the print execution module 150 performs printing invoice operation when the two is consistent
Mode can prevent because manually misplacing paper invoice to be printed, leading to the paper invoice printed and having opened electronics hair
The inconsistent situation of ticket occurs.
The present invention proposes the 5th embodiment of receipt printer.Referring to Fig. 8, Fig. 8 is the receipt printer the of the present invention
The high-level schematic functional block diagram of five embodiments.This fifth embodiment is improved on the basis of above-mentioned 3rd embodiment, is improved
Part is that the receipt printer 100 further includes:It moves back paper execution module 190 and invoice replaces prompt message 101.Wherein, institute
State and move back paper execution module 190, for work as it is described it is in place after paper invoice image in identification coding opened electronics hair with described
Identification coding in ticket is inconsistent, then perform the paper invoice moves back paper operation.The invoice replaces reminding module 101, uses
In the prompt message for playing replacement paper invoice.Wherein, the prompt message is information of voice prompt or text prompt information.
This fifth embodiment by the judgment module 130 judge it is in place after paper invoice in identification coding with having opened electricity
Whether the identification coding in sub- invoice is consistent, and the paper execution module 190 of moving back performs the paper invoice when the two is inconsistent
Move back paper operation, the invoice replaces the mode that reminding module 101 plays the prompt message for replacing paper invoice, can prevent because
Paper invoice to be printed is manually misplaced, the situation for causing the paper invoice printed inconsistent with having opened electronic invoice goes out
It is existing.
The present invention proposes the receipt printer sixth embodiment.Referring to Fig. 9, Fig. 9 is the receipt printer the of the present invention
The high-level schematic functional block diagram of six embodiments.This sixth embodiment is improved on the basis of above-mentioned fourth embodiment, is improved
Part is that the receipt printer 100 further includes:It moves back paper execution module 190 and invoice replaces prompt message 101.Wherein, institute
State and move back paper execution module 190, for work as it is described it is in place after paper invoice image in identification coding opened electronics hair with described
Identification coding in ticket is inconsistent, then perform the paper invoice moves back paper operation.The invoice replaces reminding module 101, uses
In the prompt message for playing replacement paper invoice.Wherein, the prompt message is information of voice prompt or text prompt information.
This sixth embodiment by the judgment module 130 judge it is in place after paper invoice in identification coding with having opened electricity
Whether the identification coding in sub- invoice is consistent, and the paper execution module 190 of moving back performs the paper invoice when the two is inconsistent
Move back paper operation, the invoice replaces the mode that reminding module 101 plays the prompt message for replacing paper invoice, can prevent because
Paper invoice to be printed is manually misplaced, the situation for causing the paper invoice printed inconsistent with having opened electronic invoice goes out
It is existing.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of control method of receipt printer, which is characterized in that the control method of the receipt printer includes:
After printing invoice instruction is received, obtain it is to be printed opened electronic invoice image, opened electronic invoice figure from described
Characteristic information is extracted as in;
Judge to whether there is and the spy in preset characteristic information-positioning driving lever position-database of the margin away from mapping relations
Reference breath establish the positioning driving lever positions of mapping relations, margin away from;
The positioning driving lever positions of mapping relations, margin are established away from then basis with the characteristic information when existing in the database
The positioning driving lever position adjusts the positioning driving lever, according to the margin away from the corresponding paper invoice printing of execution.
2. the control method of receipt printer according to claim 1, which is characterized in that described to judge preset feature letter
Breath-positioning driving lever position-margin away from mapping relations database in whether there is and with the characteristic information establish mapping relations
Positioning driving lever position, margin is away from further including later:
The positioning driving lever positions of mapping relations, margin are established away from then obtaining with the characteristic information when being not present in the database
Take it is to be printed opened electronic invoice image, opened electronic invoice picture size adjustment positioning driving lever position according to described;
Institute's fill substance in electronic invoice image has been opened described in identification, electronic invoice image has been opened described according to institute's fill substance
In position, set the margin of paper invoice to be printed away from;
Characteristic information in electronic invoice image has been opened described in obtaining, has established the characteristic information-positioning driving lever position-margin away from three
Mapping relations between person, and the mapping relations are included in the database;
After paper invoice to be printed is in place, operated according to the margin away from corresponding printing invoice is performed.
3. the control method of receipt printer according to claim 1 or 2, which is characterized in that according to the margin away from
It is further included before performing corresponding paper invoice printing:
Paper invoice after scanning is in place obtains paper invoice image, extract it is described it is in place after paper invoice image identification
Coding;
Judge it is described it is in place after paper invoice image in identification coding encoded with the identification opened in electronic invoice and be
It is no consistent;
The identification coding in paper invoice image when described in place after is consistent with the identification coding opened in electronic invoice,
Then operated according to the margin away from corresponding printing invoice is performed.
4. the control method of receipt printer according to claim 3, which is characterized in that it is described judge it is described it is in place after
Whether the identification coding in paper invoice image unanimously further includes later with the identification coding opened in electronic invoice:
The identification coding in paper invoice image when described in place after is encoded with the identification opened in electronic invoice to differ
It causes, then perform the paper invoice moves back paper operation, and play the prompt message for replacing paper invoice.
5. the control method of receipt printer according to claim 4, which is characterized in that the prompt message is carried for voice
Show information or text prompt information.
6. a kind of receipt printer, which is characterized in that the receipt printer includes:
Acquisition module to be printed has opened electronic invoice image for after printing invoice instruction is received, obtaining;
Characteristic extracting module, for extracting characteristic information from described opened in electronic invoice image;
Judgment module, for judge in preset characteristic information-positioning driving lever position-database of the margin away from mapping relations whether
In the presence of established with the characteristic information positioning driving lever positions of mapping relations, margin away from;
Position adjusting type modules, for working as the positioning driving lever position for existing in the database and mapping relations being established with the characteristic information
It puts, margin is away from then according to the positioning driving lever position adjustment positioning driving lever;
Print execution module, for according to the margin away from performing corresponding paper invoice printing.
7. receipt printer according to claim 6, which is characterized in that further include:Content identifier module, mapping relations are built
Formwork erection block;
The acquisition module is additionally operable to be not present the positioning group that mapping relations are established with the characteristic information in the database
Bar position, margin away from when, obtain and to be printed opened electronic invoice image;
The position adjusting type modules are additionally operable to open electronic invoice picture size adjustment positioning driving lever position according to;
The content identifier module, for identify it is described opened institute's fill substance in electronic invoice image, according to institute's fill substance
It is described opened electronic invoice image in position, set the margin of paper invoice to be printed away from;
The characteristic extracting module described has opened characteristic information in electronic invoice image for obtaining;
The mapping relations establish module, for establishing the characteristic information-positioning driving lever position-margin away from reflecting between three
Relationship is penetrated, and the mapping relations are included in the database;
The print execution module, is additionally operable to after paper invoice to be printed is in place, corresponding away from performing according to the margin
Printing invoice operates.
8. the receipt printer described according to claim 6 or 7, which is characterized in that further include:Scan module;
The scan module, before performing corresponding paper invoice printing for the print execution module, scanning is in place
Paper invoice afterwards obtains paper invoice image;
The extraction module, for extract it is described it is in place after paper invoice image identification coding;
The judgment module, for judge it is described it is in place after paper invoice image in identification coding opened electronics hair with described
Whether the identification coding in ticket is consistent;
The print execution module, specifically for work as it is described it is in place after paper invoice image in identification encode and opened with described
When identification coding in electronic invoice is consistent, operated according to the margin away from corresponding printing invoice is performed.
9. receipt printer according to claim 8, which is characterized in that further include:
Move back paper execution module, for work as it is described it is in place after paper invoice image in identification coding opened electronic invoice with described
In identification coding it is inconsistent, then perform the paper invoice move back paper operation;
Invoice replaces reminding module, for playing the prompt message for replacing paper invoice.
10. receipt printer according to claim 9, which is characterized in that the prompt message for information of voice prompt or
Text prompt information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711384225.1A CN108189568A (en) | 2017-12-20 | 2017-12-20 | Receipt printer and its control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711384225.1A CN108189568A (en) | 2017-12-20 | 2017-12-20 | Receipt printer and its control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108189568A true CN108189568A (en) | 2018-06-22 |
Family
ID=62577480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711384225.1A Pending CN108189568A (en) | 2017-12-20 | 2017-12-20 | Receipt printer and its control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108189568A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110014755A (en) * | 2019-03-29 | 2019-07-16 | 深圳市银之杰科技股份有限公司 | A kind of false distinguishing batch sealing integrated machine and processing method |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794167A (en) * | 2006-01-06 | 2006-06-28 | 无锡永中科技有限公司 | Method of setting printing parameter |
US20090284806A1 (en) * | 2008-05-13 | 2009-11-19 | Pfu Limited | Image reading apparatus and mark detection method |
CN104657090A (en) * | 2013-11-20 | 2015-05-27 | 航天信息股份有限公司 | Method for modularizing invoice printing elements in tax control system |
US20160261767A1 (en) * | 2015-03-06 | 2016-09-08 | Oki Data Corporation | Image processing apparatus |
CN106610804A (en) * | 2016-12-27 | 2017-05-03 | 上海极途信息技术有限公司 | Ticket printing method and system |
CN107391057A (en) * | 2017-07-06 | 2017-11-24 | 北京三快在线科技有限公司 | A kind of billing information management method, device and equipment |
CN107423005A (en) * | 2017-07-19 | 2017-12-01 | 北京小米移动软件有限公司 | Paper system of selection and device |
-
2017
- 2017-12-20 CN CN201711384225.1A patent/CN108189568A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794167A (en) * | 2006-01-06 | 2006-06-28 | 无锡永中科技有限公司 | Method of setting printing parameter |
US20090284806A1 (en) * | 2008-05-13 | 2009-11-19 | Pfu Limited | Image reading apparatus and mark detection method |
CN104657090A (en) * | 2013-11-20 | 2015-05-27 | 航天信息股份有限公司 | Method for modularizing invoice printing elements in tax control system |
US20160261767A1 (en) * | 2015-03-06 | 2016-09-08 | Oki Data Corporation | Image processing apparatus |
CN106610804A (en) * | 2016-12-27 | 2017-05-03 | 上海极途信息技术有限公司 | Ticket printing method and system |
CN107391057A (en) * | 2017-07-06 | 2017-11-24 | 北京三快在线科技有限公司 | A kind of billing information management method, device and equipment |
CN107423005A (en) * | 2017-07-19 | 2017-12-01 | 北京小米移动软件有限公司 | Paper system of selection and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110014755A (en) * | 2019-03-29 | 2019-07-16 | 深圳市银之杰科技股份有限公司 | A kind of false distinguishing batch sealing integrated machine and processing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105278894B (en) | Print control, print system and printing control method | |
US8458583B2 (en) | Document image generating apparatus, document image generating method and computer program | |
EP1630688A3 (en) | Document processing apparatus and method | |
EP1641243A2 (en) | Device, program and method for generating a profile for an image output device | |
EP2017716A3 (en) | Printing control apparatus and printing control method | |
CN104461412A (en) | Web page designated area printing method and system | |
CN107402729A (en) | Printing template construction method and stencil marking method | |
CN103358684A (en) | Manuscript printing quality control method for spot-color ICC (international color consortium) curve proofing | |
CN108189568A (en) | Receipt printer and its control method | |
CN105302506B (en) | A kind of sorting bulk print method called automatically based on data | |
JP6111846B2 (en) | Image forming system, remote control device and program | |
CN111142812A (en) | Method for automatically printing and exporting bill based on web technology custom-surface single template | |
CN104951749A (en) | Image content recognition device and image content recognition method | |
CN104122766B (en) | Image forming apparatus and image forming method | |
CN104469062B (en) | It is capable of the printing equipment and its control method of composite characters string and original image | |
US9860398B2 (en) | Information processing apparatus that creates other documents from read document | |
CN106020743A (en) | A system and a method facilitating user self-service printing | |
CN106528007A (en) | Printing control system and printing method thereof | |
CN105183404B (en) | A kind of method and apparatus of processing data | |
US20040080769A1 (en) | Image processing device and image processing method | |
CN104442054B (en) | Two-dimension code printing method and device based on mainframe platform | |
CN110175004A (en) | Print controlling apparatus, control method and non-transitory computer-readable storage media | |
CN103302969B (en) | Printer and Method of printing thereof | |
JP2010099849A (en) | Printing apparatus, controlling method and controlling program for printing apparatus | |
US20110188745A1 (en) | Image processing apparatus and processing method of the image processing apparatus |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180622 |
|
WD01 | Invention patent application deemed withdrawn after publication |