CN105607879A - Portrait adjustment control method and apparatus suitable for preprinted paper - Google Patents

Portrait adjustment control method and apparatus suitable for preprinted paper Download PDF

Info

Publication number
CN105607879A
CN105607879A CN201510973935.2A CN201510973935A CN105607879A CN 105607879 A CN105607879 A CN 105607879A CN 201510973935 A CN201510973935 A CN 201510973935A CN 105607879 A CN105607879 A CN 105607879A
Authority
CN
China
Prior art keywords
printed
data
document data
print paper
print
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
CN201510973935.2A
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.)
Zhuhai Pantum Electronics Co Ltd
Original Assignee
Zhuhai Pantum Electronics 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 Zhuhai Pantum Electronics Co Ltd filed Critical Zhuhai Pantum Electronics Co Ltd
Priority to CN201510973935.2A priority Critical patent/CN105607879A/en
Publication of CN105607879A publication Critical patent/CN105607879A/en
Priority to PCT/CN2016/108507 priority patent/WO2017107760A1/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

The invention provides a portrait adjustment control method suitable for preprinted paper. The method comprises the following steps: a, obtaining preprinted paper data; b, obtaining to-be-printed document data; c, based on the preprinted paper data and the to-be-printed document data, judging whether the to-be-printed document data needs to be adjusted or not; d, if the to-be-printed document data needs to be adjusted, generating adjustment parameters based on the preprinted paper data and the to-be-printed document data; and e, performing printing based on the to-be-printed document data and the adjustment parameters. The invention furthermore provides a corresponding portrait adjustment control apparatus. According to the portrait adjustment control method and apparatus, whether the to-be-printed document data can be printed in a proper position of the preprinted paper or not is observed or identified through a preview interface or a computer identification function before formal printing, and the position of the to-be-printed document data is adjusted based on a judgment result to adjust the printing position, so that good experience is brought for a user, the working efficiency is improved, and a more environmentally-friendly printing technology is provided.

Description

