JP6649103B2 - Image data generation device - Google Patents

Image data generation device Download PDF

Info

Publication number
JP6649103B2
JP6649103B2 JP2016020887A JP2016020887A JP6649103B2 JP 6649103 B2 JP6649103 B2 JP 6649103B2 JP 2016020887 A JP2016020887 A JP 2016020887A JP 2016020887 A JP2016020887 A JP 2016020887A JP 6649103 B2 JP6649103 B2 JP 6649103B2
Authority
JP
Japan
Prior art keywords
paper
tray
image data
image processing
paper feed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2016020887A
Other languages
Japanese (ja)
Other versions
JP2016172435A (en
Inventor
英基 方波見
英基 方波見
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Riso Kagaku Corp
Original Assignee
Riso Kagaku Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Riso Kagaku Corp filed Critical Riso Kagaku Corp
Priority to US15/070,636 priority Critical patent/US9946503B2/en
Priority to EP16160870.8A priority patent/EP3070597A1/en
Publication of JP2016172435A publication Critical patent/JP2016172435A/en
Application granted granted Critical
Publication of JP6649103B2 publication Critical patent/JP6649103B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、印刷装置における印刷中に給紙トレイや排紙トレイを切り替えて印刷を続行する場合でも、印刷速度の低下を防止する画像データ生成装置に関する。   The present invention relates to an image data generating apparatus that prevents a decrease in printing speed even when printing is continued by switching a paper feed tray or a paper discharge tray during printing in a printing apparatus.

従来、画像データ生成装置では、印刷ジョブに基づいてラスター画像処理(Raster Image Processing)を行うことにより、印刷装置が印刷するために必要な画像データを生成する。印刷装置は、A4やA3など複数のサイズの用紙や同一サイズでも向きの異なる用紙を給紙トレイに載置し、画像データに基づいて、適宜給紙トレイを切り替えて用紙に印刷する。   2. Description of the Related Art Conventionally, an image data generating apparatus generates image data necessary for a printing apparatus to perform printing by performing raster image processing (Raster Image Processing) based on a print job. The printing apparatus places sheets of a plurality of sizes, such as A4 and A3, and sheets of the same size but in different directions on the sheet feed tray, and switches the sheet feed tray as appropriate based on the image data to print on the sheets.

そこで、特許文献1には、給紙される用紙の向き等にかかわらず適正な画像生成処理を実行するための画像データ生成装置に関する技術が開示されている。   In view of this, Japanese Patent Application Laid-Open No. H11-163,086 discloses a technique relating to an image data generation device for executing an appropriate image generation process regardless of the direction of a fed paper.

この画像データ生成装置は、印刷ジョブに基づいてラスター画像処理によって生成した画像データを記憶し、給紙トレイから画像生成部に給紙される用紙の向き等を含む給紙状態を検出し、その検出結果に基づいて、記憶した画像データを給紙される用紙の画像生成面の状態に適合するようにて拡大処理や、縮小処理、回転処理を選択的に行う。   The image data generation device stores image data generated by raster image processing based on a print job, detects a paper feeding state including a direction of paper fed from a paper feeding tray to an image generation unit, and detects the paper feeding state. Based on the detection result, enlargement processing, reduction processing, and rotation processing are selectively performed so that the stored image data conforms to the state of the image generation surface of the sheet to be fed.

また、印刷装置には、印刷されて排紙された用紙をステープルするステープル機能を有すものもある。   Some printing apparatuses have a stapling function for stapling printed and ejected sheets.

特許文献2には、第1のステープラがステープル可能であると判別した場合、A4用紙に画像を形成させて第1のステープラによりステープル処理を行い、第1のステープラがステープル処理不可能であると判別した場合、A4R用紙(A4用紙に対して90°向きが異なる用紙)に90°回転した画像を形成させて第2のステープラによりステープル処理を行わせる画像形成装置に関する技術が開示されている。   According to Patent Document 2, when it is determined that the first stapler can perform stapling, an image is formed on A4 paper, stapling is performed by the first stapler, and stapling cannot be performed by the first stapler. There is disclosed a technique relating to an image forming apparatus that forms an image rotated by 90 ° on A4R paper (a paper whose orientation is different from that of A4 paper) by 90 ° and performs stapling by a second stapler when the determination is made.

特許第4267398号公報Japanese Patent No. 4267398 特開平11−102095号公報JP-A-11-102095

しかしながら、上述の特許文献1に記載された画像データ生成装置では、画像データの印刷に使用していた給紙トレイの用紙がなくなり、他の給紙トレイを切り替えて印刷を続行する際に用紙の向きが変わった場合、画像データの回転処理が発生するため、印刷速度が低下するという問題が発生する。   However, in the image data generation device described in Patent Document 1, the paper in the paper feed tray used for printing the image data runs out, and when the other paper feed tray is switched and printing is continued, the paper is not printed. When the orientation is changed, a rotation process of the image data occurs, which causes a problem that the printing speed is reduced.

また、上述の特許文献2に記載された画像形成装置においても同様に、使用していた排紙トレイの第1のステープラの針がなくなり、第2のステープラを備える排紙トレイに切り替えてステープルを続行する際にステープルの位置が変わるので、画像データの回転処理が発生するため、印刷速度が低下するという問題が発生する。   Similarly, in the image forming apparatus described in Patent Document 2 described above, the staples of the first stapler of the used discharge tray disappear, and the staple is switched by switching to the discharge tray having the second stapler. Since the staple position is changed when the continuation is performed, a rotation process of the image data occurs, which causes a problem that the printing speed is reduced.

特に、印刷装置のプロセッサは、PC等のプロセッサと比較すると処理能力が低いため、印刷すべき画像データの解像度が大きい、画像データがカラーである、または用紙のサイズが大きい等により画像データのデータ量が大きい場合、画像データの回転処理に時間を要し、印刷速度が低下することになる。   In particular, the processor of the printing apparatus has a lower processing capacity than a processor of a PC or the like, so that the image data to be printed has a higher resolution, the color of the image data is large, or the size of the paper is large. If the amount is large, it takes time to rotate the image data, and the printing speed is reduced.

本発明はこのような課題に鑑みてなされたものであり、印刷装置における印刷中に給紙トレイや排紙トレイを切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる画像データ生成装置を提供することを目的とする。   The present invention has been made in view of such a problem, and an image capable of preventing a reduction in printing speed even when switching between a paper feed tray and a paper discharge tray during printing in a printing apparatus to continue printing. It is an object to provide a data generation device.

上記目的を達成するため、本発明に係る画像データ生成装置の第1の特徴は、印刷ジョブに基づいて画像データを生成する画像データ生成装置であって、
印刷装置の複数のトレイ毎で用いられる消耗品に関して少なくとも残数と状態を含むトレイ情報を取得するトレイ情報取得部と、
印刷ジョブに基づいて前記消耗品が使用される消耗品使用数を算出する消耗品使用数算出部と、
前記トレイ情報と前記消耗品使用数とに基づいて使用するトレイと画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成するラスター画像処理部と、
を備えることにある。
To achieve the above object, a first feature of an image data generation device according to the present invention is an image data generation device that generates image data based on a print job,
A tray information acquisition unit that acquires tray information including at least the remaining number and the state of consumables used for each of the plurality of trays of the printing apparatus,
A consumables use number calculation unit for calculating a consumables use number in which the consumables are used based on a print job;
A raster image processing unit that determines the direction of a tray and image data to be used based on the tray information and the number of consumables used, and generates image data by executing raster image processing in the determined direction.
It is to provide.

また、本発明に係る画像データ生成装置の第2の特徴は、
前記トレイ情報取得部は、前記トレイ情報として、印刷装置の複数の給紙トレイに積載される用紙のサイズ、向きおよび用紙残数を取得し、
前記消耗品使用数算出部は、前記印刷ジョブに基づいて画像データの印刷ページ数を前記消耗品使用数として算出する
ことにある。
A second feature of the image data generation device according to the present invention is that
The tray information obtaining unit obtains, as the tray information, a size, an orientation, and a remaining number of sheets stacked on a plurality of paper feed trays of a printing apparatus;
The consumables usage calculating unit is configured to calculate the number of print pages of the image data as the consumables usage based on the print job.

また、本発明に係る画像データ生成装置の第3の特徴は、
前記トレイ情報の内から印刷ジョブにて指定された第1給紙トレイの前記トレイ情報と前記印刷ページ数とに基づいて、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数以下である場合には、
前記印刷ジョブの全印刷ページを前記第1給紙トレイの用紙の向きでラスター画像処理を実行すること
により画像データを生成し、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数より大きい場合には、
前記第1給紙トレイと用紙サイズが同じであって、前記第1給紙トレイとは用紙の向きが異なる第2給紙トレイがあるか否か検索し、
当該第2給紙トレイがある場合は、印刷ジョブの全ページをラスター画像処理するまでの間、
(1)ラスター画像処理により生成される画像データの物理ページ番号が第1給紙トレイの用紙残量以下である場合は、その物理ページ番号の原稿の向きを前記第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(2)前記画像データの物理ページ番号が前記第1給紙トレイの用紙残量よりも大きくなった場合は、前記第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行すること
により画像データを生成することにある。
A third feature of the image data generating device according to the present invention is that
Based on the tray information of the first paper feed tray specified in the print job from the tray information and the number of printed pages,
The raster image processing unit,
When the number of printed pages is equal to or less than the number of remaining sheets in the first paper feed tray,
Generating image data by performing raster image processing on all print pages of the print job in the direction of paper in the first paper feed tray;
The raster image processing unit,
If the number of printed pages is larger than the number of remaining sheets in the first paper feed tray,
Searching whether there is a second paper tray having the same paper size as the first paper tray and having a different paper direction from the first paper tray;
If the second paper feed tray is present, all the pages of the print job are processed until raster image processing is performed.
(1) When the physical page number of the image data generated by the raster image processing is equal to or less than the remaining amount of paper in the first paper feed tray, the direction of the document of the physical page number is changed to the paper of the first paper supply tray. Perform raster image processing according to the orientation,
(2) If the physical page number of the image data is larger than the remaining amount of paper in the first paper feed tray, raster image processing is executed according to the direction of paper in the second paper feed tray. It is to generate image data.

また、本発明に係る画像データ生成装置の第4の特徴は、
前記トレイ情報の内から印刷ジョブにて指定された第1給紙トレイの前記トレイ情報と前記印刷ページ数とに基づいて、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数以下である場合には、
前記印刷ジョブの全印刷ページを前記第1給紙トレイの用紙の向きでラスター画像処理を実行すること
により画像データを生成し、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数より大きい場合には、
前記第1給紙トレイと用紙サイズが同じであって、前記第1給紙トレイとは用紙の向きが異なる第2給紙トレイがあるか否か検索し、
当該第2給紙トレイがある場合は、印刷ジョブの全ページをラスター画像処理するまでの間、
(1)ラスター画像処理により生成される画像データの物理ページ番号が前記第1給紙トレイの用紙残量から所定枚数減算した値以下である場合は、その物理ページ番号の原稿の向きを前記第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(2)前記画像データの物理ページ番号が前記第1給紙トレイの用紙残量から所定枚数減算した値から前記第1給紙トレイの用紙残量に対し所定枚数加算した値までの場合は、その物理ページ番号の原稿の向きを前記第1給紙トレイおよび前記第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(3)前記画像データの物理ページ番号が前記第1給紙トレイの用紙残量に対し所定枚数加算した値よりも大きくなった場合は、前記第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行すること
により画像データを生成することにある。
A fourth feature of the image data generation device according to the present invention is that
Based on the tray information of the first paper feed tray specified in the print job from the tray information and the number of printed pages,
The raster image processing unit,
When the number of printed pages is equal to or less than the number of remaining sheets in the first paper feed tray,
Generating image data by performing raster image processing on all print pages of the print job in the direction of paper in the first paper feed tray;
The raster image processing unit,
If the number of printed pages is larger than the number of remaining sheets in the first paper feed tray,
Searching whether there is a second paper tray having the same paper size as the first paper tray and having a different paper direction from the first paper tray;
If the second paper feed tray is present, all the pages of the print job are processed until raster image processing is performed.
(1) If the physical page number of the image data generated by the raster image processing is equal to or less than a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first paper feed tray, the direction of the document of the physical page number is changed to the number of the document. Executes raster image processing according to the direction of paper in one paper tray,
(2) When the physical page number of the image data is from a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first sheet feeding tray to a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first sheet feeding tray, Performing raster image processing by matching the orientation of the document with the physical page number with the orientation of the paper in the first paper tray and the second paper tray;
(3) If the physical page number of the image data is larger than a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first paper feed tray, the raster is adjusted in accordance with the direction of paper in the second paper feed tray. The purpose is to generate image data by performing image processing.

また、本発明に係る画像データ生成装置の第5の特徴は、
前記トレイ情報取得部は、前記トレイ情報として、印刷装置の複数の排紙トレイで用いられるステープラのステープル位置、およびステープル針の残数を取得し、
前記消耗品使用数算出部は、前記印刷ジョブに基づいてステープルされるステープル数を前記消耗品使用数として算出する
ことにある。
A fifth feature of the image data generation device according to the present invention is that
The tray information acquisition unit acquires, as the tray information, a staple position of a stapler used in a plurality of discharge trays of a printing apparatus, and a remaining number of staples,
The consumables usage calculating unit calculates the number of staples stapled based on the print job as the consumables usage.

また、本発明に係る画像データ生成装置の第6の特徴は、
第1のステープル位置にステープルするステープラが設けられた第1の排紙トレイと、
前記第1のステープル位置とは異なる第2のステープル位置にステープルするステープラが設けられた第2の排紙トレイと、を備え、
前記ラスター画像処理部は、前記消耗品使用数算出部により算出された印刷ジョブにおける前記第1のステープル位置でステープルするのに必要となるステープル数が前記第1のステープル位置におけるステープル針の残数以上であり、前記第2のステープル位置におけるステープル針の残数未満である場合、前記第2の排紙トレイでステープルされる向きに前記画像データの向きを決定し、
前記消耗品使用数算出部により算出された印刷ジョブにおける前記第2のステープル位置でステープルするのに必要となるステープル数が前記第2のステープル位置におけるステープル針の残数以上であり、前記第1のステープル位置におけるステープル針の残数未満である場合、前記第1の排紙トレイでステープルされる向きに前記画像データの向きを決定する
ことにある。
A sixth feature of the image data generation device according to the present invention is that
A first discharge tray provided with a stapler for stapling at the first stapling position,
A second paper discharge tray provided with a stapler for stapling at a second staple position different from the first staple position,
The raster image processing unit is configured to determine whether the number of staples required for stapling at the first staple position in the print job calculated by the consumables use number calculation unit is the remaining number of staples at the first staple position. When the number of staples remaining at the second staple position is less than the above, the direction of the image data is determined so as to be stapled on the second paper discharge tray,
The number of staples required for stapling at the second staple position in the print job calculated by the consumables use number calculator is equal to or greater than the remaining number of staples at the second staple position; If the number of staples is less than the remaining number of staples at the stapling position, the direction of the image data is determined so as to be stapled on the first paper discharge tray.

本発明に係る画像データ生成装置の第1の特徴によれば、トレイ情報と消耗品使用数とに基づいて使用するトレイと画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成するため、印刷装置における印刷中に給紙トレイや排紙トレイを切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる。   According to the first feature of the image data generating apparatus according to the present invention, the tray to be used and the direction of the image data are determined based on the tray information and the number of consumables used, and the raster image processing is executed in the determined direction. By doing so, the image data is generated, so that it is possible to prevent a decrease in printing speed even when printing is continued by switching the paper feed tray or the paper discharge tray during printing in the printing apparatus.

本発明に係る画像データ生成装置の第2の特徴によれば、トレイ情報として、印刷装置の複数の給紙トレイに積載される用紙のサイズ、向きおよび用紙残数を取得し、印刷ジョブに基づいて画像データの印刷ページ数を消耗品使用数として算出するため、特に、印刷装置における印刷中に用紙の向きが異なる給紙トレイに切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる。   According to the second feature of the image data generating apparatus according to the present invention, the size, orientation, and remaining number of sheets loaded on a plurality of paper feed trays of the printing apparatus are acquired as tray information, and the In particular, the number of pages of image data to be printed is calculated as the number of consumables used, so that printing speed is prevented from lowering even when switching to a paper feed tray with a different paper orientation and continuing printing during printing in the printing apparatus. be able to.

また、本発明に係る画像データ生成装置の第3の特徴によれば、
印刷ページ数が第1給紙トレイの用紙残数より大きい場合には、
第1給紙トレイと用紙サイズが同じであって、第1給紙トレイとは用紙の向きが異なる第2給紙トレイがあるか否か検索し、
当該第2給紙トレイがある場合は、印刷ジョブの全ページをラスター画像処理するまでの間、
(1)ラスター画像処理により生成される画像データの物理ページ番号が第1給紙トレイの用紙残量以下である場合は、その物理ページ番号の原稿の向きを第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(2)画像データの物理ページ番号が第1給紙トレイの用紙残量よりも大きくなった場合は、第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行することにより画像データを生成する。
According to the third feature of the image data generating device according to the present invention,
If the number of printed pages is larger than the number of remaining papers in the first paper tray,
A search is performed to determine whether there is a second paper tray having the same paper size as the first paper tray and having a different paper direction from the first paper tray,
If the second paper feed tray is present, all pages of the print job are processed until raster image processing is performed.
(1) If the physical page number of the image data generated by the raster image processing is equal to or less than the remaining amount of paper in the first paper feed tray, the direction of the document of the physical page number is changed to the paper direction of the first paper feed tray. Perform raster image processing according to
(2) If the physical page number of the image data becomes larger than the remaining amount of paper in the first paper feed tray, raster image processing is executed in accordance with the direction of paper in the second paper feed tray to reduce the image data. Generate.

そのため、ラスター画像処理後に、印刷ページ数が印刷ジョブにより指定した第1給紙トレイの用紙残数より大きく、第1給紙トレイから用紙の向きの異なる第2給紙トレイに切り替えて印刷する場合でも、切り替えの際に、画像データの回転処理が不要になり、印刷速度の低下を防止することができる。   Therefore, after the raster image processing, when the number of pages to be printed is larger than the remaining number of sheets in the first sheet feeding tray specified by the print job, and the printing is switched from the first sheet feeding tray to the second sheet feeding tray having a different sheet direction, and printing is performed. However, at the time of switching, the rotation processing of the image data is not required, and a decrease in the printing speed can be prevented.

また、本発明に係る画像データ生成装置の第4の特徴によれば、
(1)ラスター画像処理により生成される画像データの物理ページ番号が第1給紙トレイの用紙残量から所定枚数減算した値以下である場合は、その物理ページ番号の原稿の向きを第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(2)画像データの物理ページ番号が第1給紙トレイの用紙残量から所定枚数減算した値から第1給紙トレイの用紙残量に対し所定枚数加算した値までの場合は、その物理ページ番号の原稿の向きを第1給紙トレイおよび第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(3)画像データの物理ページ番号が第1給紙トレイの用紙残量に対し所定枚数加算した値よりも大きくなった場合は、第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行すること
により画像データを生成する。
Further, according to a fourth feature of the image data generation device according to the present invention,
(1) If the physical page number of the image data generated by the raster image processing is equal to or smaller than a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first paper feed tray, the orientation of the document of the physical page number is changed to the first supply. Perform raster image processing according to the orientation of the paper in the paper tray,
(2) If the physical page number of the image data is between a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first paper feed tray and a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first paper feed tray, Performing raster image processing by matching the orientation of the document with the number with the orientation of the paper in the first and second paper trays;
(3) If the physical page number of the image data becomes larger than a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first paper tray, raster image processing is performed according to the direction of paper in the second paper tray. By executing this, image data is generated.

そのため、第1給紙トレイの給紙トレイ情報に含まれる給紙枚数に誤差があった場合でも、第1給紙トレイの用紙残量の前後の所定枚数は縦向きおよび横向き両方の画像データがあるので、用紙の向きが異なる給紙トレイに切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる。   Therefore, even if there is an error in the number of sheets contained in the sheet feed tray information of the first sheet tray, the predetermined number of sheets before and after the remaining amount of sheets in the first sheet tray does not include both the portrait and landscape image data. Therefore, even when switching to a paper feed tray having a different paper orientation and continuing printing, a reduction in printing speed can be prevented.

また、本発明に係る画像データ生成装置の第5の特徴によれば、トレイ情報として、印刷装置の複数の排紙トレイで用いられるステープラのステープル位置、およびステープル針の残数を取得し、印刷ジョブに基づいてステープルされるステープル数を消耗品使用数として算出するため、特に、印刷装置における印刷中にステープルの位置が異なる排紙トレイに切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる。   According to the fifth aspect of the image data generating apparatus of the present invention, the staple position of the stapler used in the plurality of paper output trays of the printing apparatus and the remaining number of staples are acquired as the tray information, and the printing is performed. Since the number of staples to be stapled based on the job is calculated as the number of consumables used, the printing speed is not particularly reduced even when printing is continued in the printing device and the staple position is switched to a different output tray and printing is continued. Can be prevented.

また、本発明に係る画像データ生成装置の第6の特徴によれば、
ラスター画像処理部は、消耗品使用数算出部により算出された印刷ジョブにおける第1のステープル位置でステープルするのに必要となるステープル数が第1のステープル位置におけるステープル針の残数以上であり、第2のステープル位置におけるステープル針の残数未満である場合、第2の排紙トレイでステープルされる向きに画像データの向きを決定し、
前記消耗品使用数算出部により算出された印刷ジョブにおける第2のステープル位置でステープルするのに必要となるステープル数が第2のステープル位置におけるステープル針の残数以上であり、第1のステープル位置におけるステープル針の残数未満である場合、第1の排紙トレイでステープルされる向きに画像データの向きを決定する。
According to the sixth feature of the image data generation device according to the present invention,
The raster image processing unit is configured such that the number of staples required for stapling at the first staple position in the print job calculated by the consumables use number calculation unit is equal to or greater than the remaining number of staples at the first staple position; If the number of staples is less than the remaining number of staples at the second staple position, the direction of the image data is determined so as to be stapled on the second discharge tray;
The number of staples required for stapling at the second staple position in the print job calculated by the consumables use number calculation unit is equal to or greater than the number of remaining staples at the second staple position, and the first staple position If the number of staples is less than the remaining number of staples, the direction of the image data is determined so as to be stapled on the first discharge tray.

そのため、用紙の適切な位置にステープルを行いながら、切り替えの際に、画像データの回転処理が不要になり、印刷速度の低下を防止することができる。   For this reason, the stapling is performed at an appropriate position on the sheet, and the switching process of the image data is not required at the time of switching, so that a reduction in the printing speed can be prevented.

図1は、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部を有する印刷装置の構成と端末装置との接続の一例を示すブロック図である。FIG. 1 is a block diagram illustrating an example of a configuration of a printing apparatus having an image data generation unit according to the first embodiment of the image data generation apparatus according to the present invention and a connection with a terminal device. 図2は、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部の動作を示すフローチャートである。FIG. 2 is a flowchart showing the operation of the image data generation unit of the first embodiment of the image data generation device according to the present invention. 図3は、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部によりラスター画像処理されて生成された画像データの向きを示す図である。FIG. 3 is a diagram illustrating directions of image data generated by performing the raster image processing by the image data generating unit of the first embodiment of the image data generating apparatus according to the present invention. 図4は、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部の動作を示すフローチャートである。FIG. 4 is a flowchart showing the operation of the image data generation unit of the second embodiment of the image data generation device according to the present invention. 図5は、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部によりラスター画像処理されて生成された画像データの向きを示す図である。FIG. 5 is a diagram illustrating directions of image data generated by performing raster image processing by the image data generation unit of the second embodiment of the image data generation device according to the present invention. 図6は、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部によりラスター画像処理されて生成された画像データの向きの他の例を示す図である。FIG. 6 is a diagram illustrating another example of the direction of image data generated by performing the raster image processing by the image data generation unit of the second embodiment of the image data generation device according to the present invention. 図7は、本発明に係る画像データ生成装置の第3実施形態の画像データ生成部の動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of the image data generation unit of the third embodiment of the image data generation device according to the present invention. 図8は、本発明に係る画像データ生成装置の第3実施形態の画像データ生成部によりラスター画像処理されて生成された画像データの向きを示す図である。FIG. 8 is a diagram illustrating the orientation of image data generated by performing raster image processing by the image data generation unit of the third embodiment of the image data generation device according to the present invention. 図9は、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部を有する印刷装置の構成と端末装置との接続の一例を示すブロック図である。FIG. 9 is a block diagram illustrating an example of a configuration of a printing apparatus having an image data generation unit according to the fourth embodiment of the image data generation apparatus according to the present invention and a connection with a terminal apparatus. 図10は、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部の動作を説明した説明図である。FIG. 10 is an explanatory diagram illustrating the operation of the image data generation unit of the fourth embodiment of the image data generation device according to the present invention. 図11は、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部の動作を示すフローチャートである。FIG. 11 is a flowchart showing the operation of the image data generation unit of the fourth embodiment of the image data generation device according to the present invention. 図12は、本発明に係る画像データ生成装置の第5実施形態の画像データ生成部の動作を示すフローチャートである。FIG. 12 is a flowchart illustrating the operation of the image data generation unit of the fifth embodiment of the image data generation device according to the present invention.

次に、本発明に係る画像データ生成装置の実施形態について、図面を参照しながら詳細に説明する。   Next, an embodiment of an image data generation device according to the present invention will be described in detail with reference to the drawings.

なお、ラスター画像処理(Raster Image Processing)を、以下では、ラスター画像処理として記載する。下記の複数の実施形態では、本発明に係る画像データ生成装置を画像データ生成部として印刷装置に設けて説明するが、本発明では、これに限らず端末装置やラスター画像処理専用装置に設けるようにしても良い。また、下記に説明する複数の実施形態は、あくまで本発明の一例であり、本発明係る画像データ生成装置は、下記に説明する複数の実施形態に限定されるものではない。   In the following, the raster image processing (Raster Image Processing) is described as raster image processing. In the following plurality of embodiments, the image data generation device according to the present invention will be described as being provided in a printing device as an image data generation unit, but the present invention is not limited to this, and may be provided in a terminal device or a device dedicated to raster image processing. You may do it. In addition, the embodiments described below are merely examples of the present invention, and the image data generation device according to the present invention is not limited to the embodiments described below.

[第1実施形態]
<画像データ生成部11を有する印刷装置1の構成>
図1は、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11を有する印刷装置1の構成と端末装置3との接続の一例を示すブロック図である。
[First Embodiment]
<Configuration of Printing Apparatus 1 Having Image Data Generation Unit 11>
FIG. 1 is a block diagram showing an example of a configuration of a printing apparatus 1 having an image data generation unit 11 of a first embodiment of an image data generation apparatus according to the present invention and a connection with a terminal device 3.

図1に示すように、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11を有する印刷装置1は、社内ネットワーク等のネットワーク2を介して各ユーザの端末装置3,3,・・・と接続されている。   As shown in FIG. 1, a printing apparatus 1 having an image data generation unit 11 according to a first embodiment of the image data generation apparatus according to the present invention includes terminal devices 3 and 3 of each user via a network 2 such as an in-house network. , ... are connected.

印刷装置1は、画像データ生成部11と、メモリ12と、HDD(ハードディスクドライブ)13と、印刷処理部14と、給紙部15と、排紙部16と、ネットワークI/F部17等を備える。   The printing apparatus 1 includes an image data generation unit 11, a memory 12, an HDD (hard disk drive) 13, a print processing unit 14, a paper supply unit 15, a paper discharge unit 16, a network I / F unit 17, and the like. Prepare.

画像データ生成部11は、CPU(図示せず。)等から構成されており、HDD13に記憶されたプリンタドライバ等のプログラムを実行することにより、本発明に係るトレイ情報取得部11a、ページ数算出部11b(消耗品使用数算出部)およびラスター画像処理部11cとして機能して、端末装置3等から送信されてきた印刷ジョブに基づいて印刷用の画像データを生成する。   The image data generation unit 11 includes a CPU (not shown) and the like, and executes a program such as a printer driver stored in the HDD 13 to execute the tray information acquisition unit 11a according to the present invention, and calculate the number of pages. The unit 11b functions as a unit 11b (consumables use number calculation unit) and a raster image processing unit 11c, and generates image data for printing based on a print job transmitted from the terminal device 3 or the like.

メモリ12は、画像データ生成部11が処理する各種情報や印刷ジョブ等の各種データを一時的に保存する。   The memory 12 temporarily stores various information processed by the image data generation unit 11 and various data such as a print job.

HDD13は、画像データ生成部11が本発明に係るトレイ情報取得部11a、ページ数算出部11bおよびラスター画像処理部11cとして機能するためのプリンタドライバや各種アプリケーションプログラム等のプログラムが格納されている。   The HDD 13 stores programs such as a printer driver and various application programs for the image data generation unit 11 to function as the tray information acquisition unit 11a, the page number calculation unit 11b, and the raster image processing unit 11c according to the present invention.

印刷処理部14は、端末装置3が送信してきた画像データや、画像データ生成部11が生成した画像データに基づいて、インクジェット方式や孔版印刷、レーザー印刷方式により消耗品である用紙に対して印刷を行う。   The print processing unit 14 performs printing on consumable paper based on the image data transmitted from the terminal device 3 or the image data generated by the image data generation unit 11 by an inkjet method, a stencil printing, or a laser printing method. I do.

給紙部15は、A4やA3等の各種サイズが積載された複数(ここでは、例えば、m(2以上の自然数とする。)個とする。)の給紙トレイ15a1〜15amと、各給紙トレイ15a1〜15amにおける用紙の向きや用紙残量を検出する給紙トレイセンサ15b1〜15bm等を有しており、各給紙トレイ15a1〜15amから各サイズの用紙を“横向き(長辺給紙)”または“縦向き(短辺給紙)”で印刷処理部14へ供給する。   The paper feed unit 15 includes a plurality of (here, for example, m (here, a natural number of 2 or more)) paper feed trays 15a1 to 15am on which various sizes such as A4 and A3 are stacked, and The paper trays 15a1 to 15am include paper feed tray sensors 15b1 to 15bm for detecting the direction and remaining amount of paper in the paper trays 15a1 to 15am. )) Or “portrait (short side paper feed)” to the print processing unit 14.

