WO2017107760A1 - Method and device suitable for controlling picture adjustment for preprinted paper - Google Patents

Method and device suitable for controlling picture adjustment for preprinted paper Download PDF

Info

Publication number
WO2017107760A1
WO2017107760A1 PCT/CN2016/108507 CN2016108507W WO2017107760A1 WO 2017107760 A1 WO2017107760 A1 WO 2017107760A1 CN 2016108507 W CN2016108507 W CN 2016108507W WO 2017107760 A1 WO2017107760 A1 WO 2017107760A1
Authority
WO
WIPO (PCT)
Prior art keywords
printed
document data
data
paper
document
Prior art date
Application number
PCT/CN2016/108507
Other languages
French (fr)
Chinese (zh)
Other versions
WO2017107760A9 (en
Inventor
王恒
熊丹
Original Assignee
珠海赛纳打印科技股份有限公司
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 珠海赛纳打印科技股份有限公司 filed Critical 珠海赛纳打印科技股份有限公司
Publication of WO2017107760A1 publication Critical patent/WO2017107760A1/en
Publication of WO2017107760A9 publication Critical patent/WO2017107760A9/en

Links

Images

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

Definitions

  • the present invention relates to the technical field of image formation, and in particular to a portrait adjustment control method suitable for preprinted paper and a corresponding control device.
  • preprinted paper refers to a form printed in advance. And/or some information on paper, such as hospital test sheets, bank charge certificates, etc.
  • the hospital prescription example shown in Figure 1 is pre-drawn with a form on a blank sheet and printed with the words "name”, "age” and "prescription" on a specific unit.
  • the single-time computer converts the patient's name, age, and prescription data input by the doctor into the document data to be printed, and the document data to be printed is printed by the printer at the corresponding blank unit of the prescription example table, but this is in advance
  • the method of printing data on the printing paper often has the problem of offset of the printing position, as shown in FIG. 2, wherein the text of the bold portion such as Zhang San, 33 years old, etc. is the data of the document to be printed printed by the printer, which can be clearly It is seen that the data of these documents to be printed are shifted to the "prescription" column of the preprinted paper, which is greatly deviated from the printing effect we actually hope to obtain.
  • the user needs to be able to adjust the document data to be printed on the preprinted paper so that the print position of the document data to be printed on the preprinted paper conforms to the user's expectation.
  • the mainstream solution on the market is to manually adjust the print position on the print driver interface after the user visually observes the print offset.
  • the user needs to Perform a printing operation before adjusting the print position. Observe whether the document data to be printed can be printed on the pre-printed paper according to the printed image effect. If there is a deviation, estimate the corresponding deviation value, and then further print drive. Adjusting the print position of the interface is not only time-consuming and laborious. If the user estimates the error, it may happen that the print position adjustment setting is improperly required to perform multiple adjustments and repeated printing, which is not conducive to the user body. The test seriously wastes the precious time and energy of the user.
  • a portrait adjustment control method suitable for preprinted paper for adjusting a document to be printed in a printer so that the document data to be printed is accurately printed onto the preprinted paper, Including the following steps:
  • step d the following steps are included:
  • the step c comprises the following steps:
  • step c2 further comprises any one of the following steps:
  • C22 Receive indication information that the user adjusts the document data to be printed, where the indication information determines that the document data to be printed needs to be adjusted.
  • the step c1 comprises the following steps:
  • the preprinted paper data and the document data to be printed are superimposed and displayed in the form of a window in a terminal, wherein the terminal is associated with the printer.
  • the step c comprises the following steps:
  • said step a comprises any one of the following steps:
  • an image adjustment control apparatus suitable for preprinted paper for adjusting a document data to be printed in a printer such that the document data to be printed is accurately printed to the preprinted paper On, including the following devices:
  • a preprinted paper acquiring device for acquiring preprinted paper data
  • a document data acquiring device to be printed which is used to acquire document data to be printed
  • a first determining device configured to determine, according to the pre-printed paper data and the document data to be printed, whether the document data to be printed needs to be adjusted;
  • Adjusting parameter generating means for generating an adjustment parameter based on a determination result of the first determining means when the document data to be printed needs to be adjusted
  • a print processing apparatus for printing based on the document data to be printed and the adjustment parameter.
  • the first determining means comprises the following means:
  • a second determining means for receiving a user instruction to determine whether the document data to be printed needs to be adjusted.
  • the second determining means further comprises any one of the following:
  • control instruction receiving device configured to receive a control instruction for the user to adjust the document data to be printed, and correspondingly, the adjustment parameter generating device generates the adjustment parameter based on the control instruction;
  • the indication information receiving device is configured to receive indication information that the user adjusts the document data to be printed, and the indication information determines that the document data to be printed needs to be adjusted.
  • the first determining means comprises the following means:
  • a third determining device configured to determine whether the document data to be printed overlaps with the displayable content of the preprinted paper data, and correspondingly, if the document data to be printed and the displayable content of the preprinted paper data The overlap determines that the document data to be printed needs to be adjusted.
  • the technical content provided by the present invention can effectively solve the technical problem that the user cannot adjust the position of the image to be printed on the preprinted paper before the official printing, thereby bringing a good user experience to the user, not only improving the work efficiency, but also improving the work efficiency.
  • Figure 1 shows a list of prescriptions commonly used in hospitals
  • FIG. 2 is a schematic view showing a print position shift of print data on a preprinted sheet in the prior art
  • Figure 3 is a flow chart showing a method of image adjustment control suitable for preprinted paper according to a first embodiment of the present invention
  • FIG. 4 is a flow chart showing a method of image adjustment control suitable for preprinted paper according to a second embodiment of the present invention.
  • FIG. 5 is a flowchart showing whether the document data to be printed needs to be adjusted according to an embodiment of the present invention
  • FIG. 6 is a flow chart showing whether the document data to be printed needs to be adjusted according to still another embodiment of the present invention.
  • FIG. 7 shows a schematic diagram of a preview interface according to an embodiment of the present invention.
  • FIG. 8 illustrates superimposed display of document data to be printed according to an embodiment of the present invention. And a preview interface diagram after preprinting the paper data;
  • FIG. 9 is a view showing a deviation of document data to be printed from preprinted paper data according to an embodiment of the present invention.
  • FIG. 10 is a view showing a deviation of document data to be printed from preprinted paper data according to another embodiment of the present invention.
  • FIG. 11 illustrates an effect diagram of adjustment based on an alignment reference line in accordance with an embodiment of the present invention
  • FIG. 12 is a schematic diagram showing a preview interface for adding an optimization processing function according to an embodiment of the present invention.
  • Figure 13 is a view showing the configuration of an image adjustment control device suitable for preprinted paper according to a third embodiment of the present invention.
  • the technical solution of the present invention is to provide an adjustment of the printing position of the document data to be printed before the printing operation. s solution.
  • the printing efficiency of the user can be greatly optimized, and at the same time, the printing position accuracy of the document data to be printed on the preprinted paper is effectively improved.
  • it is appropriate to observe or recognize whether the document data to be printed can be printed on the preprinted paper by the preview interface of the preview adjustment module or the automatic recognition function of the computer recognition module before the printing operation is performed. Position, and adjust the position of the document data to be printed based on the observation or recognition result, thereby realizing the adjustment of the print position.
  • FIG. 3 shows a flow chart of a portrait adjustment control method suitable for preprinted paper for adjusting a document to be printed in a printer so that the document data to be printed is accurate according to the first embodiment of the present invention.
  • Printing onto the preprinted paper specifically, first performing step S101 to acquire preprinted paper data.
  • the pre-printed paper data includes pre-printed characters, images, or a combination of both on the current printing paper, for example, the hospital prescription single table shown in FIG.
  • the pre-printed paper data is acquired based on an image acquisition device including a scanner, a camera, and the like.
  • the operating system acquires the pre-printed paper data based on a scanner installed in the printer, the operating system being driven by a print driver
  • the module sends request information for obtaining the pre-printed paper data to the printer and receives feedback information sent by the printer, the feedback information corresponding to the instruction information, including the printer invoking the pre-printed paper data acquired by the scanner scan.
  • the process proceeds to step S102 to acquire document data to be printed.
  • the document data to be printed includes a data distribution of a printable area of a document to be printed on a specific paper size. More specifically, the data distribution is obtained based on the first application layout.
  • the first application is an application (such as word, excel, etc.) that opens the document to be printed, and is used to open the document to be printed and obtain corresponding document data to be printed.
  • the first application is based on a structure variable of a Graphics Device Interface (GDI) module in a device driver interface (DDI), and a print driver module and an operating system perform information transmission.
  • GDI Graphics Device Interface
  • DI device driver interface
  • the document to be printed is typeset.
  • the first application passes the relevant parameters of the document to be printed that are opened by the DEVMODE structure in the GDI module to the print driver module, and then acquires the corresponding variable value of the GDIINFO structure on the operating system. And combining the font attributes set by the user in the first application to perform layout output on the printed document data, wherein the DEVMODE structure includes parameters representing paper size, print resolution, paper length and height, paper type, and the like.
  • the GDIINFO structure is a set of variables including parameters representing a system version of the operating system, basic device information, resolution, printable area, print paper size, font, and text, and some of the GDIINFO structures
  • the variable values are obtained by the print driver module after performing a series of processing (including legality verification, range calculation, unit conversion, etc.) on the relevant parameters transmitted by the first application through the DEVMODE structure.
  • step S103 is performed to determine whether the document data to be printed needs to be adjusted based on the pre-printed paper data and the document data to be printed.
  • the operating system makes a determination based on user instructions. More specifically, the user instruction is generated based on the presentation result of the second application.
  • the second application is configured to display the pre-printed paper data and the to-be-printed document data on a preview interface in a separate or superimposed manner for the user to browse, as shown in FIG. 8.
  • the user determines, by observing, that the to-be-printed document data is based on the pre-printed paper data.
  • step S103 Whether the print position needs to be adjusted, if the document data to be printed needs to be positionally adjusted with respect to the preprinted paper data, the judgment knot of the step S103 If yes, otherwise, the result of the determination in step S103 is negative. Further, if the determination result of the step S103 is affirmative, then proceed to step S104; if the determination result of the step S103 is negative, that is, the document data to be printed is relative to the pre-printed paper data. If no adjustment operation is required, the process proceeds to step S106.
  • the adjustment parameter is generated based on the pre-printed paper data and the document data to be printed.
  • the adjustment parameter is obtained based on the second application calculation.
  • the adjustment parameters include print position adjustment parameters.
  • the user determines, by the above step S103, that the print position of the document data to be printed on the preprinted paper data needs to be adjusted, and then moves the image to be printed by using an input device such as a mouse or a keyboard or manually touching.
  • the second application determines the print position adjustment parameter based on the movement distance calculation of the input device.
  • the second application determines the print position adjustment parameter based on a display window offset value of the document data to be printed after the movement and the document data to be printed before the movement.
  • step S105 is performed to perform printing based on the document data to be printed and the adjustment parameter.
  • the operating system draws a layout of the document data to be printed based on the first application, and sends the layout to the print driver module.
  • the print driver module performs a translation process on the document data to be printed based on the adjustment parameter, and then converts it into printable data and sends it to the printer for printing.
  • printable data is generated based on the document data to be printed.
  • the document data to be printed in this step is determined by the above step S103 to determine that no adjustment operation is required, which means that the document data to be printed can be printed on the appropriate position of the preprinted paper at this time.
  • the operating system sends a layout of the data to be printed by the first application to the print driver module, and the print driver module
  • the image acquiring device in the step S101 communicates with the printer in an external form, and the user scans the pre-printed paper in advance on the image acquiring device before loading the printer into the printer. Waiting for printing in the paper tray, this can also achieve this step to obtain the pre-play
  • the image acquiring device in the step S101 communicates with the printer in an external form, and the user scans the pre-printed paper in advance on the image acquiring device before loading the printer into the printer. Waiting for printing in the paper tray, this can also achieve this step to obtain the pre-play
  • those skilled in the art can also change more embodiments according to actual needs, and details are not described herein.
  • the operating system further acquires the pre-printed paper data according to a system import manner, where the system import includes local file import, network import, and the like, for example, a local folder is pre-stored in the operating system, including Various types of pre-printed paper data, which may be pre-scanned by the user and stored in the local folder, or may be standard version data provided by the pre-printed paper printer.
  • the technical solution for acquiring pre-printed paper data based on the image acquiring device in the above step S101 requires pre-installing a device having an image capturing function in the printer, or by contacting a terminal of the printer or the operating system.
  • the communication image acquisition device acquires the pre-printed paper data.
  • the technical solution of the present variation allows those printers or terminals that do not have the image acquisition function to acquire the pre-printed paper data as well.
  • the user can also store the pre-printed paper data acquired in this step in a storage unit for later use, and those skilled in the art understand that for the same type of pre-printed paper data, the user only needs to obtain the pre-printed paper data once.
  • the acquisition is repeated from the storage unit in the subsequent printing process, thereby eliminating the process of repeatedly acquiring the pre-printed paper data by the operating system before each printing.
  • the earth improves printing efficiency.
  • the storage unit comprises a memory, a database, a file, a server, and the like.
  • the storage unit is installed in the form of hardware in the printer or terminal, or is separately provided and communicates with the printer or terminal in a wired or wireless manner.
  • the storage unit is also software-installable within a printer or operating system, or stored in the cloud and wirelessly communicates with the printer or terminal.
  • the relevant parameters of the document to be printed are assigned to corresponding variables in the DEVMODE structure in step S102, and printed.
  • the driving module may acquire a corresponding variable from the DEVMODE structure based on a function, thereby completing a step of transmitting a relevant parameter of the document to be printed opened by the first application by the DEVMODE structure in the GDI module to the print driver module.
  • the step of the first application to exchange information with the print driver module and the operating system through the GDIINFO structure in the GDI module mainly includes: the print driver module processes the corresponding variable acquired from the DEVMODE structure Assigned to the GDIINFO structure Corresponding variables are returned to the operating system, and after the first application obtains relevant parameters from the GDIINFO structure on the operating system, the pair of font attributes set in the first application are used to Printing the document data for layout output, determining the maximum number of characters and the maximum number of lines of the document to be printed in the printable area, thereby determining the line feed and page break of the document to be printed.
  • the interface module further includes a WINE module, which represents a compatibility layer running a Windows application on an operating system compatible with a Portable Operating System Interface (POSIX), and the application of the present invention is achieved by cooperation with the GDI module.
  • the program-printed document data image to be printed can be directly printed on an operating system such as Linux, Mac OSX, BSD, etc., without developing a corresponding application based on different operating systems, and those skilled in the art understand that the application of the present invention Mainly based on the development of the Windows operating system, which cannot be directly run on a processing terminal installed with a non-windows operating system, when the processing terminal installed with the non-windows operating system needs to run the application, the API conversion technology is adopted.
  • the function of non-windows corresponding to Windows is written to call the DLL to run the Windows-based operating system application, so that the application of the present invention can be applied to various operating systems, and the applicable field of the technical solution of the present invention is expanded.
  • the determining step in the step S103 further includes automatically determining, by the computer identification module, that the automatic recognition function of the computer identification module performs some simple observation or recognition operations, for example, Determining whether the preprinted paper data overlaps with the to-be-printed document data; and, for example, acquiring boundary information of the pre-printed paper data and determining whether a portion of the to-be-printed document data exceeds a boundary of the pre-printed paper data range.
  • the computer identification module may further store a database in advance, including a standard layout template of different types of document data to be printed on the corresponding preprinted paper, when the second application detects that the user is in the first application. After the "print" instruction is issued in the program, the computer identification module is called to first search for a corresponding standard template in the database based on the pre-printed paper data, and then determine, based on the standard template, the document data to be printed on the pre-printed paper data. Whether the location needs to be adjusted.
  • the computer automatic identification module is integrated in the second application, and is started to be fed back to the user at a first time when the second application is activated, or the computer automatically recognizes
  • the module is installed in the processing terminal in a third party form, and the second application completes the step S103 by calling the computer automatic identification module The judgment step.
  • the preview interface generated by the second application in the step is in an editable state, and the user passes the first application.
  • the second application calls the pre-printed paper data acquired in the first application, the document data to be printed, and the two are superimposed and displayed in the form of a window, and the user displays
  • the second application calculates the adjustment parameter based on the user operation, and then prints the to-be-printed document data and the adjustment parameter.
  • the drive module performs subsequent adjustment operations.
  • the adjusting parameter is further determined in the step S104 based on the manner of specifying the alignment reference line.
  • the person skilled in the art understands that the user mouse movement or the keyboard input key control or manual is performed in step S104.
  • the adjustment scheme of the touch mode is preferably applied to the case where the offset direction of the document data to be printed is unified with respect to the preprinted paper data, as described in FIG. 9, at which time the second application sets the document data to be printed with a dotted line.
  • the form frame is defined as an operable frame for the user to drag; but for the case where the offset of the document data to be printed relative to the preprinted paper data is inconsistent as shown in FIG. 10, the second application biases the data of the document to be printed.
  • the data frame with the same direction is set to be the same actionable frame.
  • the data offset direction of the document to be printed is not uniform, and the data of the left part of the data is not right.
  • the second application is based on the number of preprinted sheets
  • the data area is set to an alignment reference line, and the user only needs to drag the reference line to make the document data to be printed aligned with the alignment reference line, and complete the offset adjustment, as shown in FIG. Show.
  • the adjustment parameter is further obtained based on a user manual input or confirmation instruction, for example, when the second application superimposes the user to display the to-be-printed document data and the pre-printed paper data, based on the
  • the computer identification module automatically calculates an offset of the document data to be printed relative to the preprinted paper data and presents the recommended offset to the user on the preview interface, and the user can manually input the offset as a reference.
  • the numerical distance of the document data to be printed may also be clicked "OK" to accept the offset suggested by the second application, and the second application may manually input the value or confirm the accepted recommended offset.
  • the print position adjustment parameter is used.
  • step S201 is performed to acquire preprinted paper data.
  • steps S101 described in the foregoing embodiment shown in FIG. 3, and details are not described herein.
  • step S202 Before/simultaneous/after performing the step S201, the process proceeds to step S202 to acquire document data to be printed.
  • steps S102 described in the foregoing embodiment shown in FIG. 3, and details are not described herein.
  • step S203 is executed to determine whether the document data to be printed needs to be adjusted based on a user instruction.
  • the user instruction includes a user control instruction and/or indication information. More specifically, the user control instructions include adjustment parameters. Further, the indication information includes information confirming adjustment or not adjusting the document data to be printed.
  • the user sends a user instruction to the second application by previewing the print position of the document data to be printed relative to the preprinted paper data on the preview interface to instruct the second application to perform corresponding processing. .
  • the operating system first determines whether the user instruction includes instruction information for adjusting the document data to be printed.
  • step S203 If the user instruction includes adjusting information of the document data to be printed, the determination result of step S203 is Affirmative; otherwise, the judgment result of the step S203 is negative. Further, if the result of the step S203 is affirmative, then proceed to step S204; if the result of the step S203 is negative, that is, the user instruction includes not adjusting the document data to be printed. The information then proceeds to step S206 for execution.
  • step S204 if the document data to be printed needs to be adjusted, an adjustment parameter is generated based on the pre-printed paper data and the document data to be printed.
  • an adjustment parameter is generated based on the pre-printed paper data and the document data to be printed.
  • step S205 printing is performed based on the document data to be printed and the adjustment parameter.
  • those skilled in the art may refer to step S105 described in the foregoing embodiment shown in FIG. 1, and details are not described herein.
  • step S206 printing is performed based on the document data to be printed.
  • the document data to be printed in this step is determined by the above step S203, and the operating system directly determines the layout of the document data to be printed by the first application program.
  • a print driver module converted into printable data by the print driver module Then send it to the printer for printing.
  • the print driver module performs the adjustment/pre-simultaneous/after the translation processing of the document data to be printed based on the adjustment parameter in the step S205, and the second application automatically stores the adjustment.
  • the parameter is such that the adjustment parameter can be quickly invoked the next time the same document is printed on the same type of preprinted paper, eliminating the need to repeatedly acquire and adjust the document data to be printed.
  • the step of adjusting the print position of the document data to be printed based on the adjustment parameter in the step S205 may also be implemented by a printer.
  • the print driver module bases the first application on The document data to be printed sent by the DEVMODE structure is converted into printable data, and after the printer print position adjustment command is generated based on the adjustment parameter sent by the second application, the printable data and the adjustment command are sent together a printer that adjusts a printer start print position based on the adjustment command when the printer prints, for example, the default print position of the printer is 5 mm, and the adjustment parameter is 2 mm to the left, the printer adjusts The starting print position is 7mm, that is, the printer starts printing documents from 7mm.
  • first application and the second application are installed independently of each other on the processing terminal, and the second application determines an activation timing by monitoring a process of the first application, specifically
  • the activation opportunity includes a process initiated by the first application based on a user "print” instruction.
  • the second application may be embedded in the program code of the first application by using a patch, and the second application is invoked when the first application receives the “print” instruction of the user. The program is further processed.
  • the step S104 in the embodiment shown in FIG. 3 or the step S204 in the embodiment further includes the step “to The print paper data is stored in accordance with the adjustment parameter.
  • the preprinted paper data and the adjustment parameter are pre-stored in a storage device including a background thread, a flash drive, a flash, and a print. a driving module, a cloud storage device, etc.
  • the operating system directly acquires the pre-printed paper information from the storage device after receiving a print instruction of the user, and based on the adjustment corresponding to the pre-printed paper data
  • the parameter adjusts the position of the document data to be printed, so that the document data to be printed that has been adjusted based on the stored adjustment parameters is displayed on the preview interface displayed to the user.
  • such adjustment can satisfy the user's expectation, and the user only The printing operation needs to be sent to the second application to complete the printing operation.
  • the second application acquires an adjustment parameter corresponding to the pre-printed paper data while/after acquiring the pre-printed paper data from the storage device, and pairs the to-be-printed based on the adjustment parameter
  • the document data is pre-adjusted, and then the pre-adjusted document data to be printed and the superimposed effect of the pre-printed paper data are displayed on the preview interface. If the user feels that the preview result is as expected, the "print" option is directly clicked.
  • the adjustment parameter corresponding to the pre-printed paper data in the storage device is the adjustment parameter of the current printing; or, if the user feels that the position of the pre-adjusted document data to be printed relative to the pre-printed paper data is not
  • the document data to be printed may be further adjusted on the preview interface until the print position of the document data to be printed meets the user's expectation, and the user manually adjusts the generated adjustment parameter. Adjust the parameters for the print position of this print.
  • the second application may acquire the adjustment parameter corresponding to the pre-printed paper data from the storage device, and issue the adjustment parameter.
  • a print driver module wherein the print driver module performs a translation process on the document to be printed based on the adjustment parameter, or generates a print position adjustment command based on the adjustment parameter and sends the print position adjustment command to the printer to adjust the initial print position.
  • the second application superimposes the pre-printed paper data and the to-be-printed document data on the preview interface only when the adjustment parameter corresponding to the pre-printed paper data cannot be acquired from the storage device
  • the user shows that if the second application is available from the storage device
  • the adjustment parameter corresponding to the pre-printed paper data is directly sent to the print driver module for printing.
  • FIG. 5 illustrates a flow chart for determining whether the document data to be printed needs to be adjusted according to an embodiment of the present invention, which is determined based on preprinted paper data and document data to be printed.
  • step S1031 is first performed to superimpose and display the preprinted paper data and the document data to be printed in the form of a window. More specifically, the pre-printed paper data and the document data to be printed are sequentially superimposed on a preview interface, and the preview interface is generated based on the second application.
  • the second application after receiving the "print" instruction issued by the user in the first application, the second application first calls the interface function StretchBlt() in the operating system application programming interface API to print the to-be-printed
  • the document data is displayed in the form of a window on the pop-up preview interface.
  • the second application is further based on the StretchBlt().
  • the function displays the preprinted paper data in the operating system in the form of a window on the preview interface as well.
  • the second application displays the window layer transparency by adjusting the document data to be printed and the preprinted paper data to ensure that the lower layer data image is not subjected to the upper layer data when the document data to be printed and the preprinted paper data are superimposed and displayed. Covered by the image, as shown in FIG. 8, the second application translucents the window containing the pre-printed paper data by adjusting the transparency of the window attribute containing the pre-printed paper data on the preview interface. Thereby, the preprinted paper data and the document data to be printed can be superimposedly displayed on the preview interface without interference.
  • step S1032 is executed to receive a user instruction to determine whether the document data to be printed needs to be adjusted.
  • the user instruction includes a control instruction for the user to adjust the document data to be printed.
  • the control instruction includes instruction information for the user to move the document data to be printed.
  • the second application generates the adjustment parameter based on the control instruction.
  • the second application considers that the user moves the data of the document to be printed by sending a control instruction thereto, for example, the user moves by the mouse drag or the keyboard direction key on the preview interface. The method of moving the document data to be printed to a desired position and clicking the "print" option, the second application uses the position offset of the moved document data to be printed relative to the original document data to be printed as the Adjustment parameters.
  • the previewing step of the sequential superimposed display in the step S1031 may be replaced by displaying the pre-printed paper data and the document data to be printed simultaneously on the preview interface, ie After the user clicks the "print" option in the first application, the second application simultaneously displays the to-be-printed document data and the display window corresponding to the pre-printed paper data in the pop-up preview interface, It is understood by the person that, compared with the technical solution described in the above step S1031, the technical solution of the present variation preferably defaults to previewing the print position of the document data to be printed on the pre-printed paper data for the user. It saves the steps of additional confirmation and is beneficial to the user experience.
  • the step S1031 and the step S1032 further include the step of “superimposing and displaying the pre-printed paper data and the to-be-printed document data in a window form in a terminal, wherein The terminal is associated with the printer.”
  • the operating system may superimpose and display the pre-printed paper data and the to-be-printed document data in a window form on any terminal in the wireless local area network with the printer, as understood by those skilled in the art.
  • the technical solution in the present variation allows the superimposed display result to be no longer limited to being browsed only by users currently located in the periphery of the printer, and the technical solutions according to the present variation, those Users who are not currently around the printer can also remotely control printer printing operations.
  • the assistant can superimpose the document data to be printed with the preprinted paper data display window through the printer.
  • the displayed effect is transmitted wirelessly to the boss's mobile phone, and the owner confirms whether to print on the mobile phone.
  • the printer associated with the terminal described in this variation may also be replaced with a processing terminal where the print driver module is located, which may also implement a printing operation based on remote user instructions.
  • the terminal is associated with the printer in a wired/wireless manner.
  • the wired manner includes associating the terminal with the printer based on an optical fiber, a cable, a data line, or the like;
  • the wireless manner includes a wireless local area network, a Bluetooth, an infrared, a ZigBee, a wireless Internet, etc., and the terminal is The printer is associated.
  • the terminal includes a mobile terminal and a fixed terminal, wherein the mobile terminal includes a mobile phone, an IPAD, a notebook computer, and the like; the fixed terminal includes a computer, a processing terminal having a display function, and the like.
  • the receiving step in the step S1032 further includes: “receiving the user to adjust the indication information of the document data to be printed, the indication information determining that the document data to be printed needs to be adjusted”
  • the user observes the document to be printed on the preview interface by observing And superimposing the data and the pre-printed paper data, determining that the document data to be printed needs to be adjusted, and clicking the “adjust” option on the operation interface to send the indication information for confirming the adjustment to the second application, the second
  • the application determines, based on the computer identification module, an offset of the document data to be printed relative to the pre-printed paper data and generates an adjustment parameter.
  • the second application invokes the computer identification module to adjust the data of the document to be printed based on the user indication information, and automatically generates an adjustment parameter, which is understood by those skilled in the art, when the user is in an outgoing state or through a mobile phone or the like.
  • the screen device previews the display window
  • the document data to be printed cannot be moved to the position expected by the user by clicking drag and drop or keyboard input due to inconvenience, etc., at this time, the user only needs to click the “adjust” option to adjust the action.
  • the second application After the second application is completed, the user can easily and conveniently know whether the adjustment result meets the user's expectation by previewing the superimposed effect of the updated document data to be printed and the pre-printed paper data after previewing the second application.
  • the control command includes a user moves the document data to be printed adjustment parameters generated on the preview screen.
  • the technical solution that the print result of the document data to be printed and the preprinted paper data is superimposed and displayed in a window form before the official printing to the user preview is enabled in the embodiment, so that the user can intuitively understand the print before confirming the print.
  • the display mode of the semi-transparent display window of the pre-printed paper data is advantageous for the user to observe the position deviation of the pre-printed paper data and the document data to be printed, which is a technical solution not adopted by the prior art. It can effectively reduce the number of repeated operations of the user print-adjust the print position.
  • the second application may also display the document data to be printed in the form of a semi-transparent window, and display the pre-printed paper data in the form of a normal window, which may also be generated by a user-defined selection, which is not Affects the technical content of the present invention.
  • FIG. 6 illustrates a flow chart for determining whether the document data to be printed needs to be adjusted according to still another embodiment of the present invention, which is determined based on preprinted paper data and document data to be printed.
  • first step S1033 is performed to determine whether the document data to be printed is related to the pre-print The displayable content of the printed paper data overlaps. More specifically, the overlapping effects include text and text, images and images, or overlapping of text and images.
  • the computer identification module determines whether the two are overlapped based on the pre-printed paper data displayable content and the respective positional parameters of the to-be-printed document data, as shown in FIG.
  • the pre-printing The paper data displayable line is located at a distance of 7 cm from the left of the preprinted paper to 18 cm from the left and 20 cm from the upper edge of the preprinted paper, and the computer identification module determines the to be printed based on the position parameter. Whether there is display content in the same position in the document data, if the document data to be printed overlaps with the displayable content of the preprinted paper data, the determination result of the step S1033 is affirmative; otherwise, the step is The judgment result of S1033 is negative.
  • step S1033 determines whether the document data to be printed and the data of the pre-printed paper. If the displayable contents do not overlap, the process proceeds to step S1035.
  • the computer identification module determines an adjustment parameter based on an overlapping area of the document data to be printed and the pre-printed paper data, so that the two are no longer overlapped.
  • the computer identification module applies the adjustment parameter as a whole to all data of the document data to be printed, for example, after determining the third line of the document data to be printed and the pre-printed paper data.
  • the fourth line of the displayable content overlaps by 3 cm, and the computer recognition module shifts the document data to be printed as a whole by 3 cm.
  • the computer identification module repeatedly performs the step S1033 once after the analog adjustment of the document data to be printed based on the adjustment parameter, and determines whether the adjusted document data to be printed is related to the pre-printing.
  • the displayable contents of the paper document overlap, and if they overlap, the step S1034 is continued to adjust the document data to be printed until the printable document data and the preprinted paper data displayable content no longer overlap.
  • the computer identification module further determines whether part of the document data to be printed is outside the preprinted paper data area, for example, in the legend shown in FIG. 10, although The document data to be printed is not overlapped with the displayable content of the preprinted paper data, but a part of the document data to be printed is beyond the data area of the preprinted paper data, so adjustment is still needed, and the step S1035 is performed.
  • the judgment result is affirmative; otherwise, the judgment result of the step S1035 is negative.
  • step S1035 determines whether the document data to be printed is overlapped with the preprintable paper data displayable content, and no part of the data area beyond the preprinted paper data is passed. If it is negative, that is, the document data to be printed is not overlapped with the preprintable paper data displayable content, and no part of the data area beyond the preprinted paper data is passed, the process proceeds to step S1037.
  • the computer identification module determines that the document data to be printed needs to be adjusted.
  • the application acquires an offset distance and an offset direction of the document data to be printed with respect to the preprinted paper data area, and preferably reverses the offset distance and the offset direction As the adjustment parameter.
  • the computer identification module determines that the document data to be printed does not need to be adjusted.
  • the print driver module converts the to-be-printed document data into printable data and sends it directly to the printer for printing.
  • the computer identification module presets a default adjustment direction, and if the overlapped area of the adjusted document data to be printed and the preprinted paper data display content does not fall, then Performing a second adjustment to the direction of the double adjustment parameter in the opposite direction of the default adjustment direction, and those skilled in the art understand that, for the technical solution of determining the adjustment based on the overlap determination result in step S1034, the overlapping area is The adjustment includes the adjustment feasibility schemes of the upper, lower, left and right directions, and the adjustment results of the four adjustment feasibility schemes need to be judged, and the optimal adjustment scheme is selected as the adjustment parameter.
  • the computer identification module sets a default adjustment direction based on the document data to be printed and the paper boundary distance, which preferably moves the document data to be printed to a direction in which the boundary distance is larger.
  • the adjusted document data to be printed is still displayed on the preview interface in superimposed manner with the pre-printed paper data, and the user determines whether the user's expectation is met, and if the user confirms that the content meets the expectation, click the “print” button.
  • the second application sends the adjustment parameter to the print driver module; if the user is still not satisfied with the adjustment result, click the “Adjust” button, and the computer recognition module adjusts the document data to be printed again.
  • the user may also indicate that the second application does not feed back the adjusted document data to be printed through the previous setting, but directly sends the print operation to the print driver module to save the user waiting time.
  • the computer identification module in the step S1033 determines whether the document data to be printed overlaps with the displayable content of the pre-printed paper data based on the layer overlay mode, and those skilled in the art Understanding that the document data to be printed and the pre-printing
  • the paper data may display a situation in which the content partially overlaps, and the technical solution for simply determining whether the document data to be printed overlaps with the displayable content of the preprinted paper data by the position parameter in the above step S1033 is likely to be biased, for example,
  • the pre-printed paper data has a line at 10 cm from the upper edge to display the content, and the document data to be printed has a line of document data to be printed at 9.5 cm from the upper edge, and it is easy to make a mistake if only based on the position parameter.
  • step S1035 and the step S1036 may be omitted, and the computer identification module determines that the to-be-printed document data does not overlap with the displayable content of the pre-printed paper data.
  • the print driver module can directly convert the data of the document to be printed into printable data and send it to the printer for printing.
  • the technical solution in this embodiment preferably determines that the document data to be printed is on the pre-printed paper data by means of automatic recognition by the computer identification module. Whether the location needs to be adjusted, the technical solution described in this embodiment can effectively eliminate the situation that the document data to be printed overlaps with the pre-printable paper data displayable content and/or exceeds the pre-printed paper data area, thereby saving the user's operation. Steps and time to improve printing efficiency. Further, those skilled in the art may also use the technical solution described in the foregoing embodiment shown in FIG. 5 in combination with the technical solution described in this embodiment.
  • the computer identification module automatically adjusts the printed document data, And displaying the to-be-printed document data and the pre-printed paper data on the preview interface. If the user thinks that the current automatic adjustment result does not meet the expected result, directly moving the to-be-printed document data on the preview interface to generate an adjustment parameter. Optimize the print results so that the print results are as high as possible.
  • the second application further allows the user to perform optimization processing on the document data to be printed, such as As shown in FIG. 12, in addition to the print position adjustment operation, the user can adjust the contrast, brightness, and the like of the document data to be printed, or perform image processing such as cropping, rotation, and the like on the document data to be printed.
  • the second application does not call the pre-printed paper data, and the preview interface preferably displays the image data to be printed after the image processing, only
  • the second application will retrieve the pre-printed paper data and superimpose it on the preview interface for the user to browse. This design is more user-friendly and can be given to the user. Provide a good user experience.
  • Figure 13 is a block diagram showing an image adjustment control apparatus suitable for preprinted paper for adjusting a document to be printed in a printer so that the document data to be printed is accurate in accordance with a third embodiment of the present invention.
  • the control device 4 includes a pre-printed paper data acquiring device 41 for acquiring pre-printed paper data; a document data acquiring device 42 to be printed for acquiring document data to be printed; a judging device 43 for comparing the pre-printed paper data and the document data to be printed and determining whether the document data to be printed needs to be adjusted; adjusting parameter generating means 44 for using the document data to be printed
  • the adjustment parameter is generated based on the determination result of the first determination device when adjustment is required; and the print processing device 45 is configured to perform printing based on the document data to be printed and the adjustment parameter.
  • the control device 4 calls the first after the pre-printed paper data acquiring device 41 and the document-to-print data acquiring device 42 acquire corresponding pre-printed paper data and document data to be printed.
  • the determining device 43 determines whether the document data to be printed needs to be adjusted with respect to the preprinted paper data. If the first determining device 43 determines that the document data to be printed needs to be adjusted, the adjustment parameter generating device 44 and the The print processing device 45 performs corresponding processing; if the first determining device 43 determines that the document data to be printed does not need to be adjusted, directly calls the print driver module to convert the data to be printed into printable data and then sends the data to the printer for printing.
  • the pre-printed paper data includes pre-printed characters, images or a combination of the two on the current printing paper; the document data to be printed includes a data distribution of the printable area of the document to be printed on a specific paper size.
  • the pre-printed paper data acquiring device 41 acquires the pre-printed paper data based on an image acquisition device or a system import or the like, wherein the system import includes local file import, Network import and other methods.
  • the document data acquiring device 42 to be printed acquires the document data to be printed based on the DEVMODE structure and the GDIINFO structure in the print driver module and the GDI module.
  • the adjustment parameter includes a print position adjustment parameter
  • the adjustment parameter generation device 44 acquires the adjustment parameter based on a user operation, for example, after the user moves the mouse to drag the position of the document data to be printed.
  • the displacement is used as the adjustment parameter; or the user manually inputs or confirms the instruction as the adjustment parameter.
  • the adjustment parameter generating means 44 further determines the adjustment parameter based on the manner in which the reference line is specified.
  • the print processing device 45 performs a panning process on the document to be printed based on the print driver module, and the original print driver module of the printer performs a panning process on the document data to be printed based on the adjustment parameter, thereby implementing printing of the document data to be printed. Position adjustment. Further, the print driver module converts the to-be-printed document data into printable data and sends it to the printer for printing before/simultaneously/after the panning process of the document data to be printed based on the adjustment parameter. .
  • the first determining means 43 comprises an adjustment preview module 431 for superimposing and displaying the preprinted paper data and the document data to be printed in the form of a window; and a second determining means 432 for receiving The user instructs to determine if the document data to be printed needs to be adjusted.
  • the adjustment preview module 431 displays the pre-printed paper data and the to-be-printed document data in a window form on the pop-up preview interface based on the interface function StretchBlt() in the operating system application programming interface API.
  • the user instruction includes a control instruction by a user to adjust the document data to be printed.
  • the user can send an instruction to the preview adjustment module 431 to adjust the document data to be printed and the preprinted paper data display window layer transparency to ensure that the document data to be printed and the preprinted paper data are superimposed.
  • the underlying data image is not overwritten by the upper data image.
  • the second determining means 432 includes a control instruction receiving means 4321 for receiving a control instruction for the user to adjust the document data to be printed, and accordingly, the adjustment parameter generating means 44 generates a basis based on the control instruction
  • the control instruction includes instruction information that the user moves the document data to be printed, for example, the user moves the document data to be printed to a desired manner by using a mouse drag or a keyboard direction key movement on the preview interface. After the location, click the "print" option, then the adjustment parameter generating means 44 will move the document data to be printed The position offset amount of the document data to be printed is used as the adjustment parameter.
  • control command receiving device 4321 may be replaced with an indication information receiving device 4322 for receiving indication information that the user adjusts the document data to be printed, the indication information determining the The document data to be printed needs to be adjusted.
  • the user determines that the document data to be printed needs to be adjusted by observing the superimposition effect of the document data to be printed on the preview interface and the preprinted paper data, and then the instruction information receiving device is 4322 sends the indication information of the confirmation adjustment, and the indication information receiving means 4322 invokes the adjustment parameter generation means 44 to determine the offset of the document data to be printed with respect to the preprinted paper data based on the indication information and generates an adjustment parameter.
  • the adjustment parameter generating device 44 calls the computer identification module to adjust the data of the document to be printed, and automatically generates an adjustment parameter.
  • the preview adjustment module 431 may “superimpose and display the pre-printed paper data and the to-be-printed document data in a window form in a terminal, wherein the terminal and the The printer is associated with, for example, the preview adjustment module 431 may superimpose the pre-printed paper data and the to-be-printed document data in a window form on any terminal in the wireless local area network with the printer. This allows a preview operation to be performed by the terminal associated with the printer even if the user is not currently around the printer.
  • the adjustment preview module 431 and the second determining device 432 may be replaced with a third determining device 433 for determining whether the document data to be printed is related to the pre- The displayable content of the print paper data is overlapped, and accordingly, if the document data to be printed overlaps with the displayable content of the preprinted paper data, it is determined that the document data to be printed needs to be adjusted.
  • the third determining means 433 invokes the computer identification module to determine whether the two are overlapped based on the pre-printed paper data displayable content and the respective positional parameters of the to-be-printed document data, if the computer The identification module determines that the document data to be printed overlaps with the pre-printed paper data, and then determines an adjustment parameter based on the overlapping area of the two, so that the two are no longer overlapped.
  • the third determining device 433 further includes fourth determining means for further determining a portion of the document to be printed when the document data to be printed does not overlap with the displayable content of the preprinted paper data Whether the data is outside the preprinted paper data area, for example, although the document data to be printed does not overlap with the displayable content of the preprinted paper data, a part of the document data to be printed exceeds the preprinted paper The data area of the data, so it still needs to be done Adjusting, at this time, the fourth determining means determines that the document data to be printed needs to be adjusted, and the control device 4 calls the computer identification module to generate the adjustment parameter.
  • the print processing device 45 performs a translation process on the document data to be printed based on the print position adjustment module, and those skilled in the art understand that the original print by the printer in the embodiment shown in FIG. 13 above is understood.
  • the present modification implements the translation processing of the document to be printed by the separate printing position adjustment module, and improves the data of the document to be printed by the printer processing device 45.
  • the processing speed facilitates the precise positioning of the work responsibilities of the various units in the control device 4.
  • the print driver module or the print position adjustment module in the print processing device 45 After the print driver module or the print position adjustment module in the print processing device 45 generates a printer print position adjustment command based on the adjustment parameter, the print data is sent to the printer together with the printable data. Adjusting the initial print position of the printer based on the printer print position adjustment command, thereby realizing adjustment of the print position of the document data to be printed.

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

A method suitable for controlling the picture adjustment for a preprinted paper and a corresponding device for controlling the picture adjustment. The method comprises the following steps: a. acquiring preprinted paper data (S101); b. acquiring to-be-printed document data (S102); c. determining, on the basis of the preprinted paper data and the to-be-printed document data, whether the to-be-printed document data need to be adjusted (S103); d. if the to-be-printed document data need to be adjusted, generating, on the basis of the preprinted paper data and the to-be-printed document data, an adjustment parameter (S104); and e. performing printing on the basis of the to-be-printed document data and the adjustment parameter (S105). According to said method, it is observed or identified, by means of the preview interface or the computer identification function, whether the to-be-printed document data can be printed in a proper position on the preprinted paper before the actual printing, and the adjustment of the printing position is achieved by adjusting the position of the to-be-printed document data on the basis of the determination result, bringing a user good user experience, improving the working efficiency, and further providing a more environment-friendly printing technology.

Description

一种适用于预打印纸的画像调整控制方法及装置Image adjustment control method and device suitable for preprinted paper 技术领域Technical field
本发明涉及一种图像形成的技术领域,尤其涉及一种适用于预打印纸的画像调整控制方法及相应的控制装置。The present invention relates to the technical field of image formation, and in particular to a portrait adjustment control method suitable for preprinted paper and a corresponding control device.
背景技术Background technique
随着打印技术的高速发展,我们在日常工作生活中多少都会通过打印设备打印文档、编辑资料等。With the rapid development of printing technology, we print documents, edit materials, etc. through printing devices in our daily work and life.
而在医院、银行等很多场合中则对于打印机有一个特殊需求,这些场合经常需要将文字或者图像等待打印数据打印在预打印纸张的特定位置上,这里的预打印纸张指的是事先印有表格和/或一些信息的纸张,例如医院化验单、银行收费凭证等。如图1所示的医院处方例表,其在空白纸张上预先绘制有表格并在其中特定单元上印制有文字“姓名”、“年龄”及“处方”,当医生为病患看诊开单时计算机将医生输入的病患姓名、年龄及处方数据转换为待打印文档数据,即可通过打印机在处方例表的对应空白单元处打印出所述待打印文档数据,但是,这种在预打印纸上打印数据的方式常常会出现打印位置偏移的问题,如图2所示,其中加粗部分的文字如张三、33岁等即为打印机打印的所述待打印文档数据,可以清楚的看到这些待打印文档数据都偏移到了预打印纸的“处方”栏上,与我们实际希望得到的打印效果有很大偏差。此时,用户就需要能够对预打印纸张上的待打印文档数据进行调整以使得待打印文档数据在预打印纸张上的打印位置符合用户预期。In many occasions, such as hospitals and banks, there is a special need for printers. In these occasions, it is often necessary to print text or images waiting for print data to a specific position on preprinted paper. Here, preprinted paper refers to a form printed in advance. And/or some information on paper, such as hospital test sheets, bank charge certificates, etc. The hospital prescription example shown in Figure 1 is pre-drawn with a form on a blank sheet and printed with the words "name", "age" and "prescription" on a specific unit. When the doctor sees the patient The single-time computer converts the patient's name, age, and prescription data input by the doctor into the document data to be printed, and the document data to be printed is printed by the printer at the corresponding blank unit of the prescription example table, but this is in advance The method of printing data on the printing paper often has the problem of offset of the printing position, as shown in FIG. 2, wherein the text of the bold portion such as Zhang San, 33 years old, etc. is the data of the document to be printed printed by the printer, which can be clearly It is seen that the data of these documents to be printed are shifted to the "prescription" column of the preprinted paper, which is greatly deviated from the printing effect we actually hope to obtain. At this time, the user needs to be able to adjust the document data to be printed on the preprinted paper so that the print position of the document data to be printed on the preprinted paper conforms to the user's expectation.
目前,市场上比较主流的解决方案是由用户肉眼观察打印偏移量后,手动在打印驱动界面上调整打印位置,这虽然能在一定程度上解决打印位置偏移的技术问题,但是需要用户在调整打印位置之前先执行一次打印操作,根据打印出的图像效果观察待打印文档数据是否可以打印在预打印纸张上的合适位置上,如有偏差,则估算相应的偏差值,然后进一步在打印驱动界面进行打印位置的调整设置,不仅费时费力,若用户估算错误,还可能出现打印位置调整设置不当需要进行多次调整、重复打印的情况发生,不利于用户体 验,严重浪费了用户宝贵的时间和精力。At present, the mainstream solution on the market is to manually adjust the print position on the print driver interface after the user visually observes the print offset. Although this can solve the technical problem of the print position shift to a certain extent, the user needs to Perform a printing operation before adjusting the print position. Observe whether the document data to be printed can be printed on the pre-printed paper according to the printed image effect. If there is a deviation, estimate the corresponding deviation value, and then further print drive. Adjusting the print position of the interface is not only time-consuming and laborious. If the user estimates the error, it may happen that the print position adjustment setting is improperly required to perform multiple adjustments and repeated printing, which is not conducive to the user body. The test seriously wastes the precious time and energy of the user.
在现阶段,没有一个非常好的方法能够解决上述提到的问题。大多数情况下,用户都只能重复一次甚至多次打印-观察-调整步骤后得到符合用户预期的打印内容,没有提供一种有效地适用于预打印纸的画像调整控制方法,使得用户可以在正式打印前对待打印文档数据在预打印纸张上的打印位置进行预览,从而一次获得符合用户预期的打印内容。At this stage, there is no very good way to solve the problems mentioned above. In most cases, the user can only repeat the print-observation-adjustment step to obtain the print content that meets the user's expectations. There is no image adjustment control method that is effectively applied to the pre-printed paper, so that the user can The print position of the printed document data on the preprinted paper is previewed before the official printing, so that the printed content that meets the user's expectations is obtained at one time.
发明内容Summary of the invention
为了克服现有技术中没有提供在打印之前调整待打印文档数据打印位置的技术方案的技术问题,本发明的目的是提供一种适用于预打印纸的画像调整控制方法及相应的控制装置。In order to overcome the technical problem in the prior art which does not provide a technical solution for adjusting the print position of the document data to be printed before printing, it is an object of the present invention to provide a portrait adjustment control method suitable for preprinted paper and a corresponding control device.
根据本发明的一个方面,提供一种适用于预打印纸的画像调整控制方法,用于打印机中对待打印文档数据进行调整以使得所述待打印文档数据准确地打印到所述预打印纸上,包括如下步骤:According to an aspect of the present invention, there is provided a portrait adjustment control method suitable for preprinted paper for adjusting a document to be printed in a printer so that the document data to be printed is accurately printed onto the preprinted paper, Including the following steps:
a.获取预打印纸张数据;a. Obtain pre-printed paper data;
b.获取待打印文档数据;b. Obtaining document data to be printed;
c.基于所述预打印纸张数据以及所述待打印文档数据判断所述待打印文档数据是否需要调整;c. determining, according to the pre-printed paper data and the document data to be printed, whether the document data to be printed needs to be adjusted;
d.若所述待打印文档数据需要调整,则基于所述预打印纸张数据以及所述待打印文档数据生成调整参数;以及d. if the document data to be printed needs to be adjusted, generating an adjustment parameter based on the pre-printed paper data and the document data to be printed;
e.基于所述待打印文档数据以及所述调整参数进行打印。e. printing based on the document data to be printed and the adjustment parameters.
优选地,在所述步骤d之后包括如下步骤:Preferably, after the step d, the following steps are included:
f.将所述预打印纸张数据与所述调整参数相适应地存储。f. storing the preprinted paper data in accordance with the adjustment parameters.
优选地,所述步骤c包括如下步骤:Preferably, the step c comprises the following steps:
c1.以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据;C1. superimposing and displaying the preprinted paper data and the to-be-printed document data in the form of a window;
c2.接收用户指令以确定所述待打印文档数据是否需要调整。C2. Receive a user instruction to determine whether the document data to be printed needs to be adjusted.
优选地,所述步骤c2还包括如下步骤中的任一个:Preferably, the step c2 further comprises any one of the following steps:
c21.接收用户调整所述待打印文档数据的控制指令,相应地,在所述步骤d中基于所述控制指令生成所述调整参数;或者 C21. receiving, by the user, a control instruction for adjusting the data of the document to be printed, and correspondingly, generating the adjustment parameter based on the control instruction in the step d; or
c22.接收用户调整所述待打印文档数据的指示信息,所述指示信息确定所述待打印文档数据需要调整。C22. Receive indication information that the user adjusts the document data to be printed, where the indication information determines that the document data to be printed needs to be adjusted.
优选地,所述步骤c1包括如下步骤:Preferably, the step c1 comprises the following steps:
c11.在一终端中以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据,其中,所述终端与所述打印机相关联。C11. The preprinted paper data and the document data to be printed are superimposed and displayed in the form of a window in a terminal, wherein the terminal is associated with the printer.
优选地,所述步骤c包括如下步骤:Preferably, the step c comprises the following steps:
c1’.判断所述待打印文档数据是否与所述预打印纸张数据的可显示内容重叠;C1. determining whether the document data to be printed overlaps with the displayable content of the preprinted paper data;
c2’.若所述待打印文档数据与所述预打印纸张数据的可显示内容不重叠,则进一步判断部分所述待打印文档数据是否在所述预打印纸张数据区域之外;If the document data to be printed does not overlap with the displayable content of the preprinted paper data, further determining whether part of the document data to be printed is outside the preprinted paper data area;
c3’.基于所述步骤c1’和/或所述步骤c2’的判断结果确定所述待打印文档数据需要调整。C3'. determining that the document data to be printed needs to be adjusted based on the result of the determination of the step c1' and/or the step c2'.
优选地,所述步骤a包括如下步骤中的任一个:Preferably, said step a comprises any one of the following steps:
a1.基于图像获取设备获取所述预打印纸张数据;A1. acquiring the pre-printed paper data based on an image acquisition device;
a1′.基于系统导入获取所述预打印纸张数据。A1'. Acquiring the pre-printed paper data based on system import.
根据本发明的另一个方面,还提供一种适用于预打印纸的画像调整控制装置,用于打印机中对待打印文档数据进行调整以使得所述待打印文档数据准确地打印到所述预打印纸上,包括如下装置:According to another aspect of the present invention, there is also provided an image adjustment control apparatus suitable for preprinted paper for adjusting a document data to be printed in a printer such that the document data to be printed is accurately printed to the preprinted paper On, including the following devices:
预打印纸张获取装置,其用于获取预打印纸张数据;a preprinted paper acquiring device for acquiring preprinted paper data;
待打印文档数据获取装置,其用于获取待打印文档数据;a document data acquiring device to be printed, which is used to acquire document data to be printed;
第一判断装置,其用于基于所述预打印纸张数据以及所述待打印文档数据判断所述待打印文档数据是否需要调整;a first determining device, configured to determine, according to the pre-printed paper data and the document data to be printed, whether the document data to be printed needs to be adjusted;
调整参数生成装置,其用于在所述待打印文档数据需要调整时基于所述第一判断装置的判断结果生成调整参数;以及Adjusting parameter generating means for generating an adjustment parameter based on a determination result of the first determining means when the document data to be printed needs to be adjusted;
打印处理装置,其用于基于所述待打印文档数据以及所述调整参数进行打印。A print processing apparatus for printing based on the document data to be printed and the adjustment parameter.
优选地,所述第一判断装置包括如下装置:Preferably, the first determining means comprises the following means:
调整预览模块,其用于以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据;以及 Adjusting a preview module for superimposing and displaying the preprinted paper data and the document data to be printed in the form of a window;
第二判断装置,其用于接收用户指令以确定所述待打印文档数据是否需要调整。And a second determining means for receiving a user instruction to determine whether the document data to be printed needs to be adjusted.
优选地,所述第二判断装置还包括如下装置中的任一个:Preferably, the second determining means further comprises any one of the following:
控制指令接收装置,其用于接收用户调整所述待打印文档数据的控制指令,相应地,所述调整参数生成装置基于所述控制指令生成所述调整参数;或者a control instruction receiving device, configured to receive a control instruction for the user to adjust the document data to be printed, and correspondingly, the adjustment parameter generating device generates the adjustment parameter based on the control instruction; or
指示信息接收装置,其用于接收用户调整所述待打印文档数据的指示信息,所述指示信息确定所述待打印文档数据需要调整。The indication information receiving device is configured to receive indication information that the user adjusts the document data to be printed, and the indication information determines that the document data to be printed needs to be adjusted.
优选地,所述第一判断装置包括如下装置:Preferably, the first determining means comprises the following means:
第三判断装置,其用于判断所述待打印文档数据是否与所述预打印纸张数据的可显示内容重叠,相应地,若所述待打印文档数据与所述预打印纸张数据的可显示内容重叠则确定所述待打印文档数据需要调整。a third determining device, configured to determine whether the document data to be printed overlaps with the displayable content of the preprinted paper data, and correspondingly, if the document data to be printed and the displayable content of the preprinted paper data The overlap determines that the document data to be printed needs to be adjusted.
通过本发明提供的技术内容,可以有效解决用户无法在正式打印前调整将打印在预打印纸上的画像位置的技术问题,从而给用户带来了良好的用户体验,不仅提高了工作效率,而且提供了一种更加环保的打印技术。The technical content provided by the present invention can effectively solve the technical problem that the user cannot adjust the position of the image to be printed on the preprinted paper before the official printing, thereby bringing a good user experience to the user, not only improving the work efficiency, but also improving the work efficiency. Provides a more environmentally friendly printing technology.
附图说明DRAWINGS
图1示出医院常用的处方例表;Figure 1 shows a list of prescriptions commonly used in hospitals;
图2示出在现有技术中打印数据在预打印纸张上出现打印位置偏移的示意图;2 is a schematic view showing a print position shift of print data on a preprinted sheet in the prior art;
图3示出根据本发明的第一实施例的,一种适用于预打印纸的画像调整控制方法的流程图;Figure 3 is a flow chart showing a method of image adjustment control suitable for preprinted paper according to a first embodiment of the present invention;
图4示出根据本发明的第二实施例的,一种适用于预打印纸的画像调整控制方法的流程图;4 is a flow chart showing a method of image adjustment control suitable for preprinted paper according to a second embodiment of the present invention;
图5示出根据本发明的一个具体实施方式的,判断所述待打印文档数据是否需要调整的流程图;FIG. 5 is a flowchart showing whether the document data to be printed needs to be adjusted according to an embodiment of the present invention; FIG.
图6示出根据本发明的又一个具体实施方式的,判断所述待打印文档数据是否需要调整的流程图;6 is a flow chart showing whether the document data to be printed needs to be adjusted according to still another embodiment of the present invention;
图7示出根据本发明的一个具体实施方式的预览界面示意图;FIG. 7 shows a schematic diagram of a preview interface according to an embodiment of the present invention; FIG.
图8示出根据本发明的一个具体实施方式的叠加显示了待打印文档数据 及预打印纸张数据后的预览界面示意图;FIG. 8 illustrates superimposed display of document data to be printed according to an embodiment of the present invention. And a preview interface diagram after preprinting the paper data;
图9示出根据本发明的一个具体实施方式的待打印文档数据与预打印纸张数据的偏差示意图;FIG. 9 is a view showing a deviation of document data to be printed from preprinted paper data according to an embodiment of the present invention; FIG.
图10示出根据本发明的另一个具体实施方式的待打印文档数据与预打印纸张数据的偏差示意图;FIG. 10 is a view showing a deviation of document data to be printed from preprinted paper data according to another embodiment of the present invention; FIG.
图11示出根据本发明的一个具体实施方式的基于对齐基准线进行调整的效果图;11 illustrates an effect diagram of adjustment based on an alignment reference line in accordance with an embodiment of the present invention;
图12示出根据本发明的一个具体实施方式的增加优化处理功能的预览界面示意图;以及FIG. 12 is a schematic diagram showing a preview interface for adding an optimization processing function according to an embodiment of the present invention;
图13示出根据本发明的第三实施例的,一种适用于预打印纸的画像调整控制装置的结构图。Figure 13 is a view showing the configuration of an image adjustment control device suitable for preprinted paper according to a third embodiment of the present invention.
具体实施方式detailed description
本领域技术人员理解,为了解决用户无法在正式打印前调整预打印纸上画像位置的技术问题,本发明的技术方案在于提供一种可以在进行打印操作之前就对待打印文档数据的打印位置进行调整的解决方案。通过本发明提供的技术方案,可以极大地优化用户的打印效率,同时有效提高待打印文档数据在预打印纸张上的打印位置精准度。具体地,在本发明的优选实施例中,通过在进行打印操作之前在预览调整模块的预览界面或计算机识别模块的自动识别功能观察或识别待打印文档数据是否可以打印在预打印纸张上的合适位置上,并基于观察或识别结果调整待打印文档数据的位置,从而实现打印位置的调整。Those skilled in the art understand that in order to solve the technical problem that the user cannot adjust the position of the image on the preprinted paper before the official printing, the technical solution of the present invention is to provide an adjustment of the printing position of the document data to be printed before the printing operation. s solution. Through the technical solution provided by the invention, the printing efficiency of the user can be greatly optimized, and at the same time, the printing position accuracy of the document data to be printed on the preprinted paper is effectively improved. Specifically, in a preferred embodiment of the present invention, it is appropriate to observe or recognize whether the document data to be printed can be printed on the preprinted paper by the preview interface of the preview adjustment module or the automatic recognition function of the computer recognition module before the printing operation is performed. Position, and adjust the position of the document data to be printed based on the observation or recognition result, thereby realizing the adjustment of the print position.
图3示出根据本发明的第一实施例的,一种适用于预打印纸的画像调整控制方法的流程图,其用于打印机中对待打印文档数据进行调整以使得所述待打印文档数据准确地打印到所述预打印纸上,具体地,首先执行步骤S101,获取预打印纸张数据。更为具体地,所述预打印纸张数据包括当前打印用纸上预先印制的文字、图像或两者的结合,例如,图1所示医院处方单例表。更进一步地,所述预打印纸张数据基于图像获取设备获取,所述图像获取设备包括扫描仪、摄像头等。在一个优选例中,操作系统基于扫描仪获取所述预打印纸张数据,所述扫描仪安装在打印机内,所述操作系统通过打印驱动 模块向打印机发送请求获取所述预打印纸张数据的请求信息并接收打印机发送的反馈信息,所述反馈信息与所述指令信息相对应,包括打印机调用扫描仪扫描获取的所述预打印纸张数据。3 shows a flow chart of a portrait adjustment control method suitable for preprinted paper for adjusting a document to be printed in a printer so that the document data to be printed is accurate according to the first embodiment of the present invention. Printing onto the preprinted paper, specifically, first performing step S101 to acquire preprinted paper data. More specifically, the pre-printed paper data includes pre-printed characters, images, or a combination of both on the current printing paper, for example, the hospital prescription single table shown in FIG. Further, the pre-printed paper data is acquired based on an image acquisition device including a scanner, a camera, and the like. In a preferred embodiment, the operating system acquires the pre-printed paper data based on a scanner installed in the printer, the operating system being driven by a print driver The module sends request information for obtaining the pre-printed paper data to the printer and receives feedback information sent by the printer, the feedback information corresponding to the instruction information, including the printer invoking the pre-printed paper data acquired by the scanner scan.
在执行所述步骤S101的之前/同时/之后,进入步骤S102执行,获取待打印文档数据。具体地,所述待打印文档数据包括待打印文档在特定纸张尺寸上可打印区域的数据分布。更为具体地,所述数据分布基于第一应用程序排版获得。更进一步地,所述第一应用程序为打开所述待打印文档的应用程序(如word、excel等),其用于打开所述待打印文档并获取对应的待打印文档数据。优选地,所述第一应用程序基于设备驱动程序接口(Device Driver Interface,简称DDI)中图形设备接口(Graphics Device Interface,简称GDI)模块的结构体变量与打印驱动模块及操作系统进行信息传递,从而对所述待打印文档进行排版。在一个优选例中,所述第一应用程序基于所述GDI模块中的DEVMODE结构体将其打开的待打印文档的相关参数传递给打印驱动模块,然后获取操作系统上GDIINFO结构体的相应变量值并结合用户在第一应用程序中设置的字体属性,对待打印文档数据进行排版输出,其中,所述DEVMODE结构体为包含有代表纸张尺寸、打印分辨率、纸张长和高、纸张类型等参数的变量集合,所述GDIINFO结构体为包含有代表操作系统的系统版本、基本设备信息、分辨率、可打印区域、打印纸张尺寸、字体和文本等参数的变量集合,所述GDIINFO结构体中的某些变量值由打印驱动模块针对第一应用程序通过DEVMODE结构体传递的相关参数进行一系列处理(包括合法性校验、范围计算、单位换算等)后获得。Before/simultaneously/after performing the step S101, the process proceeds to step S102 to acquire document data to be printed. Specifically, the document data to be printed includes a data distribution of a printable area of a document to be printed on a specific paper size. More specifically, the data distribution is obtained based on the first application layout. Further, the first application is an application (such as word, excel, etc.) that opens the document to be printed, and is used to open the document to be printed and obtain corresponding document data to be printed. Preferably, the first application is based on a structure variable of a Graphics Device Interface (GDI) module in a device driver interface (DDI), and a print driver module and an operating system perform information transmission. Thereby, the document to be printed is typeset. In a preferred example, the first application passes the relevant parameters of the document to be printed that are opened by the DEVMODE structure in the GDI module to the print driver module, and then acquires the corresponding variable value of the GDIINFO structure on the operating system. And combining the font attributes set by the user in the first application to perform layout output on the printed document data, wherein the DEVMODE structure includes parameters representing paper size, print resolution, paper length and height, paper type, and the like. a set of variables, the GDIINFO structure is a set of variables including parameters representing a system version of the operating system, basic device information, resolution, printable area, print paper size, font, and text, and some of the GDIINFO structures The variable values are obtained by the print driver module after performing a series of processing (including legality verification, range calculation, unit conversion, etc.) on the relevant parameters transmitted by the first application through the DEVMODE structure.
接下来执行步骤S103,基于所述预打印纸张数据以及所述待打印文档数据判断所述待打印文档数据是否需要调整。具体地,所述操作系统基于用户指令进行判断。更为具体地,所述用户指令基于第二应用程序的展示结果生成。更进一步地,所述第二应用程序用于将所述预打印纸张数据以及所述待打印文档数据以单独或相叠加的方式显示在一预览界面上供用户浏览,如图8所示。在一个优选例中,所述第二应用程序将待打印文档数据及预打印纸张数据叠加显示在所述预览界面上后,用户通过观察判断所述待打印文档数据基于所述预打印纸张数据的打印位置是否需要调整,若所述待打印文档数据相对于所述预打印纸张数据需要进行位置调整,则所述步骤S103的判断结 果是肯定的;否则,则所述步骤S103的判断结果是否定的。进一步地,若所述步骤S103的判断结果是肯定的,则接下来进入步骤S104执行;若所述步骤S103的判断结果是否定的,即所述待打印文档数据相对于所述预打印纸张数据无需进行任何调整操作,则接下来进入步骤S106执行。Next, step S103 is performed to determine whether the document data to be printed needs to be adjusted based on the pre-printed paper data and the document data to be printed. Specifically, the operating system makes a determination based on user instructions. More specifically, the user instruction is generated based on the presentation result of the second application. Further, the second application is configured to display the pre-printed paper data and the to-be-printed document data on a preview interface in a separate or superimposed manner for the user to browse, as shown in FIG. 8. In a preferred embodiment, after the second application superimposes the to-be-printed document data and the pre-printed paper data on the preview interface, the user determines, by observing, that the to-be-printed document data is based on the pre-printed paper data. Whether the print position needs to be adjusted, if the document data to be printed needs to be positionally adjusted with respect to the preprinted paper data, the judgment knot of the step S103 If yes, otherwise, the result of the determination in step S103 is negative. Further, if the determination result of the step S103 is affirmative, then proceed to step S104; if the determination result of the step S103 is negative, that is, the document data to be printed is relative to the pre-printed paper data. If no adjustment operation is required, the process proceeds to step S106.
优选地,在所述步骤S104中,若所述待打印文档数据需要调整,则基于所述预打印纸张数据以及所述待打印文档数据生成调整参数。具体地,所述调整参数基于所述第二应用程序计算获得。更为具体地,所述调整参数包括打印位置调整参数。在一个优选例中,用户经过上述步骤S103判断确定待打印文档数据当前在所述预打印纸张数据上的打印位置需要调整,则通过鼠标、键盘等输入装置或者手动触摸的方式移动所述待打印文档数据的显示窗口到合适位置后,所述第二应用程序基于所述输入装置的移动距离计算确定所述打印位置调整参数。在另一个优选例中,所述第二应用程序基于移动后待打印文档数据与移动前待打印文档数据的显示窗口偏移值确定所述打印位置调整参数。Preferably, in the step S104, if the document data to be printed needs to be adjusted, an adjustment parameter is generated based on the pre-printed paper data and the document data to be printed. Specifically, the adjustment parameter is obtained based on the second application calculation. More specifically, the adjustment parameters include print position adjustment parameters. In a preferred embodiment, the user determines, by the above step S103, that the print position of the document data to be printed on the preprinted paper data needs to be adjusted, and then moves the image to be printed by using an input device such as a mouse or a keyboard or manually touching. After the display window of the document data is in a suitable position, the second application determines the print position adjustment parameter based on the movement distance calculation of the input device. In another preferred embodiment, the second application determines the print position adjustment parameter based on a display window offset value of the document data to be printed after the movement and the document data to be printed before the movement.
然后执行步骤S105,基于所述待打印文档数据以及所述调整参数进行打印。具体地,所述操作系统基于所述第一应用程序对待打印文档数据的排版进行作画,并下发给打印驱动模块。更为具体地,所述打印驱动模块基于所述调整参数对待打印文档数据进行平移处理,然后再将其转化为可打印数据下发给打印机进行打印。Then, step S105 is performed to perform printing based on the document data to be printed and the adjustment parameter. Specifically, the operating system draws a layout of the document data to be printed based on the first application, and sends the layout to the print driver module. More specifically, the print driver module performs a translation process on the document data to be printed based on the adjustment parameter, and then converts it into printable data and sends it to the printer for printing.
优选地,在所述步骤S106中,基于所述待打印文档数据生成可打印数据。本领域技术人员理解,本步骤所述待打印文档数据经上述步骤S103判断确定不需要进行任何调整操作,意味着此时所述待打印文档数据可以打印在所述预打印纸张的合适位置上,符合用户预期,用户向所述第二应用程序发送“打印”指令后,操作系统将第一应用程序对所述待打印文档数据的排版作画下发给打印驱动模块,所述打印驱动模块将所述待打印文档数据转化为可打印数据,本领域技术人员理解,本发明所述将待打印文档数据转化为可打印数据的技术方案实际为现有技术,在此不予赘述。Preferably, in the step S106, printable data is generated based on the document data to be printed. It is understood by those skilled in the art that the document data to be printed in this step is determined by the above step S103 to determine that no adjustment operation is required, which means that the document data to be printed can be printed on the appropriate position of the preprinted paper at this time. In accordance with the user's expectation, after the user sends a "print" instruction to the second application, the operating system sends a layout of the data to be printed by the first application to the print driver module, and the print driver module It is to be understood that the technical solution of converting the document data to be printed into printable data according to the present invention is actually a prior art, and is not described herein.
在本实施例的一个变化例中,所述步骤S101中所述图像获取设备以外接形式与所述打印机相通讯,由用户将预打印纸张预先在所述图像获取设备上扫描后再放入打印机纸盒内等待打印,这同样可以实现本步骤获取所述预打 印纸张数据的目的,本领域技术人员还可以根据实际需要变化出更多实施例,在此不予赘述。In a variation of the embodiment, the image acquiring device in the step S101 communicates with the printer in an external form, and the user scans the pre-printed paper in advance on the image acquiring device before loading the printer into the printer. Waiting for printing in the paper tray, this can also achieve this step to obtain the pre-play For the purpose of printing paper data, those skilled in the art can also change more embodiments according to actual needs, and details are not described herein.
进一步地,所述操作系统还基于系统导入的方式获取所述预打印纸张数据,所述系统导入包括本地文件导入、网络导入等,例如,所述操作系统内预先存储有一本地文件夹,其中包括各类预打印纸张数据,这些预打印纸张数据可以是由用户预先扫描后存储在所述本地文件夹内的,也可以是由预打印纸张印刷方提供的标准版数据。本领域技术人员理解,上述步骤S101中所述基于图像获取设备获取预打印纸张数据的技术方案需要在所述打印机内预先安装具有图像获取功能的装置,或是通过与打印机或操作系统所在终端相通讯的图像获取设备获取所述预打印纸张数据,相对的,本变化例所述技术方案允许那些不具备图像获取功能的打印机或终端同样能够获取所述预打印纸张数据。Further, the operating system further acquires the pre-printed paper data according to a system import manner, where the system import includes local file import, network import, and the like, for example, a local folder is pre-stored in the operating system, including Various types of pre-printed paper data, which may be pre-scanned by the user and stored in the local folder, or may be standard version data provided by the pre-printed paper printer. It is understood by those skilled in the art that the technical solution for acquiring pre-printed paper data based on the image acquiring device in the above step S101 requires pre-installing a device having an image capturing function in the printer, or by contacting a terminal of the printer or the operating system. The communication image acquisition device acquires the pre-printed paper data. In contrast, the technical solution of the present variation allows those printers or terminals that do not have the image acquisition function to acquire the pre-printed paper data as well.
进一步地,用户还可将本步骤获取到的预打印纸张数据存储在一存储单元内以便日后使用,本领域技术人员理解,对于同一类型的预打印纸张数据,用户只需获取一次预打印纸张数据后将数据存储在所述存储单元中即可在接下来的打印过程中从所述存储单元处重复获取,免去了操作系统在每次打印前重复获取所述预打印纸张数据的过程,极大地提高了打印效率。优选地,所述存储单元包括存储器、数据库、文件、服务器等。优选地,所述存储单元以硬件形式安装在所述打印机或终端内,或单独设置并与所述打印机或终端以有线或无线方式相通讯。优选地,所述存储单元还可以软件形式安装在打印机或操作系统内,或存储在云端并以无线方式与所述打印机或终端相通讯。Further, the user can also store the pre-printed paper data acquired in this step in a storage unit for later use, and those skilled in the art understand that for the same type of pre-printed paper data, the user only needs to obtain the pre-printed paper data once. After the data is stored in the storage unit, the acquisition is repeated from the storage unit in the subsequent printing process, thereby eliminating the process of repeatedly acquiring the pre-printed paper data by the operating system before each printing. The earth improves printing efficiency. Preferably, the storage unit comprises a memory, a database, a file, a server, and the like. Preferably, the storage unit is installed in the form of hardware in the printer or terminal, or is separately provided and communicates with the printer or terminal in a wired or wireless manner. Preferably, the storage unit is also software-installable within a printer or operating system, or stored in the cloud and wirelessly communicates with the printer or terminal.
在本实施例的又一个变化例中,所述步骤S102中所述待打印文档的相关参数如纸张尺寸、纸张长与高、纸张类型等会赋值给所述DEVMODE结构体中的相应变量,打印驱动模块基于函数可从所述DEVMODE结构体中获取相应变量,从而完成基于所述GDI模块中DEVMODE结构体将第一应用程序打开的待打印文档的相关参数传递给打印驱动模块的步骤。In still another variation of the embodiment, the relevant parameters of the document to be printed, such as paper size, paper length and height, paper type, etc., are assigned to corresponding variables in the DEVMODE structure in step S102, and printed. The driving module may acquire a corresponding variable from the DEVMODE structure based on a function, thereby completing a step of transmitting a relevant parameter of the document to be printed opened by the first application by the DEVMODE structure in the GDI module to the print driver module.
进一步地,所述第一应用程序通过GDI模块中的GDIINFO结构体与所述打印驱动模块及操作系统交换信息的步骤主要包括,所述打印驱动模块将从DEVMODE结构体中获取的相应变量处理后赋值给GDIINFO结构体中的 相应变量并返回给所述操作系统,所述第一应用程序从所述操作系统上的GDIINFO结构体中获取相关参数后,结合用户在所述第一应用程序中设置的字体属性对所述待打印文档数据进行排版输出,确定所述待打印文档在可打印区域中的行最大字符数和最大行数,进而确定所述待打印文档的换行和分页情况。Further, the step of the first application to exchange information with the print driver module and the operating system through the GDIINFO structure in the GDI module mainly includes: the print driver module processes the corresponding variable acquired from the DEVMODE structure Assigned to the GDIINFO structure Corresponding variables are returned to the operating system, and after the first application obtains relevant parameters from the GDIINFO structure on the operating system, the pair of font attributes set in the first application are used to Printing the document data for layout output, determining the maximum number of characters and the maximum number of lines of the document to be printed in the printable area, thereby determining the line feed and page break of the document to be printed.
进一步地,所述接口模块还包括WINE模块,其表示在兼容可移植操作系统接口(POSIX)的操作系统上运行windows应用程序的兼容层,通过与所述GDI模块协同作用使得本发明所述应用程序绘制的待打印文档数据图像能够直接在诸如Linux、Mac OSX、BSD等操作系统上打印输出,而无需基于不同的操作系统开发对应的应用程序,本领域技术人员理解,本发明所述应用程序主要是基于windows操作系统开发的,其无法直接在安装有非windows操作系统的处理终端上运行,则当所述安装有非windows操作系统的处理终端需要运行所述应用程序时,通过API转换技术编写非windows对应到Windows的函数来调用DLL以运行所述基于Windows操作系统的应用程序,使得本发明所述应用程序可以适用于多种操作系统,扩大了本发明所述技术方案的适用领域。Further, the interface module further includes a WINE module, which represents a compatibility layer running a Windows application on an operating system compatible with a Portable Operating System Interface (POSIX), and the application of the present invention is achieved by cooperation with the GDI module. The program-printed document data image to be printed can be directly printed on an operating system such as Linux, Mac OSX, BSD, etc., without developing a corresponding application based on different operating systems, and those skilled in the art understand that the application of the present invention Mainly based on the development of the Windows operating system, which cannot be directly run on a processing terminal installed with a non-windows operating system, when the processing terminal installed with the non-windows operating system needs to run the application, the API conversion technology is adopted. The function of non-windows corresponding to Windows is written to call the DLL to run the Windows-based operating system application, so that the application of the present invention can be applied to various operating systems, and the applicable field of the technical solution of the present invention is expanded.
在本实施例的另一个变化例中,所述步骤S103中所述判断步骤还包括基于计算机识别模块自动判断,由所述计算机识别模块的自动识别功能进行一些简单的观察或识别操作,例如,判断所述预打印纸张数据是否与所述待打印文档数据重叠;又例如,获取所述预打印纸张数据的边界信息并判断部分所述待打印文档数据是否超出了所述预打印纸张数据的边界范围。In another variation of the embodiment, the determining step in the step S103 further includes automatically determining, by the computer identification module, that the automatic recognition function of the computer identification module performs some simple observation or recognition operations, for example, Determining whether the preprinted paper data overlaps with the to-be-printed document data; and, for example, acquiring boundary information of the pre-printed paper data and determining whether a portion of the to-be-printed document data exceeds a boundary of the pre-printed paper data range.
进一步地,所述计算机识别模块内还可以预先存储一数据库,其中包括不同类型待打印文档数据在对应预打印纸张上的标准排布模板,当所述第二应用程序检测到用户在第一应用程序中下达的“打印”指令后,调用所述计算机识别模块首先基于预打印纸张数据在所述数据库中查找对应的标准模板,然后基于标准模板判断待打印文档数据在所述预打印纸张数据上的位置是否需要调整。优选地,所述计算机自动识别模块集成在所述第二应用程序内,其在所述第二应用程序被激活的同时启动以在第一时间向用户反馈判断结果,或者,所述计算机自动识别模块以第三方形式安装在所述处理终端内,所述第二应用程序通过调用所述计算机自动识别模块来完成所述步骤S103 的判断步骤。Further, the computer identification module may further store a database in advance, including a standard layout template of different types of document data to be printed on the corresponding preprinted paper, when the second application detects that the user is in the first application. After the "print" instruction is issued in the program, the computer identification module is called to first search for a corresponding standard template in the database based on the pre-printed paper data, and then determine, based on the standard template, the document data to be printed on the pre-printed paper data. Whether the location needs to be adjusted. Preferably, the computer automatic identification module is integrated in the second application, and is started to be fed back to the user at a first time when the second application is activated, or the computer automatically recognizes The module is installed in the processing terminal in a third party form, and the second application completes the step S103 by calling the computer automatic identification module The judgment step.
本领域技术人员理解,与上述步骤S102中所述第一应用程序自动生成的预览界面相比,本步骤所述第二应用程序生成的预览界面处于可编辑状态,用户通过所述第一应用程序打开待打印文档并点击“打印”后,所述第二应用程序即调用第一应用程序中获取的预打印纸张数据、待打印文档数据,将两者以窗口的形式叠加显示后用户展示,当用户在所述第二应用程序的预览界面上调整待打印文档数据显示窗口位置后,所述第二应用程序基于用户操作计算得到调整参数,然后将所述待打印文档数据及调整参数下发打印驱动模块进行后续调整操作。A person skilled in the art understands that, compared with the preview interface automatically generated by the first application in step S102, the preview interface generated by the second application in the step is in an editable state, and the user passes the first application. After the document to be printed is opened and the "print" is clicked, the second application calls the pre-printed paper data acquired in the first application, the document data to be printed, and the two are superimposed and displayed in the form of a window, and the user displays After the user adjusts the position of the to-be-printed document data display window on the preview interface of the second application, the second application calculates the adjustment parameter based on the user operation, and then prints the to-be-printed document data and the adjustment parameter. The drive module performs subsequent adjustment operations.
在本实施例的又一个变化例中,所述步骤S104中还基于指定对齐基准线的方式确定调整参数,本领域技术人员理解,步骤S104中所述基于用户鼠标移动或键盘输入键控制或者手动触摸方式的调整方案优选地适用于所述待打印文档数据相对于预打印纸张数据的偏移方向统一的情形,如图9所述,此时所述第二应用程序将待打印文档数据以虚线形式框定为一个可操作框供用户拖动;但对于图10所示待打印文档数据相对于预打印纸张数据偏移方向不一致的情形,所述第二应用程序将所述待打印文档数据中偏移方向相同的数据框定为同一可操作框,此时虽然用户仍可通过拖拽等实现调整操作,但对于待打印文档数据偏移方向不统一,部分数据偏左部分数据偏右的情形显然无法快捷地完成对待打印文档数据的偏移调整,则所述第二应用程序基于所述预打印纸张数据的数据区域设定一对齐基准线,用户只需拖动所述对其基准线即可使得所述待打印文档数据均以所述对齐基准线为基准对齐,完成偏移调整,如图11所示。In still another variation of the embodiment, the adjusting parameter is further determined in the step S104 based on the manner of specifying the alignment reference line. The person skilled in the art understands that the user mouse movement or the keyboard input key control or manual is performed in step S104. The adjustment scheme of the touch mode is preferably applied to the case where the offset direction of the document data to be printed is unified with respect to the preprinted paper data, as described in FIG. 9, at which time the second application sets the document data to be printed with a dotted line. The form frame is defined as an operable frame for the user to drag; but for the case where the offset of the document data to be printed relative to the preprinted paper data is inconsistent as shown in FIG. 10, the second application biases the data of the document to be printed. The data frame with the same direction is set to be the same actionable frame. At this time, although the user can still perform the adjustment operation by dragging and dropping, the data offset direction of the document to be printed is not uniform, and the data of the left part of the data is not right. Quickly completing the offset adjustment of the document data to be printed, the second application is based on the number of preprinted sheets The data area is set to an alignment reference line, and the user only needs to drag the reference line to make the document data to be printed aligned with the alignment reference line, and complete the offset adjustment, as shown in FIG. Show.
进一步地,所述调整参数还基于用户手动输入或确认指令获得,例如,所述第二应用程序向用户叠加展示所述待打印文档数据及所述预打印纸张数据的同时或之后,基于所述计算机识别模块自动计算获得所述待打印文档数据相对于所述预打印纸张数据的偏移量并作为建议偏移量在预览界面上提示给用户,用户可以所述偏移量为参考手动输入希望所述待打印文档数据移动的数值距离,也可以点击“确定”以接受第二应用程序建议的偏移量,则所述第二应用程序将用户手动输入的数值或确认接受的建议偏移量作为所述打印位置调整参数。 Further, the adjustment parameter is further obtained based on a user manual input or confirmation instruction, for example, when the second application superimposes the user to display the to-be-printed document data and the pre-printed paper data, based on the The computer identification module automatically calculates an offset of the document data to be printed relative to the preprinted paper data and presents the recommended offset to the user on the preview interface, and the user can manually input the offset as a reference. The numerical distance of the document data to be printed may also be clicked "OK" to accept the offset suggested by the second application, and the second application may manually input the value or confirm the accepted recommended offset. The print position adjustment parameter is used.
图4示出根据本发明的第二实施例的,一种适用于预打印纸的画像调整控制方法的流程图,,具体地,首先执行步骤S201,获取预打印纸张数据。具体地,本领域技术人员可以参考上述图3所示实施例中所述步骤S101,在此不予赘述。4 is a flow chart showing a method of image adjustment control suitable for preprinted paper according to a second embodiment of the present invention. Specifically, first, step S201 is performed to acquire preprinted paper data. Specifically, those skilled in the art may refer to step S101 described in the foregoing embodiment shown in FIG. 3, and details are not described herein.
在执行所述步骤S201的之前/同时/之后,进入步骤S202执行,获取待打印文档数据。具体地,本领域技术人员可以参考上述图3所示实施例中所述步骤S102,在此不予赘述。Before/simultaneous/after performing the step S201, the process proceeds to step S202 to acquire document data to be printed. Specifically, those skilled in the art may refer to step S102 described in the foregoing embodiment shown in FIG. 3, and details are not described herein.
接下来执行步骤S203,基于用户指令判断所述待打印文档数据是否需要调整。具体地,所述用户指令包括用户控制指令和/或指示信息。更为具体地,所述用户控制指令包括调整参数。更进一步地,所述指示信息包括确认调整或不调整所述待打印文档数据的信息。优选地,用户通过在预览界面上预览所述待打印文档数据相对于所述预打印纸张数据的打印位置后向所述第二应用程序发送用户指令,以指示所述第二应用程序进行相应处理。在一个优选例中,操作系统首先判断用户指令是否包括调整所述待打印文档数据的指令信息,若所述用户指令包括调整所述待打印文档数据的信息,则所述步骤S203的判断结果是肯定的;否则,则所述步骤S203的判断结果是否定的。进一步地,若所述步骤S203的判断结果是肯定的,则接下来进入步骤S204执行;若所述步骤S203的判断结果是否定的,即所述用户指令包括不调整所述待打印文档数据的信息,则接下来进入步骤S206执行。Next, step S203 is executed to determine whether the document data to be printed needs to be adjusted based on a user instruction. Specifically, the user instruction includes a user control instruction and/or indication information. More specifically, the user control instructions include adjustment parameters. Further, the indication information includes information confirming adjustment or not adjusting the document data to be printed. Preferably, the user sends a user instruction to the second application by previewing the print position of the document data to be printed relative to the preprinted paper data on the preview interface to instruct the second application to perform corresponding processing. . In a preferred embodiment, the operating system first determines whether the user instruction includes instruction information for adjusting the document data to be printed. If the user instruction includes adjusting information of the document data to be printed, the determination result of step S203 is Affirmative; otherwise, the judgment result of the step S203 is negative. Further, if the result of the step S203 is affirmative, then proceed to step S204; if the result of the step S203 is negative, that is, the user instruction includes not adjusting the document data to be printed. The information then proceeds to step S206 for execution.
优选地,在所述步骤S204中,若所述待打印文档数据需要调整,则基于所述预打印纸张数据以及所述待打印文档数据生成调整参数。具体地,本领域技术人员可以参考上述图3所示实施例中所述步骤S104,在此不予赘述。Preferably, in the step S204, if the document data to be printed needs to be adjusted, an adjustment parameter is generated based on the pre-printed paper data and the document data to be printed. Specifically, those skilled in the art may refer to step S104 described in the foregoing embodiment shown in FIG. 3, and details are not described herein.
接下来进入步骤S205执行,基于所述待打印文档数据以及所述调整参数进行打印。具体地,本领域技术人员可以参考上述图1所示实施例中所述步骤S105,在此不予赘述。Next, proceeding to step S205, printing is performed based on the document data to be printed and the adjustment parameter. Specifically, those skilled in the art may refer to step S105 described in the foregoing embodiment shown in FIG. 1, and details are not described herein.
优选地,在所述步骤S206中,基于所述待打印文档数据进行打印。本领域技术人员理解,本步骤所述待打印文档数据经过上述步骤S203的判断已确定无需进行调整,则所述操作系统直接将第一应用程序对所述待打印文档数据的排版作画下发给打印驱动模块,由所述打印驱动模块转化为可打印数据 后发送给打印机进行打印。Preferably, in the step S206, printing is performed based on the document data to be printed. A person skilled in the art understands that the document data to be printed in this step is determined by the above step S203, and the operating system directly determines the layout of the document data to be printed by the first application program. a print driver module converted into printable data by the print driver module Then send it to the printer for printing.
在本实施例的一个变化例中,所述步骤S205中所述打印驱动模块基于所述调整参数对待打印文档数据进行平移处理的之前/同时/之后,所述第二应用程序自动存储所述调整参数,以便下次在同一类型的预打印纸张上打印同一文档时能够快速调用所述调整参数,省去了重复获取并调整待打印文档数据的步骤。In a variation of the embodiment, the print driver module performs the adjustment/pre-simultaneous/after the translation processing of the document data to be printed based on the adjustment parameter in the step S205, and the second application automatically stores the adjustment. The parameter is such that the adjustment parameter can be quickly invoked the next time the same document is printed on the same type of preprinted paper, eliminating the need to repeatedly acquire and adjust the document data to be printed.
在本实施例的另一个变化例中,所述步骤S205中基于调整参数对待打印文档数据打印位置调整的步骤还可由打印机来实现,具体地,所述打印驱动模块将所述第一应用程序基于DEVMODE结构体发送的待打印文档数据转化为可打印数据,并基于所述第二应用程序发送的调整参数生成打印机打印位置调整命令后,将所述可打印数据以及所述调整命令一并发送给打印机,由所述打印机在打印时基于所述调整命令调整打印机起始打印位置,例如,所述打印机默认的起始打印位置为5mm处,而调整参数是偏左2mm,则所述打印机调整起始打印位置为7mm,即打印机从7mm处开始打印文档。In another variation of the embodiment, the step of adjusting the print position of the document data to be printed based on the adjustment parameter in the step S205 may also be implemented by a printer. Specifically, the print driver module bases the first application on The document data to be printed sent by the DEVMODE structure is converted into printable data, and after the printer print position adjustment command is generated based on the adjustment parameter sent by the second application, the printable data and the adjustment command are sent together a printer that adjusts a printer start print position based on the adjustment command when the printer prints, for example, the default print position of the printer is 5 mm, and the adjustment parameter is 2 mm to the left, the printer adjusts The starting print position is 7mm, that is, the printer starts printing documents from 7mm.
本领域技术人员理解,与上述图3所示实施例相比,本实施例所述技术方案可以认为是上述图3所示实施例的一个具体应用,其通过将调整打印文档数据转化为可打印数据,并基于调整参数对待打印文档数据进行平移处理或生成打印位置调整命令下发给打印机调整起始打印位置来实现对待打印文档数据打印位置的调整,改变了用户多次调整、重复打印的现有操作系统,极大地优化了用户体验。It is understood by those skilled in the art that the technical solution described in this embodiment can be considered as a specific application of the embodiment shown in FIG. 3 by converting the adjusted print document data into printable, compared with the embodiment shown in FIG. Data, and based on the adjustment parameter, the translation processing of the document data to be printed or the generation of the print position adjustment command is sent to the printer to adjust the starting print position to realize the adjustment of the print position of the document to be printed, and the change of the user's multiple adjustments and repeated printing is changed. With an operating system, the user experience is greatly optimized.
进一步地,所述第一应用程序与所述第二应用程序相互独立的安装在所述处理终端上,所述第二应用程序通过监控所述第一应用程序的进程来判断激活时机,具体地,所述激活时机包括所述第一应用程序基于用户“打印”指令而启动的进程。进一步地,所述第二应用程序还可以通过补丁方式嵌入到所述第一应用程序的程序代码内,当所述第一应用程序接收到用户的“打印”指令后即调用所述第二应用程序进行进一步处理。Further, the first application and the second application are installed independently of each other on the processing terminal, and the second application determines an activation timing by monitoring a process of the first application, specifically The activation opportunity includes a process initiated by the first application based on a user "print" instruction. Further, the second application may be embedded in the program code of the first application by using a patch, and the second application is invoked when the first application receives the “print” instruction of the user. The program is further processed.
在上述图3所示实施例与本实施例的一个共同变化例中,上述图3所示实施例中所述步骤S104或本实施例所述步骤S204后还包括步骤“将所述预 打印纸张数据与所述调整参数相适应地存储”。具体地,所述预打印纸张数据与所述调整参数预先存储在一存储装置中,所述存储装置包括后台线程、闪盘、Flash、打印驱动模块、云存储装置等。进一步地,所述操作系统接收到用户的打印指令后直接从所述存储装置中获取所述预打印纸张信息,并基于与所述预打印纸张数据相对应的调整参数对本次待打印文档数据进行位置调整,从而在向用户显示的预览界面上显示已经基于存储的调整参数调整过的待打印文档数据,很多时候,这样的调整已经能满足用户预期,用户只需向第二应用程序发送确认打印信息即可完成本次打印操作。本领域技术人员理解,对于一个固定格式的预打印纸张数据而言,调整参数很可能是确定的,则当用户需要多次将数据打印在同一格式的预打印纸张上时就无需每次都重新计算调整参数,通过调用存储的调整参数对本次待打印文档数据的打印位置进行预调整,提高工作效率。In a common variation of the embodiment shown in FIG. 3 and the embodiment, the step S104 in the embodiment shown in FIG. 3 or the step S204 in the embodiment further includes the step “to The print paper data is stored in accordance with the adjustment parameter. Specifically, the preprinted paper data and the adjustment parameter are pre-stored in a storage device including a background thread, a flash drive, a flash, and a print. a driving module, a cloud storage device, etc. Further, the operating system directly acquires the pre-printed paper information from the storage device after receiving a print instruction of the user, and based on the adjustment corresponding to the pre-printed paper data The parameter adjusts the position of the document data to be printed, so that the document data to be printed that has been adjusted based on the stored adjustment parameters is displayed on the preview interface displayed to the user. In many cases, such adjustment can satisfy the user's expectation, and the user only The printing operation needs to be sent to the second application to complete the printing operation. Those skilled in the art understand that for a fixed format of preprinted paper data, the adjustment parameters are likely to be determined, and when the user needs to be multiple times When you print data on pre-printed paper of the same format, you don’t have to recalculate each time Adjust parameters, pre-adjustment of the position of the print data in this document to be printed by calling adjustment parameter storage, improve work efficiency.
进一步地,所述第二应用程序从所述存储装置获取所述预打印纸张数据的同时/之后获取与所述预打印纸张数据相对应的调整参数,并基于所述调整参数对所述待打印文档数据进行预调整,然后再在所述预览界面上向用户展示预调整后的待打印文档数据及所述预打印纸张数据的叠加效果,若用户觉得预览结果符合预期则直接点击“打印”选项进入打印步骤,所述存储装置中与预打印纸张数据对应的调整参数即为本次打印的调整参数;或者,若用户觉得经过预调整的待打印文档数据相对于预打印纸张数据的位置仍不符合其实际需求时,还可在所述预览界面上对所述待打印文档数据作进一步调整,直至所述待打印文档数据的打印位置符合用户预期为止,此时用户手动调整产生的调整参数即为本次打印的打印位置调整参数。Further, the second application acquires an adjustment parameter corresponding to the pre-printed paper data while/after acquiring the pre-printed paper data from the storage device, and pairs the to-be-printed based on the adjustment parameter The document data is pre-adjusted, and then the pre-adjusted document data to be printed and the superimposed effect of the pre-printed paper data are displayed on the preview interface. If the user feels that the preview result is as expected, the "print" option is directly clicked. Entering the printing step, the adjustment parameter corresponding to the pre-printed paper data in the storage device is the adjustment parameter of the current printing; or, if the user feels that the position of the pre-adjusted document data to be printed relative to the pre-printed paper data is not The document data to be printed may be further adjusted on the preview interface until the print position of the document data to be printed meets the user's expectation, and the user manually adjusts the generated adjustment parameter. Adjust the parameters for the print position of this print.
进一步地,即使用户在本次打印时未进入打印位置调整界面而直接选择打印,所述第二应用程序仍可从存储装置中获取与所述预打印纸张数据相对应的调整参数,并下发给打印驱动模块,所述打印驱动模块基于所述调整参数对待打印文档数据进行平移处理,或者基于所述调整参数生成打印位置调整命令下发给打印机调整起始打印位置。Further, even if the user directly selects the print without entering the print position adjustment interface at the time of the current printing, the second application may acquire the adjustment parameter corresponding to the pre-printed paper data from the storage device, and issue the adjustment parameter. And a print driver module, wherein the print driver module performs a translation process on the document to be printed based on the adjustment parameter, or generates a print position adjustment command based on the adjustment parameter and sends the print position adjustment command to the printer to adjust the initial print position.
进一步地,所述第二应用程序仅在无法从所述存储装置中获取与所述预打印纸张数据相对应的调整参数时才将预打印纸张数据及待打印文档数据叠加显示在预览界面上向用户展示,若所述第二应用程序从所述存储装置中可 以获取所述预打印纸张数据相对应的调整参数则直接将所述调整参数发送给打印驱动模块进行打印。Further, the second application superimposes the pre-printed paper data and the to-be-printed document data on the preview interface only when the adjustment parameter corresponding to the pre-printed paper data cannot be acquired from the storage device The user shows that if the second application is available from the storage device The adjustment parameter corresponding to the pre-printed paper data is directly sent to the print driver module for printing.
图5示出根据本发明的一个具体实施方式的,判断所述待打印文档数据是否需要调整的流程图,其基于预打印纸张数据及待打印文档数据进行判断。具体地,首先执行步骤S1031,以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据。更为具体地,所述预打印纸张数据及所述待打印文档数据依次叠加在一预览界面上,所述预览界面基于所述第二应用程序生成。在一个优选例中,所述第二应用程序接收到用户在第一应用程序中下达的“打印”指令后,首先调用操作系统应用程序编程接口API中的接口函数StretchBlt()将所述待打印文档数据以窗口的形式展示在弹出的预览界面上,如图7所示,当用户点击所述预览界面上的“打印位置调整”选项时,所述第二应用程序再基于所述StretchBlt()函数将操作系统中的预打印纸张数据同样以窗口的形式显示在所述预览界面上。FIG. 5 illustrates a flow chart for determining whether the document data to be printed needs to be adjusted according to an embodiment of the present invention, which is determined based on preprinted paper data and document data to be printed. Specifically, step S1031 is first performed to superimpose and display the preprinted paper data and the document data to be printed in the form of a window. More specifically, the pre-printed paper data and the document data to be printed are sequentially superimposed on a preview interface, and the preview interface is generated based on the second application. In a preferred embodiment, after receiving the "print" instruction issued by the user in the first application, the second application first calls the interface function StretchBlt() in the operating system application programming interface API to print the to-be-printed The document data is displayed in the form of a window on the pop-up preview interface. As shown in FIG. 7, when the user clicks the "print position adjustment" option on the preview interface, the second application is further based on the StretchBlt(). The function displays the preprinted paper data in the operating system in the form of a window on the preview interface as well.
进一步地,所述第二应用程序通过调节待打印文档数据及预打印纸张数据显示窗口图层透明度以确保在叠加显示所述待打印文档数据以及预打印纸张数据时下层数据图像不会被上层数据图像所覆盖,如图8所示,所述第二应用程序通过调节所述预览界面上包含有预打印纸张数据的窗口属性的透明度,将所述包含有预打印纸张数据的窗口半透明化,从而使得所述预打印纸张数据以及所述待打印文档数据能够不相干扰地叠加显示在所述预览界面上。Further, the second application displays the window layer transparency by adjusting the document data to be printed and the preprinted paper data to ensure that the lower layer data image is not subjected to the upper layer data when the document data to be printed and the preprinted paper data are superimposed and displayed. Covered by the image, as shown in FIG. 8, the second application translucents the window containing the pre-printed paper data by adjusting the transparency of the window attribute containing the pre-printed paper data on the preview interface. Thereby, the preprinted paper data and the document data to be printed can be superimposedly displayed on the preview interface without interference.
然后执行步骤S1032,接收用户指令以确定所述待打印文档数据是否需要调整。具体地,所述用户指令包括用户调整所述待打印文档数据的控制指令。更为具体地,所述控制指令包括用户移动所述待打印文档数据的指令信息。更进一步地,所述第二应用程序基于所述控制指令生成所述调整参数。在一个优选例中,所述第二应用程序认为用户移动所述待打印文档数据的动作即是向其发送了控制指令,例如,用户在所述预览界面上通过鼠标拖动或键盘方向键移动的方式将所述待打印文档数据移动至期望位置后点击“打印”选项,则所述第二应用程序将移动后的待打印文档数据相对于原待打印文档数据的位置偏移量作为所述调整参数。 Then, step S1032 is executed to receive a user instruction to determine whether the document data to be printed needs to be adjusted. Specifically, the user instruction includes a control instruction for the user to adjust the document data to be printed. More specifically, the control instruction includes instruction information for the user to move the document data to be printed. Further, the second application generates the adjustment parameter based on the control instruction. In a preferred embodiment, the second application considers that the user moves the data of the document to be printed by sending a control instruction thereto, for example, the user moves by the mouse drag or the keyboard direction key on the preview interface. The method of moving the document data to be printed to a desired position and clicking the "print" option, the second application uses the position offset of the moved document data to be printed relative to the original document data to be printed as the Adjustment parameters.
在本实施例的一个变化例中,所述步骤S1031中所述依次叠加显示的预览步骤可以替换为将所述预打印纸张数据与所述待打印文档数据同时显示在所述预览界面上,即用户在所述第一应用程序内点击“打印”选项后,所述第二应用程序在其弹出的预览界面中同时显示所述待打印文档数据以及预打印纸张数据对应的显示窗口,本领域技术人员理解,与上述步骤S1031中所述技术方案相比,本变化例所述技术方案优选地默认用户期望对所述待打印文档数据在所述预打印纸张数据上的打印位置进行预览,为用户节省了额外确认的步骤,有利于用户体验。In a variant of the embodiment, the previewing step of the sequential superimposed display in the step S1031 may be replaced by displaying the pre-printed paper data and the document data to be printed simultaneously on the preview interface, ie After the user clicks the "print" option in the first application, the second application simultaneously displays the to-be-printed document data and the display window corresponding to the pre-printed paper data in the pop-up preview interface, It is understood by the person that, compared with the technical solution described in the above step S1031, the technical solution of the present variation preferably defaults to previewing the print position of the document data to be printed on the pre-printed paper data for the user. It saves the steps of additional confirmation and is beneficial to the user experience.
在本实施例的又一个变化例中,所述步骤S1031及所述步骤S1032之间还包括步骤“在一终端中以窗口形式叠加显示所述预打印纸张数据以及所述待打印文档数据,其中,所述终端与所述打印机相关联”。例如,所述操作系统可以将所述预打印纸张数据及所述待打印文档数据以窗口形式叠加显示在与所述打印机同处于一无线局域网内的任一终端上,本领域技术人员理解,与上述步骤S1031中所述技术方案相比,本变化例所述技术方案允许所述叠加显示结果不再局限于只能被当前位于打印机周边的用户浏览到,通过本变化例所述技术方案,那些当前不在打印机周边的用户同样可以远程对打印机打印操作进行控制,例如,助理在操作打印机并需要老板来确认是否可以正式打印,则助理可以通过打印机将待打印文档数据与预打印纸张数据显示窗口叠加显示的效果以无线方式传输到老板的手机上,由老板在手机上确认是否进行打印。进一步地,本变化例所述与终端相关联的打印机也可替换为打印驱动模块所在的处理终端,其同样可以基于远程用户指令实现打印操作。In still another variation of the embodiment, the step S1031 and the step S1032 further include the step of “superimposing and displaying the pre-printed paper data and the to-be-printed document data in a window form in a terminal, wherein The terminal is associated with the printer." For example, the operating system may superimpose and display the pre-printed paper data and the to-be-printed document data in a window form on any terminal in the wireless local area network with the printer, as understood by those skilled in the art, Compared with the technical solution in the foregoing step S1031, the technical solution in the present variation allows the superimposed display result to be no longer limited to being browsed only by users currently located in the periphery of the printer, and the technical solutions according to the present variation, those Users who are not currently around the printer can also remotely control printer printing operations. For example, if the assistant is operating the printer and needs the boss to confirm whether it can be officially printed, the assistant can superimpose the document data to be printed with the preprinted paper data display window through the printer. The displayed effect is transmitted wirelessly to the boss's mobile phone, and the owner confirms whether to print on the mobile phone. Further, the printer associated with the terminal described in this variation may also be replaced with a processing terminal where the print driver module is located, which may also implement a printing operation based on remote user instructions.
进一步地,所述终端与所述打印机基于有线/无线的方式相关联。其中,所述有线方式包括基于光纤、电缆、数据线等方式将所述终端与所述打印机相关联;所述无线方式包括无线局域网、蓝牙、红外线、ZigBee、无线互联网等方式将所述终端与所述打印机相关联。更进一步地,所述终端包括移动终端及固定终端,其中所述移动终端包括手机、IPAD、笔记本电脑等;所述固定终端包括计算机、具有显示功能的处理终端等。Further, the terminal is associated with the printer in a wired/wireless manner. The wired manner includes associating the terminal with the printer based on an optical fiber, a cable, a data line, or the like; the wireless manner includes a wireless local area network, a Bluetooth, an infrared, a ZigBee, a wireless Internet, etc., and the terminal is The printer is associated. Further, the terminal includes a mobile terminal and a fixed terminal, wherein the mobile terminal includes a mobile phone, an IPAD, a notebook computer, and the like; the fixed terminal includes a computer, a processing terminal having a display function, and the like.
在本实施例的另一个变化例中,所述步骤S1032中所述接收步骤还包括“接收用户调整所述待打印文档数据的指示信息,所述指示信息确定所述待打印文档数据需要调整”,例如,用户通过观察所述预览界面上待打印文档 数据与预打印纸张数据的叠加效果,判断需要对所述待打印文档数据进行调整,则点击操作界面上的“调整”选项向所述第二应用程序发送确认调整的指示信息,所述第二应用程序接收到所述指示信息后,基于计算机识别模块判断所述待打印文档数据相对于预打印纸张数据的偏移量并生成调整参数。In another variation of the embodiment, the receiving step in the step S1032 further includes: “receiving the user to adjust the indication information of the document data to be printed, the indication information determining that the document data to be printed needs to be adjusted” For example, the user observes the document to be printed on the preview interface by observing And superimposing the data and the pre-printed paper data, determining that the document data to be printed needs to be adjusted, and clicking the “adjust” option on the operation interface to send the indication information for confirming the adjustment to the second application, the second After receiving the indication information, the application determines, based on the computer identification module, an offset of the document data to be printed relative to the pre-printed paper data and generates an adjustment parameter.
进一步地,所述第二应用程序基于用户指示信息调用所述计算机识别模块对所述待打印文档数据进行调整,自动生成调整参数,本领域技术人员理解,当用户在外出状态或通过手机等小屏幕设备预览显示窗口时,由于操作不便等原因无法通过点击拖拽或键盘输入等方式将待打印文档数据移动到符合用户预期的位置,则此时用户只需点击“调整”选项将调整动作交给第二应用程序完成即可,用户通过预览第二应用程序调整后更新的待打印文档数据及预打印纸张数据的叠加效果即可简单便捷的知道本次调整结果是否符合用户预期,若本次调整结果符合用户预期则将本次调整时产生的调整参数发送给打印驱动模块;若本次调整结果不符合用户预期则用户可再次点击“调整”选项重新进行调整,或者再通过点击拖拽等方式直接向所述应用程序发送控制指令,所述控制指令包括用户在预览界面上移动待打印文档数据所产生的调整参数。Further, the second application invokes the computer identification module to adjust the data of the document to be printed based on the user indication information, and automatically generates an adjustment parameter, which is understood by those skilled in the art, when the user is in an outgoing state or through a mobile phone or the like. When the screen device previews the display window, the document data to be printed cannot be moved to the position expected by the user by clicking drag and drop or keyboard input due to inconvenience, etc., at this time, the user only needs to click the “adjust” option to adjust the action. After the second application is completed, the user can easily and conveniently know whether the adjustment result meets the user's expectation by previewing the superimposed effect of the updated document data to be printed and the pre-printed paper data after previewing the second application. If the adjustment result meets the user's expectation, the adjustment parameters generated during the adjustment will be sent to the print driver module; if the adjustment result does not meet the user's expectations, the user can click the “Adjust” option again to re-adjust, or click and drag. Way to send control commands directly to the application The control command includes a user moves the document data to be printed adjustment parameters generated on the preview screen.
本领域技术人员理解,本实施例所述将待打印文档数据及预打印纸张数据的打印结果在正式打印前以窗口形式叠加展示给用户预览的技术方案使得用户能够在确认打印前直观的了解打印结果是否符合用户预期,将预打印纸张数据的显示窗口半透明化的显示方式有利于用户观察预打印纸张数据与待打印文档数据的位置偏差情况,这是现有技术所不采用的技术方案,能够有效减少用户打印-调整打印位置的重复操作次数。进一步地,所述第二应用程序还可以将待打印文档数据以半透明窗口的形式显示,而将预打印纸张数据以普通窗口的形式显示,这些也可以由用户自定义选择产生,这并不影响本发明的技术内容。It is understood by those skilled in the art that the technical solution that the print result of the document data to be printed and the preprinted paper data is superimposed and displayed in a window form before the official printing to the user preview is enabled in the embodiment, so that the user can intuitively understand the print before confirming the print. Whether the result conforms to the user's expectation, the display mode of the semi-transparent display window of the pre-printed paper data is advantageous for the user to observe the position deviation of the pre-printed paper data and the document data to be printed, which is a technical solution not adopted by the prior art. It can effectively reduce the number of repeated operations of the user print-adjust the print position. Further, the second application may also display the document data to be printed in the form of a semi-transparent window, and display the pre-printed paper data in the form of a normal window, which may also be generated by a user-defined selection, which is not Affects the technical content of the present invention.
图6示出根据本发明的又一个具体实施方式的,判断所述待打印文档数据是否需要调整的流程图,其基于预打印纸张数据及待打印文档数据进行判断。具体地,首先执行步骤S1033,判断所述待打印文档数据是否与所述预 打印纸张数据的可显示内容重叠。更为具体地,所述重叠效果包括文字与文字、图像与图像或者文字与图像的重叠。在一个优选例中,所述计算机识别模块基于所述预打印纸张数据可显示内容及所述待打印文档数据各自的位置参数判断两者是否重叠,如图9所示,例如,所述预打印纸张数据可显示内容中某一行位于所述预打印纸张的左起7cm至左起18cm处,且距所述预打印纸张上边沿20cm,则所述计算机识别模块基于上述位置参数判断所述待打印文档数据中是否在相同位置上也有显示内容,若所述待打印文档数据与所述预打印纸张数据的可显示内容重叠,则所述步骤S1033的判断结果是肯定的;否则,则所述步骤S1033的判断结果是否定的。进一步地,若所述步骤S1033的判断结果是肯定的,则接下来进入步骤S1034执行;若所述步骤S1033的判断结果是否定的,即所述待打印文档数据与所述预打印纸张数据的可显示内容不重叠,则接下来进入步骤S1035执行。FIG. 6 illustrates a flow chart for determining whether the document data to be printed needs to be adjusted according to still another embodiment of the present invention, which is determined based on preprinted paper data and document data to be printed. Specifically, first step S1033 is performed to determine whether the document data to be printed is related to the pre-print The displayable content of the printed paper data overlaps. More specifically, the overlapping effects include text and text, images and images, or overlapping of text and images. In a preferred embodiment, the computer identification module determines whether the two are overlapped based on the pre-printed paper data displayable content and the respective positional parameters of the to-be-printed document data, as shown in FIG. 9, for example, the pre-printing The paper data displayable line is located at a distance of 7 cm from the left of the preprinted paper to 18 cm from the left and 20 cm from the upper edge of the preprinted paper, and the computer identification module determines the to be printed based on the position parameter. Whether there is display content in the same position in the document data, if the document data to be printed overlaps with the displayable content of the preprinted paper data, the determination result of the step S1033 is affirmative; otherwise, the step is The judgment result of S1033 is negative. Further, if the result of the determination in step S1033 is affirmative, then proceed to step S1034; if the result of the determination in step S1033 is negative, that is, the document data to be printed and the data of the pre-printed paper If the displayable contents do not overlap, the process proceeds to step S1035.
优选地,在所述步骤S1034中,所述计算机识别模块基于待打印文档数据与预打印纸张数据的重叠区域确定调整参数,以两者不再重叠为准。在一个优选例中,所述计算机识别模块将所述调整参数整体应用到所述待打印文档数据的所有数据中,例如,经过判断所述待打印文档数据第3行与所述预打印纸张数据可显示内容的第4行重叠3cm,则所述计算机识别模块将所述待打印文档数据整体上移/下移3cm。优选地,所述计算机识别模块每次基于调整参数对所述待打印文档数据进行模拟调整后,都重复执行一次所述步骤S1033,判断所述调整后的待打印文档数据是否与所述预打印纸张文档的可显示内容相重叠,若重叠,则继续执行步骤S1034对所述待打印文档数据进行调整,直至所述待打印文档数据与所述预打印纸张数据可显示内容不再重叠为止。Preferably, in the step S1034, the computer identification module determines an adjustment parameter based on an overlapping area of the document data to be printed and the pre-printed paper data, so that the two are no longer overlapped. In a preferred embodiment, the computer identification module applies the adjustment parameter as a whole to all data of the document data to be printed, for example, after determining the third line of the document data to be printed and the pre-printed paper data. The fourth line of the displayable content overlaps by 3 cm, and the computer recognition module shifts the document data to be printed as a whole by 3 cm. Preferably, the computer identification module repeatedly performs the step S1033 once after the analog adjustment of the document data to be printed based on the adjustment parameter, and determines whether the adjusted document data to be printed is related to the pre-printing. The displayable contents of the paper document overlap, and if they overlap, the step S1034 is continued to adjust the document data to be printed until the printable document data and the preprinted paper data displayable content no longer overlap.
优选地,在所述步骤S1035中,所述计算机识别模块进一步判断部分所述待打印文档数据是否在所述预打印纸张数据区域之外,例如,在图10所示的图例中,虽然所述待打印文档数据未与所述预打印纸张数据的可显示内容重叠,但所述待打印文档数据有一部分超出了预打印纸张数据的数据区域,所以仍需要进行调整,此时所述步骤S1035的判断结果是肯定的;否则,则所述步骤S1035的判断结果是否定的。进一步地,若所述步骤S1035的判断结果是肯定的,则接下来进入步骤S1036执行;若所述步骤S1035的判断结 果是否定的,即所述待打印文档数据即未与所述预打印纸张数据可显示内容重叠,又没有任一部分超出预打印纸张数据的数据区域,则接下来进入步骤S1037执行。Preferably, in the step S1035, the computer identification module further determines whether part of the document data to be printed is outside the preprinted paper data area, for example, in the legend shown in FIG. 10, although The document data to be printed is not overlapped with the displayable content of the preprinted paper data, but a part of the document data to be printed is beyond the data area of the preprinted paper data, so adjustment is still needed, and the step S1035 is performed. The judgment result is affirmative; otherwise, the judgment result of the step S1035 is negative. Further, if the result of the determination in step S1035 is affirmative, then proceed to step S1036; if the judgment of step S1035 is If it is negative, that is, the document data to be printed is not overlapped with the preprintable paper data displayable content, and no part of the data area beyond the preprinted paper data is passed, the process proceeds to step S1037.
优选地,在所述步骤S1036中,所述计算机识别模块确定所述待打印文档数据需要调整。相应地,此时所述应用程序获取所述待打印文档数据相对于预打印纸张数据区域的偏移距离及偏移方向,并优选地将所述偏移距离及所述偏移方向的反方向作为所述调整参数。Preferably, in the step S1036, the computer identification module determines that the document data to be printed needs to be adjusted. Correspondingly, the application acquires an offset distance and an offset direction of the document data to be printed with respect to the preprinted paper data area, and preferably reverses the offset distance and the offset direction As the adjustment parameter.
优选地,在所述步骤S1037中,所述计算机识别模块确定所述待打印文档数据不需要调整。相应地,所述打印驱动模块将所述待打印文档数据转化为可打印数据后直接发送给打印机进行打印操作。Preferably, in the step S1037, the computer identification module determines that the document data to be printed does not need to be adjusted. Correspondingly, the print driver module converts the to-be-printed document data into printable data and sends it directly to the printer for printing.
进一步地,在所述步骤S1034中所述计算机识别模块预先设置默认调整方向,若本次调整后的待打印文档数据与所述预打印纸张数据可显示内容的重叠区域不降反升,则再向所述默认调整方向的反方向以双倍调整参数的距离进行二次调整,本领域技术人员理解,对于上述步骤S1034中所述基于重叠判断结果确定进行调整的技术方案,对所述重叠区域的调整包括上、下、左、右四个方向的调整可行性方案,则需要对所述这4个调整可行性方案的调整结果进行判断,选取其中最优的调整方案作为所述调整参数。在一个优选例中,所述计算机识别模块基于所述待打印文档数据与纸张边界距离设定默认调整方向,其优选地将所述待打印文档数据向边界距离较大的那个方向移动调整。Further, in the step S1034, the computer identification module presets a default adjustment direction, and if the overlapped area of the adjusted document data to be printed and the preprinted paper data display content does not fall, then Performing a second adjustment to the direction of the double adjustment parameter in the opposite direction of the default adjustment direction, and those skilled in the art understand that, for the technical solution of determining the adjustment based on the overlap determination result in step S1034, the overlapping area is The adjustment includes the adjustment feasibility schemes of the upper, lower, left and right directions, and the adjustment results of the four adjustment feasibility schemes need to be judged, and the optimal adjustment scheme is selected as the adjustment parameter. In a preferred embodiment, the computer identification module sets a default adjustment direction based on the document data to be printed and the paper boundary distance, which preferably moves the document data to be printed to a direction in which the boundary distance is larger.
进一步地,所述调整后的待打印文档数据仍与所述预打印纸张数据以叠加形式显示在预览界面上,由用户判断是否符合用户预期,若用户确认符合预期则点击“打印”按钮,所述第二应用程序将调整参数发送给打印驱动模块;若用户对所述调整结果仍不满意则点击“调整”按钮,所述计算机识别模块再次对所述待打印文档数据进行调整。在一个非优选例中,用户也可以通过前期设置指示所述第二应用程序不向其反馈调整后的待打印文档数据,而是直接发送给打印驱动模块进行打印操作,节省用户等待时间。Further, the adjusted document data to be printed is still displayed on the preview interface in superimposed manner with the pre-printed paper data, and the user determines whether the user's expectation is met, and if the user confirms that the content meets the expectation, click the “print” button. The second application sends the adjustment parameter to the print driver module; if the user is still not satisfied with the adjustment result, click the “Adjust” button, and the computer recognition module adjusts the document data to be printed again. In a non-preferred example, the user may also indicate that the second application does not feed back the adjusted document data to be printed through the previous setting, but directly sends the print operation to the print driver module to save the user waiting time.
在本实施例的一个变化例中,所述步骤S1033中所述计算机识别模块基于图层覆盖方式判断所述待打印文档数据是否与所述预打印纸张数据的可显示内容重叠,本领域技术人员理解,对于所述待打印文档数据与所述预打印 纸张数据可显示内容部分重叠的情形,通过上述步骤S1033中所述位置参数来简单判断所述待打印文档数据是否与所述预打印纸张数据可显示内容重叠的技术方案很可能会出现偏差,例如,预打印纸张数据在距上边沿10cm处有一行可显示内容,而待打印文档数据在距上边沿9.5cm处有一行待打印文档数据,则若仅基于所述位置参数进行判断很容易出现误判。本变化例通过图层覆盖技术判断所述待打印文档数据与所述预打印纸张数据各自形成的图层中,是否有一方覆盖了对方非空白图层区域,本领域技术人员理解,所述待打印文档数据与所述预打印纸张数据最终都是转换为图像形式显示在所述预览界面上的,与上述步骤S1033所述技术方案相比,本变化例所述技术方案通过图层比较可以实现对重叠判断的精准解读,减少了误判率,提高了计算机识别模块自动识别的准确度。In a variation of the embodiment, the computer identification module in the step S1033 determines whether the document data to be printed overlaps with the displayable content of the pre-printed paper data based on the layer overlay mode, and those skilled in the art Understanding that the document data to be printed and the pre-printing The paper data may display a situation in which the content partially overlaps, and the technical solution for simply determining whether the document data to be printed overlaps with the displayable content of the preprinted paper data by the position parameter in the above step S1033 is likely to be biased, for example, The pre-printed paper data has a line at 10 cm from the upper edge to display the content, and the document data to be printed has a line of document data to be printed at 9.5 cm from the upper edge, and it is easy to make a mistake if only based on the position parameter. Judge. In this embodiment, it is determined by the layer overlay technology whether a layer formed by the document data to be printed and the preprinted paper data respectively covers a non-blank layer region of the other party, and the person skilled in the art understands that the The printed document data and the pre-printed paper data are finally converted into an image form and displayed on the preview interface. Compared with the technical solution described in the above step S1033, the technical solution of the present variation can be realized by layer comparison. Accurate interpretation of overlapping judgments reduces the false positive rate and improves the accuracy of automatic recognition of computer recognition modules.
在本实施例的另一个变化例中,所述步骤S1035以及所述步骤S1036可以省略,则所述计算机识别模块在确定所述待打印文档数据与所述预打印纸张数据的可显示内容不重叠后,直接确定所述待打印文档数据不需要调整,所述打印驱动模块可直接将所述待打印文档数据转化为可打印数据发送给打印机进行打印。In another variation of the embodiment, the step S1035 and the step S1036 may be omitted, and the computer identification module determines that the to-be-printed document data does not overlap with the displayable content of the pre-printed paper data. After the data of the document to be printed does not need to be directly determined, the print driver module can directly convert the data of the document to be printed into printable data and send it to the printer for printing.
本领域技术人员理解,与上述图5所示实施例相比,本实施例所述技术方案优选地通过计算机识别模块自动识别的方式判断所述待打印文档数据在所述预打印纸张数据上的位置是否需要调整,通过本实施例所述技术方案,可以有效排除待打印文档数据与预打印纸张数据可显示内容重叠和/或超出预打印纸张数据区域之外的情形,节省了需要用户操作的步骤和时间,提高打印效率。进一步地,本领域技术人员还可以将上述图5所示实施例中所述技术方案与本实施例所述技术方案结合使用,例如,基于所述计算机识别模块自动对待打印文档数据进行调整后,仍在所述预览界面上叠加显示所述待打印文档数据及预打印纸张数据,若用户认为当前自动调整结果不符合其预期,则直接在预览界面上移动所述待打印文档数据产生调整参数,优化打印效果,使得打印结果最大限度地满足用户预期。It is understood by those skilled in the art that, compared with the embodiment shown in FIG. 5, the technical solution in this embodiment preferably determines that the document data to be printed is on the pre-printed paper data by means of automatic recognition by the computer identification module. Whether the location needs to be adjusted, the technical solution described in this embodiment can effectively eliminate the situation that the document data to be printed overlaps with the pre-printable paper data displayable content and/or exceeds the pre-printed paper data area, thereby saving the user's operation. Steps and time to improve printing efficiency. Further, those skilled in the art may also use the technical solution described in the foregoing embodiment shown in FIG. 5 in combination with the technical solution described in this embodiment. For example, after the computer identification module automatically adjusts the printed document data, And displaying the to-be-printed document data and the pre-printed paper data on the preview interface. If the user thinks that the current automatic adjustment result does not meet the expected result, directly moving the to-be-printed document data on the preview interface to generate an adjustment parameter. Optimize the print results so that the print results are as high as possible.
本领域技术人员理解,在上述图3至图6所示实施例的一个共同变化例中,所述第二应用程序还允许用户对所述待打印文档数据进行优化处理,如 图12所示,用户除了可以进行打印位置调整操作之外,还可对所述待打印文档数据的对比度、亮度等进行调整,或者对待打印文档数据进行裁剪、旋转等图像处理。进一步地,当用户点击对比度调整、亮度调整等优化处理选项时,所述第二应用程序不会调用所述预打印纸张数据,所述预览界面优选显示经过图像处理后的待打印文档数据,只有当用户点击“打印位置调整”选项时,所述第二应用程序才会调取所述预打印纸张数据并叠加显示在所述预览界面上供用户浏览,这样的设计更加人性化,能够给用户提供良好的用户体验。It is understood by those skilled in the art that in a common variation of the embodiment shown in FIG. 3 to FIG. 6, the second application further allows the user to perform optimization processing on the document data to be printed, such as As shown in FIG. 12, in addition to the print position adjustment operation, the user can adjust the contrast, brightness, and the like of the document data to be printed, or perform image processing such as cropping, rotation, and the like on the document data to be printed. Further, when the user clicks an optimization processing option such as contrast adjustment, brightness adjustment, etc., the second application does not call the pre-printed paper data, and the preview interface preferably displays the image data to be printed after the image processing, only When the user clicks the "print position adjustment" option, the second application will retrieve the pre-printed paper data and superimpose it on the preview interface for the user to browse. This design is more user-friendly and can be given to the user. Provide a good user experience.
图13示出根据本发明的第三实施例的,一种适用于预打印纸的画像调整控制装置的结构图,其用于打印机中对待打印文档数据进行调整以使得所述待打印文档数据准确地打印到所述预打印纸上。具体地,在本实施例中,所述控制装置4包括预打印纸张数据获取装置41,其用于获取预打印纸张数据;待打印文档数据获取装置42,其用于获取待打印文档数据;第一判断装置43,其用于比较所述预打印纸张数据以及所述待打印文档数据并判断所述待打印文档数据是否需要调整;调整参数生成装置44,其用于在所述待打印文档数据需要调整时基于所述第一判断装置的判断结果生成调整参数;以及打印处理装置45,其用于基于所述待打印文档数据以及所述调整参数进行打印。在一个优选例中,所述控制装置4基于所述预打印纸张数据获取装置41以及所述待打印文档数据获取装置42获取相应的预打印纸张数据以及待打印文档数据后,调用所述第一判断装置43判断所述待打印文档数据相对于预打印纸张数据是否需要调整,若所述第一判断装置43确定所述待打印文档数据需要调整,则调用所述调整参数生成装置44及所述打印处理装置45进行相应处理;若所述第一判断装置43确定所述待打印文档数据无需调整,则直接调用打印驱动模块将所述待打印文档数据转化为可打印数据后发送给打印机进行打印。其中,所述预打印纸张数据包括当前打印用纸上预先印制的文字、图像或两者的结合;所述待打印文档数据包括待打印文档在特定纸张尺寸上可打印区域的数据分布。Figure 13 is a block diagram showing an image adjustment control apparatus suitable for preprinted paper for adjusting a document to be printed in a printer so that the document data to be printed is accurate in accordance with a third embodiment of the present invention. Printed onto the preprinted paper. Specifically, in the embodiment, the control device 4 includes a pre-printed paper data acquiring device 41 for acquiring pre-printed paper data; a document data acquiring device 42 to be printed for acquiring document data to be printed; a judging device 43 for comparing the pre-printed paper data and the document data to be printed and determining whether the document data to be printed needs to be adjusted; adjusting parameter generating means 44 for using the document data to be printed The adjustment parameter is generated based on the determination result of the first determination device when adjustment is required; and the print processing device 45 is configured to perform printing based on the document data to be printed and the adjustment parameter. In a preferred embodiment, the control device 4 calls the first after the pre-printed paper data acquiring device 41 and the document-to-print data acquiring device 42 acquire corresponding pre-printed paper data and document data to be printed. The determining device 43 determines whether the document data to be printed needs to be adjusted with respect to the preprinted paper data. If the first determining device 43 determines that the document data to be printed needs to be adjusted, the adjustment parameter generating device 44 and the The print processing device 45 performs corresponding processing; if the first determining device 43 determines that the document data to be printed does not need to be adjusted, directly calls the print driver module to convert the data to be printed into printable data and then sends the data to the printer for printing. . The pre-printed paper data includes pre-printed characters, images or a combination of the two on the current printing paper; the document data to be printed includes a data distribution of the printable area of the document to be printed on a specific paper size.
进一步地,所述预打印纸张数据获取装置41基于图像获取设备或系统导入等方式获取所述预打印纸张数据,其中,所述系统导入包括本地文件导入、 网络导入等方式。更进一步地,所述待打印文档数据获取装置42基于打印驱动模块以及GDI模块中的DEVMODE结构体、GDIINFO结构体获取所述待打印文档数据。Further, the pre-printed paper data acquiring device 41 acquires the pre-printed paper data based on an image acquisition device or a system import or the like, wherein the system import includes local file import, Network import and other methods. Further, the document data acquiring device 42 to be printed acquires the document data to be printed based on the DEVMODE structure and the GDIINFO structure in the print driver module and the GDI module.
进一步地,所述调整参数包括打印位置调整参数,相应地,所述调整参数生成装置44基于用户操作获取所述调整参数,例如,将用户移动鼠标拖动所述待打印文档数据位置后产生的位移作为所述调整参数;或者将用户手动输入或确认指令作为所述调整参数。更进一步地,所述调整参数生成装置44还基于指定基准线的方式确定所述调整参数。Further, the adjustment parameter includes a print position adjustment parameter, and accordingly, the adjustment parameter generation device 44 acquires the adjustment parameter based on a user operation, for example, after the user moves the mouse to drag the position of the document data to be printed. The displacement is used as the adjustment parameter; or the user manually inputs or confirms the instruction as the adjustment parameter. Further, the adjustment parameter generating means 44 further determines the adjustment parameter based on the manner in which the reference line is specified.
进一步地,所述打印处理装置45基于打印驱动模块对待打印文档数据进行平移处理,由打印机原有的打印驱动模块基于所述调整参数对待打印文档数据进行平移处理,从而实现待打印文档数据的打印位置调整。更进一步地,所述打印驱动模块基于所述调整参数对所述待打印文档数据进行平移处理的之前/同时/之后,还将所述待打印文档数据转化为可打印数据并发送给打印机进行打印。Further, the print processing device 45 performs a panning process on the document to be printed based on the print driver module, and the original print driver module of the printer performs a panning process on the document data to be printed based on the adjustment parameter, thereby implementing printing of the document data to be printed. Position adjustment. Further, the print driver module converts the to-be-printed document data into printable data and sends it to the printer for printing before/simultaneously/after the panning process of the document data to be printed based on the adjustment parameter. .
优选地,所述第一判断装置43包括调整预览模块431,其用于以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据;以及第二判断装置432,其用于接收用户指令以确定所述待打印文档数据是否需要调整。具体地,所述调整预览模块431基于操作系统应用程序编程接口API中的接口函数StretchBlt()将所述预打印纸张数据以及所述待打印文档数据以窗口形式叠加展示在弹出的预览界面上。更为具体地,所述用户指令包括用户调整所述待打印文档数据的控制指令。在一个优选例中,用户可以向所述预览调整模块431发送指令以调节待打印文档数据及预打印纸张数据显示窗口图层透明度,确保在叠加显示所述待打印文档数据以及预打印纸张数据时下层数据图像不会被上层数据图像所覆盖。Preferably, the first determining means 43 comprises an adjustment preview module 431 for superimposing and displaying the preprinted paper data and the document data to be printed in the form of a window; and a second determining means 432 for receiving The user instructs to determine if the document data to be printed needs to be adjusted. Specifically, the adjustment preview module 431 displays the pre-printed paper data and the to-be-printed document data in a window form on the pop-up preview interface based on the interface function StretchBlt() in the operating system application programming interface API. More specifically, the user instruction includes a control instruction by a user to adjust the document data to be printed. In a preferred embodiment, the user can send an instruction to the preview adjustment module 431 to adjust the document data to be printed and the preprinted paper data display window layer transparency to ensure that the document data to be printed and the preprinted paper data are superimposed. The underlying data image is not overwritten by the upper data image.
优选地,所述第二判断装置432包括控制指令接收装置4321,其用于接收用户调整所述待打印文档数据的控制指令,相应地,所述调整参数生成装置44基于所述控制指令生成所述调整参数。具体地,所述控制指令包括用户移动所述待打印文档数据的指令信息,例如,用户在所述预览界面上通过鼠标拖动或键盘方向键移动的方式将所述待打印文档数据移动至期望位置后点击“打印”选项,则所述调整参数生成装置44将移动后的待打印文档数据相 对于原待打印文档数据的位置偏移量作为所述调整参数。Preferably, the second determining means 432 includes a control instruction receiving means 4321 for receiving a control instruction for the user to adjust the document data to be printed, and accordingly, the adjustment parameter generating means 44 generates a basis based on the control instruction The adjustment parameters are described. Specifically, the control instruction includes instruction information that the user moves the document data to be printed, for example, the user moves the document data to be printed to a desired manner by using a mouse drag or a keyboard direction key movement on the preview interface. After the location, click the "print" option, then the adjustment parameter generating means 44 will move the document data to be printed The position offset amount of the document data to be printed is used as the adjustment parameter.
在本实施例的一个变化例中,所述控制指令接收装置4321可以被替换为指示信息接收装置4322,其用于接收用户调整所述待打印文档数据的指示信息,所述指示信息确定所述待打印文档数据需要调整,例如,用户通过观察所述预览界面上待打印文档数据与预打印纸张数据的叠加效果,判断需要对所述待打印文档数据进行调整,则向所述指示信息接收装置4322发送确认调整的指示信息,所述指示信息接收装置4322基于所述指示信息,调用调整参数生成装置44判断所述待打印文档数据相对于预打印纸张数据的偏移量并生成调整参数。进一步地,所述调整参数生成装置44调用计算机识别模块对所述待打印文档数据进行调整,自动生成调整参数。In a variation of this embodiment, the control command receiving device 4321 may be replaced with an indication information receiving device 4322 for receiving indication information that the user adjusts the document data to be printed, the indication information determining the The document data to be printed needs to be adjusted. For example, the user determines that the document data to be printed needs to be adjusted by observing the superimposition effect of the document data to be printed on the preview interface and the preprinted paper data, and then the instruction information receiving device is 4322 sends the indication information of the confirmation adjustment, and the indication information receiving means 4322 invokes the adjustment parameter generation means 44 to determine the offset of the document data to be printed with respect to the preprinted paper data based on the indication information and generates an adjustment parameter. Further, the adjustment parameter generating device 44 calls the computer identification module to adjust the data of the document to be printed, and automatically generates an adjustment parameter.
在本实施例的又一个变化例中,所述预览调整模块431可以“在一终端中以窗口形式叠加显示所述预打印纸张数据以及所述待打印文档数据,其中,所述终端与所述打印机相关联”,例如,所述预览调整模块431可以将所述预打印纸张数据及所述待打印文档数据以窗口形式叠加显示在与所述打印机同处于一无线局域网内的任一终端上,使得即使用户当前不在打印机周围同样能通过与所述打印机相关联的终端进行预览操作。In still another variation of the embodiment, the preview adjustment module 431 may “superimpose and display the pre-printed paper data and the to-be-printed document data in a window form in a terminal, wherein the terminal and the The printer is associated with, for example, the preview adjustment module 431 may superimpose the pre-printed paper data and the to-be-printed document data in a window form on any terminal in the wireless local area network with the printer. This allows a preview operation to be performed by the terminal associated with the printer even if the user is not currently around the printer.
在本实施例的另一个变化例中,所述调整预览模块431以及所述第二判断装置432可以被替换为第三判断装置433,其用于判断所述待打印文档数据是否与所述预打印纸张数据的可显示内容重叠,相应地,若所述待打印文档数据与所述预打印纸张数据的可显示内容重叠则确定所述待打印文档数据需要调整。在一个优选例中,所述第三判断装置433调用所述计算机识别模块基于所述预打印纸张数据可显示内容及所述待打印文档数据各自的位置参数判断两者是否重叠,若所述计算机识别模块确定所述待打印文档数据与所述预打印纸张数据重叠,则基于两者的重叠区域确定调整参数,以两者不再重叠为准。In another variation of this embodiment, the adjustment preview module 431 and the second determining device 432 may be replaced with a third determining device 433 for determining whether the document data to be printed is related to the pre- The displayable content of the print paper data is overlapped, and accordingly, if the document data to be printed overlaps with the displayable content of the preprinted paper data, it is determined that the document data to be printed needs to be adjusted. In a preferred embodiment, the third determining means 433 invokes the computer identification module to determine whether the two are overlapped based on the pre-printed paper data displayable content and the respective positional parameters of the to-be-printed document data, if the computer The identification module determines that the document data to be printed overlaps with the pre-printed paper data, and then determines an adjustment parameter based on the overlapping area of the two, so that the two are no longer overlapped.
进一步地,所述第三判断装置433还包括第四判断装置,其用于当所述待打印文档数据与所述预打印纸张数据的可显示内容不重叠时,进一步判断部分所述待打印文档数据是否在所述预打印纸张数据区域之外,例如,虽然所述待打印文档数据未与所述预打印纸张数据的可显示内容重叠,但所述待打印文档数据有一部分超出了预打印纸张数据的数据区域,所以仍需要进行 调整,此时所述第四判断装置确定所述待打印文档数据需要调整,则所述控制装置4调用所述计算机识别模块生成所述调整参数。Further, the third determining device 433 further includes fourth determining means for further determining a portion of the document to be printed when the document data to be printed does not overlap with the displayable content of the preprinted paper data Whether the data is outside the preprinted paper data area, for example, although the document data to be printed does not overlap with the displayable content of the preprinted paper data, a part of the document data to be printed exceeds the preprinted paper The data area of the data, so it still needs to be done Adjusting, at this time, the fourth determining means determines that the document data to be printed needs to be adjusted, and the control device 4 calls the computer identification module to generate the adjustment parameter.
在本实施例的另一个变化例中,所述打印处理装置45基于打印位置调整模块对待打印文档数据进行平移处理,本领域技术人员理解,与上述图13所示实施例中通过打印机原有打印驱动模块对待打印文档数据进行平移处理的技术方案相比,本变化例通过单独的打印位置调整模块来实现对待打印文档数据进行平移处理,提高了所述打印机处理装置45对所述待打印文档数据的处理速度,有利于所述控制装置4中各个单元工作职责的精确定位。In another variation of the embodiment, the print processing device 45 performs a translation process on the document data to be printed based on the print position adjustment module, and those skilled in the art understand that the original print by the printer in the embodiment shown in FIG. 13 above is understood. Compared with the technical solution that the driving module performs the translation processing on the printed document data, the present modification implements the translation processing of the document to be printed by the separate printing position adjustment module, and improves the data of the document to be printed by the printer processing device 45. The processing speed facilitates the precise positioning of the work responsibilities of the various units in the control device 4.
进一步地,所述打印处理装置45中的打印驱动模块或者所述打印位置调整模块基于所述调整参数生成打印机打印位置调整命令后,与所述可打印数据一并发送给打印机,由所述打印机基于所述打印机打印位置调整命令调整打印机的起始打印位置,从而实现对所述待打印文档数据打印位置的调整。Further, after the print driver module or the print position adjustment module in the print processing device 45 generates a printer print position adjustment command based on the adjustment parameter, the print data is sent to the printer together with the printable data. Adjusting the initial print position of the printer based on the printer print position adjustment command, thereby realizing adjustment of the print position of the document data to be printed.
以上对本发明的具体实施例进行了描述。需要理解的是,本发明并不局限于上述特定实施方式,本领域技术人员可以在权利要求的范围内做出各种变形或修改,这并不影响本发明的实质内容。 The specific embodiments of the present invention have been described above. It is to be understood that the invention is not limited to the specific embodiments described above, and various modifications and changes may be made by those skilled in the art without departing from the scope of the invention.

Claims (11)

  1. 一种适用于预打印纸的画像调整控制方法,用于打印机中对待打印文档数据进行调整以使得所述待打印文档数据准确地打印到所述预打印纸上,其特征在于,包括如下步骤:A portrait adjustment control method for preprinted paper for adjusting a document to be printed in a printer to cause the document data to be printed to be accurately printed onto the preprinted paper, comprising the following steps:
    a.获取预打印纸张数据;a. Obtain pre-printed paper data;
    b.获取待打印文档数据;b. Obtaining document data to be printed;
    c.基于所述预打印纸张数据以及所述待打印文档数据判断所述待打印文档数据是否需要调整;c. determining, according to the pre-printed paper data and the document data to be printed, whether the document data to be printed needs to be adjusted;
    d.若所述待打印文档数据需要调整,则基于所述预打印纸张数据以及所述待打印文档数据生成调整参数;以及d. if the document data to be printed needs to be adjusted, generating an adjustment parameter based on the pre-printed paper data and the document data to be printed;
    e.基于所述待打印文档数据以及所述调整参数进行打印。e. printing based on the document data to be printed and the adjustment parameters.
  2. 根据权利要求1所述的控制方法,其特征在于,在所述步骤d之后包括如下步骤:The control method according to claim 1, characterized in that after the step d, the following steps are included:
    f.将所述预打印纸张数据与所述调整参数相适应地存储。f. storing the preprinted paper data in accordance with the adjustment parameters.
  3. 根据权利要求1或2所述的控制方法,其特征在于,所述步骤c包括如下步骤:The control method according to claim 1 or 2, wherein the step c comprises the following steps:
    c1.以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据;C1. superimposing and displaying the preprinted paper data and the to-be-printed document data in the form of a window;
    c2.接收用户指令以确定所述待打印文档数据是否需要调整。C2. Receive a user instruction to determine whether the document data to be printed needs to be adjusted.
  4. 根据权利要求3所述的控制方法,其特征在于,所述步骤c2还包括如下步骤中的任一个:The control method according to claim 3, wherein the step c2 further comprises any one of the following steps:
    c21.接收用户调整所述待打印文档数据的控制指令,相应地,在所述步骤d中基于所述控制指令生成所述调整参数;或者C21. receiving, by the user, a control instruction for adjusting the data of the document to be printed, and correspondingly, generating the adjustment parameter based on the control instruction in the step d; or
    c22.接收用户调整所述待打印文档数据的指示信息,所述指示信息确定所述待打印文档数据需要调整。C22. Receive indication information that the user adjusts the document data to be printed, where the indication information determines that the document data to be printed needs to be adjusted.
  5. 根据权利要求3所述的控制方法,其特征在于,所述步骤c1包括如下步骤:The control method according to claim 3, wherein the step c1 comprises the following steps:
    c11.在一终端中以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据,其中,所述终端与所述打印机相关联。 C11. The preprinted paper data and the document data to be printed are superimposed and displayed in the form of a window in a terminal, wherein the terminal is associated with the printer.
  6. 根据权利要求1或2所述的控制方法,其特征在于,所述步骤c包括如下步骤:The control method according to claim 1 or 2, wherein the step c comprises the following steps:
    c1’.判断所述待打印文档数据是否与所述预打印纸张数据的可显示内容重叠;C1. determining whether the document data to be printed overlaps with the displayable content of the preprinted paper data;
    c2’.若所述待打印文档数据与所述预打印纸张数据的可显示内容不重叠,则进一步判断部分所述待打印文档数据是否在所述预打印纸张数据区域之外;If the document data to be printed does not overlap with the displayable content of the preprinted paper data, further determining whether part of the document data to be printed is outside the preprinted paper data area;
    c3’.基于所述步骤c1’和/或所述步骤c2’的判断结果确定所述待打印文档数据需要调整。C3'. determining that the document data to be printed needs to be adjusted based on the result of the determination of the step c1' and/or the step c2'.
  7. 根据权利要求1或2或4或5或6所述的控制方法,其特征在于,所述步骤a包括如下步骤中的任一个:The control method according to claim 1 or 2 or 4 or 5 or 6, wherein said step a comprises any one of the following steps:
    a1.基于图像获取设备获取所述预打印纸张数据;或者A1. acquiring the pre-printed paper data based on an image acquisition device; or
    a1′.基于系统导入获取所述预打印纸张数据。A1'. Acquiring the pre-printed paper data based on system import.
  8. 一种适用于预打印纸的画像调整控制装置,用于打印机中对待打印文档数据进行调整以使得所述待打印文档数据准确地打印到所述预打印纸上,其特征在于,包括如下装置:An image adjustment control device suitable for preprinted paper for adjusting a document to be printed in a printer to cause the document data to be printed to be accurately printed onto the preprinted paper, characterized in that it comprises the following means:
    预打印纸张获取装置,其用于获取预打印纸张数据;a preprinted paper acquiring device for acquiring preprinted paper data;
    待打印文档数据获取装置,其用于获取待打印文档数据;a document data acquiring device to be printed, which is used to acquire document data to be printed;
    第一判断装置,其用于比较所述预打印纸张数据以及所述待打印文档数据并判断所述待打印文档数据是否需要调整;a first judging device, configured to compare the pre-printed paper data and the document data to be printed and determine whether the document data to be printed needs to be adjusted;
    调整参数生成装置,其用于在所述待打印文档数据需要调整时基于所述第一判断装置的判断结果生成调整参数;以及Adjusting parameter generating means for generating an adjustment parameter based on a determination result of the first determining means when the document data to be printed needs to be adjusted;
    打印处理装置,其用于基于所述待打印文档数据以及所述调整参数进行打印。A print processing apparatus for printing based on the document data to be printed and the adjustment parameter.
  9. 根据权利要求8所述的控制装置,其特征在于,所述第一判断装置包括如下装置:The control device according to claim 8, wherein said first determining means comprises:
    调整预览模块,其用于以窗口的形式叠加显示所述预打印纸张数据以及所述待打印文档数据;以及Adjusting a preview module for superimposing and displaying the preprinted paper data and the document data to be printed in the form of a window;
    第二判断装置,其用于接收用户指令以确定所述待打印文档数据是否需要调整。 And a second determining means for receiving a user instruction to determine whether the document data to be printed needs to be adjusted.
  10. 根据权利要求9所述的控制装置,其特征在于,所述第二判断装置还包括如下装置中的任一个:The control device according to claim 9, wherein said second determining means further comprises any one of the following:
    控制指令接收装置,其用于接收用户调整所述待打印文档数据的控制指令,相应地,所述调整参数生成装置基于所述控制指令生成所述调整参数;或者a control instruction receiving device, configured to receive a control instruction for the user to adjust the document data to be printed, and correspondingly, the adjustment parameter generating device generates the adjustment parameter based on the control instruction; or
    指示信息接收装置,其用于接收用户调整所述待打印文档数据的指示信息,所述指示信息确定所述待打印文档数据需要调整。The indication information receiving device is configured to receive indication information that the user adjusts the document data to be printed, and the indication information determines that the document data to be printed needs to be adjusted.
  11. 根据权利要求8所述的控制装置,其特征在于,所述第一判断装置包括如下装置:The control device according to claim 8, wherein said first determining means comprises:
    第三判断装置,其用于判断所述待打印文档数据是否与所述预打印纸张数据的可显示内容重叠,相应地,若所述待打印文档数据与所述预打印纸张数据的可显示内容重叠则确定所述待打印文档数据需要调整。 a third determining device, configured to determine whether the document data to be printed overlaps with the displayable content of the preprinted paper data, and correspondingly, if the document data to be printed and the displayable content of the preprinted paper data The overlap determines that the document data to be printed needs to be adjusted.
PCT/CN2016/108507 2015-12-21 2016-12-05 Method and device suitable for controlling picture adjustment for preprinted paper WO2017107760A1 (en)

Applications Claiming Priority (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
CN201510973935.2 2015-12-21

Publications (2)

Publication Number Publication Date
WO2017107760A1 true WO2017107760A1 (en) 2017-06-29
WO2017107760A9 WO2017107760A9 (en) 2017-10-05

Family

ID=55987839

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108507 WO2017107760A1 (en) 2015-12-21 2016-12-05 Method and device suitable for controlling picture adjustment for preprinted paper

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442311A (en) * 2019-06-14 2019-11-12 厦门汉印电子技术有限公司 A kind of adaptive Method of printing, device and printer

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607879A (en) * 2015-12-21 2016-05-25 珠海奔图电子有限公司 Portrait adjustment control method and apparatus suitable 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
JP6825455B2 (en) * 2017-03-30 2021-02-03 ブラザー工業株式会社 Printing equipment
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
TWI681661B (en) * 2018-03-26 2020-01-01 虹光精密工業股份有限公司 Image outputting device, multi-function office apparatus, image processing module and related image outputting method
CN108964889B (en) * 2018-05-30 2021-11-16 广州江南科友科技股份有限公司 Key envelope format graphical editing method and device
CN109733079B (en) * 2018-12-28 2019-10-18 浙江锦康实业有限公司 Packing box antiforging printing method
CN110221790B (en) * 2019-05-28 2023-02-21 迈克医疗电子有限公司 Universal printing method and apparatus, analyzer, and storage medium
CN110978822A (en) * 2019-11-19 2020-04-10 广州市三环永新科技有限公司 Lottery printing method, lottery reader, lottery printing system and storage medium
CN111596869B (en) * 2020-04-29 2022-11-18 厦门汉印电子技术有限公司 Printing data typesetting method and device, printer and storage medium
CN118175235A (en) * 2020-06-01 2024-06-11 珠海奔图电子有限公司 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
CN117170600B (en) * 2023-11-02 2024-02-23 中科方德软件有限公司 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
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
CN104999809A (en) * 2015-07-20 2015-10-28 深圳市索登科技有限公司 Post-press processing adaptive adjusting method and system
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4097609B2 (en) * 2004-02-20 2008-06-11 シャープ株式会社 Image forming apparatus
KR101596084B1 (en) * 2011-12-20 2016-02-19 캐논 가부시끼가이샤 Image processing apparatus, method for controlling image processing apparatus, and storage medium

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
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
CN105589666A (en) * 2014-11-13 2016-05-18 王者蓝 Method for printing with template based on original content of paper
CN104999809A (en) * 2015-07-20 2015-10-28 深圳市索登科技有限公司 Post-press processing adaptive adjusting method and system
CN105607879A (en) * 2015-12-21 2016-05-25 珠海奔图电子有限公司 Portrait adjustment control method and apparatus suitable for preprinted paper

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442311A (en) * 2019-06-14 2019-11-12 厦门汉印电子技术有限公司 A kind of adaptive Method of printing, device and printer

Also Published As

Publication number Publication date
CN105607879A (en) 2016-05-25
WO2017107760A9 (en) 2017-10-05

Similar Documents

Publication Publication Date Title
WO2017107760A1 (en) Method and device suitable for controlling picture adjustment for preprinted paper
JP4311432B2 (en) Information processing apparatus and program
EP3203367B1 (en) Cloud server, user terminal apparatus, image forming apparatus, method for managing document and method for controlling print
KR101525300B1 (en) Information processing apparatus, control method, and recording medium
US20020131065A1 (en) Method for imaging multiple sets of an electronic document on one or more image forming devices
US9624610B2 (en) Embroidery pattern placement system, embroidery pattern placement device, method of placing embroidery pattern for embroidery pattern placement device, and sewing machine
JP5995461B2 (en) Information processing apparatus, control method, and program
EP2750029B1 (en) Display processing apparatus, image forming apparatus, display processing system of a remote screen, and display processing method
JP2014222481A (en) Image forming system, remote control device, and program
US20110141519A1 (en) Data processing system, data processing apparatus, data processing method, information processing apparatus, information processing method, and storage medium
US10298786B2 (en) Method for performing job by using widget, and image forming apparatus for performing the same
CN107399169A (en) The control method and device of printer
JP6939304B2 (en) Control program
CN102970453B (en) Image forming apparatus and the control method thereof of actual size preview can be shown
JP6330488B2 (en) Information processing apparatus, recording system, and program
US20090323099A1 (en) Printing method and printer driver providing user interface for generating output files
JP6531427B2 (en) PROCESSING SYSTEM, TERMINAL DEVICE, PROCESSING DEVICE, PROCESSING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP2007034702A (en) Peripheral equipment control system
KR101385492B1 (en) Data transmitting device, image forming apparatus and methods thereof
JP2014220560A (en) Image forming apparatus
JP6962352B2 (en) Information processing equipment, recording systems, and programs
CN102804748B (en) Image processing system, image processing method, and image forming apparatus and external apparatus constituting image processing system
US9025191B2 (en) Display operation device, non-transitory computer-readable recording medium storing display operation program, and display operation method and image forming apparatus
JP4839652B2 (en) Print control apparatus, print control method, print control program, and recording medium
US20210342106A1 (en) Program, method, and device for generating job data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16877571

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16877571

Country of ref document: EP

Kind code of ref document: A1