A kind of portrait that is applicable to pre-printing paper is adjusted control method and device
Technical field
The present invention relates to the technical field that a kind of image forms, relate in particular to one and be applicable to beat in advanceThe portrait of printing paper is adjusted control method and corresponding control device.
Background technology
Along with the high speed development of printing technique, people's work, life and print system closelyDegree is more and more higher, and the appearance of printing device has locked the relation of people and printing device more,How much we can pass through printing device printed document, editing data in routine work lifeDeng.
From early stage ink-jet printer, thermo printer, laser printer, newer till nowThe electrostatic printer of type, magnetic-type printer, light emitting diode printer etc., dissimilar, noWith big or small printer substantially can the comprehensive people's of meeting office, diversified the beating such as family expensesSeal demand. In a lot of occasions such as hospital, bank, there is a specific demand for printer,These occasions often need to wait for that print data is printed on pre-print paper by word or imageAd-hoc location on, the pre-print paper here refers to and is printed in advance form and/or some informationPaper, such as hospital's laboratory test report, bank charge voucher etc. Hospital's prescription as shown in Figure 1Example table, it is pre-rendered on paper blank has form and in discrete cell, is printed with literary composition thereinWord " name ", " age " and " prescription ", when doctor sees and examines out single computer-chronograph for suffererSufferer name, age and the prescription data of doctor's input are converted to document data to be printed,Can print described document to be printed at the corresponding blank cell place of prescription example table by printerData, still, this on pre-printing paper the mode of print data usually there will be print positionThe problem of skew, as shown in Figure 2, wherein the word of thickened portion is as Zhang San, 33 years old etc.The document data described to be printed that printer is printed, can be clearly seen that these documents to be printedData have all been displaced on pre-printing paper " prescription " hurdle, with beating that our actual hope obtainsPrint effect and have very large deviation. Now, user just need can be on pre-print paper to be printedDocument data adjustment makes the printing position of document data to be printed on pre-print paperPut and meet user's expection.
At present, on market, relatively the solution of main flow is to visually observe printing side-play amount by userAfter, manually drive on interface and adjust print position in printing, although this can separate to a certain extentThe certainly technical problem of print position displacement, but need user first to hold before adjusting print positionWhether a printing of row, observe document data to be printed according to the image effect printing and canTo be printed on the correct position on pre-print paper, if any deviation, estimate corresponding deviationValue, then further prints the adjustment setting of position at printing driving interface, not only time-consumingEffort, if user is out of one's reckoning, also may occur that print position adjustment arranges improper needs and carries outRepeatedly adjust, the situation of duplicate printing occurs, and is unfavorable for that user experiences, serious waste userValuable time and efforts.
Present user is to have very high requirement for the convenience of operation, especially at user's bodyTest. The slight change that user experiences has often determined a received degree of product, and this is rightIn the printer market, print service market that exist sufficient competition, form powerful competitionDifference. Taking above-mentioned situation as example, many times, user's needs are a kind of can be right before printingThe control method that document data to be printed on pre-printing paper is adjusted. For example, computer dividesAfter not obtaining document data to be printed and pre-print paper data rear line and showing that both superposePreview image, be confirmed whether that by user the picture position that need to treat printed document data carries outAdjust, and the final print What printing out after adjusting, certainly, this confirmation step also canAutomatically completed by computer.
In present stage, the extraordinary method of neither one can solve the above-mentioned problem of mentioning. GreatlyIn most cases, user can only repeat once even repeatedly to obtain after printing-observation-set-up procedureTo the print What that meets user expection, do not provide a kind of pre-printing paper that is effectively applicable toPortrait is adjusted control method, makes user before formal printing, to treat printed document data and existsPrint position on pre-print paper carries out preview, meets beating of user's expection thereby once obtainPrint content.
Summary of the invention
Not provide before printing and adjust document data to be printed in order to overcome in prior artThe technical problem of the technical scheme of print position, the object of this invention is to provide one and is applicable in advanceThe portrait of printing paper is adjusted control method and corresponding control device.
According to an aspect of the present invention, provide a kind of portrait adjustment control that is applicable to pre-printing paperMethod, treats printed document data for printer and adjusts to make described document to be printedData print on described pre-printing paper exactly, comprise the steps:
A. obtain pre-print paper data;
B. obtain document data to be printed;
C. described in described pre-print paper data and described document data judgement to be printed, treatWhether printed document data need to adjust;
If d. described document data to be printed need adjust, based on described pre-print paper data withAnd described document data to be printed generates adjustment parameter; And
E. print based on described document data to be printed and described adjustment parameter.
Preferably, after described steps d, comprise the steps:
F. described pre-print paper data and described adjustment parameter are stored adaptably.
Preferably, described step c comprises the steps:
C1. with pre-print paper data and described literary composition to be printed described in the form Overlapping display of windowFile data;
C2. receive user instruction to determine whether described document data to be printed needs to adjust.
Preferably, any in also comprising the steps of described step c2:
C21. receive the control instruction that user adjusts described document data to be printed, correspondingly, in instituteState in steps d and generate described adjustment parameter based on described control instruction; Or
C22. receive the indication information that user adjusts described document data to be printed, described indication informationDetermine that described document data to be printed needs to adjust.
Preferably, described step c1 comprises the steps:
C11. in a terminal with pre-print paper data described in the form Overlapping display of window andDescribed document data to be printed, wherein, described terminal is associated with described printer.
Preferably, described step c comprises the steps:
C1 '. judge described document data to be printed whether with the showing of described pre-print paper dataShow that content is overlapping;
C2 ' if. described document data to be printed and described pre-print paper data can displaying contentsNot overlapping, further described in judgment part document data to be printed whether at described pre-print paperOutside data area;
C3 '. described in determining based on the judged result of described step c1 ' and/or described step c2 ', wait to beatPrinted text file data needs to adjust.
Preferably, any in comprising the steps of described step a:
A1. obtain described pre-print paper data based on image acquisition equipment;
A1 '. obtain described pre-print paper data based on system introducing.
According to another aspect of the present invention, also provide a kind of portrait adjustment that is applicable to pre-printing paperControl device, treats printed document data for printer and adjusts to make described to be printedDocument data prints on described pre-printing paper exactly, comprises as lower device:
Pre-print paper acquisition device, it is for obtaining pre-print paper data;
Document data acquisition device to be printed, it is for obtaining document data to be printed;
The first judgment means, it is for based on described pre-print paper data and described literary composition to be printedFile data judges whether described document data to be printed needs to adjust;
Adjust parameter generating apparatus, its in the time that described document data to be printed need to be adjusted based onThe judged result of described the first judgment means generates adjusts parameter; And
Print processing device, it is for based on described document data to be printed and described adjustment parameterPrint.
Preferably, described the first judgment means comprises as lower device:
Adjust previewing module, it is for pre-print paper data described in the form Overlapping display with windowAnd described document data to be printed; And
The second judgment means, it for receiving user instruction to determine described document data to be printed isNo needs adjusted.
Preferably, described the second judgment means also comprises as any in lower device:
Control instruction receiving system, it adjusts the control of described document data to be printed for receiving userInstruction processed, correspondingly, described adjustment parameter generating apparatus generates described tune based on described control instructionWhole parameter; Or
Indication information receiving system, it adjusts the finger of described document data to be printed for receiving userShow information, described indication information determines that described document data to be printed needs to adjust.
Preferably, described the first judgment means comprises as lower device:
The 3rd judgment means, its for judge described document data to be printed whether with described pre-printingPaper data can displaying contents overlapping, correspondingly, if described document data to be printed and described pre-Can needing to adjust by the overlapping definite described document data to be printed of displaying contents of print paper data.
By technology contents provided by the invention, can effectively solve user cannot be in formal printingFront adjustment will be printed on the technical problem of the portrait position on pre-printing paper, thereby brings to userGood user experience, not only improved operating efficiency, and one environmental protection be more providedPrinting technique.
Brief description of the drawings
By reading the detailed description of non-limiting example being done with reference to the following drawings, thisIt is more obvious that bright other features, objects and advantages will become:
Fig. 1 illustrates the prescription example table that hospital is conventional;
Fig. 2 illustrates that print data occurs that print position is inclined to one side on pre-print paper in the prior artThe schematic diagram moving;
Fig. 3 illustrates according to the first embodiment of the present invention, a kind of picture that is applicable to pre-printing paperPicture is adjusted the flow chart of control method;
Fig. 4 illustrates according to a second embodiment of the present invention, a kind of portrait that is applicable to pre-printing paperAdjust the flow chart of control method;
Fig. 5 illustrates according to a specific embodiment of the present invention, judges described literary composition to be printedWhether file data needs the flow chart of adjusting;
Fig. 6 illustrates according to another detailed description of the invention of the present invention, judges described to be printedWhether document data needs the flow chart of adjusting;
Fig. 7 illustrates the preview interface schematic diagram according to a specific embodiment of the present invention;
Fig. 8 has illustrated according to the Overlapping display of a specific embodiment of the present invention literary composition to be printedPreview interface schematic diagram after file data and pre-print paper data;
Fig. 9 illustrates according to the document data to be printed of a specific embodiment of the present invention with pre-The deviation schematic diagram of print paper data;
Figure 10 illustrates the document data to be printed according to another detailed description of the invention of the present inventionDeviation schematic diagram with pre-print paper data;
Figure 11 illustrates entering based on alignment datum line according to a specific embodiment of the present inventionThe design sketch that row is adjusted;
Figure 12 illustrates the increase optimization process function according to a specific embodiment of the present inventionPreview interface schematic diagram; And
Figure 13 illustrates a third embodiment in accordance with the invention, a kind of picture that is applicable to pre-printing paperPicture is adjusted the structure chart of control device.
Detailed description of the invention
In order better to make technical scheme of the present invention show clearly, below in conjunction with accompanying drawing pairThe present invention is described further.
It will be appreciated by those skilled in the art that in order to solve user and cannot before formal printing, adjust and beat in advanceIn printing paper, draw a portrait the technical problem of position, technical program of the present invention lies in providing the one can bePrint the solution of adjusting with regard to treating the print position of printed document data before operationScheme. By technical scheme provided by the invention, the greatly printing effect of optimizing user,Effectively improve the print position precision of document data to be printed on pre-print paper simultaneously. ToolBody ground, in a preferred embodiment of the invention, by adjusting in preview before printing operationThe automatic identification function of the preview interface of mould preparation piece or computer identification module is observed or identification is treatedWhether printed document data can be printed on the correct position on pre-print paper, and based on sightExamine or recognition result is adjusted the position of document data to be printed, thereby realize the tune of print positionWhole.
Fig. 3 illustrates according to the first embodiment of the present invention, a kind of picture that is applicable to pre-printing paperPicture is adjusted the flow chart of control method, and it is treated printed document data for printer and adjustsSo that described document data to be printed is printed on described pre-printing paper exactly, particularly, headFirst perform step S101, obtain pre-print paper data. More specifically, described pre-print paperData comprise word, image or both combinations on current print paper, printed in advance, for example,The single example table of the prescription of hospital shown in Fig. 1. Further, described pre-print paper data are based on imageThe equipment of obtaining obtains, and described image acquisition equipment comprises scanner, it is first-class to make a video recording. At one preferablyIn example, operating system is obtained described pre-print paper data based on scanner, and described scanner is installedIn printer, described operating system is sent request and obtains institute to printer by printing drive moduleState the solicited message of pre-print paper data and receive the feedback information that printer sends, described feedbackInformation is corresponding with described command information, comprises that printer calls described pre-that scanner scanning obtainsPrint paper data.
Before the described step S101 of execution/simultaneously/afterwards, enter step S102 and carry out, obtainGet document data to be printed. Particularly, described document data to be printed comprises that document to be printed is spyThe data of determining printable area on antiquarian distribute. More specifically, described data distribute based onThe first application program typesetting obtains. Further, described the first application program is treated described in openingThe application program (as word, excel etc.) of printed document, it is for opening described document to be printed alsoObtain corresponding document data to be printed. Preferably, described the first application program is based on device drivesGDI (Graphics in routine interface (DeviceDriverInterface is called for short DDI)DeviceInterface, is called for short GDI) structure variable and printing drive module and the operation of module beSystem carries out information transmission, thereby described document to be printed is carried out to typesetting. In a preference,The DEVMODE structure of described the first application program based in described GDI module opens itThe relevant parameter of document to be printed pass to printing drive module, then obtain in operating systemThe relevant variable value of GDIINFO structure the word arranging in the first application program in conjunction with userBody attribute, treats printed document data and carries out typesetting output, wherein, and described DEVMODE knotStructure body is for including ginsengs such as representing antiquarian, print resolution, paper length and height, paper typeThe variables collection of number, described GDIINFO structure is to include the system version that represents operating systemBasis, basic equipment information, resolution ratio, printable area, print paper size, font and textIsoparametric variables collection, some variate-value in described GDIINFO structure is by printing drivingThe relevant parameter that module is transmitted by DEVMODE structure for the first application program carries out oneAfter series of processes (comprising legitimacy verification, range computation, unit conversion etc.), obtain.
Next perform step S103, based on described pre-print paper data and described literary composition to be printedFile data judges whether described document data to be printed needs to adjust. Particularly, described operating systemJudge based on user instruction. More specifically, described user instruction is based on the second application programDisplaying result generate. Further, described the second application program is used for described pre-printing paperNumber according to this and described document data to be printed be presented at a preview in independent or superimposed modeOn interface, browse for user, as shown in Figure 8. In a preference, described the second application programBy document data to be printed and after the stack of print paper data is presented in described preview interface in advance, useFamily is by the printing of document data to be printed based on described pre-print paper data described in observe and decideWhether position needs to adjust, if described document data to be printed is with respect to described pre-print paper dataNeed to carry out position adjustment, the judged result of described step S103 is sure; Otherwise,The judged result of described step S103 negates. Further, if the sentencing of described step S103Disconnected result is sure, next enters step S104 and carries out; If described step S103 sentencesDisconnected result negates, described document data to be printed with respect to described pre-print paper data withoutNeed carry out any adjustment operation, next enter step S106 and carry out.
Preferably, in described step S104, if described document data to be printed needs to adjust,Generate adjustment parameter based on described pre-print paper data and described document data to be printed. ToolBody ground, described adjustment parameter obtains based on described the second application computes. More specifically, instituteState adjustment parameter and comprise print position adjustment parameter. In a preference, user is through above-mentioned stepThe current printing in described pre-print paper data of document data to be printed is determined in rapid S103 judgementPosition needs to adjust, and moves described document data to be printed by the input unit such as mouse, keyboardDisplay window after correct position, the movement of described the second application program based on described input unitAdjust parameter apart from print position described in calculative determination. In another preference, described second shouldDisplay window by program based on document data to be printed after mobile and mobile front document data to be printedMouth deviant is determined described print position adjustment parameter.
Then perform step S105, enter based on described document data to be printed and described adjustment parameterRow is printed. Particularly, described operating system is treated printed document number based on described the first application programAccording to typesetting draw a picture, and be handed down to printing drive module. More specifically, described printing is drivenDynamic model piece is treated printed document data based on described adjustment parameter and is carried out translation processing, and then by itBeing converted into printable data is handed down to printer and prints.
Preferably, in described step S106, generate and can beat based on described document data to be printedPrinting certificate. It will be appreciated by those skilled in the art that described in this step that document data to be printed is through above-mentioned stepsS103 judgement is determined does not need to carry out any adjustment operation, means now described number of files to be printedAccording to being printed on the correct position of described pre-print paper, meet user's expection, user is to instituteState the second application program and send after " printing " instruction, operating system by the first application program to describedThe typesetting of document data to be printed is drawn a picture and is handed down to printing drive module, and described printing drive module willDescribed document data to be printed is converted into printable data, it will be appreciated by those skilled in the art that the present inventionIt is described that document data to be printed is converted into the technical scheme of printable data actual is prior art,Do not repeat them here.
One at the present embodiment changes in example, image acquisition equipment described in described step S101Communicate with external form and described printer, by user by pre-print paper in advance at described imageObtain on equipment that to put into printer carton etc. after scanning to be printed again, this can realize this step equallySuddenly obtain the object of described pre-print paper data, those skilled in the art can also be according to actual needChange and more embodiment, do not repeat them here.
Further, described operating system also the mode based on system introducing obtain described pre-printing paperOpen data, described system introducing comprises local file importing, network importing etc., for example, and described behaviourThe interior pre-stored local folders that has of the system of doing, comprising all kinds of pre-print paper data, thisA little pre-print paper data can be to be stored in described local folders after being scanned in advance by user, can be also the standard edition data that provided by pre-print paper printing side. Those skilled in the artUnderstand, described in above-mentioned steps S101, obtain pre-print paper data based on image acquisition equipmentTechnical scheme need to be installed in advance the device with image-acquisition functions in described printer, orObtain described pre-by the image acquisition equipment communicating with printer or operating system place terminalPrint paper data, relative, the routine described technical scheme of this variation allows those not possess image to obtainGet printer or the terminal of function and can obtain equally described pre-print paper data.
Further, the pre-print paper data that user also can get this step are stored in one and depositIn storage unit, to use in the future, it will be appreciated by those skilled in the art that the pre-printing for same typePaper data, user stores data in described storage after only need obtaining once pre-print paper dataIn unit, can, from described memory cell repeated obtain in ensuing print procedure, remove fromOperating system process of print paper data in advance described in repeated obtain before each printing, greatly carriesHigh printing effect. Preferably, described memory cell comprises memory, database, file, clothesBusiness device etc. Preferably, described memory cell is arranged in described printer or terminal with example, in hardware,Or arrange separately and communicate in wired or wireless mode with described printer or terminal. Preferably,Described memory cell can also software form be arranged in printer or operating system, or is stored in cloudEnd also communicates with wireless mode and described printer or terminal.
In another variation example of the present embodiment, document to be printed described in described step S102Relevant parameter as long in antiquarian, paper give with the meeting assignment such as height, paper type as described inRelevant variable in DEVMODE structure, printing drive module can be from described based on functionIn DEVMODE structure, obtain relevant variable, thereby complete based in described GDI moduleThe relevant parameter transmission of the document to be printed that DEVMODE structure is opened the first application programGive the step of printing drive module.
Further, described the first application program is by the GDIINFO structure in GDI moduleMainly comprise with the step of described printing drive module and operating system exchange message, described printing is drivenDynamic model piece the relevant variable that obtains from DEVMODE structure is processed after assignment toRelevant variable in GDIINFO structure also returns to described operating system, described the first application journeyIn the GDIINFO structure of order described operating system, obtain after relevant parameter, in conjunction with userThe font attribute arranging in described the first application program is arranged described document data to be printedVersion output, determines row max number of characters and the maximum row of described document to be printed in printable areaNumber, and then line feed and the paging situation of definite described document to be printed.
Further, described interface module also comprises WINE module, and it is illustrated in compatible portableIn the operating system of operating system interface (POSIX), move the compatible layer of windows application program,By making the to be printed of application program drafting of the present invention with the effect of described GDI module cooperativeDocument data image can directly be beaten in the operating system such as such as Linux, MacOSX, BSDPrint output, and develop corresponding application program without the operating system based on different, art technologyPersonnel understand, and application program of the present invention is mainly developed based on windows operating system,It cannot directly move on the processing terminal that non-windows operating system is installed, described in working asWhen the processing terminal that non-windows operating system is installed need to move described application program, pass throughAPI switch technology is write the function that non-windows corresponds to Windows and is called DLL with fortuneThe described application program based on Windows operating system of row, makes the application program of the present invention canTo be applicable to several operation systems, expand the suitable application area of technical scheme of the present invention.
In another variation example of the present embodiment, described in described step S103, determining step alsoComprise based on computer identification module automatic decision, by the automatic identification of described computer identification moduleFunction is carried out some simple observations or identifying operation, for example, judges described pre-print paper dataWhether overlapping with described document data to be printed; Again for example, obtain described pre-print paper dataDescribed in boundary information judgment part, whether document data to be printed has exceeded described pre-print paperThe bounds of data.
Further, an all right pre-stored database in described computer identification module, whereinComprise the standard arrangement template of dissimilar document data to be printed on the pre-print paper of correspondence, whenDescribed the second application program detects after " printing " instruction that user assigns in the first application program,Calling described computer identification module first looks in described database based on pre-print paper dataLook for corresponding standard form, then judge that based on standard form document data to be printed is described pre-beatingWhether the position printing in paper data needs to adjust. Preferably, described Computer Automatic Recognition moduleBe integrated in described the second application program, it starts when described the second application program is activatedWith in the very first time to user feedback judged result, or, described Computer Automatic Recognition module withThird party's form is arranged in described processing terminal, and described the second application program is by calling described meterThe automatic identification module of calculation machine completes the determining step of described step S103.
It will be appreciated by those skilled in the art that with the first application program described in above-mentioned steps S102 automaticThe preview interface generating is compared, and the preview interface that the second application program generates described in this step is in canEditing mode, user is opened document to be printed and is clicked " printing " by described the first application programAfter, described the second application program call the pre-print paper data obtained in the first application program,Document data to be printed, by both with the form Overlapping display of window after user show, when user existsIn the preview interface of described the second application program, adjust after document data display window positions to be printed,Described the second application program calculates adjustment parameter based on user's operation, then by described to be printedDocument data and adjustment parameter issue printing drive module and carry out follow-up adjustment operation.
In another variation example of the present embodiment, in described step S104, also align based on specifyingThe mode of datum line is determined adjustment parameter, it will be appreciated by those skilled in the art that described in step S104Based on user's mouse move or the adjustment scheme optimization of keyboard enter key control treat described in being applicable toThe situation that printed document data are unified with respect to the offset direction of pre-print paper data, as Fig. 9 instituteState, now described the second application program by document data to be printed taking dashed line form confine as one canOperation box drags for user; But for document data to be printed shown in Figure 10 with respect to pre-printing paperOpen the inconsistent situation in data offset direction, described the second application program is by described number of files to be printedAccording to the identical data frame in middle offset direction be decided to be same can operation box, although now user still can pass throughPull etc. to realize and adjust operation, but for document data to be printed offset direction disunity, part numberObviously cannot complete quickly and treat printed document data according to partial data to the left situation to the rightSkew is adjusted, and establish the data area of described the second application program based on described pre-print paper dataA fixed alignment datum line, user only need drag and describedly can make described literary composition to be printed to its datum lineAll alignment taking described alignment datum line as benchmark of file data, complete skew adjustment, as shown in figure 11.
Further, described adjustment parameter is also based on manually input or confirmation instruction acquisition of user, exampleAs, described the second application program superposes and shows described document data to be printed and described pre-beating to userPrint when paper data or afterwards, automatically calculate described in acquisition based on described computer identification moduleDocument data to be printed is with respect to the side-play amount of described pre-print paper data and as suggestion skewAmount is prompted to user in preview interface, and user can described side-play amount be with reference to manually input hopeThe numerical distance that described document data to be printed moves, also can click " determining " to accept secondThe side-play amount of application program suggestion, described the second application program by user manually input numerical value orConfirm that the suggestion side-play amount of accepting is as described print position adjustment parameter.
Fig. 4 illustrates according to a second embodiment of the present invention, a kind of portrait that is applicable to pre-printing paperAdjust the flow chart of control method, its for printer treat printed document data adjust withDescribed document data to be printed is printed on described pre-printing paper exactly, particularly, firstExecution step S201, obtains pre-print paper data. More specifically, described pre-printing paper numberAccording to comprising the word, image or both combinations that are printed with in advance on current print paper, for example,The single example table of the prescription of hospital shown in Fig. 1. Further, those skilled in the art can be with reference to above-mentionedThe S101 of step described in embodiment illustrated in fig. 3, does not repeat them here.
Before the described step S201 of execution/simultaneously/afterwards, enter step S202 and carry out, obtainGet document data to be printed. Particularly, described document data to be printed comprises that document to be printed is spyThe data of determining printable area on antiquarian distribute. More specifically, described data distribute based onThe first application program typesetting obtains. Further, those skilled in the art can be with reference to above-mentioned figureDescribed in 3 illustrated embodiments, step S102, does not repeat them here.
Next perform step S203, whether judge described document data to be printed based on user instructionNeed to adjust. Particularly, described user instruction comprises user's control instruction and/or indication information. MoreFor particularly, described user's control instruction comprises adjustment parameter. Further, described indication letterBreath comprises the information of confirming to adjust or do not adjust described document data to be printed. Preferably, Yong HutongCross in preview interface described in preview document data to be printed with respect to described pre-print paper dataPrint position after to described second application program send user instruction, with indicate described second applicationProgram is carried out respective handling. In a preference, whether first operating system judge user instructionComprise the command information of adjusting described document data to be printed, adjust institute if described user instruction comprisesState the information of document data to be printed, the judged result of described step S203 is sure; No, the judged result of described step S203 negates. Further, if described step S203Judged result be sure, next enter step S204 carry out; If described step S203Judged result negate that described user instruction comprises and do not adjust described document data to be printedInformation, next enter step S206 carry out.
Preferably, in described step S204, if described document data to be printed needs to adjust,Generate adjustment parameter based on described pre-print paper data and described document data to be printed. ToolBody ground, described adjustment parameter obtains based on the second application computes. More specifically, described tuneWhole parameter comprises print position adjustment parameter. Further, those skilled in the art can referenceAbove-mentioned embodiment illustrated in fig. 3 described in step S104, do not repeat them here.
Next enter step S205 and carry out, based on described document data to be printed and described tuneWhole parameter prints. Particularly, described operating system is treated and is beaten based on described the first application programThe typesetting of printed text file data is drawn a picture, and is handed down to printing drive module. More specifically, instituteState printing drive module, based on described adjustment parameter, described document data to be printed carry out translation placeReason. Further, those skilled in the art can with reference to above-mentioned embodiment illustrated in fig. 1 described inStep S105, does not repeat them here.
Preferably, in described step S206, print based on described document data to be printed.It will be appreciated by those skilled in the art that described in this step that document data to be printed is through above-mentioned steps S203Judgement determine without adjusting, described operating system directly by the first application program to instituteThe typesetting of stating document data to be printed is drawn a picture and is handed down to printing drive module, drives mould by described printingPiece sends to printer to print after being converted into printable data.
One at the present embodiment changes in example, printing drive module described in described step S205Based on described adjustment parameter treat printed document data carry out translation processing before/simultaneously/afterwards,Described in described the second application program autostore, adjust parameter, to beat the pre-of same type next timeWhen printing paper is opened the same document of printing, can described in quick calling, adjust parameter, save repeated obtainAnd adjust the step of document data to be printed.
Change in example at another of the present embodiment, in described step S205 based on adjusting parameter pairThe step of document data print position to be printed adjustment also can be realized by printer, particularly, and instituteState printing drive module by described the first application program based on DEVMODE structure send treatingPrinted document data are converted into printable data, and the adjustment sending based on described the second application programParameter generates after printer print position adjustment order, by described printable data and described adjustmentOrder sends to printer in the lump, is adjusted in the time printing by described printer based on described adjustment orderPrinter Loading position, for example, the Loading position of described printer acquiescence is 5mmPlace, is 2mm to the left and adjust parameter, and described printer adjustment Loading position is 7mm,Be that printer starts printed document from 7mm.
It will be appreciated by those skilled in the art that with above-mentioned embodiment illustrated in fig. 3 compared with, described in the present embodimentTechnical scheme can be thought an above-mentioned concrete application embodiment illustrated in fig. 3, and it will be by adjustingWhole printed document data are converted into printable data, and treat printed document data based on adjusting parameterCarry out translation processing or generate print position adjustment order being handed down to printer adjustment start-print positionPut to realize the adjustment for the treatment of printed document data-printing position, changed user and repeatedly adjusted, weighThe existing operating system that strike-on prints, has greatly optimized user's experience.
Further, the separate installation of described the first application program and described the second application programOn described processing terminal, described the second application program is by monitoring entering of described the first application programJourney judges activation opportunity, particularly, described activation comprise opportunity described the first application program based onUser's " printing " instruction and the process that starts. Further, described the second application program is all rightBe embedded into by patch mode in the program code of described the first application program, when described the first applicationProgram receives calls described the second application program after user's " printing " instruction and carries out furtherProcess.
In a co-variation example of above-mentioned embodiment illustrated in fig. 3 and the present embodiment, above-mentioned figureDescribed in 3 illustrated embodiments, described in step S104 or the present embodiment, after step S204, also comprise stepSuddenly " described pre-print paper data and described adjustment parameter are stored adaptably ". Particularly,Described pre-print paper data and described adjustment parameter are pre-stored in a storage device, described inStorage device comprises background thread, flash memory disk, Flash, printing drive module, cloud storage device etc.Further, described operating system receives after user's print command directly from described storage dressIn putting, obtain described pre-print paper information, and based on corresponding with described pre-print paper dataAdjustment parameter this document data to be printed is carried out to position adjustment, thereby showing to userPreview interface on show the number of files to be printed of adjustment parameter adjustment based on storageAccording to, many times, such adjustment can meet user's expection, and user only need answer to secondSend and confirm that type information can complete this printing by program. Those skilled in the art's reasonSeparate, for the pre-print paper data of a set form, adjust parameter and be likely trueFixed, when user need to be repeatedly by data-printing on the pre-print paper at same form time justWithout all recalculate adjustment parameter at every turn, by the adjustment parameter of calling storage, this is waited to beatThe print position of printed text file data carries out pre-adjustment, increases work efficiency.
Further, described the second application program is obtained described pre-printing paper from described storage deviceWhen data/obtain afterwards the adjustment parameter corresponding with described pre-print paper data, andBased on described adjustment parameter, described document data to be printed is carried out to pre-adjustment, and then describedIn preview interface, show document data to be printed and the described pre-printing paper after pre-adjustment to userOpen the Overlay of data, if user thinks that preview result meets expection and directly clicks " printing "Option enters printing step, and adjustment corresponding with pre-print paper data in described storage device is joinedNumber is the adjustment parameter of this printing; Or, if user feels to be printed through pre-adjustmentWhen document data does not still meet its actual demand with respect to the position of pre-print paper data, also canFor further adjustments to described document data to be printed in described preview interface, until described in treatTill the print position of printed document data meets user's expection, now user manually adjusts generationAdjustment parameter be this printing print position adjust parameter.
Further, straight even if user does not enter print position adjustment interface in the time that this is printedPrinting is selected in selecting, and described the second application program still can be obtained and described pre-printing from storage deviceThe adjustment parameter that paper data is corresponding, and be handed down to printing drive module, described printing drivesModule is treated printed document data based on described adjustment parameter and is carried out translation processing, or based on instituteState adjustment parameter generation print position adjustment order and be handed down to printer adjustment Loading position.
Further, described the second application program only cannot from described storage device, obtain withWhen the corresponding adjustment parameter of described pre-print paper data just by pre-print paper data and treatThe stack of printed document data is presented in preview interface to be shown to user, if described the second application journeyOrder can be obtained the corresponding adjustment ginseng of described pre-print paper data from described storage deviceSeverally directly send to printing drive module to print described adjustment parameter.
Fig. 5 illustrates according to a specific embodiment of the present invention, judges described literary composition to be printedWhether file data needs the flow chart of adjusting, and it is based on pre-print paper data and document to be printedData judge. Particularly, first perform step S1031, aobvious with the form stack of windowShow described pre-print paper data and described document data to be printed. More specifically, described pre-Print paper data and described document data to be printed are superimposed upon in a preview interface successively, described pre-Look at interface based on described the second application program generation. In a preference, described the second application journeyOrder receives after " printing " instruction that user assigns in the first application program, first call operationInterface function StretchBlt () in system application DLL API is by described document to be printedData are illustrated in the form of window in the preview interface of ejection, as shown in Figure 7, and when user clicksWhen " print position adjustment " option in described preview interface, described the second application program again based onDescribed StretchBlt () function by the pre-print paper data in operating system equally with the form of windowBe presented in described preview interface.
Further, described the second application program is by regulating document data to be printed and pre-printing paperNumber according to the show window figure layer transparency with guarantee document data to be printed described in Overlapping display withAnd pre-print paper data at present layer data image can not covered by upper layer data image, as Fig. 8Shown in, described the second application program includes pre-printing paper number by regulating in described preview interfaceAccording to the transparency of window attribute, by translucent the described window that includes pre-print paper dataChange, thereby make described pre-print paper data and the described document data to be printed can be irrelevantDisturb ground Overlapping display in described preview interface.
Then perform step S1032, reception user instruction to determine described document data to be printed isNo needs adjusted. Particularly, described user instruction comprises that user adjusts described document data to be printedControl instruction. More specifically, described control instruction comprises that user moves described document to be printedThe command information of data. Further, described the second application program is raw based on described control instructionBecome described adjustment parameter. In a preference, described the second application program thinks that user moves instituteThe action of stating document data to be printed is to have sent control instruction to it, and for example, user is describedThe mode moving by mouse drag or keyboard direction in preview interface is by described document to be printedData mobile is clicked " printing " option to desired locations, and described the second application program will moveAfter document data to be printed with respect to the position offset of former document data to be printed as describedAdjust parameter.
Change in example Overlapping display successively described in described step S1031 at one of the present embodimentPreview step can replace with described pre-print paper data and described document data to be printedBe simultaneously displayed in described preview interface, user clicks " printing " in described the first application programAfter option, described the second application program shows described to be printed in the preview interface of its ejection simultaneouslyDocument data and pre-display window corresponding to print paper data, it will be appreciated by those skilled in the art thatCompared with technical scheme described in above-mentioned steps S1031, the routine described technical scheme of this variation preferablyDefault user is expected the printing in described pre-print paper data to described document data to be printedPreview is carried out in position, for the step that user has saved extra confirmation, is conducive to user and experiences.
In another variation example of the present embodiment, described step S1031 and described stepBetween S1032, also comprise step " in a terminal with described in window form Overlapping display in advance printPaper data and described document data to be printed, wherein, described terminal and described printer phaseAssociated ". For example, described operating system can by described pre-print paper data and described in wait beatPrinted text file data is being in a wireless local with window form Overlapping display together with described printerIn arbitrary terminal in net, it will be appreciated by those skilled in the art that with described in above-mentioned steps S1031Technical scheme is compared, and the routine described technical scheme of this variation allows no longer office of described Overlapping display resultBe limited to the user that can only be currently located at printer periphery and browse to, by the routine described skill of this variationArt scheme, those are current can long-rangely not print printer equally the user of printer peripheryOperation is controlled, and for example, assistant is in printer operation and to need boss to be confirmed whether passableFormal printing, assistant can be by printer by document data to be printed and pre-printing paper numberAccording to the show the effect of window Overlapping display with wireless way for transmitting to boss's mobile phone, by bossOn mobile phone, be confirmed whether to print. Further, described in this variation example, be associated with terminalPrinter also replaceable be the processing terminal at printing drive module place, it equally can be based onLong-distance user's instruction realizes printing.
Further, described terminal is associated with the mode of described printer based on wire/wireless.Wherein, described wired mode comprises based on modes such as optical fiber, cable, data wires described terminalBe associated with described printer; Described wireless mode comprise WLAN, bluetooth, infrared ray,The mode such as ZigBee, wireless Internet is associated described terminal with described printer. More enter oneStep ground, described terminal comprises mobile terminal and fixed terminal, wherein said mobile terminal comprises handMachine, IPAD, notebook computer etc.; Described fixed terminal comprises computer, has demonstration meritThe processing terminal of energy etc.
In another variation example of the present embodiment, receiving step described in described step S1032Also comprise that " reception user adjusts the indication information of described document data to be printed, described indication informationDetermine that described document data to be printed needs to adjust ", for example, user is by observing described preview circleThe Overlay of document data to be printed and pre-print paper data on face, judgement need to be treated describedPrinted document data are adjusted, and " adjustment " option on clicking operation interface is to described secondApplication program sends the indication information of confirming adjustment, and described the second application program receives described instructionAfter information, judge that based on computer identification module described document data to be printed is with respect to pre-printing paperOpen the side-play amount of data and generate and adjust parameter.
Further, described the second application program is called described computer based on user's indication informationIdentification module is adjusted described document data to be printed, automatically generates and adjusts parameter, abilityField technique personnel understand, when user does well outside or shows by small screen device previews such as mobile phonesWhile showing window, because the reasons such as operation inconvenience cannot pull or the mode such as keyboard input by clickDocument data to be printed is moved to the position that meets user's expection, now user only needs to click" adjustment " option is given the second application program by adjustment action and is completed, and user is by previewFolding of the document data to be printed that the second application program adjustment is upgraded afterwards and pre-print paper dataWhat add that effect can be simple and convenient knows that this adjusts result and whether meet user's expection, if thisAdjustment result meets the adjustment parameter producing when user's expection is adjusted this and sends to printingDriver module; If this adjustment result does not meet user and expects that user can click " adjustment " againOption re-starts adjustment, or again by modes such as click pull directly to described application programSending controling instruction, described control instruction comprises user's mobile document to be printed in preview interfaceThe adjustment parameter that data produce.
It will be appreciated by those skilled in the art that described in the present embodiment document data to be printed and pre-printing paperThe print result of opening data shows the skill of user's preview before formal printing with window form stackArt scheme makes user before confirming to print, to get information about print result and whether meet userExpection, is conducive to user by the display mode of translucentization of display window of pre-print paper data and seesExamine the position deviation situation of pre-print paper data and document data to be printed, this is prior art instituteThe technical scheme not adopting, can effectively reduce repeating time of user's printing-adjustment print positionNumber. Further, described the second application program can also be by document data to be printed with translucent windowThe form of mouth shows, and the form demonstration with common window by pre-print paper data, these also canTo be selected to produce by User Defined, this does not affect technology contents of the present invention.
Fig. 6 illustrates according to another detailed description of the invention of the present invention, judges described to be printedWhether document data needs the flow chart of adjusting, and it is based on pre-print paper data and literary composition to be printedFile data judges. Particularly, first perform step S1033, judge described literary composition to be printedWhether can displaying contents overlapping with described pre-print paper data of file data. More specifically, instituteState excessive effects and comprise the overlapping of word and word, image and image or word and image. OneIn individual preference, described computer identification module can displaying contents based on described pre-print paper dataAnd described document data to be printed location parameter separately judges that whether both are overlapping, as shown in Figure 9,For example, described pre-print paper data can displaying contents in a certain line position in described pre-print paper7cm 18cm place extremely from left to right from left to right, and apart from described pre-print paper upper edge 20cm, described meterWhether calculation machine identification module judges in described document data to be printed in phase based on above-mentioned location parameterIn co-located, also there is displaying contents, if described document data to be printed and described pre-print paper dataCan displaying contents overlapping, the judged result of described step S1033 is sure; Otherwise,The judged result of described step S1033 negates. Further, if described step S1033Judged result is sure, next enters step S1034 and carries out; If described step S1033Judged result negate, i.e. described document data to be printed and described pre-print paper dataCan displaying contents not overlapping, next enter step S1035 and carry out.
Preferably, in described step S1034, described computer identification module is based on literary composition to be printedFile data determines and adjusts parameter with the overlapping region of pre-print paper data, taking both no longer overlapping asAccurate. In a preference, described computer identification module arrives described adjustment parameter overall applicabilityIn all data of described document data to be printed, for example, through judging described number of files to be printedThe overlapping 3cm of the 4th row that can displaying contents according to the 3rd row and described pre-print paper data, described inComputer identification module moves/moves down 3cm on the whole by described document data to be printed. Preferably, instituteState computer identification module simulates described document data to be printed based on adjusting parameter at every turnAfter adjustment, all repeat once described step S1033, judge the literary composition to be printed after described adjustmentFile data whether with described pre-print paper document can displaying contents overlaid, if overlapping, continueContinuous execution step S1034 adjusts described document data to be printed, until described literary composition to be printedTill file data and described pre-print paper data are can displaying contents no longer overlapping.
Preferably, in described step S1035, the further judging part of described computer identification modulePoint described document data to be printed whether outside described pre-print paper data area, for example,In legend shown in Figure 10, although described document data to be printed not with described pre-printing paper numberAccording to can displaying contents overlapping, but described document data to be printed some exceeded pre-printing paperOpen the data area of data, so still need to adjust the now judgement of described step S1035Result is sure; Otherwise the judged result of described step S1035 negates. FurtherNext ground, if the judged result of described step S1035 is sure, enter step S1036Carry out; If the judged result of described step S1035 negates, i.e. described document data to be printedCan displaying contents not overlapping with described pre-print paper data, do not have again arbitrary part to exceed in advance and beatPrint the data area of paper data, next enter step S1037 and carry out.
Preferably, in described step S1036, described in described computer identification module is definite, wait to beatPrinted text file data needs to adjust. Correspondingly, now described application program is obtained described document to be printedData are with respect to offset distance and the offset direction of pre-print paper data area, and preferably by instituteState the opposite direction of offset distance and described offset direction as described adjustment parameter.
Preferably, in described step S1037, described in described computer identification module is definite, wait to beatPrinted text file data does not need to adjust. Correspondingly, described printing drive module is by described document to be printedData directly send to printer to print operation after being converted into printable data.
Further, set in advance acquiescence at computer identification module described in described step S1034Adjust direction, if document data to be printed and described pre-print paper data after this adjustment can showThe overlapping region that shows content goes up not down, and the opposite direction of adjusting direction to described acquiescence is again with doubleAdjust the distance of parameter and carry out secondary adjustment, it will be appreciated by those skilled in the art that for above-mentioned stepsDescribed in S1034, determine based on overlapping judged result the technical scheme of adjusting, to described overlappingThe adjustment in region comprises the adjustment feasible scheme of upper and lower, left and right four direction, and it is right to needDescribed these 4 the adjustment results of adjusting feasible scheme judge, choose wherein optimum adjustmentScheme is as described adjustment parameter. In a preference, described computer identification module is based on instituteState document data to be printed and paper frontier distance and set acquiescence adjustment direction, described in it is preferably incited somebody to actionDocument data to be printed moves adjustment to that larger direction of frontier distance.
Further, the document data to be printed after described adjustment still with described pre-print paper dataBe presented in preview interface with stacking pattern, judge whether to meet user's expection by user, if userConfirm that meeting expection clicks " printing " button, described the second application program will be adjusted parameter and sendGive printing drive module; If user is still unsatisfied with and clicks " adjustment " button described adjustment result,Described computer identification module is adjusted described document data to be printed again. Non-excellent at oneSelect in example, user also can not adjust to its feedback by described the second application program of instruction is set early stageDocument data to be printed after whole, but directly send to printing drive module to print operation,Save period of reservation of number.
One at the present embodiment changes in example, the identification of computer described in described step S1033 mouldPiece based on a figure layer coverage mode judge described document data to be printed whether with described pre-print paperData can displaying contents overlapping, it will be appreciated by those skilled in the art that for described number of files to be printedAccording to can the partly overlapping situation of displaying contents with described pre-print paper data, pass through above-mentioned stepsLocation parameter described in S1033 simply judge described document data to be printed whether with described pre-beatingPrinting paper data can the overlapping technical scheme of displaying contents there is deviation possibly, for example, beats in advancePrinting paper data is having a line can displaying contents apart from 10cm place, upper edge, and document data to be printedThere iing a line document data to be printed apart from 9.5cm place, upper edge, if only based on described location parameterJudge and be easy to occur erroneous judgement. This variation example judges described to be printed by figure layer soverlay techniqueIn the figure layer of document data and the each self-forming of described pre-print paper data, whether there is a side to coverThe other side's non-blank-white figure layer region, it will be appreciated by those skilled in the art that described document data to be printed and instituteState pre-print paper data and be finally all converted to image format and be presented in described preview interface,Compared with technical scheme described in above-mentioned steps S1033, the routine described technical scheme of this variation is by figure layerRelatively can realize the accurate deciphering to overlapping judgement, reduce False Rate, improve computer knowledgeOther module is the degree of accuracy of identification automatically.
In another variation example of the present embodiment, described step S1035 and described step S1036Can omit, described computer identification module is at definite described document data to be printed and described pre-After print paper data can displaying contents not overlapping, directly determine described document data to be printed notNeed to adjust, described printing drive module can directly be converted into described document data to be printed can beatPrinting is according to sending to printer to print.
It will be appreciated by those skilled in the art that with above-mentioned embodiment illustrated in fig. 5 compared with, described in the present embodimentThe mode that technical scheme is preferably identified automatically by computer identification module judges described to be printedWhether the position of document data in described pre-print paper data needs to adjust, and passes through the present embodimentDescribed technical scheme, can effectively get rid of document data to be printed and can show with pre-print paper dataContent is overlapping and/or exceed the situation outside pre-print paper data area, has saved and has needed user to graspStep and the time done, improve printing effect. Further, those skilled in the art can also be byAbove-mentioned embodiment illustrated in fig. 5 described in technical scheme be combined and make with technical scheme described in the present embodimentWith, for example, after automatically treating printed document data and adjust based on described computer identification module,Still document data to be printed and pre-print paper data described in Overlapping display in described preview interface,If user thinks that current automatic adjustment result does not meet its expection, directly moves in preview interfaceDescribed document data to be printed produces adjusts parameter, optimizes printing effect, makes print result maximumMeet to limit user's expection.
It will be appreciated by those skilled in the art that above-mentioned Fig. 3 to embodiment illustrated in fig. 6 one commonChange in example, described the second application program also allows user to carry out described document data to be printedOptimization process, as shown in figure 12, user except can printing position adjustment operation,Also can adjust contrast, the brightness etc. of described document data to be printed, or treat and beatPrinted text file data carries out the image processing such as cutting, rotation. Further, when user clicks contrastWhen the optimization process options such as degree adjustment, brightness adjustment, described the second application program can not called instituteState pre-print paper data, described preview interface preferably shows through image after treatment to be printedDocument data, only has in the time that user clicks " print position adjustment " option, described the second applicationProgram just can be transferred described pre-print paper data and Overlapping display supplies in described preview interfaceUser browses, and such design hommization more can provide good user to experience to user.
Figure 13 illustrates a third embodiment in accordance with the invention, a kind of picture that is applicable to pre-printing paperPicture is adjusted the structure chart of control device, and it is treated printed document data for printer and adjustsSo that described document data to be printed is printed on described pre-printing paper exactly. Particularly, existIn the present embodiment, described control device 4 comprises pre-print paper data acquisition facility 41, its forObtain pre-print paper data; Document data acquisition device 42 to be printed, it is to be printed for obtainingDocument data; The first judgment means 43, its for more described pre-print paper data and described inDocument data to be printed also judges whether described document data to be printed needs to adjust; Adjustment parameter is rawApparatus for converting 44, it for judging based on described first in the time that described document data to be printed need to be adjustedThe judged result of device generates adjusts parameter; And print processing device 45, it is for based on describedDocument data to be printed and described adjustment parameter print. In a preference, described controlDevice 4 processed is based on described pre-print paper data acquisition facility 41 and described number of files to be printedObtain after corresponding pre-print paper data and document data to be printed according to acquisition device 42, adjustJudge that by described the first judgment means 43 described document data to be printed is with respect to pre-printing paper numberAccording to whether needing to adjust, if described the first judgment means 43 determines that described document data to be printed needsAdjust, call described adjustment parameter generating apparatus 44 and described print processing device 45 carries outRespective handling; If described the first judgment means 43 determines that described document data to be printed is without adjustment,Directly calling printing drive module is converted into described document data to be printed after printable dataSend to printer to print. Wherein, described pre-print paper data comprise current print paperOn in advance print word, image or both combinations; Described document data to be printed comprises to be waited to beatThe data of printed text shelves printable area in certain paper size distribute.
Further, described pre-print paper data acquisition facility 41 based on image acquisition equipment orThe modes such as system introducing are obtained described pre-print paper data, and wherein, described system introducing comprises thisThe modes such as ground file importing, network importing. Further, described document data to be printed obtainsDevice 42 DEVMODE structures based in printing drive module and GDI module,GDIINFO structure obtains described document data to be printed.
Further, described adjustment parameter comprises print position adjustment parameter, correspondingly, and described tuneWhole parameter generating apparatus 44 obtains described adjustment parameter based on user's operation, for example, user is movedThe displacement producing behind document data to be printed position described in moving mouse drag is as described adjustment parameter;Or user is manually inputted or confirms that instruction is as described adjustment parameter. Further, described inThe adjustment parameter generating apparatus 44 also mode based on specifying datum line is determined described adjustment parameter.
Further, described print processing device 45 is treated printed document based on printing drive moduleData are carried out translation processing, by the original printing drive module of printer based on described adjustment parameter pairDocument data to be printed carries out translation processing, thereby realizes the print position tune of document data to be printedWhole. Further, described printing drive module based on described adjustment parameter to described literary composition to be printedFile data carry out translation processing before/, also described document data to be printed is transformed simultaneously/afterwardsFor printable data and send to printer to print.
Preferably, described the first judgment means 43 comprises adjusts previewing module 431, and it is for windowPre-print paper data and described document data to be printed described in the form Overlapping display of mouth; AndThe second judgment means 432, it for receiving user instruction to determine described document data to be printed isNo needs adjusted. Particularly, described adjustment previewing module 431 is compiled based on operating system application programInterface function StretchBlt () in journey interface API by described pre-print paper data and described in treatPrinted document data are illustrated in the preview interface of ejection with window form stack. More specifically,Described user instruction comprises that user adjusts the control instruction of described document data to be printed. Excellent at oneSelect in example, user can send instruction to regulate document to be printed to described preview adjusting module 431Data and pre-print paper data display window figure layer transparency, guarantee to beat waiting described in Overlapping displayLayer data image can be by upper layer data image at present for printed text file data and pre-print paper dataInstitute covers.
Preferably, described the second judgment means 432 comprises control instruction receiving system 4321, its useAdjust the control instruction of described document data to be printed in reception user, correspondingly, described adjustment ginsengNumber generating apparatus 44 generates described adjustment parameter based on described control instruction. Particularly, described controlInstruction processed comprises that user moves the command information of described document data to be printed, and for example, user is in instituteState the mode moving by mouse drag or keyboard direction in preview interface by described literary composition to be printedFile data is clicked " printing " option, described adjustment parameter generating apparatus after moving to desired locations44 by the document data to be printed after movement the position offset with respect to former document data to be printedAs described adjustment parameter.
Change in example at one of the present embodiment, described control instruction receiving system 4321 can be byReplace with indication information receiving system 4322, it adjusts described number of files to be printed for receiving userAccording to indication information, described indication information determine described document data to be printed need adjust, for example,User is folded by document data to be printed and pre-print paper data in the described preview interface of observationAdd effect, judgement need to be adjusted described document data to be printed, to described indication informationReceiving system 4322 sends the indication information of confirming adjustment, described indication information receiving system 4322Based on described indication information, call adjustment parameter generating apparatus 44 and judge described number of files to be printedAdjust parameter according to the side-play amount with respect to pre-print paper data generation. Further, described tuneWhole parameter generating apparatus 44 calls computer identification module to carry out described document data to be printedAdjust, automatically generate and adjust parameter.
In another variation example of the present embodiment, described preview adjusting module 431 can be " oneIn terminal with pre-print paper data and described literary composition to be printed described in window form Overlapping displayFile data, wherein, described terminal is associated with described printer ", for example, described preview is adjustedMould preparation piece 431 can be by described pre-print paper data and described document data to be printed with windowForm Overlapping display is being in together in the arbitrary terminal in a WLAN with described printer,Even if making that user is current equally can be by not being associated with described printer around printerTerminal carry out preview operation.
Change in example described adjustment previewing module 431 and described the at another of the present embodimentTwo judgment means 432 can be replaced by the 3rd judgment means 433, and it waits to beat described in judgingWhether can displaying contents overlapping with described pre-print paper data of printed text file data, correspondingly, ifThe can displaying contents overlapping of described document data to be printed and described pre-print paper data determinedDescribed document data to be printed needs to adjust. In a preference, described the 3rd judgment means 433Call described computer identification module can displaying contents based on described pre-print paper data and described inDocument data to be printed location parameter separately judges that whether both are overlapping, if the identification of described computerModule is determined described document data to be printed and described pre-print paper data overlap, based on bothOverlapping region determine and adjust parameter, with both overlapping being as the criterion no longer.
Further, described the 3rd judgment means 433 also comprises the 4th judgment means, and it is for working asWhen described document data to be printed and described pre-print paper data can displaying contents not overlapping, enterDescribed in one step judgment part document data to be printed whether in described pre-print paper data area itOutward, for example, although described document data to be printed not with the showing of described pre-print paper dataContent is overlapping, but described document data to be printed some exceeded the number of pre-print paper dataAccording to region, so still need to adjust, now described the 4th judgment means is determined described to be printedDocument data needs to adjust, and described control device 4 calls described computer identification module and generates instituteState adjustment parameter.
In another variation example of the present embodiment, described print processing device 45 is based on printingPosition adjusting type modules is treated printed document data and is carried out translation processing, those skilled in the art's reasonSeparate, with above-mentioned embodiment illustrated in fig. 13 in by the original printing drive module of printer treat beatPrinted text file data carries out the technical scheme of translation processing to be compared, and this variation example is by independent printingPosition adjusting type modules realizes to be treated printed document data and carries out translation processing, has improved described beatingThe processing speed of seal machine treating apparatus 45 to described document data to be printed, is conducive to described controlThe accurate location of unit responsibilities in device 4 processed.
Further, printing drive module or described the beating in described print processing device 45Print position adjusting type modules and generate after printer print position adjustment order based on described adjustment parameter,Send in the lump printer with described printable data, by described printer based on described printerThe Loading position of printer is adjusted in print position adjustment order, thereby realize, described waiting is beatenThe adjustment of printed text file data print position.
Above specific embodiments of the invention are described. It will be appreciated that the present inventionBe not limited to above-mentioned specific implementations, those skilled in the art can be at the model of claimIn enclosing, make various distortion or amendment, this does not affect flesh and blood of the present invention.

