This application claims priority from Japanese Patent Application No. 2011-163322 filed Jul. 26, 2011. The entire content of the priority application is incorporated herein by reference.
The invention relates to a printing device and a storage medium storing a set of program instructions for controlling a printing device.
A printing device is conventionally known that acquires reference information of data, that acquires the data from a reference location of the reference information, and that performs printing. For example, a printing device is conventionally known that acquires URL information for referring to a Web page, that acquires print data (contents) from the Web page that is a reference location of the URL information, and that performs printing.
It is an object of the invention to provide a printing device that facilitates obtaining a print result reflecting user's intention when printing is performed for data having a plurality of frames, and a storage medium storing a set of program instructions for controlling such a printing device.
In order to attain the above and other objects, the invention provides a printing device. The printing device includes an acquiring section, a determining section, a selecting section, and a printing section. The acquiring section is configured to access, based on reference information, a reference location on a network and to acquire print data from the reference location. The determining section is configured to determine whether the print data are constituted by a plurality of frames. The selecting section is configured to select at least one of the plurality of frames as a print target based on a user instruction when the determining section determines that the print data are constituted by the plurality of frames, and to select a single frame as the print target when the determining section determines that the print data are constituted by the single frame. The printing section is configured to print the print target selected by the selecting section.
According to another aspect, the invention also provides a storage medium storing a set of program instructions executable on an information processing device. The set of program instructions includes: accessing, based on reference information, a reference location on a network and acquiring print data from the reference location; determining whether the print data are constituted by a plurality of frames; and selecting at least one of the plurality of frames as a print target based on a user instruction when the print data are constituted by the plurality of frames, and selecting a single frame as the print target when the print data are constituted by the single frame.
According to still another aspect, the invention also provides a printing device. The printing device includes a processor, a network interface, a memory, and a printing device. The network interface is connectable to a network. The memory stores a set of program instructions executable by the processor. The set of program instructions includes: accessing, based on reference information, a reference location on the network and acquiring print data from the reference location through the network interface; determining whether the print data are constituted by a plurality of frames; and selecting at least one of the plurality of frames as a print target based on a user instruction when the print data are constituted by the plurality of frames, and selecting a single frame as the print target when the print data are constituted by the single frame. The printing device is configured to print the print target.
Embodiments in accordance with the invention will be described in detail with reference to the following figures wherein:
A printer embodying a printing device according to a first embodiment of the invention will be described while referring to
[Configuration of Printer]
As shown in
The ROM 32 stores firmware, various settings, initial values, and the like. The firmware is a control program for controlling the printer 100. The RAM 33 and the NVRAM 34 are used as a work area to which various control programs are read out, or as a storage area for storing print data temporarily. The NVRAM 34 (an example of a condition storage section and a text-size storage section) is also used as a storage area for storing various settings that are set by a user after shipment.
The CPU 31 (an example of an acquiring section, a determining section, a selecting section, a designating section, a setting section, a text-size specifying section, a first changing section, an authenticating section, a text-size acquiring section, and a second changing section) controls each element of the printer 100 while storing its processing results in the RAM 33 or in the NVRAM 34 in accordance with control programs read out from the ROM 32 and signals sent from various sensors.
The network interface 37 and the USB interface 38 are interfaces that enable communication with other devices. The printer 100 receives data sent from the other devices via these interfaces.
In the present embodiment, the printer 100 performs communication, via the network interface 37, with a personal computer (PC) 200 in which a printer driver 210 for the printer 100 is installed and with a Web server 300 storing a Web page.
In addition, other devices may be used via the USB interface 38. For example, if a flash memory is connected to the USB interface 38, the flash memory can be used as a storage area. Further, if a keyboard is connected, the keyboard can be used to perform input operations.
The image forming section 10 (an example of a printing section) prints an image on paper. Here, a type of forming images may be an electrophotographic type or an inkjet type. Further, the image forming section 10 may be for color printing or only for monochromatic printing.
The operation panel 40 (an example of an informing section) has various buttons for receiving user inputs and a touch-panel screen for displaying text information, buttons, and the like. The various buttons include, for example, an OK button for starting a print operation and a cancel button for cancelling a print operation.
[Control by Printer]
Next, controls by the printer 100 will be described. The printer 100 of the first embodiment has a Web-page printing function of acquiring URL information (Uniform Resource Locator information, an example of reference information) for referring to a Web page, acquiring print data (contents) from the Web page based on the URL information, and printing the contents. Here, the reference information is information for identifying a storage location of data.
When performing Web page printing, first, a user operates the operation panel 40 to input an instruction for executing Web page printing. Upon receiving the instruction, the printer 100 displays an input screen for urging the user to input URL information. The user inputs the URL information of a Web page on the input screen. For example, in order to print information of a Web page stored in a predetermined directory of the Web server 300 (see
When the OK button is pressed, the printer 100 acquires inputted URL information, accesses the predetermined directory of the Web server 300 based on the URL information, and downloads print data into a memory area (the RAM 33 and the NVRAM 34). Then, the printer 100 performs printing of downloaded print data.
Here, some downloaded print data have a plurality of image regions (frames). On the other hand, because the touch-panel screen of the printer 100 does not have a function of displaying a downloaded Web page, a user often inputs a print instruction without knowing whether print data include a plurality of frames. Thus, it is difficult to expect that a user voluntarily selects a frame of a print target. Hence, the printer 100 analyzes frame construction of print data and, if the print data include a plurality of frames, prompts a user to select whether to print the entirety as a single print target or to perform printing on a frame-by-frame basis. Further, if printing is performed on a frame-by-frame basis, the printer 100 prompts the user to select which frame is to be printed.
Specifically, the printer 100 displays a Web-page printing setting screen 410 shown in
[Web-Page Printing Process]
Next, a Web-page printing process (an example of the acquiring section, the determining section, the selecting section, and the designating section) for implementing the above-described Web-page printing function will be described while referring to the flowchart in
In the Web-page printing process, first, the CPU 31 acquires the inputted URL information and acquires print data based on the URL information (S101, an example of the acquiring section). That is, the CPU 31 accesses a Web page at a reference location indicated by the URL information and downloads print data.
Next, the CPU 31 determines whether the frame-selection setting ((1) in
If the frame-selection setting is ON (S102: Yes), the CPU 31 analyzes frame construction of print data acquired in S101 (S103). Specifically, the CPU 31 analyzes layout and size of each frame. Additionally, the CPU 31 analyzes text information included in each frame as necessary.
Next, the CPU 31 determines whether the print data have a plurality of frames (S104, an example of the determining section). If the print data do not have a plurality of frames, that is, if the print data are constituted by a single frame (S104: No), the CPU 31 selects the single frame (S111, an example of the selecting section) and proceeds to S108.
If the print data have a plurality of frames (S104: Yes), the CPU 31 determines whether the frame-selection-mode setting ((2) in
As the manual frame selecting screen, the printer 100 of the first embodiment has a frame-map display screen 420 that displays a frame layout as shown in
The frame-map display screen 420 includes a keyword button 413 for switching display to the keyword display screen 430 and an area-ratio button 414 for switching display to the area-ratio display screen 440. The keyword display screen 430 includes a map button 412 for switching display to the frame-map display screen 420 and the area-ratio button 414 for switching display to the area-ratio display screen 440. The area-ratio display screen 440 includes the map button 412 for switching display to the frame-map display screen 420 and the keyword button 413 for switching display to the keyword display screen 430. The map button 412, the keyword button 413, and the area-ratio button 414 enable the user to switch between each screen.
The frame-map display screen 420 (an example of the informing section) shown in
The frame-map display screen 420 includes print buttons 422 for respective frames (an example of the designating section), a print button 4225 for selecting the entirety as a single frame, and an end button 423. In
The keyword display screen 430 (an example of the informing section) shown in
The keyword display screen 430 includes print buttons 432 for respective frames (an example of the designating section) and an end button 433. In FIG. 5, the print buttons 432 include print buttons 4321, 4322, 4323, and 4324 corresponding to four frames 1, 2, 3, and 4, respectively. The number of the print buttons 432 corresponds to the number of the frames, and is changed according to the number of the frames. If one of the print buttons 432 is pressed, the frame corresponding to the button is selected as a print target. If the end button 433 is pressed, the Web-page printing process is cancelled.
The area-ratio display screen 440 (an example of the informing section) shown in
The area-ratio display screen 440 includes print buttons 442 for respective frames (an example of the designating section) and an end button 443. In
If one of the print buttons 422 and 4225 is pressed on the frame-map display screen 420, the keyword display screen 430, or the area-ratio display screen 440, the printer 100 selects the frame corresponding to the print button as a print target (S107, an example of the selecting section).
If the frame selection mode is automatic (S105: Yes), the CPU 31 reads out (extracts) a selection condition (S121). In the first embodiment, the automatic-frame-selection setting ((3) in
For example, a frame having the largest area ratio tends to have the largest amount of information. Thus, by setting the frame having the largest area ratio as the selection condition, it is likely that a frame satisfying a user's desire is selected. In addition, for example, it is likely that a frame including a keyword registered by a user is a frame satisfying the user's desire. Registration and deletion of a keyword can be performed through inputting on the Web-page printing setting screen 410. A registered keyword is stored in the NVRAM 34. Further, for example, if a user wish to exclude data including only texts such as an index, it would be appropriate to set a frame with an image as a print target. In contrast, for example, if a user wish to exclude data mainly including images such as advertisement, it would be appropriate to set a frame without an image as a print target.
Next, based on the read-out selection condition, the CPU 31 determines whether there is a frame satisfying the selection condition (S122). If there is no frame satisfying the selection condition (S122: No), the CPU 31 proceeds to S106 and performs manual frame selection. If there is a frame satisfying the selection condition (S122: Yes), the CPU 31 selects a frame satisfying the selection condition as the print target (S123, an example of the selecting section).
After a frame of the print target is selected in S107, S123, or S111, the CPU 31 executes a font changing process for changing a text size of texts included in the frame, as necessary (S108). The font changing process of S108 will be described later in detail. Subsequent to the font changing process of S108, the CPU 31 controls the image forming section 10 to print the frame of the print target (S109, an example of the printing section). Subsequent to S109, the Web-page printing process ends.
There is a conventional printing device for printing a Web page. Such a printing device stores URL information and contents of a Web page that has been printed once and, when the Web page is printed next time, selects either printing the stored contents or printing updated contents acquired by referring to the URL information.
With this printing device, however if printing is performed for data having a plurality of image regions (frames) in a single screen, a user cannot necessarily obtain an intended print result. For example, a user wishes to print individual frames in some cases, and wishes to print the entire data in other cases. Hence, the print result does not necessarily match a user's intention.
In contrast, with the printer 100 according to the present embodiment, if print data include a plurality of frames, the printer 100 selects a frame of a print target in accordance with a user's manual selection (direct user's instruction) or a selection condition that is preliminarily set by the user (indirect user's instruction), prior to printing the print data. On the other hand, if print data only include a single frame, the printer 100 prints the single frame without asking the user. That is, the selection mode is changed depending on whether print data include a plurality of frames. Thus, the user's intention can be reflected in printing, and printing without reflecting the user's intention can be avoided. As a result, this reduces a possibility that a print result against the use's intention is obtained.
In the present embodiment, because a frame of a print target is automatically selected in accordance with a selection condition that is preliminarily set by the user, the user can save a trouble of selecting a frame every time.
In the present embodiment, a print target is selected at a timing subsequent to receiving a print instruction for the print data and prior to starting printing. This is because, if a user instruction is required before printing of print data becomes definite, it is bothersome for a user who does not wish to print.
[Font Changing Process]
Next, the font changing process (an example of the first changing section, the authenticating section, the text-size acquiring section, and the second changing section) of S108 in the Web-page printing process will be described while referring to the flowchart in
There is a difference among individuals in how easily texts in print data can be read, and it is not always possible to obtain a print result of which texts are easy for a user to read. For example, a user having difficulty in reading small texts finds difficult to read small texts and to understand the content. In contrast, a user accustomed to reading small texts is dissatisfied with large texts because of a small amount of information. Hence, if a text size is fixed, a print result is outputted that may be difficult for some users to read. Hence, the printer 100 of the first embodiment executes the font changing process in which a font (particularly, text size) is automatically changed depending on a user.
Specifically, the printer 100 displays a switch button 411A on a screen for selecting the frame selection mode shown in
Specifically, a screen for selecting the font changing mode shown in
In the font changing process shown in
If the text-size change setting is ON (S150: Yes), the CPU 31 searches for text data included in a selected frame (S151). Then, the CPU 31 determines whether the selected frame includes text data (S152). If the selected frame does not include text data (S152: No), the CPU 31 ends the font changing process because there is no need to change the font.
If the selected frame includes text data (S152: Yes), the CPU 31 determines whether the text-size specifying mode setting ((5) in
The manual text-size setting screen 450 (an example of the text-size specifying section) includes a text box 451 for inputting a text size and an OK button 453. The user inputs a desired text size in the text box 451 and then presses the OK button 453.
If the OK button 453 is pressed, the CPU 31 acquires the text size inputted in the text box 451 (S155).
If the text-size specifying mode setting is automatic setting for each user (S153: Yes), the CPU 31 performs a user authentication (S161, an example of the authenticating section). In the present embodiment, the printer 100 requires the user to input an user ID and password on the touch-panel screen 41 of the operation panel 40, thereby identifying the user who is currently operating the operation panel 40.
Then, the CPU 31 identifies the user and determines whether the text size for the user is set (S162). The text size for each user is set in the user-text-size setting ((6) in
Subsequent to acquisition of the text size in S155 or S163, the CPU 31 changes the text size of texts that are searched in S151 (S156, an example of the first changing section and the second changing section). Subsequent to S156, the CPU 31 ends the font changing process.
As described above, the printer 100 of the first embodiment can set a text size for each user prior to printing and can change the text size of texts included in a print target. Because the user can freely change the text size, the printer 100 of the present embodiment can output a print result that is easy for the user to read.
Further, if the text size for the identified user is set, the text size can be automatically changed to the size suitable to the user. Hence, the user can save a trouble of setting the text size every time.
Note that the above-described font changing process produces a certain advantageous effect, even without frame selection in the Web-page printing process (S102-S107, S111, and S121-S123). That is, an advantageous effect of outputting easy-to-read print results is obtained, even if there is no frame selection process in the Web-page printing process and the font changing process is executed for the frame of a print target.
Conventionally, a Web browser or a printer driver has a function of printing an individual frame of a Web page. However, this function does not always ask a user for selection of a frame when a print target includes a plurality of frames, and the user needs to perform setting voluntarily. Hence, there is a possibility that a print result does not meet the use's intention if the user forget performing the setting. Thus, in the present embodiment, the Web-page printing process executed by the printer 100 in the first embodiment is applied to the PC 200.
The Web-page printing process executed by the PC 200 is built in the printer driver 210 as one of functions of the printer driver 210. Hence, the Web-page printing process of the second embodiment is started by the printer driver 210 of the PC 200 upon receipt of an instruction of printing of a Web page (as a trigger) in a state where the Web page is displayed by a Web browser or the like. Note that the same steps as the Web-page printing process (see
As shown in
Then, the same steps as
Subsequent to S108, the PC 200 creates PDL data for the printer 100 based on data of the selected frame (S209). The PDL data are created based on the frame selected by the user and based on data of which the text size is set by the user. The PC 200 then transmits the PDL data to the printer 100 (S210) and ends the Web-page printing process.
As described above in detail, if print data include a plurality of frames, the printer driver 210 of the PC 200 according to the second embodiment selects a frame of a print target in accordance with a user's manual selection or a selection condition that is preliminarily set by the user, prior to creating PDL data of the print data.
On the other hand, if print data include a single frame, the PC 200 selects the single frame without asking the user. That is, the selection mode is changed depending on whether print data include a plurality of frames. Thus, the user's intention can be reliably reflected in printing, and printing without reflecting the user's intention can be avoided. As a result, this reduces a possibility that a print result against the use's intention is obtained.
Next, a Web-page printing process according to a third embodiment will be described while referring to the flowchart in
First, the CPU 31 acquires the inputted URL information and acquires print data based on the URL information (S101). That is, the CPU 31 accesses a Web page at a reference location indicated by the URL information and downloads print data.
Next, the CPU 31 determines whether the print data have a plurality of frames (S104). If the print data do not have a plurality of frames, that is, if the print data are constituted by a single frame (S104: No), the CPU 31 selects the single frame (S111) and proceeds to S152.
If the print data have a plurality of frames (S104: Yes), the CPU 31 displays a manual frame selecting screen for allowing the user to select a frame on the touch-panel screen 41 of the operation panel 40 (S106). Here, the CPU 31 displays the frame-map display screen 420 shown in
If one of the print buttons 422 and 4225 is pressed on the frame-map display screen 420, the printer 100 selects the frame corresponding to the print button as a print target (S107).
After a frame of the print target is selected in S107 or S111, the CPU 31 executes a font changing process (S152 through S156). The CPU 31 determines whether the selected frame includes text data (S152). If the selected frame does not include text data (S152: No), the CPU 31 proceeds to S109.
If the selected frame includes text data (S152: Yes), the CPU 31 controls the touch-panel screen 41 of the operation panel 40 to display the manual text-size setting screen 450 shown in
Then, the CPU 31 controls the image forming section 10 to print the frame of the print target (S109). Subsequent to S109, the Web-page printing process ends.
According to the third embodiment, if print data include a plurality of frames, the printer 100 selects a frame of the print target in accordance with a user's manual selection, prior to printing the print data. On the other hand, if print data only include a single frame, the printer 100 prints the single frame without asking the user. Thus, the selection mode is changed depending on whether print data include a plurality of frames. Hence, the user's intention can be reflected in printing.
In addition, according to the third embodiment, the printer 100 can change the text size of texts included in a print target. Because the user can freely change the text size, the printer 100 can output a print result that is easy for the user to read.
While the invention has been described in detail with reference to the above aspects thereof, it would be apparent to those skilled in the art that various changes and modifications may be made therein without departing from the scope of the claims. In the following descriptions, like parts and components are designated by the same reference numerals to avoid duplicating description.
For example, the printing device to which the invention is applied may be a printer, a multifunction device, a copier, and the like that have a printing function. Further, the information processing device for supplying the printing device with a print job is not limited to a PC (personal computer), but may be a mobile device such as a smart phone, for example.
In the above-described embodiments, the user inputs URL information prior to executing the Web-page printing process. However, a method of acquiring URL information is not limited to this. For example, it may be so configured that URL information can be registered to the printer 100 through the PC 200 or the like, and the user may select a desired URL information from among registered URLs through the operation panel 40 of the printer 100. Further, the URL information may be stored in association with a frame selection mode (or a text size), so that the frame selection mode (or the text size) can be automatically selected for each piece of URL information.
In the first and second embodiments, as the manual frame selecting screen, the printer 100 or the PC 200 can display three kinds of screens of the frame-map display screen 420 of
In the above-described embodiments, information on each frame is informed by means of screen display in the manual frame selecting screen for providing a user with a hint for frame selection. For example, however, information on each frame may be informed with audio guidance or lighting of lamps.
In the above-described embodiments, as the automatic-frame-selection setting in (3) of
In the above-described embodiments, manual or automatic frame selection mode can be selected. However, it may be so configured that only one of manual and automatic frame selection mode is used. Even if only automatic frame selection mode is used, the user sets the selection condition of frames. Thus, the use's intention is reflected in a print result.
In the above-described embodiments, the font changing process is executed in the Web-page printing process. However, the font changing process is not always necessary in the Web-page printing process. Further, in the Web-page printing process, even if frame selection is not performed for print data including a plurality of frames and the font changing process is executed, there is still an advantageous effect that an easy-to-read print result can be obtained.
In the first and second embodiments, in the Web-page printing process, determinations are made whether the frame-selection setting is ON (S102) and whether the frame-selection-mode setting is automatic (S105). In the Web-page printing process, however, determinations in S102 and S105 are not always necessary. For example, in a Web-page printing process according to this modification, the CPU 31 acquires inputted URL information and acquires print data based on the URL information (S101), and then analyzes frame construction of the print data acquired in S101 (S103). Next, the CPU 31 determines whether the print data include a plurality of frames (S104) and, if the print data include a plurality of frames (S104: Yes), displays the manual frame selecting screen for allowing the user to select a frame (S106). Then, if a print button is pressed in the frame-map display screen 420, the keyword display screen 430, or the area-ratio display screen 440, the printer 100 selects the frame corresponding to the print button as a print target (S107) and prints the frame of the print target (S109). If the print data include a single frame (S104: No), the CPU 31 selects the single frame (S111) and prints the single frame as the print target (S109). This modification is similar to the third embodiment.
In the above-described embodiments, the printer 100 (or the PC 200) performs acquisition of print data, determination of a plurality of frames, and selection of a frame of a print target. However, the acquisition, determination, and selection need not be performed by a single device. For example, if the printer 100 (or the PC 200) is connected with a server, the server may perform at least one of the above-mentioned acquisition, determination, and selection. Further, for example, the printer 100 may perform acquisition of print data and determination of a plurality of frames, and a user may perform selection of a frame of the print target on the PC 200.
In the above-described embodiments, a single CPU may perform all of the processes. Nevertheless, the disclosure may not be limited to the specific embodiment thereof, and a plurality of CPUs, a special application specific integrated circuit (“ASIC”), or a combination of a CPU and an ASIC may be used to perform the processes.
Number | Date | Country | Kind |
---|---|---|---|
2011-163322 | Jul 2011 | JP | national |