排紙部16は、印刷処理部14によって印刷された用紙を排紙する。   The paper discharge unit 16 discharges the paper printed by the print processing unit 14.

ネットワークI/F部17は、ネットワーク2を介して各端末装置3,3,・・・に接続する。   The network I / F unit 17 connects to each of the terminal devices 3, 3,.

端末装置3は、各種情報処理を行うPC等で、ネットワーク2を介して印刷装置1へ印刷ジョブを送信する。   The terminal device 3 is a PC or the like that performs various types of information processing, and transmits a print job to the printing device 1 via the network 2.

<第1実施形態の画像データ生成部11の動作>
次に、以上のように構成された本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11の動作を、図面を参照して説明する。
<Operation of Image Data Generation Unit 11 of First Embodiment>
Next, the operation of the image data generation unit 11 of the first embodiment of the image data generation device according to the present invention configured as described above will be described with reference to the drawings.

図2は、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11の動作を示すフローチャートである。   FIG. 2 is a flowchart showing the operation of the image data generation unit 11 of the first embodiment of the image data generation device according to the present invention.

まず、この印刷装置1では、例えば、ネットワーク2を介してある端末装置3から印刷ジョブを受信すると動作を開始して、まず、画像データ生成部11のトレイ情報取得部11aが給紙部15の各給紙トレイセンサ15b1〜15bmから各給紙トレイ15a1〜15amの給紙トレイ情報(トレイ情報)を取得する(ステップS101)。   First, in the printing apparatus 1, for example, when a print job is received from a certain terminal device 3 via the network 2, the operation starts, and first, the tray information acquisition section 11a of the image data generation section 11 Paper feed tray information (tray information) of each paper feed tray 15a1-15am is obtained from each paper feed tray sensor 15b1-15bm (step S101).

