Field of the Invention
The present invention relates to a print control apparatus and a print control method.
Description of the Related Art
There is a function in which in a case where print data is transmitted to a printing apparatus from a host terminal such as a PC or a mobile device to cause the printing apparatus to print, it is possible to instruct a print page range by specifying pages, for example, on that host terminal. Also, when generating such print data on the host terminal, sometimes one print job includes a plurality of PDL files. In a case that a print page range for a print job including a plurality of PDL files is specified in this way, pages to be printed and page numbers of documents corresponding to each PDL file and the entire print job cannot be specified at a stage of analyzing the PDL file. For this reason, even if the specified print page range is a part of the plurality of PDL files, for example, an analysis of PDL files and RIP processing are performed with respect to all pages of all files, and then when printing, narrowing down to pages of the target range is first performed and then print processing is executed.
In Japanese Patent Laid-Open No. 2011-110900, a technique is recited for solving a problem in that in direct printing of PDF (Portable Document Format) files and the like, a total number of pages of print data cannot be displayed, and also because of this, a specified page range cannot be printed. According to this, specific identifiers to be used in the calculation of the number of pages in the document from one or two or more print data items being stored in an external storage medium are extracted, and the total number of pages of a document is calculated based on the extracted identifiers.
However, with the above described conventional technique, as previously mentioned, if a print page range is specified in relation to a print job including a plurality of files for which the total number of pages is unclear, the problem that it is necessary to execute PDL analysis and RIP processing in relation to pages outside of the print page range cannot be solved. In this way, conventionally, because PDL analysis and RIP processing have been executed in relation to pages outside the print target when a print page range is specified in relation to a print job including a plurality of files, there has been a problem in that unnecessary processing occurs when printing, and as a consequence the processing time becomes longer.
An aspect of the present invention is to eliminate the above-mentioned problems which are found in the conventional technology.
A feature of the present invention is to provide a technique in which, even when a print page range is specified in relation to a print job including a plurality of files, printing can be performed with a shortened processing time.
According to a first aspect of the present invention, there is provided a print control apparatus comprising: a receiving unit configured to receive a print job with a print page range indicating target pages selected among all pages of the print job, the print job including a plurality of documents, the target pages including pages of different documents; and a rasterizing unit configured to selectively rasterize the received print job according to the print page range, so that the target pages are rasterized and pages among the all pages other than the target pages are not rasterized.
According to a second aspect of the present invention, there is provided a print control method comprising: receiving a print job with a print page range indicating target pages selected among all pages of the print job, the print job including a plurality of documents, the target pages including pages of different documents; and selectively rasterizing the received print job according to the print page range, so that the target pages are rasterized and pages among the all pages other than the target pages are not rasterized.
Further features of the present invention will become apparent from the following description of exemplary embodiments (with reference to the attached drawings).
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
Embodiments of the present invention will be described hereinafter in detail, with reference to the accompanying drawings. It is to be understood that the following embodiments are not intended to limit the claims of the present invention, and that not all of the combinations of the aspects that are described according to the following embodiments are necessarily required with respect to the means to solve the problems according to the present invention.
In the print system, a host terminal 101 that generates print data and supplies it to an image forming apparatus 102, and the image forming apparatus 102, which receives the print data, and executes print processing based on the print data, are connected via a network 100.
To a system bus 220, a CPU 201, a RAM 202, a UI (user interface) I/F 203, a network I/F 204, a ROM 205, and an HDD (hard disk drive) 206 are connected and perform communication with each other. The components on the system bus 220, via an image bus I/F 207, access an RIP (Raster Image Processor) 208, a printer image processor 209, and an engine I/F 210 which are connected to an image bus 230. The UI I/F 203 is connected to a console unit 211 and notifies signals that are from the console unit 211 to each module. The network I/F 204 receives PDL (page description language) data from the host terminal 101 via the network 100, and the CPU 201 stores them to the HDD 206. The ROM 205 stores various parameters and programs necessary for execution of activation and processing of the image forming apparatus 102, and is accessed from each software module as necessary. The HDD 206 provides a temporary storage region for the PDL data received via the network 100, and a data swap region of the RIP 208 and the printer image processor 209. The image bus I/F 207 executes a data exchange between the image bus 230 and the system bus 220 of the image forming apparatus 102, and mediates communication between the system bus 220 on which control system software operates, and modules relating to image processing that operate on the image bus 230. The RIP 208 which is connected to the image bus 230 renders (converts) a page description language (PDL) code into an image file. The conversion is called rasterizing or rendering. The printer image processor 209 performs correction processing or a conversion to a resolution suited to a printer engine 212 in relation to the image file generated by the RIP 208. The engine I/F 210 is a communication I/F for controlling the printer engine 212.
The network I/F 204 provides a TCP/IP socket I/F to a network controller 301. An application which generates PDL data from the host terminal 101 side transmits PDF/PS/TIFF etc. format data by a RAW/LPR etc. data transmission protocol. In the image forming apparatus 102, the network controller 301 receives the PDF/PS/TIFF data by the RAW/LPR communication protocol, and passes the data to a data reception controller 302, and the data reception controller 302 writes and stores the data to the HDD 206. A print job/document controller 303 manages a sequence of processes from a reception of document data which configures the print job until a print completion. Here, when one job includes a plurality of document data items, and the documents are included in a print page range, a PDL analyzer 307 is caused to operate a plurality of times in units of documents. Also, a RIP controller 309 and a print controller 311 are caused to operate as necessary to create image data for printing. Also, the print job/document controller 303 reads and discards data stored by the data reception controller 302 through the PDL analyzer 307 if data of a processing target document is outside the print page range. Attribute information of the document and the job generated at the time of PDL analysis is stored in a print job/document attribute storage module 304. The page processing of each document (PDL analysis, RIP, and print control) is controlled by a print page controller 305.
The print job/document attribute storage module 304 receives setting information attached to the document and the print job from the print job/document controller 303, and stores in units of documents and in units of jobs. In this way, the stored information is referred to as necessary for job control and page control.
The print page controller 305, the PDL analyzer 307, the RIP controller 309 and the print controller 311 cooperate and perform processing pages included in the print page range. At that time, the page attribute obtained when the page is analyzed is stored in a page attribute storage module 306. The print page controller 305 receives an initiation notification of the document process from the PDL analyzer 307, requests a rendering process and a PDL analysis to the PDL analyzer 307, and stores intermediate page data to an intermediate page storage module 308 after the process has terminated. Continuing, the print page controller 305 requests for RIP processing to the RIP controller 309 and stores image data extracted by the RIP processing to a print page storage module 310 after termination of the RIP processing. Finally, the print controller 311 prints an image based on image data for which RIP has completed which is being stored in the print page storage module 310.
The page attribute storage module 306 receives page attributes obtained by the PDL analysis processing from the print page controller 305, and references these as necessary in accordance with requests from each module.
The PDL analyzer 307, in accordance with instructions of the print job/document controller 303, performs rendering processing and PDL analysis of received print jobs and generates the intermediate page data. Then, the PDL analyzer 307 generates a page attribute of each page and a document attribute of the document, and transfers those to the print job/document controller 303 and the print page controller 305 respectively. Also, the PDL analyzer 307, by the print job/document controller 303, obtains information of the print page range Ds(N) through De(N) of an Nth document. If a page number(m) during the analysis is in the print page range Ds(N) through De(N), the PDL analysis processing is applied, and rendering processing of the intermediate data for RIP processing is performed. However, if outside the print page range, only an obtainment of information necessary for the analysis of a subsequent page is performed, and the rendering processing is omitted. Also, by searching the information relating to a total number of pages of a document: Da(N) from the PDL data or by counting the total number of pages analyzed, a total number of pages of the received print job data is notified as Da(N) to the print job/document controller 303.
The intermediate page storage module 308 temporarily stores the intermediate page data for which the PDL analyzer 307 performed rendering until the RIP processing of the preceding page finishes. The RIP controller 309 performs RIP processing on the intermediate page data stored in the intermediate page storage module 308, stores the image data after the RIP processing in the print page storage module 310, and waits for the print processing by the print controller 311. The print controller 311 reads out the image data for printing in the print order from the print page storage module 310 then transfers to an engine controller 312 to cause printing.
One print job includes five PDL data items (documents (Doc (1)) through (Doc (5)) 410, 420, 430, 440, and 450) (Such as a PDF or a TIFF file), and each document is configured by five pages, and becomes document data of 25 pages in the entire print job. A print page range of page 8 through page 17 is set for the print job. By this, the document 410 (Doc (1)) is a document before the print page range, and the document 420 (Doc (2)) is a document in which the head of the print page range is included. Furthermore, the document 430 (Doc (3)) is a document completely included in the print page range, the document 440 (Doc (4)) is a document in which the final page of the print page range is included, and the document 450 (Doc (5)) is a document outside the print page range. Note, configuration may also be taken such that settings of the print page range are included in the print job, or such that a user can specify the settings via the console unit 211 of the image forming apparatus 102.
Here, the document 410 (Doc (1)), 420 (Doc (2)), 430 (Doc (3)), 440 (Doc (4)), and 450 (Doc (5)) indicate the first through fifth documents. “An external input variable” and “an internal arithmetic variable” employed by the print job/document controller 303 and the PDL analyzer 307 which are necessary for when these first through fifth documents are processed are described.
Here, “external input variables” Js and Je which set the print page range are set as the print job settings. Here, Js, as denoted by reference numeral 408 in
In contrast, variables which are described as items (A) through (H) described later are computed within the image forming apparatus 102. A parameter necessary for an Nth document process (in other words, processing of the subsequent document) is calculated based on Js, Je, and the variables for the time of the ((N−1)th) document one previous (in other words, the processing of the preceding document). A calculation equation is described as follows. The variables which are described by items (A) through (F) and (H) are values calculated by the print job/document controller 303, and the variable (variable De(N)) which is described by item (F) is obtained by the PDL analyzer 307. Note, these variables are stored in the RAM 202.
(A) Variable Ja(N) indicates the total number of pages of the 1 through Nth documents. For example, Ja(2) is a sum total of a number of pages of the first and second documents. The print job/document controller 303 calculates this by Ja(N)=Ja(N−1)+Da(N) prior to Nth document processing initiation (step S604 of
In
(B) Variable Ji(N) indicates a sum total the pages to be printed of the 1 through Nth documents. The print job/document controller 303 calculates this by Ji(N)=Ji(N−1)+Di(N) after the Nth document processing termination (step S609). Here, Di(N) is the total number of pages to be printed of the Nth document.
Variable Ji(N) after processing of the first through fifth documents, Ji(1)=0, Ji(2)=3, Ji(3)=8, Ji(4)=10, and Ji(5)=10. Note, the variable Ji(N) is not indicated in
(C) Variable Djs(N) indicates the print initiation page in units of jobs of the Nth document. The print job/document controller 303 calculates prior to the Nth document processing initiation (step S604) by the following equation.
If Ja(N−1)<Js (print initiation page), then Djs(N)=Js
If Ja(N−1)≧Js, then Djs(N)=Ja(N−1)+1
In
(D) Variable Dje(N) indicates the print termination page in units of jobs of the Nth document. The print job/document controller 303 calculates this by Dje(N)=Je (print termination page) prior to the Nth document processing initiation (step S604).
In
(E) Variable Ds(N) indicates the print initiation page in units of documents of the Nth document. The print job/document controller 303 calculates this by Ds(N)=Ds(N−1)+Djs(N) prior to the Nth document processing initiation (step S604). In
(F) Variable De(N) indicates the print termination page in units of documents of the Nth document. The print job/document controller 303 calculates this by De(N)=Je−Ja(N−1) prior to the Nth document processing initiation (step S604).
In
(G) Variable Da(N) indicates the total number of pages of the Nth document. The PDL analyzer 307 analyzes the Nth document of a received print job, and obtains the total number of pages included in the print job. This is notified to the print job/document controller 303 in step S803 (
(H) Variable Di(N) indicates the number of pages in the print page range of the Nth document. The PDL analyzer 307 determines that the Nth document is within the print page range, the number of pages for which PDL analysis, RIP processing, the print process are performed are counted, and this is stored as Di(N) when processing is terminated for an Nth document by the print page controller 305. In
When the process is initiated, a variable N=1 is set. First, the CPU 201 in step S601, when processing of an Nth document is initiated, determines whether or not an (N−1)th document exists, in other words, whether or not it is the head document of the print job. When it is determined to be the head document, the processing proceeds to step S603, and it is determined not to be the head document, the processing proceeds to step S602. The CPU 201 in step S602 reads variables Js and Je when processing of the Nth document is initiated, and also reads the value of Ja(N−1) (the total number of pages until the (N−1)th document) for when the (N−1)th document was processed, and the processing proceeds to step S604. Here, the variables Js and Je are the print initiation page and the print termination page respectively. However, when the head document is determined in step S601, an initial value “0” is set to Ja(N), and the values above described of variables Js and Je are read in step S603, and the processing proceeds to step S604.
The CPU 201 in step S604, at a time of Nth document processing initiation, calculates the variables Djs(N), Dje(N), Ds(N), and De(N) for the Nth document by the previously described calculation equation. Here, Djs(N) and Dje(N) are respectively the print initiation page and the print termination page of units of jobs of the Nth document, and Ds(N) and De(N) are the print initiation page and the print termination page in units of documents of the Nth document, respectively. Next, the processing proceeds to step S605, and the CPU 201 references De(N) obtained in step S604, and if De(N)>0 then the processing proceeds to step S606, and if De(N)≦0 then the processing proceeds to step S610 since it is outside the print page range, the document data is read and discarded, and the processing proceeds to step S609.
The CPU 201, in step S606, performs document page processing of the Nth document. Details of the processing is described later referencing the flowchart of
Next, the processing proceeds to step S607, and the CPU 201 calculates Ji(N) (total number of pages to be printed from the first to the Nth documents) and Ja(N) (a total number of pages of the first to Nth documents) and the processing proceeds to step S608. The CPU 201 in step S608 terminates the processing of the Nth document, determines whether or not the Nth document is the final document, and in a case that it is not the final document, “1” is added to the variable N, the processing returns to step S601, and the previously described processing is executed.
However, when it is determined to be the final document, the processing proceeds to step S609 and the CPU 201 calculates Ji (a number of pages to be printed of the entire job), whether or not Ji>0, in other words, determines whether or not there is a page to be printed. When a page to be printed exists, the processing terminates, and when one does not exist the processing proceeds to step S611 and the CPU 201 displays that there are no pages to be printed on the console unit 211, in other words, the number of pages in the print page range is “0”, and the processing is terminated.
First, the CPU 201 in step S701 initializes the number Di(N) of pages to be printed of Nth document to “0” and initializes a value(m) of the page number (Page Cnt), which is subsequently processed in the Nth document N, to “1”. Next, the processing proceeds to step S702 and the CPU 201, in regards to the Nth document, determines whether or not the next to be processed page number(m) is within the range of Ds(N) through De(N), in other words, is included in the print page range. When it is determined that it is included in the print page range, the processing proceeds to step S703, and the CPU 201 performs the PDL analysis and the rendering processing of the page(m), and the processing proceeds to step S704. The CPU 201 in step S704 performs RIP processing of the page(m) and the processing proceeds to step S705, and outputs the image data of the page(m) to the printer engine 212 via the engine I/F 210 to print. Next, the processing proceeds to step S706 and the CPU 201 increments the target page number(m) in the print page range of the Nth document, this is stored in Di(N), and the processing proceeds to step S707. The CPU 201 in step S707 determines whether printing of all pages of the Nth document terminated, and if it determines that printing has terminated, then this processing terminates, otherwise if subsequent pages exist then the processing proceeds to step S702.
Also, the CPU 201, in step S702, in regards to the Nth document, if it is determined that the next to be processed page number(m) is not included in the print page range, then the processing proceeds to step S708. The CPU 201 in step S708 performs only the PDL analysis processing because the page(m) is not included in the pages to be printed, and “1” is added to the page number(m). Then, PDL rendering processing (step S703), the RIP processing (step S704), and the print processing (step S705) are skipped, and the processing proceeds to step S707.
In this way, it is possible that only image data of a page of the document included in the print page range is extracted and printed.
Step S801 indicates internal processing of the print job/document controller 303 and corresponds to step S601 through step S604 of
Next, in step S802, PDL analysis processing of the Nth document (Doc(N)) is instructed from the print job/document controller 303 to the PDL analyzer 307 with Ds(N) and De(N) as the print page range of the Nth document. Also, if the Nth document is outside the print page range, the document data is instructed to be read and discarded. At that time, only if the data format of the PDL analysis target of the document data is PDF, the PDL analyzer 307 notifies “the total number Da(N) of pages of the Nth document” to the print job/document controller 303 at a timing of step S803. This value is used for the calculation of the number Ja(N) of pages of the entire print job in step S607 of
The PDL analyzer 307 in step S804 notifies processing initiation relating to the page(m) of the Nth document to the print page controller 305. Then, the PDL analyzer 307 in step S805 performs the PDL analysis processing of the page(m). Next, in step S806, only in a case of the page(m) being included in a print page range specification Ds(N) through De(N), the rendering processing of the page(m) is performed. The processing is repeatedly executed for the number of pages Di(N) within the print page range of the Nth document.
Next, in step S807, completion of the PDL analysis processing of the page(m) is notified to the print page controller 305 from the PDL analyzer 307. Furthermore, only in a case of the page number(m) being included in a print page range Ds(N) through De(N), the RIP processing in step S808 through step S810 and the print processing in step S811 through step S813 are performed.
Specifically, the RIP processing is instructed to the RIP controller 309 from the print page controller 305 in step S808, and the RIP controller 309 performs the RIP processing of the page(m) in step S809. Then in step S810, completion of the RIP processing is notified to the print page controller 305 from the RIP controller 309. Then, the printing of the page(m) of the Nth document is instructed to the print controller 311 from the print page controller 305 in step S811, and the print controller 311 executes the print process of the page(m) in step S812. Then, the print controller 311 notifies the print completion of the page(m) of the Nth document to the print page controller 305 in step S813.
Next, the PDL analyzer 307 notifies a termination of analysis of the Nth document to the print job/document controller 303 in step S814. Then, in step S816, the print job/document controller 303 calculates the pages Ji to be printed regarding the entire print job, and if Ji>0 is not satisfied, in step S817, the print job/document controller 303 warns the user that there are no pages to be printed.
By virtue of this embodiment as explained above, the PDL analysis and rendering, RIP, and print processing are executed for the pages of the document included in the print page range, and the PDL rendering, RIP, and print processing are omitted for the pages outside the print page range. In other words, only the PDL analysis is executed for the pages outside the print page range. Further, the data itself is read and discarded (discarded) and the PDL analysis processing is also omitted for a document not included in the print page range. Thus, in the example above, since the PDL rendering, RIP, and print processing are performed only for the pages within the print page range of the 2nd document 2 through the 4th document, there is the effect that the processing time of the entire job can be shortened when the print page range is specified for a print job which includes a plurality of documents as in the problem to be solved.
Embodiments of the present invention can also be realized by a computer of a system or apparatus that reads out and executes computer executable instructions (e.g., one or more programs) recorded on a storage medium (which may also be referred to more fully as a ‘non-transitory computer-readable storage medium’) to perform the functions of one or more of the above-described embodiment(s) and/or that includes one or more circuits (e.g., application specific integrated circuit (ASIC)) for performing the functions of one or more of the above-described embodiment(s), and by a method performed by the computer of the system or apparatus by, for example, reading out and executing the computer executable instructions from the storage medium to perform the functions of one or more of the above-described embodiments and/or controlling the one or more circuits to perform the functions of one or more of the above-described embodiments. The computer may comprise one or more processors (e.g., central processing unit (CPU), micro processing unit (MPU)) and may include a network of separate computers or separate processors to read out and execute the computer executable instructions. The computer executable instructions may be provided to the computer, for example, from a network or the storage medium. The storage medium may include, for example, one or more of a hard disk, a random-access memory (RAM), a read only memory (ROM), a storage of distributed computing systems, an optical disk (such as a compact disc (CD), digital versatile disc (DVD), or Blu-ray Disc (BD)™), a flash memory device, a memory card, and the like.
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications and equivalent structures and functions.
This application claims the benefit of Japanese Patent Application No. 2015-129202, filed Jun. 26, 2015, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2015-129202 | Jun 2015 | JP | national |