Claims (11)

1. the portrait that is applicable to pre-printing paper is adjusted a control method, treats and beats for printerIt is described pre-that printed text file data adjusts to make described document data to be printed to print to exactlyOn printing paper, it is characterized in that, comprise the steps:
A. obtain pre-print paper data;
B. obtain document data to be printed;
C. described in described pre-print paper data and described document data judgement to be printed, treatWhether printed document data need to adjust;
If d. described document data to be printed need adjust, based on described pre-print paper data withAnd described document data to be printed generates adjustment parameter; And
E. print based on described document data to be printed and described adjustment parameter.
2. control method according to claim 1, is characterized in that, described steps d itAfter comprise the steps:
F. described pre-print paper data and described adjustment parameter are stored adaptably.
3. control method according to claim 1 and 2, is characterized in that, described step cComprise the steps:
C1. with pre-print paper data and described literary composition to be printed described in the form Overlapping display of windowFile data;
C2. receive user instruction to determine whether described document data to be printed needs to adjust.
4. control method according to claim 3, is characterized in that, described step c2 alsoAny in comprising the steps:
C21. receive the control instruction that user adjusts described document data to be printed, correspondingly, in instituteState in steps d and generate described adjustment parameter based on described control instruction; Or
C22. receive the indication information that user adjusts described document data to be printed, described indication informationDetermine that described document data to be printed needs to adjust.
5. control method according to claim 3, is characterized in that, described step c1 bagDraw together following steps:
C11. in a terminal with pre-print paper data described in the form Overlapping display of window andDescribed document data to be printed, wherein, described terminal is associated with described printer.
6. control method according to claim 1 and 2, is characterized in that, described step cComprise the steps:
C1 '. judge described document data to be printed whether with the showing of described pre-print paper dataShow that content is overlapping;
C2 ' if. described document data to be printed and described pre-print paper data can displaying contentsNot overlapping, further described in judgment part document data to be printed whether at described pre-print paperOutside data area;
C3 '. described in determining based on the judged result of described step c1 ' and/or described step c2 ', wait to beatPrinted text file data needs to adjust.
7. according to the control method described in claim 1 or 2 or 4 or 5 or 6, it is characterized in that,Any during described step a comprises the steps:
A1. obtain described pre-print paper data based on image acquisition equipment; Or
A1 '. obtain described pre-print paper data based on system introducing.
8. the portrait that is applicable to pre-printing paper is adjusted a control device, treats and beats for printerIt is described pre-that printed text file data adjusts to make described document data to be printed to print to exactlyOn printing paper, it is characterized in that, comprise as lower device:
Pre-print paper acquisition device, it is for obtaining pre-print paper data;
Document data acquisition device to be printed, it is for obtaining document data to be printed;
The first judgment means, it is for more described pre-print paper data and described literary composition to be printedFile data also judges whether described document data to be printed needs to adjust;
Adjust parameter generating apparatus, its in the time that described document data to be printed need to be adjusted based onThe judged result of described the first judgment means generates adjusts parameter; And
Print processing device, it is for based on described document data to be printed and described adjustment parameterPrint.
9. control device according to claim 8, is characterized in that, described the first judgement dressPut and comprise as lower device:
Adjust previewing module, it is for pre-print paper data described in the form Overlapping display with windowAnd described document data to be printed; And
The second judgment means, it for receiving user instruction to determine described document data to be printed isNo needs adjusted.
10. control device according to claim 9, is characterized in that, described the second judgementDevice also comprises as any in lower device:
Control instruction receiving system, it adjusts the control of described document data to be printed for receiving userInstruction processed, correspondingly, described adjustment parameter generating apparatus generates described tune based on described control instructionWhole parameter; Or
Indication information receiving system, it adjusts the finger of described document data to be printed for receiving userShow information, described indication information determines that described document data to be printed needs to adjust.
11. control device according to claim 8, is characterized in that, described the first judgementDevice comprises as lower device:
The 3rd judgment means, its for judge described document data to be printed whether with described pre-printingPaper data can displaying contents overlapping, correspondingly, if described document data to be printed and described pre-Can needing to adjust by the overlapping definite described document data to be printed of displaying contents of print paper data.
CN201510973935.2A 2015-12-21 2015-12-21 Portrait adjustment control method and apparatus suitable for preprinted paper Pending CN105607879A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510973935.2A CN105607879A (en) 2015-12-21 2015-12-21 Portrait adjustment control method and apparatus suitable for preprinted paper
PCT/CN2016/108507 WO2017107760A1 (en) 2015-12-21 2016-12-05 Method and device suitable for controlling picture adjustment for preprinted paper

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510973935.2A CN105607879A (en) 2015-12-21 2015-12-21 Portrait adjustment control method and apparatus suitable for preprinted paper