給紙トレイ情報は、用紙のサイズや、向き(状態)および用紙残量等の情報を含み、各給紙トレイ15a1〜15amに設けられた各給紙トレイセンサ15b1〜15bmから取得する。ただし、給紙トレイ情報はメモリ12等に記憶しておいて、メモリ12等から取得するようにしても良い。また、状態には、用紙のサイズや用紙の向きが含まれている。用紙の向きは、用紙のサイズの縦・横の情報から認識できるので、用紙の向きの情報は省略しても良い。   The paper feed tray information includes information such as the paper size, orientation (state), and the remaining amount of paper, and is acquired from each paper feed tray sensor 15b1 to 15bm provided in each paper feed tray 15a1 to 15am. However, the paper feed tray information may be stored in the memory 12 or the like and acquired from the memory 12 or the like. The state includes the size of the paper and the orientation of the paper. Since the paper orientation can be recognized from the vertical and horizontal information of the paper size, the paper orientation information may be omitted.

次に、画像データ生成部11のラスター画像処理部11cが各給紙トレイ15a1〜15am情報の内から印刷ジョブで指定された給紙トレイである第1給紙トレイを選択し(ステップS103)、続いて画像データ生成部11のページ数算出部11bが端末装置3から受信した印刷ジョブから画像データの物理ページ数を算出する(ステップS105)。ここで、物理ページ数とは、画像データを印刷した際の用紙のページ数(枚数)のことである。   Next, the raster image processing unit 11c of the image data generation unit 11 selects the first paper feed tray, which is the paper feed tray specified in the print job, from among the paper feed trays 15a1 to 15am information (step S103). Subsequently, the page number calculation unit 11b of the image data generation unit 11 calculates the number of physical pages of the image data from the print job received from the terminal device 3 (Step S105). Here, the number of physical pages refers to the number of pages (number of sheets) of paper when image data is printed.

次に、画像データ生成部11のラスター画像処理部11cは、画像データの物理ページ数が第1給紙トレイの用紙残量より大きいか否かを判定し(ステップS107)、画像データの物理ページ数が第1給紙トレイの用紙残量以下であると判定した場合(ステップS107;NO)、ラスター画像処理部11cはその印刷ジョブの全ページを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行って、画像データを生成する(ステップS109)。   Next, the raster image processing unit 11c of the image data generation unit 11 determines whether or not the number of physical pages of the image data is larger than the remaining amount of paper in the first paper feed tray (step S107). If it is determined that the number is equal to or less than the remaining amount of paper in the first paper supply tray (step S107; NO), the raster image processing unit 11c adjusts all pages of the print job to the direction of paper in the first paper supply tray. Raster image processing is performed to generate image data (step S109).

これに対し、画像データの物理ページ数が第1給紙トレイの用紙残量より大きいと判定した場合(ステップS107;YES)、ラスター画像処理部11cは、給紙トレイ情報に基づいて第2給紙トレイを検索する(ステップS111)。第2給紙トレイとは、各給紙トレイ15a1〜15amの内で、第1給紙トレイと用紙サイズが同じ給紙トレイのことである。   On the other hand, if it is determined that the number of physical pages of the image data is larger than the remaining amount of paper in the first paper feed tray (step S107; YES), the raster image processing unit 11c performs the second feed based on the paper feed tray information. The paper tray is searched (step S111). The second paper tray is a paper tray having the same paper size as the first paper tray among the paper trays 15a1 to 15am.

そして、第2給紙トレイが無いと判定した場合(ステップS113;NO)、第1給紙トレイと用紙サイズが同じ給紙トレイが無いということなので、ラスター画像処理部11cは、ステップS107で画像データの物理ページ数が第1給紙トレイの用紙残量以下と判定した場合(NO)と同様に、その印刷ジョブの全ページを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行って画像データを生成する(ステップS109)。   If it is determined that there is no second paper feed tray (step S113; NO), it means that there is no paper feed tray having the same paper size as the first paper feed tray, and the raster image processing unit 11c proceeds to step S107. Similarly to the case where it is determined that the number of physical pages of the data is equal to or less than the remaining amount of paper in the first paper feed tray (NO), all pages of the print job are subjected to raster image processing according to the direction of paper in the first paper supply tray. To generate image data (step S109).

これに対し、第2給紙トレイがあると判定した場合(ステップS113;YES)、ラスター画像処理部11cは、続いて第2給紙トレイが第1給紙トレイと用紙の向きが異なるか否かを判定する(ステップS115)。   On the other hand, if it is determined that the second paper feed tray is present (step S113; YES), the raster image processing unit 11c subsequently determines whether the second paper feed tray has a different paper direction from the first paper feed tray. Is determined (step S115).

ここで、第2給紙トレイが第1給紙トレイと用紙の向きが同じである場合(ステップS115;NO)、第2給紙トレイには第1給紙トレイと用紙サイズが同じで、かつ、向きも同じ用紙が積載されているということになる。そのため、ラスター画像処理部11cは、ステップS107で画像データの物理ページ数が第1給紙トレイの用紙残量以下と判定した場合(NO)等と同様に、その印刷ジョブの全ページを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行って、画像データを生成する(ステップS109)。   Here, if the second paper feed tray has the same paper orientation as the first paper feed tray (step S115; NO), the second paper feed tray has the same paper size as the first paper feed tray, and , It means that sheets of the same direction are stacked. For this reason, the raster image processing unit 11c determines that all pages of the print job are the first page in the same manner as when the number of physical pages of the image data is determined to be equal to or less than the remaining amount of paper in the first paper feed tray in step S107 (NO). Raster image processing is performed according to the direction of the paper in the paper feed tray to generate image data (step S109).

一方、第2給紙トレイが第1給紙トレイと用紙の向きが異なる場合(ステップS115;YES)、ラスター画像処理部11cは、さらに印刷ジョブの全ページをラスター画像処理するまでの間(ステップS123;NO)、ラスター画像処理した画像データの物理ページ番号が第1給紙トレイの用紙残量以下であるか否かを判定する(ステップS117)。画像データの物理ページ番号とは、ラスター画像処理により生成された画像データの物理ページ数毎に1ページ(1枚)目から付加される番号である。   On the other hand, when the second paper feed tray has a different paper orientation from the first paper feed tray (step S115; YES), the raster image processing unit 11c further performs the raster image processing until all the pages of the print job are raster image processed (step S115). (S123; NO), it is determined whether or not the physical page number of the image data subjected to the raster image processing is equal to or less than the remaining amount of paper in the first paper supply tray (step S117). The physical page number of the image data is a number added from the first page (first sheet) for each physical page number of the image data generated by the raster image processing.

ここで、ラスター画像処理により生成された画像データの物理ページ番号が第1給紙トレイの用紙残量以下である場合(ステップS117;YES)、その物理ページ番号の画像データのページはユーザが印刷ジョブにて指定した第1給紙トレイの用紙で印刷可能であるということなので、ラスター画像処理部11cは、その物理ページ番号の原稿の向きを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行って画像データを生成する(ステップS119)。   If the physical page number of the image data generated by the raster image processing is equal to or less than the remaining amount of paper in the first paper tray (step S117; YES), the user prints the image data page of the physical page number. Since it is possible to print on the paper of the first paper tray specified by the job, the raster image processing unit 11c adjusts the orientation of the document of the physical page number to the raster of the paper of the first paper tray. Image data is generated by performing image processing (step S119).

一方、ラスター画像処理により生成された画像データの物理ページ番号が第1給紙トレイの用紙残量よりも大きくなった場合(ステップS117;NO)、その物理ページ番号以降は第1給紙トレイの用紙残量を超えており、第1給紙トレイの用紙では印刷できないことを示している。そのため、この場合、ラスター画像処理部11cは、その物理ページ番号以降の原稿の向きを第2給紙トレイの用紙の向きに合わせてラスター画像処理を行う(ステップS121)。   On the other hand, when the physical page number of the image data generated by the raster image processing is larger than the remaining amount of paper in the first paper feed tray (step S117; NO), the physical page number and thereafter are the same as those of the first paper feed tray. This indicates that the remaining amount of paper is exceeded and printing cannot be performed on the paper in the first paper feed tray. Therefore, in this case, the raster image processing unit 11c performs raster image processing by matching the orientation of the document after the physical page number with the orientation of the paper in the second paper feed tray (step S121).

そして、印刷ジョブの全ページのラスター画像処理が完了した場合(ステップS123;YES)、ラスター画像処理部11cは、以上の処理を終了する。   Then, when the raster image processing of all pages of the print job is completed (step S123; YES), the raster image processing unit 11c ends the above processing.

図3は、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11によるラスター画像処理後の画像データの向きを示す説明図である。   FIG. 3 is an explanatory diagram showing the direction of image data after raster image processing by the image data generation unit 11 of the first embodiment of the image data generation device according to the present invention.

図3では、例えば、印刷ジョブが例えば100ページの原稿、すなわち物理ページ番号が1〜100ページの原稿の印刷を指示しており、第1給紙トレイでは、例えば、用紙のサイズが“A4”で、用紙の向きは“横向き(長辺給紙)”、用紙残量が“30枚”の場合である。また、第2給紙トレイは、例えば、用紙のサイズが“A4”で、用紙の向きは”縦向き(短辺給紙)”、用紙残量が“500枚”の場合を示している。   In FIG. 3, for example, the print job instructs printing of a document of, for example, 100 pages, that is, a document with a physical page number of 1 to 100 pages. In the first paper feed tray, for example, the paper size is “A4”. In this case, the direction of the sheet is “landscape (long side sheet feeding)” and the remaining amount of the sheet is “30 sheets”. The second paper feed tray indicates, for example, a case where the paper size is “A4”, the paper direction is “vertical (short side paper feed)”, and the remaining paper amount is “500 sheets”.

そのため、このような条件の場合、ラスター画像処理部11cは、物理ページ番号が1〜30ページまでの原稿は、印刷ジョブでユーザにより指定された第1給紙トレイの用紙の向きである“横向き(長辺給紙)”でラスター画像処理して、図3に示すように“横向き(長辺給紙)”の画像データD1を生成する。   Therefore, in such a condition, the raster image processing unit 11c determines that the original having the physical page number of 1 to 30 pages is the “horizontal orientation” which is the orientation of the paper in the first paper feed tray specified by the user in the print job. (Long-side paper feed) "to generate image data D1 of" landscape (long-side paper feed) "as shown in FIG.

一方、印刷ジョブの残りの物理ページ番号が30〜100ページの原稿は、第2給紙トレイの用紙の向きである“縦向き(短辺給紙)”でラスター画像処理して、図3に示すように“縦向き(短辺給紙)”の画像データD2を生成することになる。   On the other hand, the remaining originals having the physical page numbers of 30 to 100 pages of the print job are subjected to raster image processing in the “portrait (short-side paper feeding)” direction of the paper in the second paper feeding tray, and FIG. As shown in the figure, "vertical (short-side sheet feeding)" image data D2 is generated.

