The present invention relates to a print data generating apparatus using an overlay printing unit and a duplex printing unit. Further, the present invention relates to an image recording system including the print data generating apparatus.
In a printer having a form overlay printing function, a hard disk is disposed inside the printer for registering a ledger sheet or a logo as a form. In the form overlay printing, other print data are printed over the form (see Patent Reference).
For example, on a medical record form, a prescription, or a direct mail, a front side thereof is printed with contents different per page, and a backside thereof is printed with a standard format such as direction or information. When a conventional printer prints such a form, first, the printer prints on the backside of the form using the form overlay printing function, and then prints on the front side thereof.
Alternatively, in a printer having the form overlay printing function and a duplex printing unit, an upper device forms a standard format of a backside on even pages with an application program (application), so that the form is printed through the duplex printing.
In the conventional printer without the duplex printing unit, it is necessary to reset a sheet in a tray such that a front side thereof becomes a printing side to be printed after a backside thereof is printed through one-side printing, thereby causing cumbersome problem. In the conventional printer with the duplex printing unit, when print data of the backside are changed, it is necessary to change all of data of even pages, i.e., the backsides, even though all of data are the same, thereby causing another cumbersome problem.
In view of the problems described above, an object of the present invention is to provide a print data generating apparatus capable of solving the problems described above.
Further objects and advantages of the invention will be apparent from the following description of the invention.
In order to attain the objects described above, according to the present invention, a print data generating apparatus comprises a receiving unit for receiving first data sent from an application; a selection unit for selecting second data stored in a storage unit of a terminal device; an insertion page information generating unit for assigning a page where the second data are inserted into the first data created by the application; a blank page addition unit for generating third data in which a blank page is added to the page of the first data assigned by the insertion page information generating unit; a direction unit for directing the terminal device to overlay the second data on the blank page; and a print data generating unit for generating print data according to the third data and the direction of the direction unit.
With the configuration described above, the data created with the application are used as the print data for one side, and the form data registered in advance are used to create the print data for the other side, so that the print data are printed with the overlay printing unit. Accordingly, it is not necessary to reset a sheet in a tray such that a front side thereof becomes a printing side to be printed after a backside thereof is printed through one-side printing. Further, it is not necessary to change all of pages of the form data.
a) to 11(d) are views showing examples of data and a printed result according to the first embodiment of the present invention;
a) to 16(d) are views showing examples of data and a printed result according to the second embodiment of the present invention;
a) to 19(c) are views showing examples of data and a printed result according to the third embodiment of the present invention.
Hereunder, embodiments of the present invention will be explained with reference to the accompanying drawings.
In a first embodiment, a print data generating apparatus uses data created with an application as print data for a front side, and generates print data using form data registered in advance as common print data for a backside, so that the print data is printed with an overlay printing unit.
An operation of the print data generating apparatus will be explained next.
a) is a view showing data created with the application 5 and contents to be printed on the front side. As shown in
With reference to
In step S4, the print data from the application 5 are described with the GDI (Graphical Device Interface) graphic command of Windows (trademark of Microsoft). The printer driver 3 converts the GDI graphic command to PDL (Page Description Language) that the printer can interpret, so that the print data to be the form data are created as a file.
In step S5, using storage device manager, i.e., one of utilities or an application for administering a hard drive of the printer 2, the file created in step S4 is sent to the printer 2. At this time, the storage device manager adds a command of registering the file to the printer 2 to the data created in step S4.
In step S6, the printer 2 stores the data received from the storage device manager in the hard drive of the printer 2, so that the form data shown in
With reference to
When the printer is not provided with the duplex printing unit, since the printer does not perform the duplex printing, the check box 20b of backside overlay is ghosted, so that the backside overlay cannot be selected.
An operation of defining the overlay will be explained next. First, in the overlay dialog shown in
After desired contents are input in the boxes, when an addition button 33 is pushed, the form data is registered to the printer driver 3 as the defined overlay, and is displayed in a defined overlay list box 22 shown in
After the setting of the definition of the overlay is completed, when a close button 34 is pushed, the overlay dialog shown in
Then, the overlay to be used is selected from the list box 22, and an addition button 25 is pushed, so that the overlay is added to the overlay list box 21 arranged at the upper portion. When an OK button 24 is clicked, the overlay dialog is closed, and the printer property setting screen is returned.
As described above, the added overlay is printed as the overlay upon printing. When the backside overlay mode 20b is checked as shown in
In a standard format, a common portion (form) such as a ledger sheet is separated from a non-common portion (non-form) such as a personal name or address to be filled in the form. Then, the macro function, i.e., a function for replacing a plurality of commands and data to a printer with one single command, is used to register each form to the printer corresponding to a macro ID, i.e., a number assigned to the macro. When the non-form is printed, the desired macro ID is selected, so that the form and the non-form are printed through the overlay printing.
With reference to the flow chart shown in
In step S13, the macro ID corresponding to the form created in the overlay setting dialog is added to the selected command, so that the print data is created. In step S14, the data created with the printer driver 3 and the form data registered in the printer 2 in advance are printed in the overlaid state, so that the document data is overlaid on the designated form.
With reference to
In step S21, when a print button in a print dialog (not shown) is clicked to start the printing, the printer driver 3 calls for “StartDoc” from GDI, so that the print job is started. In step S22, “StartPage” is called to start a page. In step S23, after “StartPage” is called, data in the page described with the GDI graphic command is converted to PDL. In step S24, after one page is processed, “EndPage” is called. In step S25, the backside overlay (described later) is performed, thereby completing the process of one page.
In step S26, it is determined whether all pages are printed. When there is no next page, in step S27, “EndDoc” is called, thereby completing the print job. When there is a next page, the process returns to step S22, thereby processing the next page.
With reference to the flow chart shown in
In step S31, the printer driver 3 adds the command for selecting the backside printing in the “EndPage” process (page completion process), so that the duplex printing unit prints on the backside. In step S32, the printer driver 3 adds the command for calling for the macro ID corresponding to the overlay to be printed set in the overlay dialog in the printer property shown in
As described above, in the overlay printing process, the form and the non-form are printed in the overlaid state. In the backside overlay process, when the form is printed, the backside print command and the page flip command are added. Accordingly, the non-form, i.e., the data created with the application 5, is printed on the front side, and the form is printed on the backside.
As a result, according to the data created with the application 5 shown in
In the first embodiment, the data created with the application 5 are printed on the front side, and the form data are printed on the backside through the backside overlay printing. Alternatively, the command for calling for the Macro ID and the page flip command may be added before each page created with the application. Accordingly, it is possible to print the form data on the front side and the data created with the application 5 on the backside.
Further, the command for calling for the Macro ID and the page flip command may be added at the last portion of data of a previous page of a desired page. Accordingly, it is possible to overlay the form data only on the desired page.
As described above, in the print data generating apparatus according to the first embodiment, the data created with the application is used as the print data for the front side. The common print data for the backside is created using the form data registered in advance. The front side and backside are printed with the overlay printing unit. Accordingly, it is not necessary to reset a sheet in a tray such that the front side thereof becomes the printing side to be printed after the backside is printed. Further, it is not necessary to change all of pages of the form data.
A second embodiment of the present invention will be explained next. In a print data generating apparatus according to the second embodiment, data of the first page created with the application is used as data of the backside. The printer driver is set to the duplex printing mode, so that the data of the first page are printed on the backside of each page with the printer driver.
First, terminology associated with the print data generating apparatus according to the second embodiment will be explained. In general, a spool format upon printing, i.e., a format for saving data to be sent to a printer as a file in a disk, includes RAW and EMF. RAW (raw data) is a specific format dependent on a language system of a printer. EMF (Enhanced Metafiles Format) is a format using the GDI (Graphical Device Interface) graphic command of Windows (trademark of Microsoft). A file created with EMF is called an EMF file.
The GDI graphic command stored as the EMF file is delivered to the printer driver with a spooler, i.e., one of functions of OS administering a plurality of job commands. Then, the GDI graphic command is converted to PDL and delivered to the printer 2, thereby printing.
Next, a “print processor” will be explained. The print processor sends the spool data to the printer as is when the spool format is RAW, and regenerates or de-spools the EMF file when the spool format is EMF. When the print processor regenerates the EMF file, depending on the method of regeneration, it is possible to perform editing and processing the print data such as enlarging, reducing, rotating, and repeating printing. As described later, in the print data generating apparatus according to the second embodiment, the print processor performs editing according to a print order.
Next, a “Devmode structure” will be explained. The Devmode structure is a collection of variables defined by GDI. For example, the Devmode structure includes information such as a sheet size and resolution necessary for printing. As described later, in the print data generating apparatus according to the second embodiment, the backside overlay is set in the printer property of the printer driver 3, so that a variable related to the overlay in an extension portion of the Devmode structure is changed from 0 to 1. Accordingly, the backside overlay is set for performing the backside overlay printing.
As shown in
An operation of the printer processor 4 according to the second embodiment will be explained next with reference to
a) is a view showing data created with the application 5. In the embodiment, contents to be printed on the backside in common are created on the first page; contents to be printed on the front side of the first page are created on the second page; contents to be printed on the front side of the second page is created on the third page; and contents to be printed on the front side of the third page are created on the fourth page.
b) is a view showing a result in which the print processor 4 arranges the contents to be printed on the front side in odd number pages in order, and the contents to be printed on the backside in common in even number pages.
With reference to
In step S41, the operator sets the backside overlay mode through the printer property. In step S42, the print start process 6f is directed to start. In step S43, GDI 6 uses the GDI graphic command to create the graphics (graphic process 6g). the EMF file as the page data storing the GDI graphic record is created (EMF file process 6h).
After the EMF file is created, in step S44, the EMF file is delivered to the print processor 4 to regenerate the EMF file and edits the print order (EMF file regeneration process 6i). In step S45, the printer driver 3 converts the graphic contents regenerated in the EMF file regeneration process 6i to PDL (conversion process 6j). The converted data is sent to the printer 2 for printing (printing process 6k).
With reference to the flow chart shown in
When it is determined that the printing setting is the backside overlay printing mode in step S53, in step S55, the total printed page number N is obtained with the application 5. In step S56, since the actual page number to be printed is 2N, the total page number M to be printed is assigned as 2N.
In step S57, the variable a to be used as the page number of the application 5 is initialized to 1. In step S58, it is determined whether the page to be printed is the even number page or the odd number page. In step S59, when the page to be printed is the odd number page, EMF of a=a+1 page is regenerated. In step S60, when the page to be printed is the even number page, EMF of the first page is regenerated. In step S61, the process is repeated until the total pages (M) are regenerated.
As described above, in the second embodiment, the print processor 4 edits the print order. Accordingly, the GDI command is delivered to the printer driver 3 in the order of the data of the second page, the data of the first page, the data of the third page, the data of the first page, the data of the fourth page, and the data of the first page shown in
Through the operation of the print data generating apparatus according to the second embodiment, as shown in
In the second embodiment, the backside overlay printing is performed for printing the form data on the backside. The invention is not limited thereto. Alternatively, the EMF regeneration process of the first page in step S60 in
When the operator wants to print the form data on a specific page, for example, the third page, the EMF regeneration process of the first page in step S60 is performed when the page to be printed is the third page. Accordingly, it is possible to print the form data on the specific page. When the form data is printed on the specific page, the total page number M to be printed becomes a sum of the total page number N printed with the application and the specified page number.
In the second embodiment, the first page created with the application 5 is used as the form data. Alternatively, print contents of a specific page may be set as the form data, so that the form data are printed on the backside or the specific page.
As described above, in the print data generating apparatus according to the second embodiment, the application creates the print data as the normal print data, and the print processor treats the data of the first page as the data of the even number pages. Accordingly, with the simple operation, it is possible to print different contents per page on the front side and the form data on the backside. Further, it is not necessary to register the form to the printer 2, thereby making it not necessary to provide a storage unit for registering the form.
A third embodiment of the present invention will be explained next. In a print data generating apparatus according to the third embodiment, the data of the first page created with the application upon printing are registered to the printer as the form data. The duplex printing mode is set with the printer driver. The data of the first page, i.e., the form data, are used relative to the data of the second and subsequent pages for printing the backside.
As shown in
An operation of the print data generating apparatus will be explained next.
a) is a view showing the data created with the application 5. In the embodiment, contents to be printed on the backside in common are created on the first page; contents to be printed on the front side of the first page are created on the second page; contents to be printed on the front side of the second page are created on the third page; and contents to be printed on the front side of the third page are created on the fourth page.
b) is a view showing a result in which the printer driver 3 creates the form data to be printed on the backside on the first page and non-standard contents on the second and subsequent pages with blank pages in between, and converts them to PDL.
First, the operator uses the application 5 to create the form data to be printed on the backside in common on the first page, and the non-standard contents on the second and subsequent pages.
In step S71, when the printing is started, the printer driver 3 calls for “StartDoc” from GDI (not shown), so that the print job is started. In step S72, “StartPage” is called to start the page processing. In step S73, it is determined whether the page to be processed is the first page. In step S74, when it is determined that the page to be processed is the first page, it is determined that the backside overlay mode is set, and a backside overlay mode process I is performed for adding a macro ID number assigning command and a macro definition starting command.
In Step S75, the GDI graphic command is converted to PDL as the process of the print data created with the application 5. In step S76, “EndPage” is called. In step S77, a backside overlay mode process II is performed for adding a macro definition ending command, so that the data of the first page are registered to the printer 2 to create the form data for the backside.
In step S78, when it is determined that the page to be processed is the second and subsequent pages in step S73, the GDI graphic command is converted to PDL as the process of the print data created with the application 5. In step S79, “EndPage” is called. In step S80, a backside overlay mode process III is performed for adding a command to set the backside printing for printing the backside in the duplex printing; a command for calling the macro ID used in the backside overlay mode process I used in step S74; and a page flip command.
In step S81, it is determined whether all pages are processed. In step S82, “EndDoc” is called, thereby completing the process. Through the process of the printer driver 3, the data shown in
In the third embodiment, through the backside overlay printing, the non-standard contents are printed on the front side, and the form data are printed on the backside. The invention is not limited thereto. When the page flip command is added before each of the page with the non-standard contents, it is possible to print the form data on the front side and the non-standard data on the backside.
When the operator wants to print the form data on a specific page, for example, the third page, the page flip command is added the data of a page before the specific page, in this case, after the second page. Accordingly, it is possible to print the form data on the specific page.
In the third embodiment, the first page created with the application 5 becomes the form data. It is possible to register print contents of an arbitrary page as the form page, so that the form data is printed on the backside or a specific page.
As described above, in the print data generating apparatus according to the third embodiment, the data of the first page created with the application 5 are registered to the printer 2 as the form data. The duplex printing mode is set with the printer driver 3. The data of the first page, i.e., the form data, are used relative to the data of the second and subsequent pages for printing the backside. Accordingly, it is not necessary to register the form to the printer 2 in advance. Further, it is possible to increase the form registration at every printing.
The disclosure of Japanese Patent Application No. 2005-285176, filed on Sep. 29, 2005, is incorporated in the application.
While the invention has been explained with reference to the specific embodiments of the invention, the explanation is illustrative and the invention is limited only by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2005-285176 | Sep 2005 | JP | national |
This is a divisional application of a prior application Ser. No. 11/520,618, filed Sep. 14, 2006, pending.
Number | Date | Country | |
---|---|---|---|
Parent | 11520618 | Sep 2006 | US |
Child | 14178558 | US |