Publications (1)

Publication Number Publication Date
CN105607879A true CN105607879A (en) 2016-05-25

Family

ID=55987839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510973935.2A Pending CN105607879A (en) 2015-12-21 2015-12-21 Portrait adjustment control method and apparatus suitable for preprinted paper

Country Status (2)

Country Link
CN (1) CN105607879A (en)
WO (1) WO2017107760A1 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371777A (en) * 2016-08-25 2017-02-01 广州御银科技股份有限公司 Form printing system
WO2017107760A1 (en) * 2015-12-21 2017-06-29 珠海赛纳打印科技股份有限公司 Method and device suitable for controlling picture adjustment for preprinted paper
CN107766011A (en) * 2017-09-22 2018-03-06 北京北信源软件股份有限公司 Print control program, apparatus and system
CN107943425A (en) * 2016-10-13 2018-04-20 珠海赛纳打印科技股份有限公司 It is imaged control media property edit methods and device
CN108153499A (en) * 2017-12-25 2018-06-12 联想(北京)有限公司 Image presentation method and device
CN108688349A (en) * 2017-03-30 2018-10-23 兄弟工业株式会社 Printing device
CN108769449A (en) * 2018-03-26 2018-11-06 虹光精密工业股份有限公司 Image output device, multifunctional transaction machine, image processing module and related image output method
CN108964889A (en) * 2018-05-30 2018-12-07 广州江南科友科技股份有限公司 A kind of key envelope format graphics edit methods and device
CN109733079A (en) * 2018-12-28 2019-05-10 武汉朋谊科技有限公司 Packing box antiforging printing method
CN110221790A (en) * 2019-05-28 2019-09-10 迈克医疗电子有限公司 Universal printing method and device, analysis instrument and storage medium
CN110221787A (en) * 2018-03-02 2019-09-10 株式会社理光 Print excursion adjusting device and print system
CN110442311A (en) * 2019-06-14 2019-11-12 厦门汉印电子技术有限公司 A kind of adaptive Method of printing, device and printer
CN110978822A (en) * 2019-11-19 2020-04-10 广州市三环永新科技有限公司 Lottery printing method, lottery reader, lottery printing system and storage medium
CN111596869A (en) * 2020-04-29 2020-08-28 厦门汉印电子技术有限公司 Printing data typesetting method and device, printer and storage medium
CN111629117A (en) * 2020-06-01 2020-09-04 珠海奔图电子有限公司 Image preview processing method, electronic device and computer readable storage medium
CN114347668A (en) * 2022-01-10 2022-04-15 重庆品胜科技有限公司 Method and system for simplifying printing position adjustment
CN117170600A (en) * 2023-11-02 2023-12-05 中科方德软件有限公司 Printing processing method, system, equipment and medium of Linux system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000354157A (en) * 1999-06-14 2000-12-19 Canon Inc Image processing unit, image processing method and storage medium
CN1658088A (en) * 2004-02-20 2005-08-24 夏普株式会社 Image forming apparatus
KR20070051030A (en) * 2005-11-14 2007-05-17 삼성전자주식회사 System and method for adjusting printing position on printing paper with preprinted letterhead
CN101337475A (en) * 2007-07-06 2009-01-07 诚研科技股份有限公司 Printing device and method thereof
CN103179309A (en) * 2011-12-20 2013-06-26 佳能株式会社 Image processing apparatus, method for controlling image processing apparatus
CN104999809A (en) * 2015-07-20 2015-10-28 深圳市索登科技有限公司 Post-press processing adaptive adjusting method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589666A (en) * 2014-11-13 2016-05-18 王者蓝 Method for printing with template based on original content of paper
CN105607879A (en) * 2015-12-21 2016-05-25 珠海奔图电子有限公司 Portrait adjustment control method and apparatus suitable for preprinted paper

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000354157A (en) * 1999-06-14 2000-12-19 Canon Inc Image processing unit, image processing method and storage medium
CN1658088A (en) * 2004-02-20 2005-08-24 夏普株式会社 Image forming apparatus
KR20070051030A (en) * 2005-11-14 2007-05-17 삼성전자주식회사 System and method for adjusting printing position on printing paper with preprinted letterhead
CN101337475A (en) * 2007-07-06 2009-01-07 诚研科技股份有限公司 Printing device and method thereof
CN103179309A (en) * 2011-12-20 2013-06-26 佳能株式会社 Image processing apparatus, method for controlling image processing apparatus
CN104999809A (en) * 2015-07-20 2015-10-28 深圳市索登科技有限公司 Post-press processing adaptive adjusting method and system

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017107760A1 (en) * 2015-12-21 2017-06-29 珠海赛纳打印科技股份有限公司 Method and device suitable for controlling picture adjustment for preprinted paper
CN106371777A (en) * 2016-08-25 2017-02-01 广州御银科技股份有限公司 Form printing system
CN107943425A (en) * 2016-10-13 2018-04-20 珠海赛纳打印科技股份有限公司 It is imaged control media property edit methods and device
CN108688349A (en) * 2017-03-30 2018-10-23 兄弟工业株式会社 Printing device
CN108688349B (en) * 2017-03-30 2021-06-25 兄弟工业株式会社 Printing apparatus
CN107766011A (en) * 2017-09-22 2018-03-06 北京北信源软件股份有限公司 Print control program, apparatus and system
CN107766011B (en) * 2017-09-22 2020-11-13 北京北信源软件股份有限公司 Printing control method, device and system
CN108153499A (en) * 2017-12-25 2018-06-12 联想(北京)有限公司 Image presentation method and device
CN110221787A (en) * 2018-03-02 2019-09-10 株式会社理光 Print excursion adjusting device and print system
US10506118B2 (en) 2018-03-26 2019-12-10 Avision Inc. Image output device, multi-function apparatus, image processing module and related image output method
CN108769449A (en) * 2018-03-26 2018-11-06 虹光精密工业股份有限公司 Image output device, multifunctional transaction machine, image processing module and related image output method
CN108964889A (en) * 2018-05-30 2018-12-07 广州江南科友科技股份有限公司 A kind of key envelope format graphics edit methods and device
CN109733079A (en) * 2018-12-28 2019-05-10 武汉朋谊科技有限公司 Packing box antiforging printing method
CN110221790B (en) * 2019-05-28 2023-02-21 迈克医疗电子有限公司 Universal printing method and apparatus, analyzer, and storage medium
CN110221790A (en) * 2019-05-28 2019-09-10 迈克医疗电子有限公司 Universal printing method and device, analysis instrument and storage medium
CN110442311A (en) * 2019-06-14 2019-11-12 厦门汉印电子技术有限公司 A kind of adaptive Method of printing, device and printer
CN110978822A (en) * 2019-11-19 2020-04-10 广州市三环永新科技有限公司 Lottery printing method, lottery reader, lottery printing system and storage medium
CN111596869A (en) * 2020-04-29 2020-08-28 厦门汉印电子技术有限公司 Printing data typesetting method and device, printer and storage medium
CN111629117A (en) * 2020-06-01 2020-09-04 珠海奔图电子有限公司 Image preview processing method, electronic device and computer readable storage medium
CN114347668B (en) * 2022-01-10 2023-01-10 重庆品胜科技有限公司 Method and system for simplifying printing position adjustment
CN114347668A (en) * 2022-01-10 2022-04-15 重庆品胜科技有限公司 Method and system for simplifying printing position adjustment
CN117170600A (en) * 2023-11-02 2023-12-05 中科方德软件有限公司 Printing processing method, system, equipment and medium of Linux system
CN117170600B (en) * 2023-11-02 2024-02-23 中科方德软件有限公司 Printing processing method, system, equipment and medium of Linux system