従って、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11によれば、印刷ページ数が第1給紙トレイの用紙残数より大きい場合、ラスター画像処理部11cは、第1給紙トレイの用紙の向きでラスター画像処理して画像データを生成後、第1給紙トレイに積載された用紙のサイズと同じ用紙が積載された第2給紙トレイの用紙の向きでラスター画像処理して画像データを生成する。   Therefore, according to the image data generation unit 11 of the first embodiment of the image data generation device according to the present invention, when the number of print pages is larger than the number of remaining sheets in the first paper feed tray, the raster image processing unit 11c After generating the image data by performing the raster image processing in the paper orientation of the one paper tray, the raster is processed in the paper orientation of the second paper tray loaded with the same paper size as the paper loaded in the first paper tray. Image processing is performed to generate image data.

そのため、印刷ページ数が印刷ジョブにより指定した第1給紙トレイの用紙残数より大きく、第1給紙トレイから用紙の向きの異なる第2給紙トレイに切り替えて印刷する場合でも、切り替えの際に、画像データの回転処理が不要になり、印刷速度の低下を防止することができる。   Therefore, even when the number of pages to be printed is larger than the remaining number of sheets in the first sheet feeding tray specified by the print job and the printing is switched from the first sheet feeding tray to the second sheet feeding tray having a different sheet orientation, even when printing is performed, In addition, the rotation processing of the image data is not required, and a decrease in the printing speed can be prevented.

すなわち、本発明に係る画像データ生成装置の第1実施形態の画像データ生成部11によれば、印刷装置の複数の給紙トレイの給紙トレイ情報と印刷ページ数とに基づき画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成する。そのため、印刷装置における印刷中に用紙の向きが異なる給紙トレイに切り替えて印刷を続行する場合でも、切替の際に、生成した画像データの回転処理が不要であるため、印刷速度の低下を防止することができる。   That is, according to the image data generating unit 11 of the first embodiment of the image data generating apparatus according to the present invention, the direction of the image data is determined based on the paper feed tray information of the plurality of paper feed trays of the printing apparatus and the number of printed pages. The image data is generated by determining and executing the raster image processing in the determined direction. Therefore, even when switching to a paper feed tray with a different paper orientation and continuing printing during printing in the printing apparatus, the rotation speed of the generated image data is not required at the time of switching, thereby preventing a decrease in printing speed. can do.

[第2実施形態]
次に、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11について説明する。なお、第2実施形態の画像データ生成部11では、図1に示す第1実施形態の画像データ生成部11と構成が同じで、動作のみが異なるため、図1に示す第1実施形態の画像データ生成部11の符号を参照して動作を説明する。
[Second embodiment]
Next, an image data generation unit 11 of a second embodiment of the image data generation device according to the present invention will be described. Note that the image data generation unit 11 of the second embodiment has the same configuration as the image data generation unit 11 of the first embodiment shown in FIG. The operation will be described with reference to the reference numerals of the data generator 11.

図4は、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11の動作を示すフローチャートである。なお、図2に示す第1実施形態の画像データ生成部11の動作と同じ処理には、同じステップ番号を付してその説明は省略する。   FIG. 4 is a flowchart showing the operation of the image data generation unit 11 of the second embodiment of the image data generation device according to the present invention. The same steps as those in the operation of the image data generation unit 11 according to the first embodiment shown in FIG. 2 are denoted by the same step numbers, and description thereof is omitted.

図4に示すように、ステップS101の給紙トレイ情報の取得処理からステップS115の第2給紙トレイが第1給紙トレイと用紙の向きが異なるか否かの判定処理までは、図2に示す第1実施形態の画像データ生成部11の動作と同じである。   As shown in FIG. 4, the process from the process of acquiring the paper feed tray information in step S101 to the process of determining whether or not the direction of the paper of the second paper tray is different from that of the first paper tray in step S115 is the same as that of FIG. The operation is the same as the operation of the image data generation unit 11 of the first embodiment shown.

そして、この第2実施形態の画像データ生成部11では、第2給紙トレイが第1給紙トレイと用紙の向きが異なる場合(ステップS115;YES)、第2実施形態のラスター画像処理部11cは、印刷ジョブの全ページをラスター画像処理するまでの間(ステップS123;NO)、ラスター画像処理した画像データの物理ページ番号が(第1給紙トレイの用紙残量−n)以下であるか否かを判定する(ステップS201)。   Then, in the image data generating unit 11 of the second embodiment, when the second paper feed tray has a different paper orientation from the first paper feed tray (step S115; YES), the raster image processing unit 11c of the second embodiment Until all pages of the print job are subjected to the raster image processing (step S123; NO), is the physical page number of the image data subjected to the raster image processing less than or equal to (the remaining amount of paper in the first paper feed tray-n)? It is determined whether or not it is (step S201).

画像データの物理ページ番号と(第1給紙トレイの用紙残量−n)とを比較する理由は、給紙トレイセンサ15b1〜15bmの用紙残数の検出精度には限界があり、第1給紙トレイの用紙残数を正確に検出できない場合や、また用紙のジャム等も考慮して、ステップS101の処理で給紙部15から取得した給紙トレイ情報の用紙残数に対し所定枚数である−n枚の誤差を考慮するためである。なお、nは自然数であり、例えば、1や、5、10等、ユーザ等が任意の値を設定できる。   The reason for comparing the physical page number of the image data with (the remaining amount of paper in the first paper feed tray-n) is that the accuracy of detecting the number of remaining papers by the paper feed tray sensors 15b1 to 15bm is limited, In the case where the remaining number of sheets in the paper tray cannot be accurately detected, and also in consideration of a paper jam, etc., the predetermined number of sheets is equal to the remaining number of sheets in the sheet feeding tray information acquired from the sheet feeding unit 15 in the process of step S101. This is for considering the error of -n sheets. Note that n is a natural number, and a user or the like can set an arbitrary value such as 1, 5, 10, or the like.

ここで、画像データの物理ページ番号が(第1給紙トレイの用紙残量−n)以下である場合(ステップS201;YES)、ラスター画像処理部11cは、その物理ページ番号の原稿の向きを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行う(ステップS119)。   Here, if the physical page number of the image data is equal to or smaller than (the remaining amount of paper in the first paper feed tray−n) (step S201; YES), the raster image processing unit 11c determines the orientation of the document of the physical page number. Raster image processing is performed according to the direction of the paper in the first paper feed tray (step S119).

一方、画像データの物理ページ番号が(第1給紙トレイの用紙残量−n)より大きい場合(ステップS201;NO)、ラスター画像処理部11cは、続いて画像データの物理ページ番号が(第1給紙トレイの用紙残量+p)以下であるか否かを判定する(ステップS203)。   On the other hand, if the physical page number of the image data is larger than (the remaining amount of paper in the first paper feed tray−n) (step S201; NO), the raster image processing unit 11c subsequently sets the physical page number of the image data to It is determined whether it is equal to or less than the remaining amount of paper in one paper feed tray + p) (step S203).

画像データの物理ページ番号と(第1給紙トレイの用紙残量+p)とを比較する理由は、ステップS201で物理ページ番号と(第1給紙トレイの用紙残量−n)とを比較する理由と同じであり、ステップS101の処理で給紙部15から取得した給紙トレイ情報の用紙残数に対し所定枚数である+p枚の誤差を考慮するためである。なお、pも自然数であり、例えば、1や、5、10等の値で、ユーザ等が任意に設定でき、nと同じ値でも良い。   The reason for comparing the physical page number of the image data with (the remaining amount of paper in the first paper supply tray + p) is to compare the physical page number with (the remaining amount of paper in the first paper supply tray-n) in step S201. This is for the same reason as above, in order to consider an error of + p sheets, which is a predetermined number, with respect to the remaining number of sheets in the sheet feeding tray information acquired from the sheet feeding unit 15 in the process of step S101. Note that p is also a natural number, and can be arbitrarily set by a user or the like, for example, a value of 1, 5, 10, or the like, and may be the same value as n.

そして、画像データの物理ページ番号が(第1給紙トレイの用紙残量+p)以下である場合(ステップS203;YES)、ラスター画像処理部11cは、その物理ページ番号の原稿の向きを第1給紙トレイおよび第2給紙トレイの用紙双方の向きに合わせてラスター画像処理を行って画像データを生成する(ステップS205)。   If the physical page number of the image data is equal to or less than (the remaining amount of paper in the first paper feed tray + p) (step S203; YES), the raster image processing unit 11c sets the orientation of the document of the physical page number to the first. Raster image processing is performed in accordance with the orientation of both sheets in the sheet feed tray and the second sheet feed tray to generate image data (step S205).

これにより、ステップS101の処理で給紙部15から取得した給紙トレイ情報の用紙残数より−n枚から+p枚の間は、第1給紙トレイおよび第2給紙トレイの用紙双方の向き、すなわち“横向き(長辺給紙)”および“縦向き(短辺給紙)”の双方で原稿をラスター画像処理して双方の向きの画像データを形成する。   Accordingly, during the period from −n to + p sheets based on the remaining number of sheets in the sheet feed tray information acquired from the sheet feed unit 15 in the process of step S101, the orientation of both sheets in the first sheet feed tray and the second sheet feed tray That is, the original is raster-image-processed in both “horizontal direction (long side sheet feeding)” and “vertical direction (short side sheet feeding)” to form image data in both directions.

一方、画像データの物理ページ番号が(第1給紙トレイの用紙残量+p)より大きくなった場合(ステップS203;NO)、ラスター画像処理部11cは、その物理ページ番号の原稿の向きを第2給紙トレイの用紙の向きに合わせてラスター画像処理を行って画像データを生成する(ステップS121)。   On the other hand, if the physical page number of the image data is larger than (the remaining amount of paper in the first paper feed tray + p) (step S203; NO), the raster image processing unit 11c changes the orientation of the document of the physical page number to the first. The image data is generated by performing the raster image processing in accordance with the direction of the paper in the two paper feed tray (step S121).

図5は、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11によるラスター画像処理後の画像データの向きを示す説明図である。   FIG. 5 is an explanatory diagram showing the direction of image data after raster image processing by the image data generation unit 11 of the second embodiment of the image data generation device according to the present invention.

図5においても、図3の場合と同様に、印刷ジョブが例えば100ページの原稿であって、第1給紙トレイでは、例えば用紙のサイズが“A4”で、用紙の向きは“横向き(長辺給紙)”、残量が“30枚”の場合、第2給紙トレイでは、用紙のサイズが“A4”で、用紙の向きは“縦向き(短辺給紙)”、残量が“500枚”の場合を示している。   Also in FIG. 5, as in FIG. 3, the print job is, for example, a 100-page document, and the first paper feed tray has, for example, a paper size of “A4” and a paper orientation of “landscape (long). Side feed) and the remaining amount is “30 sheets”, the paper size is “A4” in the second paper feed tray, the paper direction is “portrait (short side feed)”, and the remaining amount is The case of “500 sheets” is shown.

また、ここでは、予め例えば、n=p=1が設定されているものとする。   Here, it is assumed that, for example, n = p = 1 is set in advance.

そのため、第2実施形態のラスター画像処理部11cは、ステップS101の処理で給紙部15から取得した給紙トレイ情報の用紙残数である30枚の±1枚の範囲、すなわち図5に示すように29〜31ページの間は、ステップS305の処理により第1給紙トレイおよび第2給紙トレイの用紙の向き、すなわち“横向き(長辺給紙)”および“縦向き(短辺給紙)”の双方で印刷ジョブをラスター画像処理して双方の向きの画像データD1および画像データD2を形成する。   For this reason, the raster image processing unit 11c of the second embodiment sets the range of ± 1 sheet of 30 sheets, which is the remaining number of sheets in the sheet feed tray information acquired from the sheet feed unit 15 in step S101, that is, as shown in FIG. Thus, during the period from page 29 to page 31, the sheet orientations of the first and second paper feed trays, that is, “landscape (long side paper feed)” and “portrait (short side paper feed) ) ", The print job is subjected to raster image processing to form image data D1 and image data D2 in both directions.

なお、1〜28ページの原稿は、第1給紙トレイの用紙の向きである“横向き(長辺給紙)”でラスター画像処理して、図5に示すように“横向き(長辺給紙)”の画像データD1のみを生成する一方、32〜100ページの原稿は、第2給紙トレイの用紙の向きである“縦向き(短辺給紙)”でラスター画像処理して、“縦向き(短辺給紙)”の画像データD2のみを生成することになる。   It should be noted that the originals of pages 1 to 28 are subjected to the raster image processing in the “horizontal direction (long side sheet feeding)” which is the direction of the sheet in the first sheet feeding tray, and as shown in FIG. )), The original of 32 to 100 pages is subjected to the raster image processing in the “vertical orientation (short-side paper feeding)” which is the paper orientation of the second paper feed tray, and the “portrait” is processed. Only the image data D2 in the direction (short-side paper feed) "is generated.

従って、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11によれば、第2給紙トレイが有り、かつ、第1給紙トレイの用紙の向きと異なる場合、第1給紙トレイから検出した給紙トレイ情報が示す用紙残量の前後所定枚数(ここでは、n+p枚となる。)だけ第1給紙トレイおよび第2給紙トレイの用紙の向きに合わせてラスター画像処理を行って双方の向きの画像データD1および画像データD2を生成する。   Therefore, according to the image data generation unit 11 of the second embodiment of the image data generation apparatus according to the present invention, when the second paper feed tray is present and the direction of the paper in the first paper feed tray is different, the first A raster image corresponding to a predetermined number of sheets (here, n + p sheets) before and after the remaining amount of paper indicated by the paper feed tray information detected from the paper feed tray according to the orientation of the paper in the first paper feed tray and the second paper feed tray. Processing is performed to generate image data D1 and image data D2 in both directions.

その結果、第1給紙トレイの用紙残数を正確に検出できない場合や、また用紙のジャム等が発生して、第1給紙トレイから検出した給紙トレイ情報が示す用紙残量の前後で第1給紙トレイから第2給紙トレイに切替った場合でも、印刷速度の低下を防止することができる。   As a result, when the remaining number of sheets in the first sheet tray cannot be accurately detected, or when a paper jam or the like occurs, the number of sheets remaining before and after the remaining sheet amount indicated by the sheet tray information detected from the first sheet tray. Even when switching from the first paper feed tray to the second paper feed tray, it is possible to prevent a decrease in printing speed.

