The present application claims priority to and incorporates by reference the entire contents of Japanese Patent Application No. 2009-213326 filed in Japan on Sep. 15, 2009 and Japanese Patent Application No. 2010-167483 filed in Japan on Jul. 26, 2010.
1. Field of the Invention
The present invention relates to an image-formation control device, an image-formation control method, and a computer program product.
2. Description of the Related Art
Conventionally, a method for facilitating sorting of a roll of printed matter formed of a large volume of printed continuous recording paper is known, in which by printing markers across perforated lines of the continuous recording paper, breaks between jobs are identified with the printed matter being folded without the necessity of checking the contents of the printed matter.
For example, Japanese Patent Application Laid-open No. H10-44552 discloses a method of generating markers that extend across boundary of an image forming area corresponding to a size of continuous recording paper, and synthesizing and printing the generated markers and print image data together.
Japanese Patent Application Laid-open No. H1-125265 discloses a method of receiving signals indicating positions of mountain-folded perforated lines of continuous recording paper, identifying the positions of the mountain-folded perforated lines based on the signals, and printing a pattern of rectangular markers across the mountain-folded perforated lines. Japanese Patent Application Laid-open No. H2-55174 discloses a method of printing markers on tear-off sprocket-hole sections to reduce wasted paper.
However, the above-described conventional methods have the following problems. In the method disclosed in Japanese Patent Application Laid-open No. H10-44552, when the continuous recording paper is pre-printed paper, on which a company name, a logo, or an advertisement is printed beforehand (pre-printed), if, in order to fit the printed contents by a printer to the pre-printed contents on the continuous recording paper, printed image data are shifted by an operator in a main-scanning direction and a sub-scanning direction, a print position of a marker is displaced together with the printed image data, and thus the marker may not be able to be printed across a perforated line.
The method disclosed in Japanese Patent Application Laid-open No. H1-125265 has a problem of having to provide a mechanism dedicated to recognition of the positions of the perforated lines. Japanese Patent Application Laid-open No. H2-55174 discloses an example of printing markers of a single type on the tear-off sprocket-hole sections over several pages from a job start page to make the breaks between jobs identifiable, but because the markers are of the single type, if, for example, jobs each consisting of one page are printed continuously, the markers are printed continuously before and after each one-page job, and thus there is a problem of not being able to recognize the breaks between the one-page jobs.
It is an object of the present invention to at least partially solve the problems in the conventional technology.
According to an aspect of the present invention, an image-formation control device is configured to control an image forming apparatus that performs image formation on a continuous form that has side portions provided with holes and that has a page boundary per predetermined length. The image-formation control device includes: an input receiving unit configured to receive an input of a displacement of an image forming area in a sub-scanning direction from a reference position on the continuous form, the image forming area being a target of the image formation; a marker-length calculating unit configured to calculate marker lengths of an upper marker marking an upper end of a page of the continuous form and a lower marker marking a lower end of a page of the continuous form, based on the displacement, a shortest distance to the holes from the page boundary in the side portions, and a reference marker length for when the displacement is not specified with respect to each of the upper marker and the lower marker; a marker-start-position calculating unit configured to calculate image-formation start positions of the upper marker and the lower marker based on the displacement, the distance, the reference marker length, and a length of the image forming area in the sub-scanning direction; and a control unit configured to perform, with respect to the image forming apparatus, control of the image formation of the upper marker and the lower marker in the side portions from the image-formation start positions calculated over the marker lengths calculated.
According to another aspect of the present invention, an image-formation control method is executed by the image-formation control device and includes: receiving an input of a displacement of an image forming area in a sub-scanning direction from a reference position on the continuous form, the image forming area being a target of the image formation; calculating marker lengths of an upper marker marking an upper end of a page of the continuous form and a lower marker marking a lower end of a page of the continuous form, based on the displacement, a shortest distance to the holes from the page boundary in the side portions, and a reference marker length for when the displacement is not specified with respect to each of the upper marker and the lower marker; calculating image-formation start positions of the upper marker and the lower marker based on the displacement, the distance, the reference marker length, and a length of the image forming area in the sub-scanning direction; and performing, with respect to the image forming apparatus, control of the image formation of the upper marker and the lower marker in the side portions from the image-formation start positions calculated over the marker lengths calculated.
According to still another aspect of the present invention, a computer program product includes a computer-usable medium having computer-readable program codes embodied in the medium for controlling the image forming apparatus, and the program codes when executed causes a computer to execute the image-formation control method.
The above and other objects, features, advantages and technical and industrial significance of this invention will be better understood by reading the following detailed description of presently preferred embodiments of the invention, when considered in connection with the accompanying drawings.
Exemplary embodiments of the present invention are described in detail below with reference to the accompanying drawings.
The printer system according to the present embodiment includes, as illustrated in
Operations for the printing by the printer 200 may be controlled as the print image data is output to the printer 200. Although the printer control device 100 in the present embodiment is configured separately from the printer 200, the configuration is not limited thereto. For example, the printer control device may be included in a printer device. In that case, a printer engine corresponds to functions of the printer 200. Moreover, the printer control device 100 may be implemented by a typical computer including a CPU, a memory, and the like. In that case, the printer control device 100 may be implemented as a printer driver that controls, on the computer, printing operations of the printer.
A data receiving unit 1 illustrated in
The editing unit 3 edits the data sent from the main control unit 2 into a command and a parameter, which are for a loading process, and sends them to a page loading unit 4. The page loading unit 4 generates bitmap print image data in accordance with the command and the parameter received from the editing unit 3 and loads the bitmap print image data into a page memory 5.
When the page loading unit 4 finishes the loading of the print image data for one page into the page memory 5, the main control unit 2 sets a head address and the number of transferred bytes of the print image data loaded in the page memory 5 in a data-transfer control unit 6.
An operation unit 9 is configured to receive from an operator various input operations including settings to displace an image printing area, in which the print image data is to be printed, from a standard position that becomes a reference for printing on the continuous printing paper PP in a main-scanning direction and a sub-scanning direction. If, for example, positional adjustment is necessary between printing positions of items to be printed on each printed page of the print job information generated by an application program of the host computer and recording positions of corresponding printed items included in pre-printed contents of the continuous printing paper set in the printer 200, in order to adjust the printing positions to the recording positions, the operator, by operating the operation unit 9, sets a displacement in the main-scanning direction and the sub-scanning direction for displacing the image printing area, in which an image based on the print image data is printed, by a necessary distance from the standard position that becomes the reference for printing.
Upon such an operation, the main control unit 2 rewrites, based on the displacement set via the operation unit 9, a value set at a predetermined address in the printer 200 to a value corresponding to the set displacement, thereby changing a write start position of the print image data output from a print-data output unit 8 onto the paper.
The print-data output unit 8 includes a sheet-width setting register 10, a sheet-length setting register 11, a main-scanning-direction image-data-correction-value setting register 12, a sub-scanning-direction image-data-correction-value setting register 13, an upper-marker selecting register 14, a lower-marker selecting register 15, a sheet-width counter 16, a sheet-length counter 17, an upper/lower-marker-length calculating unit 18, an upper/lower-marker-start-position calculating unit 19, and a data-printed-on-tear-off-sprocket-hole-section creating unit 20.
The main control unit 2 sets a sheet width and a sheet length of the continuous printing paper PP used by the printer 200 in the sheet-width setting register 10 and the sheet-length setting register 11, respectively. The main control unit 2 sets the displacements in the main-scanning direction and in the sub-scanning direction that have been set via the operation unit 9 in the main-scanning-direction image-data-correction-value setting register 12 and the sub-scanning-direction image-data-correction-value setting register 13, respectively. The main control unit 2 sets, based on a command included in data transmitted from the host computer, a type of an upper marker to be printed (later described) with respect to a perforated line at an upper portion of an image forming area in the upper-marker selecting register 14. The main control unit 2 sets a type of a lower marker to be printed (later described) with respect to a perforated line at a lower portion of the image forming area in the lower-marker selecting register 15.
The upper marker MK1 is a mark that indicates the upper end of each page of the continuous printing paper PP. The lower marker MK2 is a mark that indicates the lower end of each page of the continuous printing paper PP.
As the upper marker and the lower marker in the present embodiment, a one-line pattern and a two-line pattern are prepared, respectively. Choices of these patterns between the upper and lower markers are arbitrarily settable. If, for example, the one-line pattern is formed at both a start position and an end position of each job and a two-line pattern is formed at each position between the start position and the end position of each job, breaks between jobs are easily identifiable from the printed result.
After setting of the values into these various registers by the main control unit 2, the data-transfer control unit 6 transfers the print image data from the page memory 5 to a line buffer 7 based on the data-transfer start address and the number of transfers.
After the print image data have been transferred to the line buffer 7 to some extent, the print-data output unit 8 reads the print image data from the line buffer 7 in synchronization with a print-image-data request signal received from the printer 200 and sends the read one line of the print image data per byte to the printer 200.
The sheet-width counter 16 is configured to count the recording position in the main-scanning direction when the print image data are sent. The sheet-length counter 17 is configured to count the recording position in the sub-scanning direction when the print image data are sent.
The upper/lower-marker-length calculating unit 18 calculates the lengths of the upper marker and the lower marker in the sub-scanning direction, which are to be recorded on the continuous printing paper PP. More particularly, the upper/lower-marker-length calculating unit 18 calculates the length of the upper marker MK1 and the length of the lower marker MK2 based on the displacement in the sub-scanning direction that has been set in the sub-scanning-direction image-data-correction-value setting register 13, a shortest distance L to the sprocket holes from the page boundary in the tear-off sprocket-hole section, and a reference marker length M2 for when a displacement is not specified with respect to each of the upper marker MK1 and the lower marker MK2.
The upper/lower-marker-start-position calculating unit 19 calculates the print start positions in the sub-scanning direction of the upper marker and the lower marker, which are to be recorded on the continuous printing paper PP. More particularly, the upper/lower-marker-start-position calculating unit 19 calculates the print start position of the upper marker MK1 and the print start position of the lower marker MK2 based on the displacement, the distance L, the reference marker length M2, and the length M1 of the image printing area in the sub-scanning direction.
The data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates print data for a tear-off sprocket-hole section (white data representing no printing).
As illustrated in
At the boundary between the printing area BC and the tear-off sprocket-hole sections BB1 and BB2, perforated lines CL1 and CL2 are provided so that the tear-off sprocket-hole sections BB1 and BB2 are able to be torn off and separated from the printing area BC.
The continuous printing paper PP has an area of a length M1 in the sub-scanning direction (the sheet conveying direction), which is set as a printing area of one page, and a perforated line BL for separation into printing areas is provided per length M1.
The printing area of one page of the continuous printing paper PP has the width LN in the main-scanning direction that is defined by the printing area BC and the length M1 in the sub-scanning direction that is defined by the interval between the perforated lines BL.
Each of areas obtained by dividing an area having the width of the printing area BC at intervals between the perforated lines BL is a reference position of the image printing area GA in which an image of one page is printed.
In a printing mechanism of the printer 200, a print start position SS is provided at a position displaced upstream in the main-scanning direction from the print start position of the image printing area GA of each page by the width N in the main-scanning direction of the tear-off sprocket-hole section BB1 so that the upper marker MK1 and the lower marker MK2 are printable on the tear-off sprocket-hole section BB1 upstream in the main-scanning direction of the printing area BC of the continuous printing paper PP. This print start position SS is the reference position being the standard of the print position.
The upper marker MK1 and the lower marker MK2 are recorded in the following manner in the standard state. As described above, each of the upper marker MK1 and the lower marker MK2 is a one-line pattern or a two-line pattern depending on the position in the job and has a length of a reference marker length M2 (reference length) in the sub-scanning direction.
In
Another two-line upper marker MK1 is recorded at an upper portion of the second page of the print job at a position at the distance N2 in the main-scanning direction from the left side of the paper. Another two-line lower marker MK2 is recorded at a lower portion of the page at a position at the distance N2 in the main-scanning direction from the left end of the paper.
Therefore, in this state, the two-line upper and lower markers MK1 and MK2 are recorded continuously across the perforated line BL at the boundary between the first page and the second page of the print job. Moreover, because the one-line upper marker MK1 is recorded at the upper portion of the first page of the print job, the head page of the print job is easily identifiable. Although the illustration thereof is omitted, because a one-line lower marker MK2 is recorded at a lower portion of the last page of the print job, the last page of the print job is also easily identifiable.
As compared with the state illustrated in
With reference to the example illustrated in
The position SS illustrated in
When the image printing area GA is displaced in the negative direction of the sub-scanning direction, the upper marker MK1 and the lower marker MK2 are displaced in accordance with the displacement of the image printing area GA in the same way if the print start positions are not changed. Therefore, to make the lower end of the upper marker MK1 come to the same position at which it would come when the image printing area GA is not displaced, the upper/lower-marker-length calculating unit 18 and the upper/lower-marker-start-position calculating unit 19 assesses the value of the specified displacement Y (Step S11). If Y>−L, the upper/lower-marker-length calculating unit 18 calculates the length MLu of the upper marker MK1 to be (M2−Y) (Step S14). The upper/lower-marker-start-position calculating unit 19 calculates the print start position SPu of the upper marker MK1 in the sub-scanning direction to be the same position (displacement being zero) as the position SS, i.e., the page upper end position of the displaced image printing area GA (SS1 in
At Step S11, if Y≦−L, i.e., if the displacement Y in the sub-scanning direction is equal to or greater than the distance L, when the print start position of the upper marker MK1 in the sub-scanning direction is the same as the position SS, i.e., the page upper end position of the displaced image printing area GA, the upper marker MK1 may overlap the sprocket hole SH and print stains such as blurring of a printed image of the upper marker MK1 may be generated. Therefore, in this case, the upper/lower-marker-length calculating unit 18 calculates the length MLu of the upper marker MK1 to be (L+M2) (Step S12). The upper/lower-marker-start-position calculating unit 19 calculates the print start position SPu of the upper marker MK1 in the sub-scanning direction to be a position displaced by −(L+Y) from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS1 in
Similarly, as to the lower marker MK2, the upper/lower-marker-length calculating unit 18 and the upper/lower-marker-start-position calculating unit 19 assesses the value of the specified displacement Y (Step S21). If −(L−M2)<Y 0, i.e., if the displacement |Y| of the image printing area GA in the sub-scanning direction is smaller than the value (L−M2), the upper/lower-marker-length calculating unit 18 calculates the length MLb of the lower marker MK2 to be the reference marker length M2 (Step S22). The upper/lower-marker-start-position calculating unit 19 calculates the print start position SPb of the lower marker MK2 in the sub-scanning direction to be a position displaced by (M1−M2) from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS2 in
At Step S21, when −L<Y≦−(L−M2), i.e., if the displacement |Y| of the image printing area GA in the sub-scanning direction is equal to or greater than (L−M2) and smaller than L, when the print start position of the lower marker MK2 in the sub-scanning direction is printed at the position displaced by (M1−M2) from the print start position SS, the lower marker MK2 may overlap a sprocket hole SH and print stains such as blurring of a printed image of the lower marker MK2 may be generated.
Therefore in this case, the upper/lower-marker-length calculating unit 18 calculates the length MLb of the lower marker MK2 to be (L+Y) (Step S24). The upper/lower-marker-start-position calculating unit 19 calculates the print start position SPb of the lower marker MK2 in the sub-scanning direction to be a position displaced by [M1−(L+Y)] from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS2 in
At Step S21, if Y -L, i.e., if the displacement |Y| of the image printing area GA in the sub-scanning direction is equal to or greater than the distance L, it is impossible to form the lower marker MK2 below (in the drawing) a sprocket hole SH. Therefore, the upper/lower-marker-length calculating unit 18 calculates the length MLb of the lower marker MK2 to be 0 (Step S26). The upper/lower-marker-start-position calculating unit 19 calculates the print start position SPb of the lower marker MK2 in the sub-scanning direction to be a position displaced by M1 from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS2 in
In this case, the marker across the perforated line BL is formed only using the upper marker MK1.
The length and the print start position in the sub-scanning direction of each marker are calculated in accordance with the value of Y in the above manner. Consequently, if Y<0, the markers are printable across the perforated lines BL without overlapping the sprocket holes SH.
Operations of the printer control device 100 according to the present embodiment are described below with reference to the example illustrated in
In the following description, the lengths MLu and MLb and the print start positions SPu and SPb in the sub-scanning direction of the upper marker MK1 and the lower marker MK2 for a case in which −(L−M2)<Y≦0 are used, but if Y is of another value, these values may be changed in the above manner.
If −(L−M2)<Y 0, the print start position SPu of the upper marker MK1 in the sub-scanning direction is the position displaced by 0 from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS1 in
If a print-image-data request signal is received from the printer 200 with respect to an image of a first page of a certain job, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to a distance up to a position immediately before a formation start position of the upper marker MK1 in the main-scanning direction and sends the created white data to the printer 200 byte by byte. In this example, if a one-line mark is formed at a position at the distance N1 from the side of the paper regardless of the value of X, as understood from
The data-printed-on-tear-off-sprocket-hole-section creating unit 20 counts up the sheet-width counter 16 every time it sends one byte of the white data to the printer 200. After sending the amount of the white data corresponding to (N1−X) to the printer 200, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates data of the pattern of the marker that has been set in the upper-marker selecting register 14 (in this example, a one-line pattern, being a series of black dots corresponding to the width of the line of the marker) as print data of the upper marker MK1 and sends the created data to the printer 200 (Step S32).
After that, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 determines whether the sum of the width of the white data and the width of the upper marker has reached the width N of the tear-off sprocket-hole section BB1 (Step S33). If the sum of the width of the white data and the width of the upper marker has not reached the width N of the tear-off sprocket-hole section BB1 (No at Step S33), the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to the remaining distance and sends the created data to the printer 200 (Step S34), and repeats Step S34 until the sum of the widths reaches the width N. This remaining distance is [N−(N1−X)−n1], where n1 is the width of the pattern of the marker.
If the sum of the widths has reached the width N (Yes at Step S33), that is, after the white data and print data of the upper marker MK1 of the amount corresponding to the width N of the tear-off sprocket-hole section BB1 have been sent to the printer 200, the print-data output unit 8 reads the print image data from the line buffer 7 and sends the print image data of the amount corresponding to the sheet width set in the sheet-width setting register 10 to the printer 200 (Step S35). As a result, one line worth of both the print image data and the upper marker MK1 is recorded on the first page of the continuous printing paper PP.
When the start position of the marker is displaced by X, the print image data read from the line buffer 7 may overlap the print position of the print data of the upper marker MK 1 or white data, which are output from the data-printed-on-tear-off-sprocket-hole-section creating unit 20. This happens when [N−(N1−X)−n1] is a negative value. In this case, an OR output of the print image data and the print data of the upper marker MK1 or the white data is used as the print data.
If the data amount of one line of the print image data read from the line buffer 7 is greater than the amount of data corresponding to the sheet width set in the sheet-width setting register 10, as to the excessive portion of the one line of data exceeding the data amount corresponding the sheet width, the print image data are read from the line buffer 7, but not sent to the printer 200.
After the one line of the print image data is sent to the printer 200, the print-data output unit 8 counts up the sheet-length counter 17, and repeats the sending of the pattern of the upper marker MK1 in the same manner until the sheet-length counter 17 indicates the number of lines corresponding to the length (M2−Y) of the upper marker MK1 (No at Step S36). Consequently, both the print image data and the upper marker MK1 are recorded on the first page of the continuous printing paper PP.
After that, until the sheet-length counter 17 indicates a value that is one less than the value corresponding to the print start position of the lower marker MK2 in the sub-scanning direction, i.e., from the value corresponding to the position displaced by (M1−M2) from the position SS that is the page upper end position of the displaced image printing area GA (SS1 in
When the sheet-length counter 17 indicates the value corresponding to the position displaced by (M1−M2) (Yes at Step S38), the process proceeds to the operation for forming the lower marker MK2.
More particularly, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to a distance up to a position immediately before the print start position of the lower marker MK2 in the main-scanning direction and sends the created white data to the printer 200 byte by byte. If a two-line mark is formed, regardless of the value of X, at a position at the distance N2 from the side of the sheet, as understood from
Every time one byte of the white data is sent to the printer 200, the sheet-width counter 16 is counted up. After sending the amount of the white data corresponding to (N2−X) to the printer 200, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates data of the pattern of the marker set in the lower-marker selecting register 15 (in this example, a two-line pattern, being a series of black dots corresponding to the width of the left line of the marker, a series of white dots corresponding to the interval between the lines, and a series of black dots corresponding to the width of the right line of the marker) as the print data of the lower marker MK2 and sends the created data to the printer 200 (Step S40). After that, if the sum of the width of the white data and the width of the lower marker has not reached the width N of the tear-off sprocket-hole section BB1 (No at Step S41), the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to the remaining distance and sends the created white data to the printer 200 (Step S42). This remaining distance is [N−(N2−X)−n2], where n2 is the width of the pattern of the marker.
After the white data and print data of the lower marker MK2 of the amount corresponding to the width N of the tear-off sprocket-hole section BB1 have been sent to the printer 200 (Yes at Step S41), as described above, the print-data output unit 8 reads the print image data from the line buffer 7 and sends the print image data of an amount corresponding to the sheet width set in the sheet-width setting register 10 to the printer 200 (Step S43). As a result, one line worth of both the print image data and the lower marker MK2 is recorded on the first page of the continuous printing paper PP.
After one line of the print image data has been sent to the printer 200, the sheet-length counter 17 is counted up, and the sending of the pattern of the lower marker MK2 is repeated in the same manner until the sheet-length counter 17 indicates the number of lines corresponding to M1 indicating the trailing end of the page (No at Step S44). Consequently, both the print image data and the lower marker MK2 are recorded on the first page of the continuous printing paper PP.
After that, the print-data output unit 8 resets the sheet-length counter 17 and regards as valid the data set in the upper-marker selecting register 14 and the lower-marker selecting register 15 for specifying the markers to be formed on the next page. In response to a print-image-data request signal received from the printer 200 for the image of the next page, in the same manner as for the first page, as to the next page, the print-data output unit 8 sends the white data and print data of the marker of the amount corresponding to the width N of the tear-off sprocket-hole section BB1 and the print image data read from the line buffer 7 to the printer 200.
Which patterns are to be used for the upper marker and the lower marker on which pages is set by a selecting unit, i.e., the main control unit 2 in accordance with the command included in the data transmitted from the host computer. The amount of the white data output first for each line forming the marker by the data-printed-on-tear-off-sprocket-hole-section creating unit 20 is determined in accordance with both the start position of the marker formed on the sheet and the displacement X of the image printing area GA in the main-scanning direction.
For example, a two-line pattern may be formed as the upper marker. If that is the case, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 sends, for a line forming the upper marker, white data of an amount corresponding to (N2−X) instead of (N1−X) to the printer 200 and thereafter creates data of a two-line pattern as the print data of the upper marker and sends the created data to the printer 200. On the contrary, a one-line pattern may be formed as the lower marker. If that is the case, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 sends, for a line forming the lower marker, white data of an amount corresponding to (N1−X) instead of (N2−X) to the printer 200, and thereafter creates data of a one-line pattern as the print data of the lower marker and sends the created data to the printer 200.
If the print start position of the upper marker MK1 in the sub-scanning direction does not match the print start position SS, until the sheet-length counter 17 indicates a value that is one less than a value corresponding to the print start position, the above-described operation for a line without a marker may be performed.
If the length of the lower marker MK2 is 0, it is unnecessary to perform the operation for forming the lower marker MK2, and after a line without an upper marker MK1 has been reached, the above-described operation corresponding to a line without a marker is repeated until the sheet-length counter 17 indicates the number of lines corresponding to M1 indicating the trailing end of the page.
The case in which the print image data is displaced in the negative direction of the sub-scanning direction has been explained. Next, a case in which the print image data is displaced in the positive direction of the sub-scanning direction will be explained.
As compared with the state illustrated in
With reference to the example illustrated in
A position SS illustrated in
A broken line SPu′ illustrated in
As described with reference to
Because the upper marker MK1 is formed at a position displaced in the positive direction of the sub-scanning direction, in a case like the one illustrated in
The upper/lower-marker-length calculating unit 18 assesses the value of the displacement Y (Step S52). If Y≦(L−M2), because there is no possibility that the upper marker MK1 overlaps the lower sprocket hole SH, the upper/lower-marker-length calculating unit 18 calculates the length MLu′ of the upper marker MK1 to be the reference marker length M2 (Step S53).
At Step S52, if (L−M2)<Y<L and the length MLu′ of the upper marker MK1 is the reference marker length M2, the upper marker MK1 may overlap the sprocket holes SH and print stains such as blurring of the printed image of the upper marker MK1 may be generated. Therefore, in this case, the upper/lower-marker-length calculating unit 18 calculates the length MLu′ of the upper marker MK1 to be (L−Y) (Step S54) to prevent the upper marker MK1 from overlapping the sprocket holes SH (corresponding to a portion of the line SPu″, which is parallel to the perforated line BL in
At Step S52, if L≦Y, because it is impossible to form the upper marker MK1 above the sprocket holes SH, the upper/lower-marker-length calculating unit 18 calculates the length MLu′ of the upper marker MK1 to be 0 (Step S55). In this case, because the upper marker MK1 is not printed, the print start position in the sub-scanning direction may be an arbitrary position.
In order to position the upper end of the lower marker MK2 to the same position as in the case in which the image printing area GA is not displaced, the upper/lower-marker-start-position calculating unit 19 calculates the print start position SPb′ of the lower marker MK2 in the sub-scanning direction to be a position displaced by [M1−(M2 Y)] from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS2 in
The upper/lower-marker-length calculating unit 18 then assesses the value of the displacement Y (Step S61). If Y<L, because the lower marker MK2 does not overlap the sprocket holes SH even if the lower marker MK2 is formed to reach the lower end, the upper/lower-marker-length calculating unit 18 calculates the length MLb′ of the lower marker MK2 to be (M2+Y) (Step S62).
At Step S61, if L≦Y, when the lower marker MK2 is formed to reach the lower end, the lower marker MK2 overlaps a sprocket hole SH, and thus the upper/lower-marker-length calculating unit 18 calculates the length MLb′ of the lower marker MK2 to be (M2+L) (Step S63) to prevent the lower marker MK2 from overlapping the sprocket hole SH (corresponding to a portion of the broken line SPu′, which is parallel to the perforated line BL in
In this case, the marker across the perforated line BL is formed only using the lower marker MK2.
By setting the length and the print start position in the sub-scanning direction of each marker in accordance with the value of Y in the above manner, as long as Y>0, regardless of the value of Y, a marker is printable across a perforated line BL without overlapping the sprocket holes SH.
Operations of the printer control device 100 according to the present embodiment is described below for a case in which the print image data are displaced in the positive directions of the main-scanning direction and the sub-scanning direction (the displacement in the main-scanning direction being X, the displacement in the sub-scanning direction being Y, X>0, and Y>0) like the example illustrated in
The operation will be explained using the lengths and the print start positions in the sub-scanning direction of the upper marker MK1 and the lower marker MK2 for when 0<Y≦(L−M2), but if Y is another value, these values may be modified in the above manner.
If 0<Y≦(L−M2), the print start position of the upper marker MK1 in the sub-scanning direction becomes the position displaced by 0 from the position SS, i.e., the page upper end position of the displaced image printing area GA (SS1 in
If a print-image-data request signal is received from the printer 200 for an image of the first page of a certain job, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to a distance up to a position immediately before the forming start position of the upper marker MK1 in the main-scanning direction and sends the created data to the printer 200 byte by byte. In this example, if a one-line mark is formed, regardless of the value of X, at a position at a distance N1 from the side of the sheet, as understood from
Every time one byte of the white data is sent to the printer 200, the sheet-width counter 16 is counted up. After sending the white data of the amount corresponding to (N1−X) to the printer 200, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates data of the pattern of the marker set in the upper-marker selecting register 14 as the print data of the upper marker MK1 and sends the created data to the printer 200 (Step S32). After that, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 determines whether the sum of the width of the white data and the width of the upper marker has reached the width N of the tear-off sprocket-hole section BB1 (Step S33). If not reached (No at Step S33), the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to the remaining distance and sends the created data to the printer 200 (Step S34). This remaining distance is [N−(N1−X)−n1], where n1 is the width of the pattern of the marker.
After the white data and print data of the upper marker MK1 of an amount corresponding to the width N of the tear-off sprocket-hole section BB1 have been sent to the printer 200 (Yes at Step S33), the print-data output unit 8 reads the print image data from the line buffer 7 and sends the print image data of an amount corresponding to the sheet width set in the sheet-width setting register 10 to the printer 200 (Step S35). As a result, one line worth of the print image data and the upper marker MK1 is recorded on the first page of the continuous printing paper PP.
After one line of the print image data is sent to the printer 200, the sheet-length counter 17 is counted up. The sending of the pattern of the upper marker MK1 is repeated in the same manner until the sheet-length counter 17 indicates the number of lines corresponding to the upper marker length M2 (No at Step S36). Consequently, both the print image data and the upper marker MK1 are recorded on the first page of the continuous printing paper PP.
After that, until the sheet-length counter 17 indicates a value that is one less than a value corresponding to a position displaced by (M1−(M2+Y)) from the print start position of the lower marker MK2 in the sub-scanning direction, i.e., the position SS, which is the page upper end position of the displaced image printing area GA (SS2 in
When the sheet-length counter 17 indicates the value corresponding to the position displaced by (M1−(M2+Y)) (Yes at Step S38), the process proceeds to the operation for forming the lower marker MK2.
More particularly, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to a distance up to a position immediately before the forming start position of the lower marker MK2 in the main-scanning direction and sends the created data to the printer 200 byte by byte. In this example, if a two-line mark is formed, regardless of the value of X, at a position at a distance N2 from the side of the sheet, as understood from
Every time one byte of the white data is sent to the printer 200, the sheet-width counter 16 is counted up. After sending the white data of the amount corresponding to (N2−X) to the printer 200, the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates data of the pattern of the marker set in the lower-marker selecting register 15 as the print data of the lower marker MK2 and sends the created data to the printer 200 (Step S40). After that, if the sum of the width of the white data and the width of the lower marker is less than the width N of the tear-off sprocket-hole section BB1 (No at Step S41), the data-printed-on-tear-off-sprocket-hole-section creating unit 20 creates white data of an amount corresponding to the remaining distance and sends the created data to the printer 200 (Step S42). This remaining distance is [N−(N2−X)−n2], where n2 is the width of the pattern of the marker.
After the white data and print data of the lower marker MK2 of the amount corresponding to the width N of the tear-off sprocket-hole section BB1 are sent to the printer 200 (Yes at Step S41), in the same manner as described above, the print-data output unit 8 reads the print image data from the line buffer 7 and sends the print image data of the amount corresponding to the sheet width set in the sheet-width setting register 10 to the printer 200 (Step S43). As a result, one line worth of the print image data and the lower marker MK2 is recorded on the first page of the continuous printing paper PP.
After one line of the print image data is sent to the printer 200, the sheet-length counter 17 is counted up. The sending of the pattern of the lower marker MK2 is repeated in the same manner until the sheet-length counter 17 indicates the number of lines corresponding to M1 indicating the trailing end of page (No at Step S44). Consequently, both the print image data and the lower marker MK2 are recorded on the first page of the continuous printing paper PP.
After that, the print-data output unit 8 resets the sheet-length counter 17 and regards data, which are set in the upper-marker selecting register 14 and the lower-marker selecting register 15 and which specify the markers to be formed on the next page, to be valid, and in response to a print-image-data request signal received from the printer 200 for the image of the next page, in the same manner as for the first page, with respect to the second page, sends the white data and print data of the marker of the amount corresponding to the width N of the tear-off sprocket-hole section BB1 and the print image data read from the line buffer 7 to the printer 200.
If the length of the upper marker MK1 is 0, it is unnecessary to perform the operation for forming the upper marker MK1, and the above-described operation for a line without a marker is performed until the sheet-length counter 17 indicates the number of lines corresponding to the print start position of the lower marker MK2 in the sub-scanning direction.
If the lower marker MK2 is not formed to reach the trailing end of the page in the sub-scanning direction, after the sheet-length counter 17 indicates a value corresponding to the end position of the lower marker MK2 in the sub-scanning direction (calculated from the print start position and the length) and until the sheet-length counter 17 indicates the number of lines corresponding to M1 indicating the trailing end of the page, the above-described operation for a line without a marker is performed.
As described above, according to the present embodiment, by forming the print image data and the marker using the same image-data creating process, even when the print image data is displaced in both the main-scanning direction and the sub-scanning direction, with the easier process, a marker selected from a plurality of patterns is printable in a tear-off sprocket-hole section across a perforated line (boundary between pages) and the marker is preventable from overlapping any sprocket holes.
Although the present embodiment has been described, the configuration of the device, the specific contents of the processes, the forms of the paper sheet, and the forms of the markers are not limited to those described above.
For example, in the above embodiment, although the operator performs the operation to displace the image printing area GA (print image data) in the positive or negative directions for both the sub-scanning direction and the main-scanning direction, the present invention is also applicable when the operator performs an operation to displace the printing area in the negative direction of the sub-scanning direction and in the positive direction of the main-scanning direction or when the operator performs an operation to displace the printing area in the positive direction of the sub-scanning direction and in the negative direction of the main-scanning direction.
The positional adjustment corresponding to the displacement in the sub-scanning direction (based on calculation of the length and the print start position in the sub-scanning direction of the marker) and the positional adjustment corresponding to the displacement in the main-scanning direction (based on the calculation of the sent amount of the white data in the tear-off sprocket-hole section BB1 upon the sending of the print image data) are each independently applicable.
Such operations to displace the image printing area GA (print image data) may be done manually by the operator, but may also be done, for example, automatically by software like a printer driver. In the latter case, the image printing area is displaced by the functions of the printer driver in accordance with the contents of the operations for displacing the print image data, which are input by a user on a printer-driver setting screen.
In the above embodiment, although the continuous printing paper PP is separatable into pages by the perforated lines BL, the present invention is similarly applicable to a case in which separation means equivalent to the perforated lines BL are provided. Moreover, the present invention may also be applicable to continuous printing paper provided with mere boundary lines between printing areas instead of such separation means.
In the above embodiment, although the sections provided with the sprocket holes (the tear-off sprocket-hole sections BB1 and BB2) are separable, the present invention is similarly applicable to continuous printing paper with inseparable sections provided with sprocket holes.
Although not specified in the above embodiment, naturally, a certain clearance between a marker and a sprocket hole may be ensured when setting the length and the print start position in the sub-scanning direction of each marker.
Various patterns may be used as the markers, such as a pattern painted solidly or a crossline pattern. The lengths of the upper marker MK1 and lower marker MK2 for the case in which the image printing area GA is not displaced are not necessarily equal to each other.
The printer control device 100 according to the present invention may be implemented by a computer program (software) as device driver means for controlling the printer 200 and is applicable to an information processing apparatus including a device driver unit that controls devices other than the printer 200. For example, the present invention is applicable to a device driver unit for controlling various image forming apparatuses, such as a scanner, a facsimile machine, and a copying machine, and an information processing apparatus including this device driver unit.
Such a computer program may be stored beforehand in storage means provided in a computer, such as a ROM, an HDD, or an SSD. Alternatively, the computer program may be stored: in a recording medium such as a CD-ROM, a flexible disk, an MO, a CD-R, a CD-RW, a DVD+R, a DVD+RW, a DVD-R, or a DVD-RW; or in a nonvolatile recording medium (memory) such as a DVD-RAM, SRAM, a NOV-RAM, an EEPROM, or a memory card. The above processes are executable by installing the computer program recorded in the memory and causing the CPU to execute it or by causing the CPU to read the computer program from the memory and execute it.
The computer program may be downloaded from an external device including a recording medium that has the computer program recorded therein, or an external device with storage means in which the computer program has been stored, which is connected to a network, and executed.
In the present embodiment, the example in which the image-formation control device according to the present invention is applied to the printer control device that controls the printer 200, which is the image forming apparatus, has been explained, but the present invention is not limited thereto. For example, the image-formation control device according to the present invention is applicable to a control device that controls an image forming apparatus, which is an MFP having a printer function together with at least one of a copy function, a scan function, and a facsimile function.
Moreover, the configurations and the modifications of each embodiment above may be combined in any way as appropriate so long as there are no contradictions.
As it is clear from the above description, by applying the present invention, an image-formation control device and an image forming apparatus are providable, by which a marker is printable across a page boundary of continuous printing paper PP with easy control and the marker is prevented from overlapping a sprocket hole, even if an image printing area is displaced
According to one aspect of the present invention, even if an image printing area is displaced, without having to provide a mechanism dedicated to recognition of a page boundary position of continuous recording paper, an upper marker and an lower marker are printable across a page boundary position by simple control, and the upper marker and the lower marker are prevented from overlapping holes.
Although the invention has been described with respect to specific embodiments for a complete and clear disclosure, the appended claims are not to be thus limited but are to be construed as embodying all modifications and alternative constructions that may occur to one skilled in the art that fairly fall within the basic teaching herein set forth.
Number | Date | Country | Kind |
---|---|---|---|
2009-213326 | Sep 2009 | JP | national |
2010-167483 | Jul 2010 | JP | national |