Also Published As

Publication number Publication date
WO2017107760A1 (en) 2017-06-29
WO2017107760A9 (en) 2017-10-05

Similar Documents

Publication Publication Date Title
CN105607879A (en) Portrait adjustment control method and apparatus suitable for preprinted paper
JP3962721B2 (en) Document processing apparatus and document processing method
US20060245005A1 (en) System for language translation of documents, and methods
CN108132762B (en) Image processing apparatus and image forming apparatus
US9075555B2 (en) Print system, image forming apparatus, coordination method upon printing, and non-transitory computer-readable recording medium encoded with coordination program upon printing
US20110170135A1 (en) Information processing apparatus, information processing apparatus control method, and storage medium
US20110261378A1 (en) Printing processing system, printing processing method, and image forming apparatus
KR100851100B1 (en) Information processing apparatus and information processing method
JP5605004B2 (en) Manga production support system and program
CN104683633A (en) Image Processing System, Information Processing Apparatus, And Recordable Medium
JP2016015115A (en) Information processing device, information processing method, and recording medium
CN103366114B (en) Information processor and its control method
JP2009288450A (en) Printed matter production support system, and color correction method for printing original
US9134938B2 (en) Information processing apparatus and method for setting printing information
EP1605683B1 (en) Image forming apparatus and image forming method for making image output setting easily
CN104484318A (en) Self-service form filling machine capable of quickly customizing receipts on site and self-service form filling method
US9224076B2 (en) Image forming apparatus, image formation system, and method for controlling image forming apparatus
US10498921B2 (en) Electronic imprinting device that affixes imprint data to document data
CN105959509B (en) The method and device of print is automatically added water while duplicating
US8213043B2 (en) Printing apparatus, printing apparatus control method, printing apparatus control program, and printing system
JP6617448B2 (en) Mobile terminal and program
JP2020025218A (en) Image processing apparatus and image processing program
JP6624037B2 (en) Image forming device
US20240094962A1 (en) Image processing device system, image code output method, a computer-readable non-transitory recording medium
CN106980604A (en) Treaty content collates device

Legal Events

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

Application publication date: 20160525