すなわち、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11によれば、n=p=0の場合を例にとって説明すると、印刷ページ数が第1給紙トレイの用紙残数より大きい場合には、第1給紙トレイと用紙サイズが同じであって、第1給紙トレイとは用紙の向きが異なる第2給紙トレイがあるか否か検索し、当該第2給紙トレイがある場合は、印刷ジョブの全ページをラスター画像処理するまでの間、(1)ラスター画像処理により生成される画像データの物理ページ番号が第1給紙トレイの用紙残量以下である場合は、その物理ページ番号の原稿の向きを第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、(2)画像データの物理ページ番号が第1給紙トレイの用紙残量よりも大きくなった場合は、第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行する。そのため、ラスター画像処理後に、印刷ページ数が印刷ジョブにより指定した第1給紙トレイの用紙残数より大きく、第1給紙トレイから用紙の向きの異なる第2給紙トレイに切り替えて印刷する場合でも、切り替えの際に、画像データの回転処理が不要になり、印刷速度の低下を防止することができる。   That is, according to the image data generating unit 11 of the second embodiment of the image data generating apparatus according to the present invention, the case where n = p = 0 will be described as an example. If the second paper feed tray is larger than the second paper feed tray, it is searched whether there is a second paper feed tray having the same paper size as the first paper feed tray and a paper direction different from that of the first paper feed tray. If there is a paper tray, (1) the physical page number of the image data generated by the raster image processing is equal to or less than the remaining amount of paper in the first paper supply tray until all the pages of the print job are subjected to the raster image processing. In such a case, the raster image processing is executed by matching the orientation of the original of the physical page number with the orientation of the paper in the first paper tray, and (2) the physical page number of the image data is changed to the remaining paper amount in the first paper tray. If it is larger than 2 suit the orientation of the paper feed tray to perform raster image processing. Therefore, after the raster image processing, when the number of pages to be printed is larger than the remaining number of sheets in the first sheet feeding tray specified by the print job, and the printing is switched from the first sheet feeding tray to the second sheet feeding tray having a different sheet orientation, and printing is performed. However, at the time of switching, the rotation processing of the image data is not required, and a decrease in the printing speed can be prevented.

また、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11によれば、nとpとが0でない場合を例にとって説明すると、(1)ラスター画像処理により生成される画像データの物理ページ番号が第1給紙トレイの用紙残量から所定枚数減算した値以下である場合は、その物理ページ番号の原稿の向きを第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、(2)物理ページ番号が第1給紙トレイの用紙残量から所定枚数減算した値から第1給紙トレイの用紙残量に対し所定枚数加算した値までの場合は、物理ページ番号の原稿の向きを第1給紙トレイおよび第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、(3)画像データの物理ページ番号が第1給紙トレイの用紙残量に対し所定枚数加算した値よりも大きくなった場合は、第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行する。   According to the image data generation unit 11 of the second embodiment of the image data generation apparatus according to the present invention, a case where n and p are not 0 will be described as an example. (1) An image generated by raster image processing If the physical page number of the data is equal to or less than a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first paper feed tray, the orientation of the document of the physical page number is adjusted to the direction of paper in the first paper supply tray. (2) If the physical page number is between a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first sheet feeding tray and a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first sheet feeding tray, Raster image processing is executed by matching the orientation of the document with the page number with the orientation of the paper in the first paper tray and the second paper tray, and (3) the physical page number of the image data is changed to the remaining paper in the first paper tray. Prescribed sheets for quantity If larger than the addition value performs raster image processing in accordance with the orientation of the sheet of the second paper feed tray.

そのため、第1給紙トレイの給紙トレイ情報に含まれる給紙枚数に誤差があった場合でも、第1給紙トレイの用紙残量の前後の所定枚数は縦向きおよび横向き両方の画像データがあるので、用紙の向きが異なる給紙トレイに切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる。   Therefore, even if there is an error in the number of sheets contained in the sheet feed tray information of the first sheet tray, the predetermined number of sheets before and after the remaining amount of sheets in the first sheet tray does not include both the portrait and landscape image data. Therefore, even when switching to a paper feed tray having a different paper orientation and continuing printing, a reduction in printing speed can be prevented.

なお、上記第2実施形態の説明では、第1給紙トレイの用紙残量の前後所定枚数(ここでは、n+p枚となる。)だけ第1給紙トレイおよび第2給紙トレイの用紙の向きに合わせてラスター画像処理を行うように説明したが、これに限らず、図6に示すように印刷ジョブの各原稿について横向きおよび縦向きの双方でラスター画像処理を行って、双方の向きの画像データ両方を生成するようにしても良い。   In the description of the second embodiment, the orientations of the first and second paper trays by a predetermined number (here, n + p sheets) before and after the remaining amount of paper in the first paper tray. It has been described that the raster image processing is performed according to the image processing. However, the present invention is not limited to this. As shown in FIG. Both data may be generated.

図6は、本発明に係る画像データ生成装置の第2実施形態の画像データ生成部11によりラスター画像処理されて生成された画像データの向きの他の例を示す図である。   FIG. 6 is a diagram illustrating another example of the direction of the image data generated by performing the raster image processing by the image data generation unit 11 of the second embodiment of the image data generation device according to the present invention.

図6においても、図3や図5の場合と同様に、印刷ジョブが例えば100ページの原稿である場合に、その100ページの原稿全てについて“横向き(長辺給紙)”の画像データD1と、“縦向き(短辺給紙)”の画像データD2の双方を生成することになる。なお、“横向き(長辺給紙)”の画像データD1と、“縦向き(短辺給紙)”の画像データD2の両方を生成するタイミングは、例えば、ラスター画像処理部11cのCPUの使用率が低いとき、例えば20%以下等の空き時間に生成する。このようにすると、印刷装置1では、印刷処理部14にて画像データの印刷を実行する際、第1給紙トレイまたは第2給紙トレイの1のいずれから用紙が供給されても、いずれか一方の向きの画像データを選択して印刷を実行できるので、印刷速度の低下を確実に防止できる。   In FIG. 6 as well, as in FIGS. 3 and 5, when the print job is, for example, a 100-page document, all of the 100-page documents have “horizontal (long-side paper feed)” image data D1 and , "Longitudinal (short-side sheet feeding)" image data D2. The timing of generating both the “horizontal (long side paper feed)” image data D1 and the “vertical (short side paper feed)” image data D2 is determined, for example, by using the CPU of the raster image processing unit 11c. When the rate is low, it is generated during an idle time of, for example, 20% or less. With this configuration, in the printing apparatus 1, when printing of image data is performed by the print processing unit 14, even if paper is supplied from one of the first paper supply tray and the second paper supply tray, Since printing can be performed by selecting image data in one direction, a reduction in printing speed can be reliably prevented.

[第3実施形態]
次に、本発明に係る画像データ生成装置の第3実施形態の画像データ生成部11について説明する。なお、第3実施形態の画像データ生成部11では、図1に示す第1実施形態の画像データ生成部11と構成が同じで、動作のみが異なるため、図1に示す第1実施形態の画像データ生成部11の符号を参照して動作を説明する。
[Third embodiment]
Next, an image data generation unit 11 of a third embodiment of the image data generation device according to the present invention will be described. The image data generation unit 11 of the third embodiment has the same configuration as that of the image data generation unit 11 of the first embodiment shown in FIG. The operation will be described with reference to the reference numerals of the data generator 11.

図7は、本発明に係る画像データ生成装置の第3実施形態の画像データ生成部11の動作を示すフローチャートである。なお、図2に示す第1実施形態の画像データ生成部11の動作と同じ処理には、同じステップ番号を付してその説明は省略する。   FIG. 7 is a flowchart showing the operation of the image data generation unit 11 of the third embodiment of the image data generation device according to the present invention. The same steps as those in the operation of the image data generation unit 11 according to the first embodiment shown in FIG. 2 are denoted by the same step numbers, and description thereof is omitted.

図7に示すように、ステップS101の給紙トレイ情報の取得処理からステップS113の第2給紙トレイの検索処理までは、図2に示す第1実施形態の画像データ生成部11の動作と同じである。ただし、第3実施形態のステップS111では、第1給紙トレイの用紙サイズと同じ用紙サイズである第2給紙トレイが複数ある場合、用紙残量が最も多い第2給紙トレイを検索する。   As shown in FIG. 7, the process from the process of acquiring the paper feed tray information in step S101 to the process of searching for the second paper feed tray in step S113 is the same as the operation of the image data generating unit 11 of the first embodiment shown in FIG. It is. However, in step S111 of the third embodiment, when there are a plurality of second paper feed trays having the same paper size as the paper size of the first paper feed tray, the second paper feed tray with the largest remaining paper is searched.

そして、ステップS113の判定処理で、第1給紙トレイの用紙サイズと同じサイズの用紙が異なる向きで置かれている第2給紙トレイが有ると判定した場合(YES)、ラスター画像処理部11cは、続いて第1給紙トレイから印刷可能な画像データの物理ページ数が第2給紙トレイから印刷可能な物理ページ数よりも小さいか否かを判定する(ステップS301)。   If it is determined in the determination process of step S113 that there is a second paper feed tray in which paper having the same size as the paper size of the first paper feed tray is placed in a different direction (YES), the raster image processing unit 11c Determines whether the number of physical pages of image data that can be printed from the first paper tray is smaller than the number of physical pages that can be printed from the second paper tray (step S301).

ここで、第2給紙トレイから印刷可能な物理ページ数が第1給紙トレイから印刷可能な物理ページ数よりも大きい場合(ステップS301;YES)、第1給紙トレイで印刷するよりも第2給紙トレイで印刷を実行した方が用紙切れの可能性が低い。   Here, when the number of physical pages that can be printed from the second paper tray is greater than the number of physical pages that can be printed from the first paper tray (step S301; YES), the number of physical pages that can be printed from the first paper tray is greater than the number of physical pages that can be printed from the first paper tray. The possibility of running out of paper is lower when printing is performed with the two paper feed tray.

そのため、この場合、ラスター画像処理部11cは、全ページを用紙切れの可能性が低い第2給紙トレイの用紙の向きに合わせてラスター画像処理を行う(ステップS121)。   Therefore, in this case, the raster image processing unit 11c performs the raster image processing on all the pages in accordance with the direction of the paper in the second paper feed tray, which is less likely to be out of paper (step S121).

これに対し、第2給紙トレイから印刷可能な物理ページ数が第1給紙トレイから印刷可能な物理ページ数以下の場合(ステップS301;NO)、第2給紙トレイで印刷するよりも第1給紙トレイで印刷を実行した方が用紙切れの可能性が低い。   On the other hand, when the number of physical pages that can be printed from the second paper tray is equal to or less than the number of physical pages that can be printed from the first paper tray (step S301; NO), the number of physical pages that can be printed from the second paper tray is smaller than that when printing from the second paper tray. The possibility of running out of paper is lower when printing is performed with one paper feed tray.

そのため、この場合、ラスター画像処理部11cは、全ページを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行う(ステップS119)。   Therefore, in this case, the raster image processing unit 11c performs raster image processing on all pages in accordance with the orientation of the paper in the first paper feed tray (step S119).

なお、ステップS107の判定処理で、画像データの物理ページ数が第1給紙トレイの残量以下の場合(NO)、およびステップS113の判定処理で第2給紙トレイが無いと判定した場合(NO)、ラスター画像処理部11cは、ステップS301の判定処理でNOと判定した場合と同様に、全ページを第1給紙トレイの用紙の向きに合わせてラスター画像処理を行う(ステップS119)。   Note that, in the determination process of step S107, when the number of physical pages of the image data is equal to or less than the remaining amount of the first paper feed tray (NO), and when it is determined that there is no second paper feed tray in the determination process of step S113 ( NO), the raster image processing unit 11c performs raster image processing on all pages according to the orientation of the paper in the first paper feed tray, as in the case where the determination processing in step S301 determines NO. (Step S119).

図8は、本発明に係る画像データ生成装置の第3実施形態の画像データ生成部11によるラスター画像処理後の画像データの向きを示す説明図である。   FIG. 8 is an explanatory diagram showing the direction of image data after raster image processing by the image data generation unit 11 of the third embodiment of the image data generation device according to the present invention.

図8でも、図3や図5の場合と同様に、印刷ジョブが例えば100ページの原稿であって、第1給紙トレイでは、例えば用紙のサイズが“A4”で、用紙の向きは“横向き(長辺給紙)”、用紙残量が“30枚”の場合、第2給紙トレイでは、用紙のサイズが“A4”で、用紙の向きは“縦向き(短辺給紙)”、用紙残量が“500枚”の場合を示している。   In FIG. 8 as well, as in FIGS. 3 and 5, the print job is, for example, a 100-page document, and in the first paper feed tray, for example, the paper size is “A4” and the paper direction is “landscape”. (Long side paper feed) "and the remaining amount of paper is" 30 sheets ", the paper size is" A4 "in the second paper feed tray, and the paper direction is" portrait (short side paper feed) ". The case where the remaining amount of paper is “500 sheets” is shown.

そのため、このような条件の場合、第3実施形態の画像データ生成部11では、画像データの物理ページ数の“100ページ”が第1給紙トレイの用紙残量の“30枚”よりも大きいので、ステップS107でYESと判定し、続くステップS111により第2給紙トレイを検索して、第2給紙トレイが有り、第2給紙トレイの方が第1給紙トレイよりも用紙残量が多く物理ページ数が大きいので、ステップS301によりYESと判定され、図5に示すように、第2給紙トレイの“縦向き(短辺給紙)”で100ページの原稿がラスター画像処理されて“縦向き(短辺給紙)”の画像データD2が生成される。   Therefore, in the case of such a condition, in the image data generation unit 11 of the third embodiment, the number of physical pages “100 pages” of the image data is larger than the remaining number of sheets of the first paper feed tray “30”. Therefore, YES is determined in the step S107, the second sheet tray is searched in the following step S111, the second sheet tray is present, and the remaining sheet amount of the second sheet tray is larger than that of the first sheet tray. And the number of physical pages is large, the determination in step S301 is YES, and as shown in FIG. 5, the raster image processing is performed on the document of 100 pages in the “vertical (short-side paper feed)” of the second paper feed tray. Thus, the image data D2 of “vertical orientation (short-side sheet feeding)” is generated.

