The application is based on 2006-265326 Japanese patent application of submitting on September 28th, 2006 and the 2007-246973 Japanese patent application of submitting on September 25th, 2007 and require the benefit of priority for said two applications; The full content of said two applications combines in this article by reference.
Embodiment
Below in conjunction with description of drawings each embodiment of the present invention.
< complete structure >
Fig. 1 is the block diagram of demonstration according to the structure of the imaging device 1 of an embodiment.
The imaging device 1 of this embodiment is an example with the laser printer.Usually, laser printer forms one page toner image on photosensitive drums, and then toner image is transferred on the recording medium.
As shown in Figure 1, imaging device 1 comprises usb host I/F (interface) 14 (instance of installation unit), and usb host I/F (interface) 14 can accept the for example connection of USB storage 3 of external memory.Shown in figure 14, usb host I/F 14 is arranged on the side surface of the outer surface (instance of framework) 2 of imaging device 1, and this side surface is positioned at the below of guidance panel 12 (explanation after a while).Shown in figure 15, USB storage 3 (explanation after a while) is connected on the usb host I/F 14.Imaging device 1 also comprises main frame I/F 15, is used for imaging device 1 is connected on the host computer (not shown) through stube cable.
Imaging device 1 comprises record cell 11, guidance panel 12 and control module 13.Record cell 11 is in for example colour prints such as the enterprising style of writing basis of paper, image of recording medium.Guidance panel 12 shows the content of operation on the imaging device 1, the duty that forms images or the like.Control module 13 mainly is made up of the micro computer that comprises CPU, ROM and RAM, according to the operation of each unit of the instruction control equipment 1 through guidance panel 12 input, to carry out directly printing at least.When directly printing, control module 13 is carried out according to data (for example file) control of reading from USB storage 3 through usb host I/F 14 and is printed.
Attached/removal sensor 141 that usb host I/F 14 comprises (instance of detecting unit), whether the signal level through monitoring terminal detects USB storage 3 and is connected on the usb host I/F 14.It is non-conductive when USB storage 3 does not connect that this terminal is configured to, and when USB storage 3 connects, is conduction.
< operating board structure >
Fig. 2 is the key diagram that display operating panel 12 constitutes.
As shown in Figure 2, guidance panel 12 comprises operating key unit 20 and display unit 21, and this display unit comprises LCD (LCD) and is provided for display digit, image or text.Operating key unit 20 comprises: scroll key 22 and 23 is used on display unit 21, browsing content displayed; Execute key 24 can be used to confirm to handle or operation; Cancel key 25 can be used to stop to handle or operation; The key 26 that advances, setting can be used to advance; And back spacer 27, can be used to retreat setting.
Display unit 21 has two parts viewing area, and promptly top and bottom display region are called as regional A1 and regional A2 respectively.
The layout of guidance panel 12 is not limited only to shown in Figure 2, also can comprise other structures, for example the layout shown in Figure 14 and 15.
In the structure shown in Figure 14 and 15, guidance panel 12 comprises: the display unit 21 that is arranged on guidance panel 12 central authorities; Be arranged on the arrow keyboard 28 on display unit 21 right sides; Be arranged on the ten keyboard 29 of arrow upper keyboard; Be arranged on the cancel key 25 on ten keyboard 29 right sides; And the execute key 24 that is arranged on ten keyboard 29 right sides.
Arrow keyboard 28 comprises the arrow keys of four indication four directions, i.e. up arrow, one to Down Arrow, one to Right Arrow and one to left arrow.The up and down arrows key is used separately as scroll key 22 and 23.To the right and to left arrow be used as respectively advance key 26 with step back key 27.
Guidance panel 12 can comprise time-out (stopping) key, is provided in to receive in the operating process to import to suspend (stopping) function.The function of suspending (stopping) can comprise direct printing.When several functions of while parallel work-flow, have only predetermined operation to be suspended (stopping).For example, when operation fax is accepted function and copy function,, have only operation (be set in advance will suspend the function) quilt of copy function to be suspended (stopping) as response to the Pause key input.Several functions also can be suspended (stopping).Cancel key 25 can have the function of Pause key.
< printing the named list lattice structure >
Fig. 3 is the key diagram that shows the formation of the printing appointment form that is used for directly printing.
As shown in Figure 3, print to specify form to comprise: zone, path T1 is used for storages needs direct typescripts path (comprising filename); Duplicate number of regions T2, be used for saving as the umber that will print that each specified file (hereinafter being called " printing specified file ") is set; Number of print pages zone T3 is used for storing and respectively prints the number of pages that specified file has been printed; And printed umber zone T4, be used for storing and respectively print the umber that specified file has been printed.Print specifying form is to be used for discerning the not instance of the identifying information of print data of data that print unit will print.
Print the appointment of specifying form response first to print specified file and be created in the USB storage 3 that is connected on the usb host I/F 14, and after all printing specified files are printed, from USB storage 3, deleted.If USB storage 3 all print specified files printed before when usb host I/F 14 is removed, print and specify table content to keep by USB storage 3 by the state that is removed at that time.
During the concrete operations of following devices illustrated 1, all the file that is stored in the USB storage 3 of supposition has bibliographic structure as shown in Figure 4.
Three sub-directories DIR1 to DIR3 and several file are set under the root directory ROOT.Several files also are stored under each sub-directory DIR1 to DIR3.
< direct print processing >
The direct print processing that will combine the flowchart text among Fig. 5-8 to carry out below by control module 13.In the present embodiment, directly print processing comprises the first task and second task, both separate operations.
First task is to generate print data page by page and write down print queue in the print queue buffer area again according to the file that reads from USB storage 3.Print queue is used in the second task processing printing data.On the other hand, second task is subsequent to get access to the print queue that in first task, is recorded in the print queue buffer area, and prints page by page according to the print data corresponding to the print queue of being obtained.Print and specify form to be created on first task and renewal and deletion in second task.
When in the function selecting screen shown in Fig. 9 B, having selected direct printing, the first task and second task are activated.
When showing idle screen state shown in Fig. 9 A in the display unit 21 when (only showing " ready " speech in the regional A1), as press execute key 24, the display screen of display unit 21 converts the function selecting screen into by idle screen.When Presentation Function is selected screen, press back spacer 27, show that then by the function selecting screen conversion be idle screen.
In the function selecting screen, the information of one " selection function " is presented among the regional A1, and the selectable functions title is presented among the regional A2.Displaying contents in regional A2 (function title) stirs (for example, the function title of demonstration is switched) through operation scroll key 22 and 23.When required function title (being " directly print " in the present embodiment) when being presented among the regional A2, is pressed execute key 24 or the key 26 that advances in this state, be activated corresponding to the processing of this function.
< first task >
Fig. 5 is the process flow diagram of explanation first task detailed content.
When having selected direct printing to activate first task thus in the function selecting screen in Fig. 9 B, at first, in step S110,, judge whether USB storage 3 is connected on the usb host I/F 14 according to the output of attached/removal sensor 141.If USB storage 3 is not connected on the usb host I/F 14, then keep of the connection of this state until USB storage 3.If USB storage 3 has connected, handle and advance to step S120, wherein root directory is set to current directory.In next step S130, carry out event response and handle.Then, first task finishes.
< event response processing >
Fig. 6 is the process flow diagram that is presented at the detailed content of the event response processing of carrying out among the step S130.
In this is handled, at first, in step S120, judge to print and specify form whether to be stored in the USB storage 3.Specify form not to be stored in the USB storage 3 if print, handle advancing to step S260, the file that displays the name of the current directory is selected screen.
Shown in Fig. 9 C; Select in the screen at file; Current directory is presented among the regional A1 (Fig. 9 C has explained the state that the symbol "/" of expression root directory shows), and the single filename under the current directory or sub-directory (being commonly referred to as " file and so on " or " file etc. " afterwards) are presented at (Fig. 9 C has explained the state of display file name) among the regional A2.If several files are arranged under the current directory, show at the low order end display icon of regional A2 and can operate scroll key 22 and 23.When showing these icons, shown in figure 11, can switch in file that shows among the regional A2 and so on through operation scroll key 22 and 23.
In next step S270, whether decision event takes place.If no incident takes place, then keep of the generation of this state until incident.When USB storage 3 is inserted into or removes from usb host I/F 14, or among the button 22-27 on the guidance panel 12 any one be when being operated, and incident takes place.
If incident takes place, judge in step S280 whether this incident is to select catalogue.
Select to press the key 26 that advances under the state among the regional A2 of screen if be presented at file in subdirectory name, then this incident (selection catalogue) takes place.
If event is to select catalogue, to handle and advance to step S290, selecteed catalogue is configured to current directory.Then, processing turns back to step S260.
For example; Shown in figure 12; Be set at root directory under the state of current directory (seeing Figure 11); When in file selection screen, having selected sub-directory DIR1, file selects screen conversion to become to show selecteed sub-directory DIR1 (being current directory) at regional A1, and is present in the filename under the sub-directory DIR1 in regional A2 demonstration.
If in above-mentioned steps 280, judging institute's event is not the selection catalogue, then handle and advance to step S300, whether decision event is select File.
Be presented under the state among the regional A2 at filename, if press execute key 24 or the key 26 that advances, then this incident (select File) takes place.
If event has been select File, handle and advance to step S310, wherein, shown in Fig. 9 D, umber specifies screen display in display unit 21, with the input of the umber accepting to print.
Shown in Figure 13 A, specify screen at umber, the information of one " specify umber (maximum: 999) " is presented among the regional A1, and the numerical value of the umber that will print of representative is presented among the regional A2.The numerical value (quantity of duplicating) that is presented among the regional A2 increases or reduces through operation scroll key 22 and 23.Be presented at required numerical value under the state of regional A2, if press execute key 24 or the key 26 that advances, this numerical value is obtained as the umber that will print.
In next step S320, the path through the file (promptly printing specified file) that will in step S300, select and the umber of appointment in step S310 store into respectively to print among zone, the path T1 that specifies form and the regional T2 of umber and write down the printing specified file.Then, processing advances to step S330.Specify form if do not exist in the USB storage 3 to print, then generate new printing and specify form and printing specified file to be recorded in wherein.
In step S330, shown in Fig. 9 E, next file selects screen display in display unit 21.In next step S340, judge whether to need to select next file.
Shown in Figure 13 B, select in screen at next file, one " selecting another file? " Information be presented among the regional A1, option " is " or " denying " is presented among the regional A2.The displaying contents (option) that is presented among the regional A2 can be through alternately conversion of scroll key 22 and 23.
When pressing execute key 24 or advancing key 26,, then confirm as and select next file, and processing turns back to step S260 if be shown as " being " among the regional A2.On the contrary, in pressing key 24 or 26 time domain A2, be shown as " denying ", then confirm as and need not to select next file, and processing advances to step S350.In step S350, carry out print data and generate processing (explanation after a while).Then, processing turns back to step S260.
If in above-mentioned steps S300, judging institute's event is not select File, handle and advance to step S360, judge whether this incident is to select " retreating ".
Select to press back spacer 27 under the state of screen display in display unit 21 at file, then this incident (selecting " retreating ") takes place.
If event is handled and advanced to step S370 for selecting " retreating ", be set to new current directory than the higher leveled catalogue of current directory.Then, processing turns back to step S260.
Especially, be under the state of sub-directory DIR1 in current directory, if this incident takes place, root directory ROOT becomes new current directory as the upper level catalogue.If current directory is root directory ROOT, owing to there is not the upper level catalogue, processing is not carried out any substantive processing and is just turned back to step S260.
If in above-mentioned steps S360, judge event is not to select " retreating ", handles and advances to step S380, judges whether this incident is to select " cancellation ".
Select to press cancel key 25 under the state of screen display in display unit 21 at file, then this incident (selecting " cancellation ") takes place.
If event is handled and advanced to step S390 for selecting " cancellation ", root directory is set to current directory.Then, processing turns back to step S260.
If the incident of in above-mentioned steps S380, judging not is to select " cancellation ", handle and advance to step S400, whether decision event is for removing USB storage.
If attached/removal sensor 141 detects USB storage 3 and removes from usb host I/F 14, then this incident (USB storage removes) takes place.
If event is for having removed USB storage, then the event response processing finishes.If not remove USB storage, then handle turning back to step S260.
Specify form if in above-mentioned steps S210, judge to have in the USB storage 3 to print, handle advancing to step S220, the printing shown in Fig. 9 F is restarted the selection screen display in display unit 21.In next step S230, specify form to judge whether to print once more according to the printing that is stored in the USB storage 3.
Restart the selection screen in printing, one " restarting to print? " Information be presented among the regional A1 and option " is " or " denying " is presented among the regional A2.Select the situation of screen the same as next file, can alternately change the displaying contents (option) that is presented among the regional A2 through operation scroll key 22 and 23.
When pressing execute key 24 and advancing key 26,, promptly confirm to need not to restart to print, handle advancing to step S240 if be presented at be " the denying " among the regional A2.In step 240, the printing that is stored in the USB storage 3 specifies form to be deleted.Then, processing turns back to step S260.
On the contrary, when pressing execute key 24 and advancing key 26,, then confirm to restart to print, and processing advances to step S250 if be presented at be " being " among the regional A2.At step S250, print data generates processing (explanation after a while) and is performed.Then, processing advances to step S260.
< print data generates and handles >
Fig. 7 is that the print data that explanation is carried out in step S250 and step S350 generates the process flow diagram of handling detailed content.
In this was handled, at first, in step S510, first print screen shown in Figure 10 A was presented in the display unit 21.First print screen shows in the process of reading of data from USB storage 3.Then, processing advances to step S520.
In first print screen, the state of equipment 1 " in the printing " is presented among the regional A1, and one " in reading.Do not remove storer " information be presented among the regional A2.
In step S520, be recorded in the printing that is stored in the USB storage 3 and specify the printing specified file in the form to be counted.In next step S530, the counting of file counter that is used for this processing is by zero clearing.Then, processing advances to step S540.
In step S540, the path of the printing specified file of being confirmed by the calculating of file counter (below be called as " file destination ") obtains from printing the path zone T1 and the regional T2 of umber that specify form with umber.In next step S550, the counting of umber counter that is used for this processing is by zero clearing.Then, processing advances to step S560.
In step S560, the counting of the page or leaf counter that in this processing, uses is set to " 1 ".In next step S570,, from USB storage 3, read page data of counter specific page according to the path of the file destination that in above-mentioned steps S540, obtains.Then, step advances to S580.
In step S580, whether successfully judge reading of specific page data.If read success, handle advancing to step S590, then generate print data and be stored in and print in the buffer area according to specific page information.Then, processing advances to step S600.
In step S600, be used for asking to carry out the print queue of printing the print data that is created on step S590 and be set in the print queue buffer area.In next step S610, the counting of page or leaf counter increases (1).Then, processing advances to step S620.
In step S620, whether judge whether that greater than the total page number of file destination the print data of all pages has all been generated according to the counting of page or leaf counter.If counting less than with equal total page number, confirm that then the print data of all pages does not all generate, handle turning back to step S570.Step S570-S610 is carried out once more, is the following one page generation print data and the setting print queue of file destination.
On the contrary, if the counting of page or leaf counter, confirms then that the print data of all pages of file destination all generates greater than total page number, handle advancing to step S630.In step S630, the counting of umber counter increases (1).Then, processing advances to step S640.
In step S640, according to the counting of umber counter whether with the umber that reads is consistent judges whether the print data of the umber of corresponding appointment is generated among the step S540.If inconsistent, then confirm the processing of specifying umber is not performed, and processing turns back to step S560.Step S560-S630 is performed once more, and the print data of file destination generates from first page of quilt once more.
On the contrary, if the counting of umber counter is consistent with the umber of appointment, confirm that then the corresponding print data of umber of specifying generates, handles advancing to S650.At step S650, the counting of umber counter is by zero clearing, and the file counter increases (1).Then, processing advances to step S660.
In step S660, whether consistent according to the counting of file counter with quantity in step S520 through the printing specified file that calculates, judge whether that all print datas of printing specified files have all been generated.If inconsistent, think that then the print data that still has (several) to print specified file does not also generate, and handles turning back to S540.Step S540-S650 is performed as the fresh target file to the printing specified file by the counting appointment of file counter appointment once more, and here the print data with the corresponding file destination of umber of appointment is generated.
On the contrary,, confirm that then all print datas of printing specified file are all generated, handle advancing to step S670 if the counting of file counter is consistent with the quantity of printing specified file.In step S670, second print screen shown in Figure 10 B is presented in the display unit 21.When accomplishing by USB storage 3 reading of data, second print screen is shown.Then, processing advances to step S680.
In second print screen, " in the printing " state of equipment 1 is presented among the regional A1, and the information of one " safety removes " is presented among the regional A2.
In step S680, whether (explanation after a while) finishes to judge whether that all are recorded in the printing specified file of printing in the appointment form and are all printed according to second task.Finish as if printing, then do not carry out any substantive processing and just finish print data generation processing.Do not finish if print also, handle advancing to step S690.
In step S690, judge according to the output of attached/removal sensor 141 whether USB storage 3 is connected on the usb host I/F 14.If USB storage 3 has connected, handle turning back to step S680.If do not connect, handle advancing to step S710.
In above-mentioned steps S580; If judge the failure of reading, handle and advance to step S700, here the specific page data; S690 is the same as step, judges according to the output of attached/removal sensor 141 whether USB storage 3 is connected on the usb host I/F 14.If USB storage 3 has connected, think that then all print datas all generate, handle turning back to step S670.
On the contrary, if USB storage 3 does not connect, handle and advance to step S710, here, the continuation shown in Figure 10 C selects screen display in display unit 21.This continuation is selected screen removing of USB storage 3 of response and is shown.At next step S720, judge whether to need to continue to print the not print data that is stored in the printing buffer area.
Continuing to select in the screen " print data a residue.Print remaining data? " Information be presented among the regional A1, and option " is " or " denying " is presented among the regional A2.The displaying contents (option) that is presented among the regional A2 can be through alternately conversion of operation scroll key 22 and 23.
When pressing execute key 24 or advancing key 26, if be shown as " denying " among the regional A2, then confirm need not to continue to print, handle advancing to step S730.In step S730, print buffer area and print queue buffer area (except printing buffer area and the print queue buffer area of just in second task, handling) and be cleared.Then, this processing finishes.
On the contrary, when pressing execute key 24 or advancing key 26,, then confirm to continue to print, handle advancing to step S740 if be shown as " being " among the regional A2.In step S740, keep this state until second task termination (promptly print and finish).Along with second task termination, print and finish.
That is to say, in first task, generated print data and set print queue that all printing specified files that are recorded in the printing appointment form are printed by the appointment umber thus.When print data generate to finish, after second task termination that prints according to print data and print queue, this processing end.
In the print data generative process or wait in the second task termination process and removed USB storage 3, the processing requirements user judges whether to continue to use the print data that is generated to print.Judged result according to the user continues or stops to print.
In this was handled, step S520-S570 was the instance by the performed processing of acquiring unit.
< second task >
Fig. 8 is the process flow diagram of the explanation second task detailed content.
This processing response to the selection of direct printing and activate, at first, in step S800, judges according to the output of attached/removal sensor 141 whether USB storage 3 removes in the function selecting screen shown in Fig. 9 B.If USB storage 3 is not removed, handle advancing to step S810.If USB storage 3 has removed, handle advancing to step S803.
In step S803, if confirm that in step S800 USB storage 3 has been removed, then the printing of the performed page or leaf of record cell 11 stops the printing of (time-outs) record cell 11 once accomplishing, and processing entering into step S805.If record cell 11 was not carried out printing when definite USB storage 3 had been removed in step S800, then stop the printing of (time-out) record cell 11 immediately.
In step S805, be similar to step S720, response is presented at regional A2 in the processing of step S710 continuation is selected in the screen (seeing Figure 10 C) selection of option (" being " or " deny ") is judged whether to have selected to continue printing.If selected to continue to print, handled advancing to step S810.If having selected to stop to print, second task handling finishes.
At step S810, confirm whether there is print queue in the print queue buffer area.As have print queue, and handle and proceed to step S820, be stored in the print data of printing in the buffer area and printed by record cell 11 corresponding to print queue.Then, processing proceeds to step S830.
At step S830, when printing based on print queue one page when having accomplished, the print queue buffer area is updated (that is, corresponding print queue be removed and print accordingly the buffer area subregion be released).At following step S840, be updated (increasing by 1) about the numerical value of printing the zone of the type face T3 that specifies the file destination in the form.Then, processing proceeds to step S850.
At step S850, judge whether the whole page or leaf of file destination is also printed, be whether to conform to the total page number of file destination according to numerical value about the zone of the type face T3 of file destination.If the numerical value among the regional T3 (promptly number of print pages) is inconsistent with total page number, then judge to have not type face, handle being back to step S800.
On the other hand,, judge that then whole pages or leaves of file destination are printed, handle proceeding to step S860 if the numerical value among the regional T3 (promptly number of print pages) is consistent with total page number.At step S860, be updated (increasing by 1) about the numerical value of printing umber zone T4 of printing the file destination of specifying in the form.Then, processing proceeds to step S870.
At step S870, judge whether whole copies of file destination are printed, be according to about print to specify file destination in the form whether print umber zone T4 consistent with value about the umber zone T2 of file destination.If the value of regional T4 (that is, having printed umber) is inconsistent with the value (that is, the umber of appointment) of regional T2, judge that then whole appointment umber of file destination is not also printed, handle being back to step S800.
On the other hand, if numerical value (that is, the umber of the appointment) unanimity of numerical value among the regional T4 (promptly having printed umber) and regional T2 judges that then the Print All of file destination generates, handle correspondingly proceeding to step S880.At step S880, the register content of file destination in printing the appointment form deleted.Then, processing is back to step S800.
In above-mentioned steps S810, if judge in the print queue buffer area and do not have print queue, handle proceeding to step S890, judge to print and specify form whether blank promptly whether the Print All specified file is deleted.Do not deleted if print specified file, handled being back to step S800.
On the other hand, specify form blank, handle proceeding to step S900, print and specify form itself to be deleted if whole printing specified files has been deleted and printed.Then, this is finished dealing with.
Step S820 is the instance of the performed processing of print unit, and step S803 is the instance that suspends the performed processing in unit.
As stated; In imaging device 1; If USB storage 3 removes from usb host I/F14 in direct print procedure, the then processing of print print data (second task) suspends immediately, and the user is asked to through continuing to select screen to select to continue or stop to print the print data that has generated.
Therefore, according to imaging device 1, printing can be removed the intuitive operation of USB storage 3 and suspend.In addition, when USB storage 3 was removed, the user can determine the generation data that exist in the treatment facility 1 how.This has strengthened the availability of equipment 1.
In imaging device 1, if need not continue to print the print data that has generated, untreated print queue is deleted, and the print queue that is being processed is continued to handle to finishing.Therefore, one page is printed and can be stopped in the centre, thereby avoids producing useless part type face.
In imaging device 1, when handling the generation print data through from USB storage 3, reading file, first print screen is presented in the display unit 21, and warning forbids removing USB storage 3 when reading file.When handling the end of generation print data, even also accomplish based on the printing of the print data that is generated, second print screen is presented in the display unit 21, and prompting USB storage 3 can remove safely.
Therefore, according to imaging device 1, the user is allowed to safety and removes USB storage 3.In addition, the user can be earlier (promptly print accomplish before) removes USB storage 3, is printing when finishing owing to be absorbed in and take printed material away and do not remove USB storage 3 to prevent the user.
In imaging device 1, print and specify form in USB storage 3, to generate.Write down each in the USB storage 3 and printed the storage destination (regional T1) of specified file, needed umber (regional T2) and the print state (regional T3 and T4) printed.
Therefore,,, when it connects once more, specify table contents in print procedure, have only not type face to be printed according to the printing of retaining in the USB storage 3 even USB storage 3 removes according to imaging device 1.That is, need not restart to print, can not produce useless type face from first page.
(another embodiment)
Generate processing according to the print data shown in Fig. 7 of the foregoing description, for each page or leaf, reading of data from USB storage 3 generates print data according to the data that read then.Yet data read processing and data conversion treatment (generation print data) can independently be carried out.That is,,, just can carry out data and read processing a large amount of type faces, copy or file as long as be used to store the buffer area capacity permission of reading of data regardless of the data conversion treatment progress.
Figure 16 shows the process flow diagram that reads the detail content of processing according to the data of another embodiment.Figure 17 is the process flow diagram of demonstration according to the detail content of the data conversion treatment of another embodiment.Among this embodiment, each copy or each file are all carried out this processing.
For example, when the print data shown in Fig. 7 generated the step S550 completion in handling, the data shown in Figure 16 read to handle and are activated.At first, print data buffer area be cleared (step S1010).Then, read beginning page or leaf counter and read the sign-off sheet counter by zero clearing (step S1020).Then, read beginning page or leaf counter and increase by 1 (step S1030).
The data that begin the corresponding specific page of numerical value of page or leaf counter with reading of file destination are read and deposit in (step S1040) in the print data buffer area, and the size of data streams read is preserved (step S1050).Each page all carried out the preservation of size.
Confirm the whether success (step S1060) of reading of specific page data.If confirm to read success (step S1060: be), read and accomplish page or leaf counter increase by 1 (step S1070).
Then, whether greater than the total page number of file destination, confirm whether the data on all pages of file destination are read (step S1080) according to the numerical value that reads the sign-off sheet counter.If the data on all pages all are read (step S1080: be), then data read the processing end, are back to step S1030 otherwise handle.
Read failure (step S1060: not), then judge according to the output (step S1090) of attached/removal sensor 141 whether USB storage 3 connects if judge.
If USB storage 3 is connected (step S1090: be), the data that are stored in the last page or leaf in the print data buffer area are deleted (step S1100), and read a beginning page or leaf counter and cut 1 (S1110), and data read processing and finish.The reason of deleting last page data is that data read failure when connecting owing to USB storage 3, therefore suspect that USB storage 3 possibly be destroyed, and the data of last page or leaf also are eliminated.Therefore, the data of last page or leaf are deleted in this processing.Yet the data of last page or leaf can not deleted yet.
If USB storage 3 is removed (step S1090: not), continue to select screen (seeing Figure 10 C) to be displayed on (step S1120) in the display unit 21.Then, S720 is similar with step, and response judges whether should continue to print the unprinted print data (step S1130) that is stored in the printing buffer area from the input of guidance panel 12.Should continue (step S1130: be) if print, handle proceeding to step S1100.
On the other hand; If print and should not continue (step S1130: not); The total data that is stored in the print data buffer area is all deleted (step S1140), reads beginning page or leaf counter and accomplishes page counter by zero clearing (step S1150) with reading, and data read processing and finish.
Next with the data of description conversion process.For example, when print data shown in Figure 7 generated the step S550 completion in handling, the data conversion treatment shown in Figure 17 was activated.Data conversion treatment is carried out, and reads the data that read in the processing through the data shown in conversion Figure 16 and generates print data.
At first, the page or leaf counter is judged according to the output of attached/removal sensor 141 whether USB storage 3 connects (step S1220) then by zero clearing (step S1210).
If USB storage 3 has connected (step S1220: be), judgment data reads processing and whether activates (step S1230).
If data read processing and activate (step S1230: be), be read and be stored in the data of printing in the buffer area and obtained (step S1240).Then, judge to print in the buffer area whether have non-switched data (step S1250).
If there is unconverted data (step S1250: be), changed (step S1260) corresponding to the data of preserving size of page or leaf counter values.That is, the data on the specific page are changed.
Then, judge whether the data-switching on the specific page accomplishes (step S1270).If the data-switching on the specific page is accomplished (step S1270: be), print queue is placed into print queue buffer area (step S1280), and the page or leaf counter increases by 1 (step S1290).
Then, whether judge greater than the sum of specific page whether the data on whole specific pages change (step S1300) according to the numerical value of page or leaf counter.
If data read the data of handling on un-activation (step S1230: deny) or the whole specific page and change (step S1300: be), then judge whether to print and accomplish (step S1310).
Accomplish (step S1310: be) if print, data conversion treatment finishes.If there is not non-switched data (step S1250: not); If or not conversion fully of the data on the specific page (step S1270: deny); If or the data on whole specific page are not changed (step S1300: be) or are printed also end (step S1310: not), handle being back to step S1220.
If USB storage 3 does not connect (step S1220: not), continue to select screen (seeing Figure 10 C) to be displayed on (step S1320) in the display unit 21.Then, S720 is similar with step, and response judges whether should continue to print the unprinted print data (step S1330) that is stored in the printing buffer area from the input of guidance panel 12.Should not continue (step S1330: deny) if print, the print queue buffer area is cleared (step S1400) and data conversion treatment finishes.
Should continue (step S1330: be) if print, data-switching selects screen to be displayed on (step S1340) in the display unit 21.The instance of selecting screen for data-switching shown in Figure 180.Select screen in data-switching, message " converting all remaining datas to print data? " Be presented at regional A1, and option " is " or " denying " is presented at regional A2.Content displayed (option) can be switched through operation scroll key 22 and 23 among the A2 of zone.
Then, confirm whether non-switched data should be by conversions (step S1350).When pressing execute key 24 or advancing key 26, if show " denying " among the regional A2, then confirm to change unconverted data, handle proceeding to step S1310.
On the other hand, when pressing execute key 24 or advancing key 26,, then define necessary conversion unconverted data, handle proceeding to step S1360 if show " being " among the regional A2.
Confirm whether there is unconverted data (step S1360) on one page at least.If be less than and have unconverted data (step S1360: not), handle proceeding to step S1310 on one page.
If there is unconverted data (step S1360: be) at least on one page; Unconverted data corresponding on one page of the numerical value of page or leaf counter is changed (step S1370); Print queue is placed into print queue buffer area (step S1380) then; The page or leaf counter reduces by 1 (step 1390), handles proceeding to step S1360.
According to the imaging device of another embodiment, data read processing and can be independent of data conversion treatment and carry out.Therefore the reading of data required time can shorten, thereby USB storage 3 can safety remove in shorter time.
(other embodiment)
Preceding text have been described embodiments of the invention.But the present invention is not limited in the foregoing description, and under the prerequisite that does not deviate from invention spirit and scope, can carry out various modifications.
For example, though the embodiment shown in Figure 14 and Figure 15 is usb host I/F (interface) 14 with the front side left end of the outer surface 2 of the equipment of being arranged at 1 is example.But shown in figure 19, usb host I/F 14 also can be arranged on the front side of outer surface 2, near display unit 12.Because the relevant message of directly printing is displayed on the print unit 12, usb host I/F 14 is arranged on allows to remove USB storage 3 near the display unit 12 and suspend the intuitive operation of directly printing.
For example, though the foregoing description with laser printer as imaging device 1, the present invention is not limited to this.For example, the present invention also is applicable to multi-function device except printing function, that have functions such as image scanning, duplicating and fax.
The present invention also is applicable to the ink-jet printer that generates print data line by line, and unlike the laser printer that generates print data page by page, because in preceding a kind of situation, even in printing one page process, also time-out printing easily.
In the foregoing description, when USB storage 3 removed, the user was asked to continuing and stopping to print in the print data that has generated and make one's options.In addition, imaging device 1 also can be arranged to carry out following operation.If the total data of file destination has been read into imaging device 1, copy is printed according to the quantity among the T2 of umber zone automatically, and perhaps the user is asked to not only select continue or time-out printing, need also will select the umber of printing.
In this case, multiple choices are provided, have comprised the copy of printing the entire quantity that is provided with among the T2 of umber zone, printed, printed and other selections if accomplish immediately after a at least copy has been printed from current page page or leaf to the end.When USB storage 3 removes, possibly make the better user's of meeting of execution of processing intention like this.
In addition, when only the partial data of file destination is read when removing USB storage 3, can select to print the data page that only reads, perhaps select newly to select umber to print the data page that only reads according to the user according to the umber of setting among the T2 of umber zone.
Though in the above-described embodiments, print and specify form in USB storage 3, to generate, this form also can generate in imaging device 1.
Though the foregoing description has adopted USB storage 3 as external memory, storer built-in in other various pocket memories and the various portable unit also can be used as external memory.