従って、本発明に係る画像データ生成装置の第3実施形態の画像データ生成部11によれば、画像データの物理ページ数が第1給紙トレイの残量を超えている場合、第2給紙トレイを検索して、第1給紙トレイまたは第1給紙トレイと同じ用紙サイズの用紙が最も多く積載された第2給紙トレイの用紙向きに合わせてラスター画像処理により画像データを生成する。そのため、画像データ生成部11における印刷中に用紙の向きが異なる給紙トレイに切り替えて印刷する場合が少なくなり、印刷速度の低下を防止することができる。   Therefore, according to the image data generation unit 11 of the third embodiment of the image data generation apparatus according to the present invention, when the number of physical pages of the image data exceeds the remaining amount of the first paper supply tray, the second paper supply A tray is searched, and image data is generated by raster image processing in accordance with the paper orientation of the first paper feed tray or the second paper feed tray on which the largest number of papers of the same paper size as the first paper feed tray are stacked. Therefore, during printing in the image data generation unit 11, the number of times of switching to a paper feed tray having a different paper orientation for printing is reduced, and a reduction in printing speed can be prevented.

[第4実施形態]
次に、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11について説明する。
[Fourth embodiment]
Next, an image data generation unit 11 of a fourth embodiment of the image data generation device according to the present invention will be described.

<画像データ生成部11を有する印刷装置1の構成>
図9は、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11を有する印刷装置1の構成と端末装置3との接続の一例を示すブロック図である。
<Configuration of Printing Apparatus 1 Having Image Data Generation Unit 11>
FIG. 9 is a block diagram showing an example of a configuration of the printing apparatus 1 having the image data generation unit 11 of the fourth embodiment of the image data generation apparatus according to the present invention and a connection with the terminal device 3.

図9に示すように、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11を有する印刷装置1は、社内ネットワーク等のネットワーク2を介して各ユーザの端末装置3,3,・・・と接続されている。   As shown in FIG. 9, a printing apparatus 1 having an image data generation unit 11 according to a fourth embodiment of the image data generation apparatus according to the present invention includes terminal apparatuses 3 and 3 of each user via a network 2 such as an in-house network. , ... are connected.

印刷装置1は、画像データ生成部11と、メモリ12と、HDD(ハードディスクドライブ)13と、印刷処理部14と、給紙部15と、第1排紙部16と、ネットワークI/F部17と、第2排紙部18とを備える。   The printing apparatus 1 includes an image data generation unit 11, a memory 12, an HDD (hard disk drive) 13, a print processing unit 14, a paper supply unit 15, a first paper discharge unit 16, a network I / F unit 17, And a second paper discharge unit 18.

画像データ生成部11は、CPU(図示せず。)等から構成されており、HDD13に記憶されたプリンタドライバ等のプログラムを実行することにより、本発明に係るトレイ情報取得部11a、ステープル数算出部11d(消耗品使用数算出部)およびラスター画像処理部11cとして機能して、端末装置3等から送信されてきた印刷ジョブに基づいて印刷用の画像データを生成する。   The image data generation unit 11 includes a CPU (not shown) and the like, and executes a program such as a printer driver stored in the HDD 13 to execute the tray information acquisition unit 11a according to the present invention, and calculate the number of staples. It functions as a unit 11d (consumables use number calculation unit) and a raster image processing unit 11c, and generates image data for printing based on a print job transmitted from the terminal device 3 or the like.

なお、メモリ12、HDD13、印刷処理部14、給紙部15、ネットワークI/F部17については、図1に示す第1実施形態の画像データ生成部11が備えるそれぞれ同一符号が付された構成と同じであるので、説明を省略する。   The memory 12, the HDD 13, the print processing unit 14, the paper feed unit 15, and the network I / F unit 17 are provided with the same reference numerals in the image data generation unit 11 of the first embodiment shown in FIG. Therefore, the description is omitted.

第1排紙部16は、印刷されて排紙された用紙を載置する排紙トレイ16aと、排紙トレイ16aに配置されたステープラ16bと、ステープラ16bのステープル針の残数を検出するステープル針センサ16cとを有しており、排紙トレイ16aに排紙された複数枚の用紙を1セットして、ステープラ16bにより消耗品であるステープル針を用いてステープルを行う。   The first paper discharge unit 16 includes a paper discharge tray 16a on which printed and discharged paper is placed, a stapler 16b arranged on the paper discharge tray 16a, and a staple for detecting the remaining number of staples of the stapler 16b. The stapler 16b has a staple sensor 16c, sets a plurality of sheets discharged to the discharge tray 16a, and staples the staples 16b using consumable staples.

第2排紙部18も第1排紙部16と同様に、印刷されて排紙された用紙を載置する排紙トレイ18aと、排紙トレイ18aに配置されたステープラ18bと、ステープラ18bのステープル針の残数を検出するステープル針センサ18cとを有しており、排紙トレイ18aに排紙された複数枚の用紙を1セットして、ステープラ18bにより消耗品であるステープル針を用いてステープルを行う。   Similarly to the first paper discharge unit 16, the second paper discharge unit 18 includes a paper discharge tray 18a on which printed and discharged paper is placed, a stapler 18b disposed on the paper discharge tray 18a, and a stapler 18b. A staple sensor 18c for detecting the remaining number of staples, a set of a plurality of sheets discharged to a discharge tray 18a, and a stapler 18b using staples, which are consumables. Perform stapling.

端末装置3は、各種情報処理を行うPC等で、ネットワーク2を介して印刷装置1へ印刷ジョブを送信する。   The terminal device 3 is a PC or the like that performs various types of information processing, and transmits a print job to the printing device 1 via the network 2.

<第4実施形態の画像データ生成部11の動作>
次に、以上のように構成された本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11の動作を、図面を参照して説明する。
<Operation of Image Data Generation Unit 11 of Fourth Embodiment>
Next, the operation of the image data generation unit 11 of the image data generation device according to the fourth embodiment of the present invention configured as described above will be described with reference to the drawings.

図10は、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11の動作を模式的に説明した説明図である。(a)は、排紙トレイ16aに排紙してステープラ16bでステープルする場合における印刷装置1内の搬送経路を搬送される用紙を示しており、(b)は、排紙トレイ18aに排紙してステープラ18bでステープルする場合における印刷装置1内の搬送経路を搬送される用紙を示している。なお、ここでは、印刷ジョブに基づいて、1枚目の表面に「A」の文字を印刷し、2枚目の表面に「B」の文字を印刷し、計2枚の用紙の左上部をステープル止めする例を挙げて説明する。   FIG. 10 is an explanatory diagram schematically illustrating the operation of the image data generation unit 11 of the fourth embodiment of the image data generation device according to the present invention. (A) shows the paper conveyed on the conveyance path in the printing apparatus 1 when the paper is discharged to the paper discharge tray 16a and stapled by the stapler 16b, and (b) is the paper discharged to the paper discharge tray 18a. 4 illustrates a sheet conveyed along a conveyance path in the printing apparatus 1 when stapling is performed by the stapler 18b. Here, based on the print job, the character “A” is printed on the first surface and the character “B” is printed on the second surface. An example of stapling will be described.

図10(a)に示すように、印刷装置1は、給紙部15と、印刷処理部14と、第1排紙部16と、第2排紙部18と、反転部19とを備えている。   As shown in FIG. 10A, the printing apparatus 1 includes a paper supply unit 15, a print processing unit 14, a first paper discharge unit 16, a second paper discharge unit 18, and a reversing unit 19. I have.

給紙部15は、用紙が積載される給紙トレイを備え、給紙トレイから用紙を給紙搬送路SR上へ搬送させた後、循環搬送路CR上へ搬送する。ここで、給紙された用紙の搬送経路と、表面印刷後に装置内を循環搬送され反転部19にて反転された用紙が循環して搬送されてくる経路とが合流する合流地点が存在する。この合流地点を基準に、給紙トレイ側の経路を給紙搬送路SRと称し、印刷装置1内を用紙が循環される経路を循環搬送路CRと称している。   The paper supply unit 15 includes a paper supply tray on which the paper is stacked. After the paper is transported from the paper supply tray to the paper supply transport path SR, the paper is transported to the circulation transport path CR. Here, there is a merging point at which the conveyance path of the fed paper and the path where the paper circulated and conveyed inside the apparatus after the front side printing is reversed and circulated and conveyed by the reversing unit 19 converge. Based on this junction, the path on the paper feed tray side is called a paper feed path SR, and the path through which the paper circulates in the printing apparatus 1 is called a circulation path CR.

印刷処理部14は、ライン型のインクジェットヘッドを有し、インクジェットヘッド直下の循環搬送路CRを搬送される用紙に対してインクを吐出することにより、ライン単位で用紙に印刷を行う。印刷処理部14により印刷された用紙は、循環搬送路CR上に配置された搬送ローラ等によって筐体内を循環搬送路CR上で搬送され、第1排紙部16または第2排紙部18へ排紙される。   The print processing unit 14 has a line-type inkjet head, and performs printing on paper in line units by discharging ink onto the paper transported in the circulation transport path CR immediately below the inkjet head. The paper printed by the print processing unit 14 is conveyed in the housing on the circulation conveyance path CR by conveyance rollers or the like arranged on the circulation conveyance path CR, and is sent to the first paper ejection unit 16 or the second paper ejection unit 18. The paper is ejected.

反転部19は、循環搬送路CR搬送された用紙の表裏を反転し、循環搬送路CR上を再循環させる。   The reversing unit 19 reverses the front and back of the sheet transported in the circulating transport path CR, and recirculates the paper on the circulating transport path CR.

第1排紙部16は、印刷装置1の筐体から突出したトレイ形状をした排紙トレイ16aと、排紙トレイ16a上における用紙搬送方向の上流側であって、紙面奥側の位置に設けられ、排紙トレイ16a上に搬送された複数の用紙を1セットとしてステープルするステープラ16bとを有している。また、上述したように、ステープル針センサ16cは、ステープラ16bのステープル針の残数を検出する。   The first paper discharge unit 16 is provided at a paper discharge tray 16 a having a tray shape protruding from the housing of the printing apparatus 1 and at a position on the paper discharge tray 16 a on the upstream side in the paper transport direction and on the back side of the paper surface. And a stapler 16b for stapling a plurality of sheets conveyed onto the sheet discharge tray 16a as one set. Further, as described above, the staple sensor 16c detects the remaining number of staples of the stapler 16b.

第2排紙部18は、印刷装置1の筐体から突出したトレイ形状をした排紙トレイ18aと、排紙トレイ18a上における用紙搬送方向の上流側であって、紙面手前側の位置に設けられ、排紙トレイ18a上に搬送された複数の用紙を1セットとしてステープルするステープラ18bとを有している。また、上述したように、ステープル針センサ18cは、ステープラ18bのステープル針の残数を検出する。   The second paper output unit 18 is provided at a paper discharge tray 18 a having a tray shape protruding from the housing of the printing apparatus 1 and at a position upstream of the paper transport direction on the paper discharge tray 18 a and on the front side of the paper surface. And a stapler 18b for stapling a plurality of sheets conveyed onto the sheet discharge tray 18a as one set. Further, as described above, the staple sensor 18c detects the remaining number of staples of the stapler 18b.

図10(a)では、印刷ジョブに基づいて、まず給紙部15から用紙が給紙搬送路SR上へ搬送され、循環搬送路CR上を搬送され、印刷処理部14により印刷される。ここでは、用紙の枚数は2枚であり、1枚目の表面に「A」の文字が印刷され、2枚目の表面に「B」の文字が印刷される。   In FIG. 10A, based on the print job, first, the paper is transported from the paper feed unit 15 onto the paper feed transport path SR, is transported on the circulation transport path CR, and is printed by the print processing unit 14. Here, the number of sheets is two, and the letter “A” is printed on the first face and the letter “B” is printed on the second face.

そして、印刷された用紙は、さらに循環搬送路CR上を搬送され、第1排紙部16に排紙される。このとき、図10(a)に示すように、印刷された面が下向きとなった状態で排紙トレイ16aに排紙され、ステープラ16bは、排紙された用紙を用紙搬送方向の上流側であり、かつ用紙の上部の位置(天位置)でステープルする。これにより、用紙の左上部にステープル止めすることができる。   Then, the printed sheet is further transported on the circulating transport path CR, and is discharged to the first paper discharge unit 16. At this time, as shown in FIG. 10A, the printed sheet is discharged to the discharge tray 16a with the printed surface facing downward, and the stapler 16b transfers the discharged sheet to the upstream side in the sheet conveyance direction. Stapled at the upper position (top position) of the paper. As a result, stapling can be performed at the upper left of the sheet.

図10(b)では、印刷ジョブに基づいて、まず給紙部15から用紙が給紙搬送路SR上へ搬送され、循環搬送路CR上を搬送され、印刷処理部14により印刷される。ここでは、用紙の枚数は2枚であり、1枚目の表面に「A」の文字が印刷され、2枚目の表面に「B」の文字が印刷される。   In FIG. 10B, based on the print job, first, the paper is transported from the paper feed unit 15 onto the paper feed transport path SR, is transported along the circulation transport path CR, and is printed by the print processing unit 14. Here, the number of sheets is two, the letter “A” is printed on the first face, and the letter “B” is printed on the second face.

そして、印刷された用紙は、さらに循環搬送路CR上を搬送され、反転部19により表裏が反転され、第2排紙部18に排紙される。このとき、印刷処理部14により印刷される画像の向きを回転することなく図10(a)に示す画像の向きと同じ向きで印刷すると、第2排紙部18に排紙された用紙は右下部にステープル止めされることになる。   Then, the printed sheet is further conveyed on the circulating conveyance path CR, is turned upside down by the reversing section 19, and is discharged to the second sheet discharging section 18. At this time, if the image printed by the print processing unit 14 is printed in the same direction as the image shown in FIG. 10A without rotating, the sheet discharged to the second sheet discharging unit 18 is shifted to the right. It will be stapled at the bottom.

そこで、第2排紙部18に排紙された用紙の左上部にステープル止めするためには、図10(b)に示すように、印刷する「A」および「B」の画像を180°回転させておく必要がある。   Therefore, in order to staple the upper left portion of the sheet discharged to the second sheet discharge unit 18, the images of “A” and “B” to be printed are rotated by 180 ° as shown in FIG. You need to keep it.

これにより、180°回転された画像が印刷された用紙は、さらに循環搬送路CR上を搬送され、反転部19により表裏が反転される。そして、循環搬送路CR上を搬送されて第2排紙部18に排紙される。このとき、図10(b)に示すように、印刷された面が下向きとなった状態で排紙トレイ18aに排紙され、ステープラ18bは、排紙された用紙を用紙搬送方向の上流側であり、かつ用紙の上部の位置(天位置)でステープルする。これにより、用紙の左上部にステープル止めすることができる。   As a result, the sheet on which the image rotated by 180 ° is printed is further conveyed on the circulation conveyance path CR, and is turned upside down by the reversing unit 19. Then, the paper is conveyed on the circulating conveyance path CR and discharged to the second paper discharge unit 18. At this time, as shown in FIG. 10B, the printed sheet is discharged to the discharge tray 18a with the printed surface facing downward, and the stapler 18b transfers the discharged sheet to the upstream side in the sheet conveyance direction. Stapled at the upper position (top position) of the paper. As a result, stapling can be performed at the upper left of the sheet.

図11は、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11の動作を示すフローチャートである。   FIG. 11 is a flowchart showing the operation of the image data generation unit 11 of the fourth embodiment of the image data generation device according to the present invention.

まず、この印刷装置1では、例えば、ネットワーク2を介してある端末装置3から印刷ジョブを受信すると動作を開始して、まず、画像データ生成部11のトレイ情報取得部11aが、第1排紙部16および第2排紙部18から排紙トレイ情報(トレイ情報)を取得する(ステップS401)。   First, in the printing apparatus 1, for example, when a print job is received from a certain terminal device 3 via the network 2, the operation starts, and first, the tray information acquisition unit 11a of the image data generation unit 11 The discharge tray information (tray information) is obtained from the unit 16 and the second discharge unit 18 (step S401).

排紙トレイ情報は、ステープル位置(状態)やステープル針の残量等の情報を含み、第1排紙部16のステープル針センサ16cから排紙トレイ16aの排紙トレイ情報(トレイ情報)を取得すると共に、第2排紙部18のステープル針センサ18cから排紙トレイ18aの排紙トレイ情報(トレイ情報)を取得する。ただし、排紙トレイ情報はメモリ12等に記憶しておいて、メモリ12等から取得するようにしても良い。状態には、ステープル位置が含まれている。ステープル位置は、排紙トレイ16a上における用紙搬送方向の上流側で常に固定されていれば、ステープル位置の情報は省略しても良い。   The discharge tray information includes information such as the staple position (state) and the remaining amount of staples, and obtains the discharge tray information (tray information) of the discharge tray 16a from the staple sensor 16c of the first discharge unit 16. At the same time, the paper output tray information (tray information) of the paper output tray 18a is obtained from the staple sensor 18c of the second paper output unit 18. However, the discharge tray information may be stored in the memory 12 or the like and acquired from the memory 12 or the like. The state includes a staple position. The staple position may be omitted if the staple position is always fixed on the discharge tray 16a on the upstream side in the sheet transport direction.

次に、画像データ生成部11のラスター画像処理部11cが排紙トレイ16a,18aの内から印刷ジョブで指定された排紙トレイである第1排紙トレイを選択し(ステップS403)、続いて画像データ生成部11のステープル数算出部11dが端末装置3から受信した印刷ジョブからステープル数を算出する(ステップS405)。ここで、ステープル数とは、ステープラにより用いられるステープル針の数のことである。   Next, the raster image processing unit 11c of the image data generation unit 11 selects the first discharge tray, which is the discharge tray designated by the print job, from the discharge trays 16a and 18a (step S403). The staple number calculator 11d of the image data generator 11 calculates the number of staples from the print job received from the terminal device 3 (step S405). Here, the number of staples refers to the number of staples used by the stapler.

次に、画像データ生成部11のラスター画像処理部11cは、ステープル数が第1排紙トレイのステープル針の残量より大きいか否かを判定し(ステップS407)、ステープル数が第1排紙トレイのステープル針の残量以下であると判定した場合(ステップS407;NO)、ラスター画像処理部11cはその印刷ジョブの全ページを第1排紙トレイでステープルできる向きに合わせてラスター画像処理を行って、画像データを生成する(ステップS409)。具体的には、第1排紙トレイが排紙トレイ16aである場合には、ラスター画像処理部11cは図10(a)に示したように、画像の向きを回転することなく印刷するように画像データを生成する一方、第1排紙トレイが排紙トレイ18aである場合には、ラスター画像処理部11cは図10(b)に示したように、画像の向きを180°回転させて印刷するように画像データを生成する。   Next, the raster image processing unit 11c of the image data generation unit 11 determines whether or not the number of staples is larger than the remaining amount of the staples of the first discharge tray (Step S407), and the staple number is determined to be the first discharge amount. If the raster image processing unit 11c determines that the number of staples is equal to or less than the remaining amount of staples in the tray (step S407; NO), the raster image processing unit 11c performs raster image processing according to the direction in which all pages of the print job can be stapled in the first discharge tray. Then, image data is generated (step S409). Specifically, when the first paper discharge tray is the paper discharge tray 16a, the raster image processing unit 11c performs printing without rotating the orientation of the image as shown in FIG. While the image data is generated, if the first discharge tray is the discharge tray 18a, the raster image processing unit 11c rotates the direction of the image by 180 ° as shown in FIG. The image data is generated as follows.

これに対し、ステープル数が第1排紙トレイのステープル針の残量より大きいと判定した場合(ステップS407;YES)、ラスター画像処理部11cは、さらに印刷ジョブの全ページをラスター画像処理するまでの間(ステップS423;NO)、第1排紙トレイのステープル針の残量に基づいて、ラスター画像処理した画像データの物理ページ番号のページが第1排紙トレイのステープラでステープル可能なページか否かを判定する(ステップS417)。   On the other hand, if the raster image processing unit 11c determines that the number of staples is larger than the remaining number of staples in the first discharge tray (step S407; YES), the raster image processing unit 11c further performs raster image processing on all pages of the print job. During this time (step S423; NO), based on the remaining amount of staples on the first paper output tray, whether the page of the physical page number of the raster image-processed image data is a page that can be stapled by the stapler of the first paper output tray It is determined whether or not it is (step S417).

ここで、ラスター画像処理した画像データの物理ページ番号のページが第1排紙トレイのステープラでステープル可能なページである場合(ステップS417;YES)、第1排紙トレイのステープラにはステープル針が残っており、その物理ページ番号の画像データのページはユーザが印刷ジョブにて指定した第1排紙トレイでステープル可能であるということなので、ラスター画像処理部11cは、その物理ページ番号の原稿の向きを第1排紙トレイでステープルできる向きに合わせてラスター画像処理を行って画像データを生成する(ステップS419)。   Here, when the page of the physical page number of the image data subjected to the raster image processing is a page that can be stapled by the stapler of the first discharge tray (step S417; YES), the stapler of the stapler of the first discharge tray has a staple. The raster image processing unit 11c determines that the page of the image data of the physical page number remains and can be stapled on the first discharge tray specified by the user in the print job. Raster image processing is performed to match the orientation with the direction in which stapling can be performed on the first discharge tray to generate image data (step S419).

一方、ラスター画像処理した画像データの物理ページ番号のページが第1排紙トレイのステープラではステープル不可能なページである場合(ステップS417;NO)、第1排紙トレイのステープラにはステープル針が残っておらず、その物理ページ番号の画像データのページはユーザが印刷ジョブにて指定した第1排紙トレイでステープル不可であるということである。そのため、この場合、ラスター画像処理部11cは、その物理ページ番号以降の原稿の向きを第2給紙トレイの用紙の向きに合わせてラスター画像処理を行う(ステップS421)。   On the other hand, when the page of the physical page number of the image data subjected to the raster image processing is a page that cannot be stapled by the stapler of the first discharge tray (step S417; NO), the staple is stapled on the stapler of the first discharge tray. This means that the page of the image data of the physical page number is not left, and cannot be stapled in the first discharge tray specified by the user in the print job. Therefore, in this case, the raster image processing unit 11c performs the raster image processing by matching the orientation of the document after the physical page number with the orientation of the paper in the second paper feed tray (step S421).

そして、印刷ジョブの全ページのラスター画像処理が完了した場合(ステップS123;YES)、ラスター画像処理部11cは、以上の処理を終了する。   Then, when the raster image processing of all pages of the print job is completed (step S123; YES), the raster image processing unit 11c ends the above processing.

従って、本発明に係る画像データ生成装置の第4実施形態の画像データ生成部11によれば、ステープル数が第1排紙トレイのステープル残数より大きい場合、ラスター画像処理部11cは、第1排紙トレイの用紙の向きでラスター画像処理して画像データを生成後、第2給紙トレイでステープルできる向きでラスター画像処理して画像データを生成する。   Therefore, according to the image data generation unit 11 of the fourth embodiment of the image data generation apparatus according to the present invention, when the number of staples is larger than the remaining number of staples in the first paper discharge tray, the raster image processing unit 11c performs After the image data is generated by performing the raster image processing in the direction of the paper in the discharge tray, the image data is generated by performing the raster image processing in the direction in which the staple can be performed in the second paper supply tray.

そのため、ラスター画像処理後に、ステープル数が第1排紙トレイのステープル残数より大きく、第1排紙トレイからステープル位置が異なる第2排紙トレイに切り替えて印刷する場合でも、切り替えの際に、画像データの回転処理が不要になり、印刷速度の低下を防止することができる。   Therefore, even after the raster image processing, when the number of staples is larger than the number of remaining staples in the first paper output tray and the printing is switched from the first paper output tray to the second paper output tray having a different staple position, even when printing is performed, This eliminates the need for rotating the image data, thereby preventing a reduction in printing speed.

[第5実施形態]
次に、本発明に係る画像データ生成装置の第5実施形態の画像データ生成部11について説明する。なお、第5実施形態の画像データ生成部11では、図9に示す第4実施形態の画像データ生成部11と構成が同じで、動作のみが異なるため、図9に示す第4実施形態の画像データ生成部11の符号を参照して動作を説明する。
[Fifth Embodiment]
Next, an image data generation unit 11 of a fifth embodiment of the image data generation device according to the present invention will be described. The image data generation unit 11 of the fifth embodiment has the same configuration as that of the image data generation unit 11 of the fourth embodiment shown in FIG. The operation will be described with reference to the reference numerals of the data generator 11.

図12は、本発明に係る画像データ生成装置の第5実施形態の画像データ生成部11の動作を示すフローチャートである。なお、図11に示す第4実施形態の画像データ生成部11の動作と同じ処理には、同じステップ番号を付してその説明は省略する。   FIG. 12 is a flowchart showing the operation of the image data generation unit 11 of the fifth embodiment of the image data generation device according to the present invention. Note that the same processes as those of the operation of the image data generation unit 11 of the fourth embodiment shown in FIG. 11 are denoted by the same step numbers, and description thereof will be omitted.

図12に示すように、ステップS401の排紙トレイ情報の取得処理からステップS423の処理までは、図11に示す第4実施形態の画像データ生成部11の動作と同じである。   As shown in FIG. 12, the operation from the process of acquiring the paper discharge tray information in step S401 to the process of step S423 is the same as the operation of the image data generating unit 11 of the fourth embodiment shown in FIG.

そして、ステップS423の判定処理で、印刷ジョブの全ページをラスター画像処理したと判定した場合(YES)、ラスター画像処理部11cは、メモリ12の中に、次に実行すべき印刷ジョブがあるか否かを判定する(ステップS503)。   If it is determined in the determination processing of step S423 that all pages of the print job have been subjected to the raster image processing (YES), the raster image processing unit 11c determines whether there is a print job to be executed next in the memory 12. It is determined whether or not it is (step S503).

メモリ12の中に、次に実行すべき印刷ジョブがあると判定された場合(ステップS503;YES)、ステープル数算出部11dは、現在のステープル針の残数から今回実行した印刷ジョブにおいて使用したステープル針の使用数を減算することにより新たなステープル針の残数として算出する(ステップS505)。   If it is determined that there is a print job to be executed next in the memory 12 (step S503; YES), the staple number calculation unit 11d uses the current number of staples remaining in the currently executed print job. The remaining number of staples is calculated by subtracting the number of staples used (step S505).

そして、ステープル数算出部11dは、メモリ12から次に実行すべき印刷ジョブを取得する(ステップS507)。   Then, the staple number calculation unit 11d acquires a print job to be executed next from the memory 12 (step S507).

従って、本発明に係る画像データ生成装置の第5実施形態の画像データ生成部11によれば、ステープル針の残数を、ステープル針の使用数を減算することにより算出するので、トレイ情報を取得する処理をバイパスして次処理を実行することができ、より時間短縮を図ることができる。   Therefore, according to the image data generation unit 11 of the fifth embodiment of the image data generation apparatus according to the present invention, the remaining number of staples is calculated by subtracting the number of staples used, so that tray information is obtained. The next process can be executed by bypassing the process to be performed, and the time can be further reduced.

なお、上記実施形態の説明では、本発明に係る画像データ生成部11を印刷装置1内に設けて説明したが、本発明では、これに限らず、PC等の印刷ジョブを生成する端末装置3に設けるようにしても良いし、印刷装置1や端末装置3とは別のラスター画像処理専用装置(図示せず。)内に設けるようにしても良い。   In the description of the above embodiment, the image data generation unit 11 according to the present invention is provided in the printing apparatus 1. However, the present invention is not limited to this, and the terminal device 3 that generates a print job such as a PC is not limited to this. May be provided in a dedicated raster image processing apparatus (not shown) separate from the printing apparatus 1 and the terminal apparatus 3.

本発明は上記実施の形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施の形態に開示されている複数の構成要素の適宜な組み合せにより、種々の発明を形成できる。例えば、実施の形態に示される全構成要素から幾つかの構成要素を削除してもよい。   The present invention is not limited to the above-described embodiments as they are, and can be embodied by modifying constituent elements in an implementation stage without departing from the scope of the invention. Various inventions can be formed by appropriately combining a plurality of components disclosed in the above embodiments. For example, some components may be deleted from all the components described in the embodiments.

また、例えば、記載された機能や処理の各々は、一つ以上の処理回路によって実装されうる。処理回路には、プログラムされたプロセッサや、電気回路などが含まれ、さらには、特定用途向けの集積回路(ASIC)のような装置や、記載された機能を実行するよう配置された回路構成要素なども含まれる。   Also, for example, each of the described functions or processes can be implemented by one or more processing circuits. Processing circuits include programmed processors and electrical circuits, as well as devices such as application-specific integrated circuits (ASICs) and circuit components arranged to perform the described functions. Also included.

本発明に係る画像データ生成装置によれば、トレイ情報と消耗品使用数とに基づいて画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成するため、印刷装置における印刷中に給紙トレイや排紙トレイを切り替えて印刷を続行する場合でも、印刷速度の低下を防止することができる。   According to the image data generating apparatus of the present invention, the direction of image data is determined based on the tray information and the number of consumables used, and raster image processing is performed in the determined direction to generate image data. Further, even when the printing is continued by switching the paper feed tray or the discharge tray during printing in the printing apparatus, it is possible to prevent a decrease in printing speed.

1 印刷装置
11 画像データ生成部(画像データ生成装置)
11a トレイ情報取得部
11b ページ数算出部
11c ラスター画像処理部
11d ステープル数算出部
12 メモリ
13 HDD
14 印刷処理部
15 給紙部
15a1〜15am 給紙トレイ
15b1〜15bm 給紙トレイセンサ
16 排紙部(第1排紙部)
17 ネットワークI/F部
18 第2排紙部
2 ネットワーク
3 端末装置
1 printing device 11 image data generation unit (image data generation device)
11a tray information acquisition unit 11b page number calculation unit 11c raster image processing unit 11d staple number calculation unit 12 memory 13 HDD
14 print processing unit 15 paper supply unit 15a1 to 15am paper supply tray 15b1 to 15bm paper supply tray sensor 16 paper discharge unit (first paper discharge unit)
17 Network I / F Unit 18 Second Paper Output Unit 2 Network 3 Terminal Device

Claims (3)

印刷ジョブに基づいて画像データを生成する画像データ生成装置であって、
少なくとも印刷装置の複数の給紙トレイに積載される用紙のサイズ、向きおよび用紙残数を含むトレイ情報を取得するトレイ情報取得部と、
前記印刷ジョブに基づいて画像データの印刷ページ数を消耗品使用数として算出する消耗品使用数算出部と、
前記トレイ情報と前記消耗品使用数とに基づいて使用する給紙トレイと画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成するラスター画像処理部と、
を備え、
前記トレイ情報の内から印刷ジョブにて指定された第1給紙トレイの前記トレイ情報と前記印刷ページ数とに基づいて、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数以下である場合には、
前記印刷ジョブの全印刷ページを前記第1給紙トレイの用紙の向きでラスター画像処理を実行すること
により画像データを生成し、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数より大きい場合には、
前記第1給紙トレイと用紙サイズが同じであって、前記第1給紙トレイとは用紙の向きが異なる第2給紙トレイがあるか否か検索し、
当該第2給紙トレイがある場合は、印刷ジョブの全ページをラスター画像処理するまでの間、
(1)ラスター画像処理により生成される画像データの物理ページ番号が第1給紙トレイの用紙残量以下である場合は、その物理ページ番号の原稿の向きを前記第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(2)前記画像データの物理ページ番号が前記第1給紙トレイの用紙残量よりも大きくなった場合は、前記第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行すること
により画像データを生成すること
を特徴とする画像データ生成装置。
An image data generation device that generates image data based on a print job,
A tray information acquisition unit that acquires tray information including at least the size, orientation, and remaining number of sheets of paper stacked on a plurality of paper feed trays of the printing apparatus ;
A consumables use number calculation unit that calculates the number of print pages of the image data as a consumables use number based on the print job;
A raster image processing unit that determines the paper feed tray and the direction of the image data to be used based on the tray information and the number of consumables used, and generates image data by performing raster image processing in the determined direction. ,
Bei to give a,
Based on the tray information of the first paper feed tray specified in the print job from the tray information and the number of printed pages,
The raster image processing unit,
When the number of printed pages is equal to or less than the number of remaining sheets in the first paper feed tray,
Performing raster image processing on all print pages of the print job in the direction of paper in the first paper feed tray;
Generates image data by
The raster image processing unit,
If the number of printed pages is larger than the number of remaining sheets in the first paper feed tray,
Searching whether there is a second paper tray having the same paper size as the first paper tray and having a different paper direction from the first paper tray;
If the second paper feed tray is present, all the pages of the print job are processed until raster image processing is performed.
(1) When the physical page number of the image data generated by the raster image processing is equal to or less than the remaining amount of paper in the first paper feed tray, the direction of the document of the physical page number is changed to the paper of the first paper supply tray. Perform raster image processing according to the orientation,
(2) When the physical page number of the image data is larger than the remaining amount of paper in the first paper tray, raster image processing is performed according to the direction of paper in the second paper tray.
Generating image data by
An image data generation device characterized by the above-mentioned.
印刷ジョブに基づいて画像データを生成する画像データ生成装置であって、
少なくとも印刷装置の複数の給紙トレイに積載される用紙のサイズ、向きおよび用紙残数を含むトレイ情報を取得するトレイ情報取得部と、
前記印刷ジョブに基づいて画像データの印刷ページ数を消耗品使用数として算出する消耗品使用数算出部と、
前記トレイ情報と前記消耗品使用数とに基づいて使用する給紙トレイと画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成するラスター画像処理部と、
を備え、
前記トレイ情報の内から印刷ジョブにて指定された第1給紙トレイの前記トレイ情報と前記印刷ページ数とに基づいて、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数以下である場合には、
前記印刷ジョブの全印刷ページを前記第1給紙トレイの用紙の向きでラスター画像処理を実行すること
により画像データを生成し、
前記ラスター画像処理部は、
前記印刷ページ数が前記第1給紙トレイの用紙残数より大きい場合には、
前記第1給紙トレイと用紙サイズが同じであって、前記第1給紙トレイとは用紙の向きが異なる第2給紙トレイがあるか否か検索し、
当該第2給紙トレイがある場合は、印刷ジョブの全ページをラスター画像処理するまでの間、
(1)ラスター画像処理により生成される画像データの物理ページ番号が前記第1給紙トレイの用紙残量から所定枚数減算した値以下である場合は、その物理ページ番号の原稿の向きを前記第1給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(2)前記画像データの物理ページ番号が前記第1給紙トレイの用紙残量から所定枚数減算した値から前記第1給紙トレイの用紙残量に対し所定枚数加算した値までの場合は、その物理ページ番号の原稿の向きを前記第1給紙トレイおよび前記第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行し、
(3)前記画像データの物理ページ番号が前記第1給紙トレイの用紙残量に対し所定枚数加算した値よりも大きくなった場合は、前記第2給紙トレイの用紙の向きに合わせてラスター画像処理を実行すること
により画像データを生成すること
を特徴とする画像データ生成装置。
An image data generation device that generates image data based on a print job,
A tray information acquisition unit that acquires tray information including at least the size, orientation, and remaining number of sheets of paper stacked on a plurality of paper feed trays of the printing apparatus;
A consumables use number calculation unit that calculates the number of print pages of the image data as a consumables use number based on the print job;
A raster image processing unit that determines the direction of the sheet feed tray and image data to be used based on the tray information and the number of consumables used, and generates image data by performing raster image processing in the determined direction. ,
With
Based on the tray information of the first paper feed tray specified in the print job from the tray information and the number of printed pages,
The raster image processing unit,
When the number of printed pages is equal to or less than the number of remaining sheets in the first paper feed tray,
Generating image data by performing raster image processing on all print pages of the print job in the direction of paper in the first paper feed tray;
The raster image processing unit,
If the number of printed pages is larger than the number of remaining sheets in the first paper feed tray,
Searching whether there is a second paper tray having the same paper size as the first paper tray and having a different paper direction from the first paper tray;
If the second paper feed tray is present, all the pages of the print job are processed until raster image processing is performed.
(1) If the physical page number of the image data generated by the raster image processing is equal to or less than a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first paper feed tray, the direction of the document of the physical page number is changed to the number of the document. Executes raster image processing according to the direction of paper in one paper tray,
(2) When the physical page number of the image data is from a value obtained by subtracting a predetermined number of sheets from the remaining amount of paper in the first sheet feeding tray to a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first sheet feeding tray, Performing raster image processing by matching the orientation of the document with the physical page number with the orientation of the paper in the first paper tray and the second paper tray;
(3) If the physical page number of the image data is larger than a value obtained by adding a predetermined number of sheets to the remaining amount of paper in the first paper feed tray, the raster is adjusted in accordance with the direction of paper in the second paper feed tray. An image data generation device, which generates image data by executing image processing.
印刷ジョブに基づいて画像データを生成する画像データ生成装置であって、
少なくとも印刷装置の複数の排紙トレイで用いられるステープラのステープル位置、およびステープル針の残数を含むトレイ情報を取得するトレイ情報取得部と、
前記印刷ジョブに基づいてステープルされるステープル数を消耗品使用数として算出する消耗品使用数算出部と、
前記トレイ情報と前記消耗品使用数とに基づいて使用する排紙トレイと画像データの向きを決定し、この決定した向きでラスター画像処理を実行することにより画像データを生成するラスター画像処理部と、
を備え、
第1のステープル位置にステープルするステープラが設けられた第1の排紙トレイと、前記第1のステープル位置とは異なる第2のステープル位置にステープルするステープラが設けられた第2の排紙トレイと、を備え、
前記ラスター画像処理部は、前記消耗品使用数算出部により算出された印刷ジョブにおける前記第1のステープル位置でステープルするのに必要となるステープル数が前記第1のステープル位置におけるステープル針の残数以上であり、前記第2のステープル位置におけるステープル針の残数未満である場合、前記第2の排紙トレイでステープルされる向きに前記画像データの向きを決定し、
前記消耗品使用数算出部により算出された印刷ジョブにおける前記第2のステープル位置でステープルするのに必要となるステープル数が前記第2のステープル位置におけるステープル針の残数以上であり、前記第1のステープル位置におけるステープル針の残数未満である場合、前記第1の排紙トレイでステープルされる向きに前記画像データの向きを決定する
ことを特徴とする画像データ生成装置。
An image data generation device that generates image data based on a print job,
A staple position of a stapler used in at least a plurality of paper output trays of the printing apparatus, and a tray information acquisition unit for acquiring tray information including the remaining number of staples,
A consumables use number calculation unit that calculates the number of staples stapled based on the print job as a consumables use number,
A raster image processing unit that determines a paper discharge tray to be used and the direction of image data based on the tray information and the number of consumables used, and executes raster image processing in the determined direction to generate image data; ,
With
A first discharge tray provided with a stapler for stapling at a first staple position, and a second discharge tray provided with a stapler for stapling at a second staple position different from the first staple position; ,
The raster image processing unit is configured to determine whether the number of staples required for stapling at the first staple position in the print job calculated by the consumables use number calculation unit is the remaining number of staples at the first staple position. As described above, when the number of staples remaining at the second staple position is less than the number of staples, the direction of the image data is determined so as to be stapled on the second paper discharge tray;
The number of staples required for stapling at the second staple position in the print job calculated by the consumables use number calculation unit is equal to or greater than the remaining number of staples at the second staple position; And determining the direction of the image data so as to be stapled on the first discharge tray when the number of staples is less than the remaining number of staples at the staple position.
JP2016020887A 2015-03-17 2016-02-05 Image data generation device Expired - Fee Related JP6649103B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US15/070,636 US9946503B2 (en) 2015-03-17 2016-03-15 Image data generation device with raster image processor
EP16160870.8A EP3070597A1 (en) 2015-03-17 2016-03-17 Image data generation device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015053294 2015-03-17
JP2015053294 2015-03-17

Publications (2)

Publication Number Publication Date
JP2016172435A JP2016172435A (en) 2016-09-29
JP6649103B2 true JP6649103B2 (en) 2020-02-19

Family

ID=57008641

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016020887A Expired - Fee Related JP6649103B2 (en) 2015-03-17 2016-02-05 Image data generation device

Country Status (1)

Country Link
JP (1) JP6649103B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022090387A (en) * 2020-12-07 2022-06-17 シャープ株式会社 Image forming device and image forming method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06297797A (en) * 1993-04-14 1994-10-25 Brother Ind Ltd Printing apparatus
JP3880250B2 (en) * 1999-07-15 2007-02-14 キヤノン株式会社 Sheet processing apparatus and image forming apparatus
JP4323624B2 (en) * 1999-07-21 2009-09-02 キヤノン株式会社 Sheet processing apparatus, control method, and image forming apparatus
JP2001175447A (en) * 1999-12-14 2001-06-29 Sharp Corp Printing device and printing method
JP2004325825A (en) * 2003-04-25 2004-11-18 Kyocera Mita Corp Image forming apparatus
JP2005024749A (en) * 2003-06-30 2005-01-27 Kyocera Mita Corp Image forming apparatus
US8639147B2 (en) * 2011-03-29 2014-01-28 Konica Minolta Laboratory U.S.A., Inc. Method and system for printing on pre-printed media and letterhead media
JP5874187B2 (en) * 2011-03-30 2016-03-02 ブラザー工業株式会社 Printing device

Also Published As

Publication number Publication date
JP2016172435A (en) 2016-09-29

Similar Documents

Publication Publication Date Title
US10379791B2 (en) Image forming apparatus capable of performing recovery printing
US20100044949A1 (en) Printer with plurality of paper receiving trays and paper discharge control method for the same
JP2010102398A (en) Printer driver program, printing controller and printing system
US9946503B2 (en) Image data generation device with raster image processor
US9216874B2 (en) Control apparatus, control method, and storage medium
JP5147596B2 (en) Printing apparatus and paper discharge control method in printing apparatus
JP6649103B2 (en) Image data generation device
US20140161477A1 (en) Image forming apparatus and control method
US10939007B2 (en) Information control apparatus and system, and non-transitory computer readable medium
US8885191B2 (en) Print control apparatus performing a finishing process after printing, print control method thereof, and computer-readable medium
JP4876791B2 (en) Image forming apparatus and program
US20190164027A1 (en) Information control apparatus, information control system, and non-transitory computer readable medium
US10954094B2 (en) Method of switching trays for feeding inter sheets in image forming apparatus
JP2010050891A (en) Image forming apparatus
JP6237573B2 (en) Image forming apparatus and image forming method
US10817762B2 (en) Printing device and non-transitory computer readable medium
JP2016068472A (en) Print control device, print control method and program
US9895858B2 (en) Sheet processing apparatus, method for controlling sheet processing apparatus, and storage medium
JP2016032898A (en) Printer
JP7336854B2 (en) Image forming apparatus and control method
JP2010260270A (en) Printer and printing system
JP2010032803A (en) Image forming apparatus equipped with post processor
JP2004004403A (en) Printer and print control method
JP5799588B2 (en) Printing apparatus and printing system
JP6249809B2 (en) Printing bookbinding device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190107

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191008

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191009

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191203

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20191218

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200116

R150 Certificate of patent or registration of utility model

Ref document number: 6649103

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees