JP3901373B2 - Print image processing device - Google Patents

Print image processing device Download PDF

Info

Publication number
JP3901373B2
JP3901373B2 JP36837598A JP36837598A JP3901373B2 JP 3901373 B2 JP3901373 B2 JP 3901373B2 JP 36837598 A JP36837598 A JP 36837598A JP 36837598 A JP36837598 A JP 36837598A JP 3901373 B2 JP3901373 B2 JP 3901373B2
Authority
JP
Japan
Prior art keywords
image data
data
page
image
print
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 - Lifetime
Application number
JP36837598A
Other languages
Japanese (ja)
Other versions
JP2000194528A (en
JP2000194528A5 (en
Inventor
浩司 石崎
Original Assignee
株式会社沖データ
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 株式会社沖データ filed Critical 株式会社沖データ
Priority to JP36837598A priority Critical patent/JP3901373B2/en
Publication of JP2000194528A publication Critical patent/JP2000194528A/en
Publication of JP2000194528A5 publication Critical patent/JP2000194528A5/ja
Application granted granted Critical
Publication of JP3901373B2 publication Critical patent/JP3901373B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、1つの文書中に縦長ページと横長ページとが混在している場合に、これらを複数ページずつ各1枚の印刷媒体上に連続して印刷するための制御を行う、印刷画像処理装置に関する。
【0002】
【従来の技術】
文字や画像、その他様々な情報を盛り込んだ文書を作成するアプリケーションは、必ずしも一定のサイズの一定の形式の用紙にのみ印刷を行うような文書のみを作成するとは限らない。例えば、最初の数ページはポートレート形式のページで、中間部分にランドスケープ形式のページが含まれ、更にポートレート形式のページが続くといった文書が作成されることがある。
【0003】
ポートレートというのは縦長ページの一種で、日本の規格でいえばA4判縦書きページに相当する。ランドスケープというのは横長ページの一種で、日本の規格でいえばA4判横書きページに相当する。このように、縦長ページと横長ページとが混在していたとしても、1ページ1枚の用紙に別々に印刷を行う場合には、プリンタドライバにおいて自動的に縦横変換が行われて連続的な印刷が可能になる。
【0004】
【発明が解決しようとする課題】
ところで、上記のような従来の技術には、次のような解決すべき課題があった。
プリンタで文書を印刷する場合に、2ページを1枚の用紙に並べて印刷する方法がある。このような場合、例えば2枚のポートレート形式のページをそれぞれ2分の1の面積に縮小し、1枚のポートレート形式のページに横に2枚並べて印刷をする。このような印刷は袋とじ印刷とも呼ばれている。アプリケーションの作成した文書は、プリンタドライバによってこのような編集がなされて、プリンタに供給される。
【0005】
しかしながら、上記のようにポートレート形式とランドスケープ形式のページが混在するような文書では、ポートレート形式のページが連続した場合に、2枚のページを1枚の用紙に印刷する処理を実行し、ポートレート形式からランドスケープ形式にページが切り替わったときには、これまで印刷をしていた用紙を排出し、新たな用紙に、その後に続くランドスケープ形式のページを2枚ずつ印刷するといった方法を採用していた。
【0006】
従って、例えばポートレート形式のページが3枚あって、これにランドスケープ形式のページが1枚続く場合には、1枚の用紙に2ページを印刷するとしたとき、最初のページにはポートレート形式のページが2枚、次のページにはポートレート形式のページが1枚、最後のページにはランドスケープ形式のページが1枚というように印刷されてしまう。従って、2枚のページには、それぞれ途中で1ページ分印刷されない空白部分が発生してしまう。複数のページを1枚の用紙に印刷する処理は、印刷する用紙を節約する目的で行われるから、このような印刷されない空白部分を残す制御は好ましくない。
【0007】
【課題を解決するための手段】
本発明は、以上の点を解決するために、次の構成を採用する。
〈構成1〉
縦長ページ印刷用の描画データ及び横長ページ印刷用の描画データからそれぞれ第1及び第2のイメージデータを生成するイメージ生成処理部を備え、該第1及び第2のイメージデータから1枚の印刷媒体に印刷を行うための印刷画像処理装置であって、前記印刷媒体の縦及び横の寸法に対応させた記憶領域が設定されている印刷データ編集部と、前記第1及び第2のイメージデータの一方のイメージデータを縮小して前記記憶領域の所定配列位置に格納すると共に、他方のイメージデータを縮小した後に前記記憶領域の他の配列位置に整合させるべく回転させて該他の配列位置に格納するイメージデータ変換部と、前記イメージデータ変換部により前記第1及び第2のイメージデータを縮小または縮小後回転し前記印刷データ編集部の記憶領域に記憶したイメージデータを読み出し画像形成部に出力するデータ送信処理部とを含むことを特徴とする印刷画像処理装置。
【0008】
〈構成2〉
請求項1に記載の印刷画像処理装置において、前記他方のイメージデータが縦長印刷用のデータで、前記他の配列位置が横長に設定されていると、前記イメージデータ変換部は前記他方のイメージデータを縮小して横長に配列すべく回転させることを特徴とする印刷画像処理装置。
【0009】
〈構成3〉
請求項1に記載の印刷画像処理装置において、前記他方のイメージデータが横長印刷用のデータで、前記他の配列位置が縦長に設定されていると、前記イメージデータ変換部は前記他方のイメージデータを縮小して縦長に配列すべく回転させることを特徴とする印刷画像処理装置。
【0010】
〈構成4〉
縦長ページ印刷用の描画データ及び横長ページ印刷用の描画データからそれぞれ第1及び第2のイメージデータを生成し、該第1及び第2のイメージデータから1枚の印刷媒体に印刷を行うための印刷画像処理方法であって、記憶部に印刷データ編集部として前記印刷媒体の縦及び横の寸法に対応させた記憶領域を設定すること、前記第1及び第2のイメージデータの一方のイメージデータを縮小して前記記憶領域の所定配列位置に格納すること、前記第1及び第2のイメージデータの他方のイメージデータを縮小した後に、前記記憶領域の他の配列位置に整合させるべく回転させて該他の配列位置に格納すること、前記第1及び第2のイメージデータを縮小または縮小後回転し記憶したイメージデータを前記印刷データ編集部の前記記憶領域から読み出し画像形成部に出力することを特徴とする印刷画像処理方法。
【0011】
【発明の実施の形態】
以下、本発明の実施の形態を具体例を用いて説明する。
〈具体例1〉
図1は、具体例1の装置のブロック図である。
図において、アプリケーション1の出力する印刷文書2は、グラフィックデバイスインタフェース3に入力するよう構成されている。また、グラフィックデバイスインタフェース3の出力は、プリンタドライバ4を介してプリンタ6に出力されるように構成されている。
【0012】
プリンタドライバ4には、イメージ生成処理部4a、配列変換処理部4b、縦長イメージバッファ4c、横長イメージバッファ4d及びデータ送信処理部4eが設けられている。以下、図示しない上位装置のアプリケーション1が複数のページから構成される文書2を生成して、その印刷を要求した場合について説明をする。このアプリケーション1は、印刷要求コマンドとともに、文書を印刷するための描画データをグラフィックデバイスインタフェース3に出力する。
【0013】
ここでは、図に示すように、印刷文書2が3枚の縦長ページ即ちポートレート形式のページ2a,2b,2cと、1枚の横長ページ即ちランドスケープ形式のページ2dによって構成されるものとする。グラフィックデバイスインタフェース3は、アプリケーション1が印刷文書2を印刷するために呼び出すグラフィック描画関数を、出力デバイスに依存した出力に変換する処理を行う部分である。出力デバイスというのは、プリンタ6のことである。プリンタドライバ4は、この描画データを受け入れて印刷用のイメージデータを生成する部分である。こうして生成されたイメージデータは、印刷データ編集部5に編集された状態で記憶される。
【0014】
アプリケーション1やグラフィックデバイスインタフェース3、プリンタドライバ4等は、例えばパーソナルコンピュータのOS(オペレーティングシステム)と共に動作するインタフェース用プログラムにより構成され、印刷データ編集部5は、パーソナルコンピュータの記憶装置上に展開された記憶領域である。
【0015】
プリンタドライバ4とプリンタ6とは、図示しないインタフェースケーブル等によって相互に接続されているものとする。プリンタドライバ4に設けられたイメージ生成処理部4aは、グラフィックデバイスインタフェース3の出力する描画データから印刷文書の各ページに相当するイメージデータを生成し、縦長イメージバッファ4cあるいは横長イメージバッファ4dに格納する処理を行う部分である。なお、必要に応じて、イメージの拡大縮小も行う。縦長イメージバッファ4cと横長イメージバッファ4dは、1ページ分のイメージデータを記憶しておく記憶領域から構成される。なお、縦長イメージバッファ4cと横長イメージバッファ4dは、同時に使用することがないため、同一の記憶領域を兼用する。
【0016】
この例では、プリンタドライバ4に順に入力する印刷文書2の各ページ2a,2b,2c,2dのイメージデータを、縦長イメージバッファ4cあるいは横長イメージバッファ4dに格納すると共に、これらを2ページずつ1枚の用紙に印刷するよう制御する。印刷データ編集部5には、その用紙イメージ5aと5dとを示した。用紙イメージ5aには、ポートレート形式の2枚のページ5b,5cが割り付けられ、用紙イメージ5dには、ポートレート形式のページ5eと、ランドスケープ形式のページ5fとが割り付けられている。
【0017】
データ送信処理部4eは、印刷データ編集部5に記憶された印刷データを順に読み出してプリンタ6に転送する制御を行う部分である。この場合のデータ読み出しは、用紙イメージ5a、5dの、上から下に向かって1ライン毎に順番に行う。1ラインというのは、縦長の用紙イメージの水平方向(主走査方向)のビット列のことである。従って、この順番に各ページのイメージデータを印刷データ編集部5に記憶させる必要がある。ところが、ポートレート形式のデータとランドスケープ形式のデータとではイメージデータの配列が異なる。
【0018】
従来、ポートレート形式のページとランドスケープ形式のページとが混在する文書を2ページ1組で印刷する場合、例えばポートレート形式のページを縮小しランドスケープ形式に配列変換してから、1ラインずつ順番に印刷データ編集部5に転送して記憶させ、ランドスケープ形式のページへ印刷対象が切り替わるとき、一旦これまで印刷をした用紙を排出する。次に、ランドスケープ形式のページを縮小して、そのまま1ラインずつ順番に印刷データ編集部5に転送する動作を開始する。すなわち、同一の用紙にポートレート形式のページとランドスケープ形式のページとを共に印刷することはしていなかった。
【0019】
本発明では、図に示す配列変換処理部4bを利用することによって、形式の異なるページが混在する場合でもこれらのページを1枚の用紙に印刷できるようにした。配列変換処理部4bは、ポートレート形式のページのデータを入力すると、ランドスケープ形式のページのデータに配列変換して出力する処理を行う部分である。また、ランドスケープ形式のページのデータを入力すると、ポートレート形式のページのデータに配列変換して出力する処理を行う部分である。この配列変換処理は、後で説明するように、ポートレート形式のページのデータを縦に1ライン分ずつ切り取って横方向に並べ、ランドスケープ形式のページのデータにする処理である。こうした配列変換処理自体は従来の画像処理技術で広く知られているため、その詳細な動作説明は省略する。
【0020】
図2に、具体例1の装置の動作概略説明図を示す。
まず、図に示すポートレート形式のページ2cは、他のポートレート形式のページ2a,2bと同様に、上から順に矢印の方向に1ラインずつ処理されるようデータが配列されている。図中には、各ラインが各ページに罫線状に表示されている。まず、ポートレート形式のページ2cが縦と横、それぞれ1/√2にそのまま縮小されたイメージデータ2gに変換される。図1に示した配列変換処理部4bは、このイメージデータ2gを左端から1ラインずつ矢印の方向に順番に切り出すことによって、図2に示す変換後のイメージデータ5eを生成する。このイメージデータ5eが上から1ライン分ずつ矢印の方向に順番に読み出されて、用紙イメージ5dの上に貼り付けられる。
【0021】
一方、ランドスケープ形式のページ2dは、図2に示すように、上から1ライン分ずつ順に読み出される形式のデータである。これは、ポートレート形式のページと同様に、縦横共に1/√2に縮小され、イメージデータ5fが生成される。このイメージデータ5fは、矢印の方向に順番に1ライン分ずつ読み出される形式のイメージデータである。従って、これはそのままこの順に読み出されて用紙イメージ5d上に貼り付けられる。
【0022】
こうして編集された用紙イメージ5d上のイメージデータ5e,5fは、データ送信処理部4eによって、上から1ライン分ずつ読み出されてプリンタに転送される。このような処理を行うことによって、ポートレート形式とランドスケープ形式のページが混在した文書を2ページずつ各1枚の用紙に隙間無く連続的に印刷できる。
【0023】
図3には、上記のような具体例1の装置の詳細な動作フローチャートを示す。まず、図1に示すアプリケーション1は、生成した印刷文書2をページ毎に区分して、1ページ分ずつグラフィックデバイスインタフェース3に供給する。プリンタドライバ4が、1ページ分の描画データをグラフィックデバイスインタフェース3から受信すると、イメージ生成処理部4aにおいて、その描画データがイメージデータに変換される。このとき、始めに図3に示すパラメータnを“1”にセットしておく(ステップS1)。このnは、文書中のページをカウントするためのパラメータである。
【0024】
ステップS2において、読み出された描画データが、イメージ生成処理部4aによりイメージデータに変換される。次に、ステップS3において、プリンタドライバ4は、イメージ生成処理部4aの生成したイメージデータに対し、その縮小率を求めて縮小処理を行う(ステップS4)。ここで、そのページがポートレート形式かどうかを判断する(ステップS5)。
【0025】
ポートレート形式であればステップS6に進み、縮小したイメージデータを縦長イメージバッファ4cに格納する。そして、ステップS7において、配列変換処理部4bは、図2を用いて説明したようなランドスケープ形式への配列変換を行う。ステップS8では、変換後の1ページ分のイメージデータをデータ編集部5中に編集してから、後で図4により説明する要領でプリンタに送信する。
【0026】
縮小するイメージデータがポートレートでない場合には、ステップS5からステップS9に進み、縮小したイメージデータを横長イメージバッファ4dに格納する。そして、ステップS10に進み、その1ページ分のイメージデータをデータ編集部5中に編集してから、プリンタへの送信を行う。次の、ステップS11においては、最終ページの処理が終了したかどうかを判断する。
【0027】
最終ページの処理が終了していなければ次のステップS12に進む。そして、そのページが偶数ページの処理かどうかを判断する。1枚の用紙に2ページずつ印刷を行う場合、偶数ページの印刷を終了すると、新たな印刷用紙をフィードする処理、即ち、プリンタ6で印刷済みの用紙を排出する処理を行う。プリンタドライバ4は、そのための用紙排出コマンドをプリンタに送信する(ステップS13)。奇数ページの処理の場合にはこのような処理は必要ないのでステップS14にジャンプする。
【0028】
ステップS14では、nをインクリメントし、次のページの処理に進む。即ち、ステップS2に戻り、再び次のページの描画データを読み出す。最終ページまで処理を終了すると、ステップS11からステップS15に進み、用紙排出コマンドを送信して、全ての処理を終了する。
【0029】
図4には、図3のステップS8あるいはステップS10におけるイメージデータの送信動作フローチャートを示す。
まず、ステップS1において、nが偶数か奇数かを判断する。nが偶数の場合と奇数の場合とでは、図1に示した印刷データ編集部5の用紙イメージ5aあるいは5d上への割り付け位置が異なるから処理を分けたのである。nが奇数の場合には、ステップS1からステップS2に進み、編集開始点を上段左上隅に指定する。即ち、図2の用紙イメージ5d上の、点X1を編集開始点に指定する。偶数ページの場合には、ステップS3に進み、編集開始点を下段左上隅に指定する。即ち、図2に示した用紙イメージ5d上の、点X2を編集開始点に指定する。こうして、縦長イメージバッファ4cまたは4dに格納されたイメージデータが印刷データ編集部5の用紙イメージ5aあるいは5d中に編集される。
【0030】
次に、印刷データ編集部5に編集された用紙1枚分のイメージデータをプリンタに送信する。この場合、直前の処理が偶数ページの処理か奇数ページの処理かが判断される(ステップS4)。奇数ページの処理ならば、用紙の残り半分に次のページのイメージデータを編集してから印刷をするので、この図の処理を抜けて図3のステップS11に進む。偶数ページの処理が済んだときなら、プリンタへのイメージデータ送信を開始する。先ず、パラメータmを“1”にセットし(ステップS5)、mライン目のデータ読み出しを実行する(ステップS6)。即ち、印刷データ編集部5中の印刷イメージ5aあるいは5dの1ライン目から順に、用紙1枚分のイメージデータをプリンタ6に順に転送する。
【0031】
ステップS6では、mが“1”かどうかを判断する。最初のラインの場合には、プリンタに予め印刷情報を送信する(ステップS7)。印刷情報というのは、印刷用媒体の種類を指定したり、印刷用媒体である用紙の余白等を指定する制御情報のことである。2ライン目以降の場合には、この処理をジャンプし、ステップS8に進み、mライン目のデータを送信する。ステップS9では、mが最終ラインかどうかを判断し、最終ラインでなければステップS10に進み、次のラインについての処理に移る。即ち、ステップS5からステップS10の処理を繰り返すことによって、全てのラインについて、印刷データ編集部5中イメージデータをプリンタへ送信する処理を実行する。全てのラインの送信が終了すると、この図の処理を抜けて図3のステップS11に進む。
【0032】
なお、上記の印刷画像処理装置は、グラフィックデバイスインタフェース3と、プリンタドライバ4と、印刷データ編集部5とにより構成した。通常、グラフィックデバイスインタフェース3とプリンタドライバ4は上位装置側にインストールされたコンピュータプログラムにより構成される。また、印刷データ編集部5は上位装置側のスプーラと呼ばれるデータファイル記憶領域により構成される。しかしながら、これらと同等の機能を持つソフトウェアやハードウェアを、プリンタ側に設けるようにしてもよく、また、一部の機能を上位装置側に配置し、残りの機能をプリンタ側に配置するようにしてもよい。
【0033】
さらに、上記の例では、縦長ページをポートレート、横長ページをランドスケープとして、これらが混在する文書を用紙上に連続的に印刷するケースを説明した。しかしながら、縦長ページや横長ページの形式やサイズ、1枚の印刷用紙への各ページの割り付け方法や割り付け数、印刷用媒体の種類等は、自由に変更して差し支えない。
【0034】
また、上記の例では、描画データをイメージデータに変換してから、サイズを縮小し、次にそのデータ配列を変換する例を説明したが、描画データをイメージデータに変換する処理と、サイズを縮小する処理と、データ配列変換をする処理とを、同時に行うようにしても差し支えない。もちろん、これらの処理の順序を適当に入れ替えても差し支えない。
以上の点は、後述する各具体例についても、同様である。
【0035】
〈具体例1の効果〉
以上のように、プリンタドライバで印刷用のイメージデータを生成する場合に、文書中の、例えば2枚1組のページを、それぞれ1枚の印刷用媒体上の印刷領域に割り付けて、その1組のページに含まれるいずれかのページのイメージデータの配列が、印刷媒体上に割り付けられた印刷領域にそのページを印刷する場合に、プリンタに供給するイメージデータのデータ配列と異なる場合には、配列変換処理部においてデータ配列を変換して編集を行うようにしたので、ランドスケープとポートレートのページの混在した一組のページを1枚の印刷用媒体に連続的に印刷することが可能になる。
【0036】
〈具体例2〉
図5は、具体例2の装置のブロック図である。
図7の印刷文書2に示すように、具体例2では、1ページ目、2ページ目、3ページ目がランドスケープ形式のページ2a,2b,2cで、4ページ目がポートレート形式のページ2dの場合の制御を説明する。装置自体の構成は具体例1と変わらないが、印刷データ編集部5中の用紙イメージ5a,5d中に割りつけられたイメージデータの内容が異なる。
【0037】
図6は具体例2の装置の動作概略説明図である。
図の中央部に示すランドスケープ形式のページ2cは、他のランドスケープ形式のページ2a,2bと同様に、上から順に矢印の方向に1ラインずつ処理されるようデータが配列されている。図中には、各ラインが各ページに罫線状に表示されている。ランドスケープ形式のページ2cが縦と横、それぞれ1/√2にそのまま縮小されたイメージデータ5eに変換される。このイメージデータ5eは、矢印の方向に順番に1ライン分ずつ読み出される形式のイメージデータである。従って、これはそのままこの順に読み出されて用紙イメージ5dの上半分に貼り付けられる。
【0038】
一方、ポートレート形式のページ2dは、図の上部に示すように、上から1ライン分ずつ順に読み出される形式のデータである。これは、ランドスケープ形式のページと同様に、縦横共に1/√2に縮小され、イメージデータ2gが生成される。図1に示した配列変換処理部4bは、このイメージデータ2gを左端から1ラインずつ矢印の方向に順番に切り出すことによって、変換後のイメージデータ5fを生成する。このイメージデータ5fが上から1ライン分ずつ矢印の方向に順番に読み出されて、用紙イメージ5dの下半分に貼り付けられる。
【0039】
こうして編集された用紙イメージ5d上のイメージデータ5e,5fは、図5のデータ送信処理部4eによって、上から1ライン分ずつ読み出されてプリンタに転送される。
装置全体の動作や、印刷データ編集部5に編集されたデータのプリンタへの送信処理は、既に図3や図4を用いて説明したものとほぼ同様のため、重複する説明を省略する。
【0040】
〈具体例2の効果〉
以上のような処理を行うことによって、ランドスケープ形式の続いた後にポートレート形式のページが混在する文書を2ページずつ各1枚の用紙に隙間無く連続的に印刷できる。
【0041】
〈具体例3〉
図7は、具体例の装置のブロック図である。
具体例3は、具体例1と同様に、1ページ目と2ページ目と3ページ目とがポートレート形式のページ2a,2b,2cで、4ページ目がランドスケープ形式のページ2dであって、印刷のための原点座標が用紙の左下になるような場合の制御を説明する。なお、具体例1では、用紙の原点座標が用紙の右上になるようにした。従って、この具体例では、装置自体の構成は具体例1と変わらないが、データの配列変換の手順が具体例1と異なってくる。図7の縦長イメージバッファ4c中のイメージデータは、具体例1とは逆の方向に配列変換されてランドスケープ形式のデータになる。そこで、そのイメージデータを一時格納する記憶領域1を設けた。
【0042】
図8は具体例の装置の動作概略説明図である。
まず、図に示すポートレート形式のページ2cは、他のポートレート形式のページ2a,2bと同様に、上から順に矢印の方向に1ラインずつ処理されるようデータが配列されている。図中には、各ラインが各ページに罫線状に表示されている。まず、ポートレート形式のページ2cが縦と横、それぞれ1/√2にそのまま縮小されたイメージデータ2gに変換される。図7に示した配列変換処理部4bは、このイメージデータ2gを右端から1ラインずつ矢印の方向に順番に切り出すことによって、変換後のイメージデータ5eを生成する。具体例1では、この部分で、イメージデータを左端から順に読み出して配列変換処理をした。具体例3はこの読み出し順が異なる。このイメージデータ5eが上から1ライン分ずつ矢印の方向に順番に読み出されて、用紙イメージ5dの上に貼り付けられる。
【0043】
一方、ランドスケープ形式のページ2dは、図2に示すように、上から1ライン分ずつ順に読み出される形式のデータである。これは、ポートレート形式のページと同様に、縦横共に1/√2に縮小され、イメージデータ5fが生成される。このイメージデータ5fは、矢印の方向に順番に1ライン分ずつ読み出される形式のイメージデータである。従って、これはそのままこの順に読み出されて用紙イメージ5d上に貼り付けられる。
【0044】
こうして編集された用紙イメージ5d上のイメージデータ5e,5fは、データ送信処理部4eによって、上から1ライン分ずつ読み出されてプリンタに転送される。
装置全体の動作や、印刷データ編集部5に編集されたデータのプリンタへの送信処理は、既に図3や図4を用いて説明したものとほぼ同様のため、重複する説明を省略する。
【0045】
〈具体例3の効果〉
以上のような処理を行うことによって、ポートレート形式とランドスケープ形式のページが混在した文書を、印刷のための原点座標が用紙の左下になるようにして、2ページずつ各1枚の用紙に隙間無く連続的に印刷できる。
【0046】
具体例4〉
図9は、具体例の装置のブロック図である。
この具体例では、具体例1と同様、1ページ目、2ページ目、3ページ目がポートレート形式のページ2a,2b,2cで、4ページ目がランドスケープ形式のページ2dの場合に、4ページを一組にして、1枚の用紙に印刷する動作を説明する。この処理中、用紙イメージ5aの右上と右下に割りつけたポートレート形式のイメージデータ5c,5dは、編集処理の都合上、記憶領域1に一時格納される。
【0047】
図10は具体例の装置の動作概略説明図である。
まず、図の上部に示すポートレート形式のページ2dは、上から順に矢印の方向に1ラインずつ処理されるようデータが配列されている。図中には、各ラインが各ページに罫線状に表示されている。このポートレート形式のページ2dが、縦と横、それぞれ1/√2にそのまま縮小されたイメージデータ5dに変換される。このイメージデータ5dは、矢印の方向に順番に1ライン分ずつ読み出される形式のイメージデータである。従って、これはそのままこの順に読み出されて用紙イメージ5aの左下の領域に貼り付けられる。
【0048】
一方、ランドスケープ形式のページ2cは、他のランドスケープ形式のページ2a,2bと同様に、図2に示すように、上から1ライン分ずつ順に読み出される形式のデータである。これは、ポートレート形式のページと同様に、縦横共に1/√2に縮小され、イメージデータ2eが生成される。図9に示した配列変換処理部4bは、このイメージデータ2eを左端から1ラインずつ矢印の方向に順番に切り出すことによって、変換後のイメージデータ5eを生成する。このイメージデータ5eが上から1ライン分ずつ矢印の方向に順番に読み出されて、用紙イメージ5aの右下の領域に貼り付けられる。
【0049】
こうして編集された用紙イメージ5a上のイメージデータ5b,5c,5e,5fは、具体例1から3の用紙イメージ5a上のイメージデータ5e,5fに相当する。データ送信処理部4eによって、具体例1から3と同様にして、上から1ライン分ずつ読み出されてプリンタに転送される。
【0050】
装置全体の動作や、印刷データ編集部5に編集されたデータのプリンタへの送信処理は、具体例1から3の用紙イメージ5a上のイメージデータ5e,5fを送信するための、図3や図4を用いて説明したものとほぼ同様である。なお、図3のステップS7はステップS6の次の位置からステップS9の次の位置に移動する。即ち、イメージデータがランドスケープならば、ポートレートへの変換処理を行う。イメージデータがポートレートならば、配列変換はしない。
【0051】
また、図3のステップS12の「偶数ページか?」という判断は、1枚の用紙の4ページ目かという判断になる。図4のステップS1のnが偶数かという判断は、nが1から4のうちのいくつかという判断になる。そして、図3のステップS2やステップS3の代わりに、nが1なら、用紙の左上に、1が2なら用紙の右上に、nが3なら用紙の左下に、nが4なら用紙の右下にイメージデータを編集するようなステップが挿入される。その他の部分は変わらないので、重複する説明を省略する。
【0052】
〈具体例4の効果〉
以上のような処理を行うことによって、ポートレート形式とランドスケープ形式のページが混在した文書を4ページずつ各1枚の用紙に隙間無く連続的に印刷できる。
【0053】
〈具体例5〉
図11は、具体例5の装置のブロック図である。
この具体例では、1ページ目、2ページ目、3ページ目がランドスケープ形式のページ2a,2b,2cで、4ページ目がポートレート形式のページ2dであって、4ページを一組にして、1枚に印刷する場合の出力方法を説明する。具体例4では、用紙の原点座標が用紙の左下になるようにした。この例は、用紙の原点座標が用紙の右上になるような場合の制御を説明する。なお、この具体例の処理を行う場合、処理の都合上イメージデータを一時格納する3ページ分の記憶領域1、2を設けた。なお、これらの記憶領域の設定は、イメージデータの縮小や、配列変換、用紙イメージ上への割り付け方法、編集手順等によって任意に変更できる。
【0054】
図12は具体例5の装置の動作概略説明図である。
まず、図の上部に示すポートレート形式のページ2dは、上から順に矢印の方向に1ラインずつ処理されるようデータが配列されている。図中には、各ラインが各ページに罫線状に表示されている。このポートレート形式のページ2dが、縦と横、それぞれ1/√2にそのまま縮小されたイメージデータ5dに変換される。このイメージデータ5dは、矢印の方向に順番に1ライン分ずつ読み出される形式のイメージデータである。従って、これはそのままこの順に読み出されて用紙イメージ5aの左下の領域に貼り付けられる。
【0055】
一方、ランドスケープ形式のページ2cは、他のランドスケープ形式のページ2a,2bと同様に、図2に示すように、上から1ライン分ずつ順に読み出される形式のデータである。これは、ポートレート形式のページと同様に、縦横共に1/√2に縮小され、イメージデータ2eが生成される。図9に示した配列変換処理部4bは、このイメージデータ2eを右端から1ラインずつ矢印の方向に順番に切り出すことによって、変換後のイメージデータ5eを生成する。具体例4と異なるのはこの部分である。このイメージデータ5eが上から1ライン分ずつ矢印の方向に順番に読み出されて、用紙イメージ5aの右下の領域に貼り付けられる。
【0056】
こうして編集された用紙イメージ5a上のイメージデータ5b,5c,5e,5fは、具体例1から3の用紙イメージ5a上のイメージデータ5e,5fに相当する。データ送信処理部4eによって、具体例1から3と同様にして、上から1ライン分ずつ読み出されてプリンタに転送される。以下の処理は具体例4と同様である。
【0057】
装置全体の動作や、印刷データ編集部5に編集されたデータのプリンタへの送信処理は、具体例1から3の用紙イメージ5a上のイメージデータ5e,5fを送信するための、図3や図4を用いて説明したものとほぼ同様である。なお、図3のステップS7はステップS6の次の位置からステップS9の次の位置に移動する。即ち、イメージデータがランドスケープならば、ポートレートへの変換処理を行う。イメージデータがポートレートならば、配列変換はしない。
【0058】
また、図3のステップS12の「偶数ページか?」という判断は、1枚の用紙の4ページ目かという判断になる。図4のステップS1のnが偶数かという判断は、nが1から4のうちのいくつかという判断になる。そして、図3のステップS2やステップS3の代わりに、nが1なら、用紙の左上に、1が2なら用紙の右上に、nが3なら用紙の左下に、nが4なら用紙の右下にイメージデータを編集するようなステップが挿入される。その他の部分は変わらないので、重複する説明を省略する。
【0059】
〈具体例5の効果〉
以上のような処理を行うことによって、ポートレート形式とランドスケープ形式のページが混在した文書を4ページずつ、各1枚の用紙に任意の方向に向けて、隙間無く連続的に印刷できる。
【図面の簡単な説明】
【図1】具体例1の装置のブロック図である。
【図2】具体例1の装置の動作概略説明図である。
【図3】具体例1の動作フローチャートである。
【図4】描画データ送信動作フローチャートである。
【図5】具体例2の装置のブロック図である。
【図6】具体例2の装置の動作概略説明図である。
【図7】具体例3の装置のブロック図である。
【図8】具体例3の装置の動作概略説明図である。
【図9】具体例4の装置のブロック図である。
【図10】具体例4の装置の動作概略説明図である。
【図11】具体例5の装置のブロック図である。
【図12】具体例5の装置の動作概略説明図である。
【符号の説明】
1 アプリケーション
2 印刷文書
2a,2b,2c ポートレート(縦長ページ)
2d ランドスケープ(横長ページ)
3 グラフィックデバイスインタフェース
4 プリンタドライバ
4a イメージ生成処理部
4b 配列変換処理部
4c 縦長イメージバッファ
4d 横長イメージバッファ
4e データ送信処理部
5 印刷データ編集部
6 プリンタ
[0001]
BACKGROUND OF THE INVENTION
The present invention provides a print image processing for performing control to continuously print a plurality of pages on a single print medium each when a long page and a wide page are mixed in one document. Relates to the device.
[0002]
[Prior art]
An application that creates a document including characters, images, and other various information does not necessarily create only a document that is printed only on a certain size paper of a certain size. For example, a document may be created in which the first few pages are portrait format pages, the middle portion includes a landscape format page, and the portrait format page continues.
[0003]
A portrait is a type of portrait page, which corresponds to an A4 size portrait page in the Japanese standard. A landscape is a type of landscape page, which corresponds to an A4 size landscape page in Japanese standards. As described above, even when a portrait page and a landscape page are mixed, when printing is performed separately on one sheet of paper, the printer driver automatically performs portrait and landscape conversion and continuous printing. Is possible.
[0004]
[Problems to be solved by the invention]
By the way, the conventional techniques as described above have the following problems to be solved.
When printing a document with a printer, there is a method of printing two pages side by side on a single sheet. In such a case, for example, two portrait-format pages are each reduced to a half area, and two portrait pages are printed side by side on one portrait-format page. Such printing is also called bag binding printing. The document created by the application is edited by the printer driver and supplied to the printer.
[0005]
However, in a document in which a portrait format page and a landscape format page are mixed as described above, when the portrait format page is continuous, a process of printing two pages on one sheet is executed. When the page was switched from portrait format to landscape format, the paper that had been printed so far was ejected, and the following landscape format pages were printed on new paper two by two. .
[0006]
Thus, for example, if there are three portrait-format pages and this is followed by one landscape-format page, when two pages are printed on one sheet, the first page is a portrait-format page. Two pages are printed, the next page is printed with one portrait page, and the last page is printed with one landscape page. Accordingly, a blank portion that is not printed for one page occurs in the middle of the two pages. Since the process of printing a plurality of pages on one sheet is performed for the purpose of saving the sheet to be printed, such control for leaving a blank portion that is not printed is not preferable.
[0007]
[Means for Solving the Problems]
  The present invention adopts the following configuration in order to solve the above points.
<Configuration 1>
  An image generation processing unit for generating first and second image data from drawing data for printing a vertically long page and drawing data for printing a horizontally long page, respectively, and one print medium from the first and second image data A print image processing apparatus for performing printing on a print data editing unit in which storage areas corresponding to vertical and horizontal dimensions of the print medium are set; and the first and second image data One image data is reduced and stored in a predetermined array position in the storage area, and the other image data is reduced and then rotated to be aligned with another array position in the storage area and stored in the other array position. An image data conversion unit that performs image data conversion, and the image data conversion unit reduces the first and second image data, or rotates the image data after reduction, and stores the print data editing unit. Printing an image processing apparatus which comprises a data transmission unit for outputting the image forming section reads out the image data stored in the band.
[0008]
<Configuration 2>
  The print image processing apparatus according to claim 1,When the other image data is data for portrait printing and the other arrangement position is set to landscape, the image data conversion unit rotates the image data to reduce and arrange the other image data horizontally. A print image processing apparatus.
[0009]
<Configuration 3>
  The print image processing apparatus according to claim 1,When the other image data is data for landscape printing and the other arrangement position is set to be vertically long, the image data conversion unit rotates the image data to reduce the other image data and arrange it vertically. A print image processing apparatus.
[0010]
<Configuration 4>
  First and second image data are generated from drawing data for printing a portrait page and drawing data for printing a landscape page, respectively, and printing on one print medium from the first and second image data A print image processing method, wherein a storage area corresponding to vertical and horizontal dimensions of the print medium is set as a print data editing unit in the storage unit, and one of the first and second image data Is reduced and stored in a predetermined array position in the storage area, and after the other image data of the first and second image data is reduced, the image data is rotated to be aligned with the other array position in the storage area. The image data stored in the other arrangement position, the first image data and the second image data reduced or rotated after being reduced and stored, is stored in the storage area of the print data editing unit. Printing an image processing method and outputting the read image forming unit from.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described using specific examples.
<Specific example 1>
FIG. 1 is a block diagram of the apparatus of the first specific example.
In the figure, a print document 2 output by an application 1 is configured to be input to a graphic device interface 3. The output of the graphic device interface 3 is configured to be output to the printer 6 via the printer driver 4.
[0012]
The printer driver 4 includes an image generation processing unit 4a, an array conversion processing unit 4b, a vertically long image buffer 4c, a horizontally long image buffer 4d, and a data transmission processing unit 4e. Hereinafter, a case where the application 1 of the host device (not shown) generates the document 2 composed of a plurality of pages and requests the printing thereof will be described. The application 1 outputs drawing data for printing the document to the graphic device interface 3 together with the print request command.
[0013]
Here, as shown in the figure, it is assumed that the print document 2 is composed of three vertically long pages, that is, portrait-type pages 2a, 2b, and 2c, and one horizontally long page, that is, a landscape-type page 2d. The graphic device interface 3 is a part that performs processing for converting a graphic drawing function that the application 1 calls to print the print document 2 into an output that depends on the output device. The output device is the printer 6. The printer driver 4 is a part that receives the drawing data and generates image data for printing. The image data generated in this way is stored in the print data editing unit 5 in an edited state.
[0014]
The application 1, the graphic device interface 3, the printer driver 4, and the like are configured by, for example, an interface program that operates with the OS (operating system) of the personal computer, and the print data editing unit 5 is expanded on the storage device of the personal computer. It is a storage area.
[0015]
Assume that the printer driver 4 and the printer 6 are connected to each other by an interface cable (not shown). The image generation processing unit 4a provided in the printer driver 4 generates image data corresponding to each page of the print document from the drawing data output from the graphic device interface 3, and stores the image data in the vertical image buffer 4c or the horizontal image buffer 4d. This is the part that performs processing. Note that the image is enlarged or reduced as necessary. The vertically long image buffer 4c and the horizontally long image buffer 4d are composed of storage areas for storing image data for one page. Note that the vertically long image buffer 4c and the horizontally long image buffer 4d are not used at the same time, and thus share the same storage area.
[0016]
In this example, the image data of each page 2a, 2b, 2c, and 2d of the print document 2 that is sequentially input to the printer driver 4 is stored in the vertical image buffer 4c or the horizontal image buffer 4d, and each of these two pages is stored one by one. Control to print on other paper. The print data editing unit 5 shows the paper images 5a and 5d. Two pages 5b and 5c in portrait format are allocated to the paper image 5a, and a page 5e in portrait format and a page 5f in landscape format are allocated to the paper image 5d.
[0017]
The data transmission processing unit 4 e is a part that performs control for sequentially reading out the print data stored in the print data editing unit 5 and transferring it to the printer 6. Data reading in this case is sequentially performed for each line from the top to the bottom of the paper images 5a and 5d. One line is a bit string in the horizontal direction (main scanning direction) of a vertically long paper image. Therefore, it is necessary to store the image data of each page in the print data editing unit 5 in this order. However, the image data arrangement differs between the portrait format data and the landscape format data.
[0018]
Conventionally, when a document in which a portrait format page and a landscape format page are mixed is printed as a set of two pages, for example, the portrait format page is reduced and rearranged into a landscape format, and then one line at a time. The data is transferred to the print data editing unit 5 and stored. When the print target is switched to a landscape page, the paper that has been printed is discharged. Next, the operation of reducing the landscape format page and transferring it to the print data editing unit 5 in order line by line is started. That is, the portrait format page and the landscape format page are not printed together on the same sheet.
[0019]
In the present invention, by using the array conversion processing unit 4b shown in the figure, even when pages of different formats coexist, these pages can be printed on one sheet of paper. The array conversion processing unit 4b is a part that, when the portrait format page data is input, converts the layout data into landscape format page data and outputs the data. In addition, when landscape page data is input, it is a part that performs a process of converting the data into a portrait page data and outputting it. As will be described later, this array conversion process is a process in which portrait-format page data is cut vertically by one line and arranged in the horizontal direction to generate landscape-format page data. Since such an array conversion process itself is widely known in the conventional image processing technology, a detailed description of its operation is omitted.
[0020]
FIG. 2 is a schematic diagram for explaining the operation of the apparatus according to the first specific example.
First, the portrait-format page 2c shown in the figure is arranged so that data is processed line by line in the direction of the arrow in order from the top, similarly to the other portrait-format pages 2a and 2b. In the figure, each line is displayed as a ruled line on each page. First, the portrait-format page 2c is converted into image data 2g that has been reduced to 1 / √2 in the vertical and horizontal directions. The array conversion processing unit 4b shown in FIG. 1 generates the converted image data 5e shown in FIG. 2 by cutting out the image data 2g one line at a time from the left end in the direction of the arrow. The image data 5e is sequentially read out in the direction of the arrow line by line from the top and pasted on the paper image 5d.
[0021]
On the other hand, the page 2d in the landscape format is data in a format that is sequentially read out line by line from the top as shown in FIG. This is reduced to 1 / √2 both vertically and horizontally in the same manner as a portrait page, and image data 5f is generated. The image data 5f is image data in a format that is read out line by line in the direction of the arrow. Therefore, they are read out in this order as they are and pasted on the paper image 5d.
[0022]
The image data 5e, 5f on the paper image 5d edited in this way is read out line by line from the top by the data transmission processing unit 4e and transferred to the printer. By performing such processing, a document in which portrait and landscape format pages are mixed can be continuously printed on each sheet of paper two pages at a time without any gap.
[0023]
FIG. 3 shows a detailed operation flowchart of the apparatus of the first specific example as described above. First, the application 1 shown in FIG. 1 classifies the generated print document 2 for each page and supplies it to the graphic device interface 3 for each page. When the printer driver 4 receives drawing data for one page from the graphic device interface 3, the drawing data is converted into image data in the image generation processing unit 4a. At this time, first, the parameter n shown in FIG. 3 is set to “1” (step S1). This n is a parameter for counting pages in the document.
[0024]
In step S2, the read drawing data is converted into image data by the image generation processing unit 4a. Next, in step S3, the printer driver 4 obtains a reduction ratio for the image data generated by the image generation processing unit 4a and performs a reduction process (step S4). Here, it is determined whether the page is a portrait format (step S5).
[0025]
If it is the portrait format, the process proceeds to step S6, and the reduced image data is stored in the portrait image buffer 4c. In step S7, the array conversion processing unit 4b performs array conversion into the landscape format as described with reference to FIG. In step S8, the converted image data for one page is edited in the data editing unit 5 and then transmitted to the printer as described later with reference to FIG.
[0026]
If the image data to be reduced is not a portrait, the process proceeds from step S5 to step S9, and the reduced image data is stored in the horizontally long image buffer 4d. In step S10, the image data for one page is edited in the data editing unit 5 and then transmitted to the printer. In the next step S11, it is determined whether the last page has been processed.
[0027]
If the last page has not been processed, the process proceeds to the next step S12. Then, it is determined whether or not the page is an even page process. When printing two pages on a single sheet, when printing of even pages is finished, a process of feeding a new print sheet, that is, a process of discharging a sheet printed by the printer 6 is performed. The printer driver 4 transmits a paper discharge command for that purpose to the printer (step S13). In the case of odd page processing, such processing is not necessary, and the process jumps to step S14.
[0028]
In step S14, n is incremented and processing proceeds to the next page. That is, returning to step S2, the drawing data of the next page is read again. When the process is finished up to the last page, the process proceeds from step S11 to step S15, a paper discharge command is transmitted, and all the processes are finished.
[0029]
FIG. 4 shows a flowchart of the image data transmission operation in step S8 or step S10 of FIG.
First, in step S1, it is determined whether n is an even number or an odd number. The processing is divided between the case where n is an even number and the case where n is an odd number because the allocation positions on the paper image 5a or 5d of the print data editing unit 5 shown in FIG. 1 are different. If n is an odd number, the process proceeds from step S1 to step S2, and the editing start point is designated as the upper left upper corner. That is, the point X1 on the paper image 5d in FIG. 2 is designated as the editing start point. In the case of an even page, the process proceeds to step S3, and the editing start point is designated at the lower left upper corner. That is, the point X2 on the paper image 5d shown in FIG. 2 is designated as the editing start point. In this way, the image data stored in the vertically long image buffer 4c or 4d is edited in the paper image 5a or 5d of the print data editing unit 5.
[0030]
Next, the image data for one sheet edited by the print data editing unit 5 is transmitted to the printer. In this case, it is determined whether the immediately preceding process is an even page process or an odd page process (step S4). If it is an odd-numbered page process, the image data of the next page is edited on the remaining half of the sheet and then printed, so the process exits this figure and proceeds to step S11 in FIG. When the processing of even pages is completed, image data transmission to the printer is started. First, the parameter m is set to “1” (step S5), and data reading for the m-th line is executed (step S6). That is, image data for one sheet is sequentially transferred to the printer 6 in order from the first line of the print image 5a or 5d in the print data editing unit 5.
[0031]
In step S6, it is determined whether m is “1”. In the case of the first line, print information is transmitted in advance to the printer (step S7). The print information is control information for designating the type of print medium and designating the margin of the paper that is the print medium. In the case of the second and subsequent lines, this process is jumped, and the process proceeds to step S8 to transmit the m-th line data. In step S9, it is determined whether m is the final line. If it is not the final line, the process proceeds to step S10, and the process for the next line is performed. That is, by repeating the process from step S5 to step S10, the process of transmitting the image data in the print data editing unit 5 to the printer is executed for all lines. When the transmission of all lines is completed, the process of this figure is exited and the process proceeds to step S11 of FIG.
[0032]
The print image processing apparatus is configured by the graphic device interface 3, the printer driver 4, and the print data editing unit 5. Usually, the graphic device interface 3 and the printer driver 4 are configured by a computer program installed on the host device side. The print data editing unit 5 includes a data file storage area called a spooler on the host device side. However, software or hardware having functions equivalent to these may be provided on the printer side, or some functions may be arranged on the upper apparatus side and the remaining functions arranged on the printer side. May be.
[0033]
Further, in the above example, a case has been described in which a portrait page is a portrait and a landscape page is a landscape, and a document in which these are mixed is continuously printed on paper. However, the format and size of the portrait page or landscape page, the layout method and the number of pages allocated to a single print sheet, the type of print medium, and the like can be freely changed.
[0034]
In the above example, the drawing data is converted into image data, then the size is reduced, and then the data array is converted. However, the processing for converting the drawing data into image data and the size are changed. The reduction process and the data array conversion process may be performed simultaneously. Of course, the order of these processes may be changed appropriately.
The above points also apply to each specific example described later.
[0035]
<Effect of specific example 1>
As described above, when image data for printing is generated by the printer driver, for example, a set of two pages in a document is allocated to a print area on one printing medium, and the set If the image data array of any page included in the page is different from the image data array supplied to the printer when printing the page in the print area allocated on the print medium, the array Since the conversion processing unit converts the data array and performs editing, it is possible to continuously print a set of pages in which landscape and portrait pages are mixed on one printing medium.
[0036]
<Specific example 2>
FIG. 5 is a block diagram of the apparatus of the second specific example.
As shown in the print document 2 in FIG. 7, in the specific example 2, the first page, the second page, and the third page are landscape-format pages 2a, 2b, and 2c, and the fourth page is a portrait-format page 2d. The case control will be described. Although the configuration of the apparatus itself is the same as that of the first specific example, the contents of the image data allocated in the paper images 5a and 5d in the print data editing unit 5 are different.
[0037]
FIG. 6 is a schematic explanatory diagram of the operation of the apparatus of the second specific example.
The landscape-type page 2c shown in the center of the figure is arranged so that data is processed line by line in the direction of the arrow in order from the top, similarly to the other landscape-type pages 2a and 2b. In the figure, each line is displayed as a ruled line on each page. The landscape format page 2c is converted into image data 5e that has been reduced to 1 / √2 as it is in the vertical and horizontal directions. The image data 5e is image data in a format that is read out line by line in the direction of the arrow. Therefore, they are read in this order as they are and pasted on the upper half of the paper image 5d.
[0038]
On the other hand, the portrait-format page 2d is data in a format that is sequentially read out line by line from the top as shown in the upper part of the figure. This is reduced to 1 / √2 both vertically and horizontally in the same manner as a landscape page, and image data 2g is generated. The array conversion processing unit 4b shown in FIG. 1 generates the converted image data 5f by cutting out the image data 2g from the left end one line at a time in the direction of the arrow. The image data 5f is sequentially read in the direction of the arrow line by line from the top and pasted on the lower half of the paper image 5d.
[0039]
The image data 5e and 5f on the sheet image 5d edited in this way are read out line by line from the top by the data transmission processing unit 4e in FIG. 5 and transferred to the printer.
The operation of the entire apparatus and the transmission processing of the data edited by the print data editing unit 5 to the printer are almost the same as those already described with reference to FIGS.
[0040]
<Effect of specific example 2>
By performing the processing as described above, a document in which a portrait format page is mixed after a landscape format page can be continuously printed on each sheet of paper two pages at a time without any gap.
[0041]
  <Specific example 3>
  Figure 7 shows a specific example3It is a block diagram of the apparatus.
  In the third specific example, the first page, the second page, and the third page are the portrait format pages 2a, 2b, and 2c, and the fourth page is the landscape format page 2d, as in the first specific example. The control in the case where the origin coordinate for printing is at the lower left of the paper will be described. In Specific Example 1, the origin coordinate of the paper is set to the upper right of the paper. Therefore, in this specific example, the configuration of the apparatus itself is not different from that of the specific example 1, but the procedure of data array conversion is different from that of the specific example 1. The image data in the vertically long image buffer 4c in FIG. 7 is converted into a landscape format data by being rearranged in the direction opposite to that in the first specific example. Therefore, a storage area 1 for temporarily storing the image data is provided.
[0042]
  Figure 8 shows a specific example3It is operation | movement outline explanatory drawing of this apparatus.
  First, the portrait-format page 2c shown in the figure is arranged so that data is processed line by line in the direction of the arrow in order from the top, similarly to the other portrait-format pages 2a and 2b. In the figure, each line is displayed as a ruled line on each page. First, the portrait-format page 2c is converted into image data 2g that has been reduced to 1 / √2 in the vertical and horizontal directions. The array conversion processing unit 4b shown in FIG. 7 generates the converted image data 5e by cutting out the image data 2g from the right end one line at a time in the direction of the arrow. In the specific example 1, in this part, the image data is sequentially read from the left end and the array conversion process is performed. Specific example 3 has a different reading order. The image data 5e is sequentially read out in the direction of the arrow line by line from the top and pasted on the paper image 5d.
[0043]
On the other hand, the page 2d in the landscape format is data in a format that is sequentially read out line by line from the top as shown in FIG. This is reduced to 1 / √2 both vertically and horizontally in the same manner as a portrait page, and image data 5f is generated. The image data 5f is image data in a format that is read out line by line in the direction of the arrow. Therefore, they are read out in this order as they are and pasted on the paper image 5d.
[0044]
The image data 5e, 5f on the paper image 5d edited in this way is read out line by line from the top by the data transmission processing unit 4e and transferred to the printer.
The operation of the entire apparatus and the transmission processing of the data edited by the print data editing unit 5 to the printer are almost the same as those already described with reference to FIGS.
[0045]
<Effect of specific example 3>
By performing the above processing, a document containing both portrait and landscape pages is placed on each sheet of paper, with the origin coordinate for printing at the bottom left of the sheet. Can be printed continuously.
[0046]
  Specific Example 4>
  Figure 9 shows a specific example4It is a block diagram of the apparatus.
  In this specific example, similarly to the specific example 1, the first page, the second page, and the third page are portrait pages 2a, 2b, and 2c, and the fourth page is a landscape format page 2d. An operation for printing on one sheet will be described. During this processing, portrait-format image data 5c and 5d assigned to the upper right and lower right of the paper image 5a are temporarily stored in the storage area 1 for the convenience of editing processing.
[0047]
  Figure 10 shows a specific example4It is operation | movement outline explanatory drawing of this apparatus.
  First, in the portrait format page 2d shown in the upper part of the figure, data is arranged so that each line is processed in the direction of the arrow in order from the top. In the figure, each line is displayed as a ruled line on each page. The portrait-format page 2d is converted into image data 5d that has been reduced to 1 / √2 as it is in the vertical and horizontal directions. The image data 5d is image data in a format that is read out line by line in the direction of the arrow. Therefore, they are read out in this order as they are and pasted in the lower left area of the paper image 5a.
[0048]
On the other hand, the landscape-format page 2c is data in a format that is sequentially read line by line from the top, as shown in FIG. 2, like the other landscape-format pages 2a and 2b. This is reduced to 1 / √2 both vertically and horizontally in the same manner as a portrait page, and image data 2e is generated. The array conversion processing unit 4b shown in FIG. 9 generates the converted image data 5e by cutting out the image data 2e one line at a time from the left end in the direction of the arrow. The image data 5e is sequentially read out in the direction of the arrow line by line from the top and pasted in the lower right area of the paper image 5a.
[0049]
The image data 5b, 5c, 5e, and 5f on the paper image 5a edited in this way correspond to the image data 5e and 5f on the paper image 5a in the first to third examples. The data transmission processing unit 4e reads out one line at a time from the top and transfers it to the printer in the same manner as in the first to third examples.
[0050]
The operation of the entire apparatus and the transmission processing of the data edited by the print data editing unit 5 to the printer are shown in FIGS. 3 and 5 for transmitting the image data 5e and 5f on the paper image 5a of the first to third examples. This is almost the same as that described with reference to FIG. 3 moves from the position next to step S6 to the position next to step S9. That is, if the image data is landscape, conversion processing to portrait is performed. If the image data is a portrait, no array conversion is performed.
[0051]
Further, the determination of “even page?” In step S12 in FIG. 3 is a determination as to whether it is the fourth page of one sheet. The determination whether n in step S1 in FIG. 4 is an even number is a determination that n is some of 1 to 4. 3 instead of step S2 and step S3 in FIG. 3, if n is 1, the upper left corner of the paper, if 1 is 2, the upper right corner of the paper, if n is 3, the lower left corner of the paper, and if n is 4, the lower right corner of the paper. Steps for editing the image data are inserted into the. Since the other parts are not changed, a duplicate description is omitted.
[0052]
<Effect of specific example 4>
By performing the processing as described above, a document in which portrait format pages and landscape format pages are mixed can be continuously printed on each sheet of paper, four pages at a time.
[0053]
<Specific example 5>
FIG. 11 is a block diagram of the apparatus of the fifth specific example.
In this specific example, the first page, the second page, and the third page are landscape-format pages 2a, 2b, and 2c, the fourth page is a portrait-format page 2d, and the fourth page is a set. An output method when printing on one sheet will be described. In Specific Example 4, the origin coordinate of the paper is set to the lower left of the paper. In this example, control in the case where the origin coordinate of the paper is at the upper right of the paper will be described. When the processing of this specific example is performed, storage areas 1 and 2 for three pages for temporarily storing image data are provided for the sake of processing. The setting of these storage areas can be arbitrarily changed by reducing the image data, changing the arrangement, assigning the image onto the paper image, editing procedure, and the like.
[0054]
FIG. 12 is a schematic explanatory diagram of the operation of the apparatus of the fifth specific example.
First, in the portrait format page 2d shown in the upper part of the figure, data is arranged so that each line is processed in the direction of the arrow in order from the top. In the figure, each line is displayed as a ruled line on each page. The portrait-format page 2d is converted into image data 5d that has been reduced to 1 / √2 as it is in the vertical and horizontal directions. The image data 5d is image data in a format that is read out line by line in the direction of the arrow. Therefore, they are read out in this order as they are and pasted in the lower left area of the paper image 5a.
[0055]
On the other hand, the landscape-format page 2c is data in a format that is sequentially read line by line from the top, as shown in FIG. 2, like the other landscape-format pages 2a and 2b. This is reduced to 1 / √2 both vertically and horizontally in the same manner as a portrait page, and image data 2e is generated. The array conversion processing unit 4b shown in FIG. 9 generates the converted image data 5e by cutting out the image data 2e from the right end one line at a time in the direction of the arrow. This is the difference from Example 4. The image data 5e is sequentially read out in the direction of the arrow line by line from the top and pasted in the lower right area of the paper image 5a.
[0056]
The image data 5b, 5c, 5e, and 5f on the paper image 5a edited in this way correspond to the image data 5e and 5f on the paper image 5a in the first to third examples. The data transmission processing unit 4e reads out one line at a time from the top and transfers it to the printer in the same manner as in the first to third examples. The following processing is the same as in the fourth specific example.
[0057]
The operation of the entire apparatus and the transmission processing of the data edited by the print data editing unit 5 to the printer are shown in FIGS. 3 and 5 for transmitting the image data 5e and 5f on the paper image 5a of the first to third examples. This is almost the same as that described with reference to FIG. 3 moves from the position next to step S6 to the position next to step S9. That is, if the image data is landscape, conversion processing to portrait is performed. If the image data is a portrait, no array conversion is performed.
[0058]
Further, the determination of “even page?” In step S12 in FIG. 3 is a determination as to whether it is the fourth page of one sheet. The determination whether n in step S1 in FIG. 4 is an even number is a determination that n is some of 1 to 4. 3 instead of step S2 and step S3 in FIG. 3, if n is 1, the upper left corner of the paper, if 1 is 2, the upper right corner of the paper, if n is 3, the lower left corner of the paper, and if n is 4, the lower right corner of the paper. Steps for editing the image data are inserted into the. Since the other parts are not changed, a duplicate description is omitted.
[0059]
<Effect of Specific Example 5>
By performing the processing as described above, a document in which portrait and landscape format pages are mixed can be continuously printed on each sheet of paper in four directions, with no gaps.
[Brief description of the drawings]
FIG. 1 is a block diagram of an apparatus according to a specific example 1;
FIG. 2 is a schematic explanatory diagram of an operation of the apparatus according to the first specific example.
FIG. 3 is an operation flowchart of specific example 1;
FIG. 4 is a drawing data transmission operation flowchart;
FIG. 5 is a block diagram of an apparatus according to a specific example 2;
FIG. 6 is a schematic explanatory diagram of an operation of the apparatus according to the second specific example.
FIG. 7 is a block diagram of an apparatus according to a specific example 3;
FIG. 8 is a schematic explanatory diagram of an operation of the apparatus according to the third specific example.
FIG. 9 is a block diagram of an apparatus according to a fourth specific example.
FIG. 10 is a schematic explanatory diagram of an operation of the apparatus according to the fourth specific example.
FIG. 11 is a block diagram of an apparatus according to specific example 5;
FIG. 12 is a schematic explanatory diagram of an operation of the apparatus according to the fifth specific example.
[Explanation of symbols]
1 Application
2 Printed documents
2a, 2b, 2c Portrait (portrait page)
2d landscape (landscape page)
3 Graphic device interface
4 Printer driver
4a Image generation processing unit
4b Array conversion processor
4c portrait image buffer
4d landscape image buffer
4e Data transmission processor
5 Print data editing department
6 Printer

Claims (4)

縦長ページ印刷用の描画データ及び横長ページ印刷用の描画データからそれぞれ第1及び第2のイメージデータを生成するイメージ生成処理部を備え、該第1及び第2のイメージデータから1枚の印刷媒体に印刷を行うための印刷画像処理装置であって、
前記印刷媒体の縦及び横の寸法に対応させた記憶領域が設定されている印刷データ編集部と、
前記第1及び第2のイメージデータの一方のイメージデータを縮小して前記記憶領域の所定配列位置に格納すると共に、他方のイメージデータを縮小した後に前記記憶領域の他の配列位置に整合させるべく回転させて該他の配列位置に格納するイメージデータ変換部と、
前記イメージデータ変換部により前記第1及び第2のイメージデータを縮小または縮小後回転し前記印刷データ編集部の記憶領域に記憶したイメージデータを読み出し画像形成部に出力するデータ送信処理部と、
を含むことを特徴とする印刷画像処理装置。
An image generation processing unit for generating first and second image data from drawing data for printing a vertically long page and drawing data for printing a horizontally long page, respectively, and one print medium from the first and second image data A print image processing apparatus for printing on
A print data editing unit in which a storage area corresponding to the vertical and horizontal dimensions of the print medium is set;
One image data of the first and second image data is reduced and stored in a predetermined arrangement position of the storage area, and the other image data is reduced and then matched with another arrangement position of the storage area. An image data converter that rotates and stores it in the other array position;
A data transmission processing unit that reads the image data stored in the storage area of the print data editing unit and outputs the image data to the image forming unit by reducing or rotating the first and second image data after the image data conversion unit;
A printed image processing apparatus.
前記他方のイメージデータが縦長印刷用のデータで、前記他の配列位置が横長に設定されていると、前記イメージデータ変換部は前記他方のイメージデータを縮小して横長に配列すべく回転させることを特徴とする請求項1記載の印刷画像処理装置。  If the other image data is data for portrait printing and the other arrangement position is set to landscape, the image data conversion unit rotates the image data to reduce the other image data and arrange it horizontally. The print image processing apparatus according to claim 1. 前記他方のイメージデータが横長印刷用のデータで、前記他の配列位置が縦長に設定されていると、前記イメージデータ変換部は前記他方のイメージデータを縮小して縦長に配列すべく回転させることを特徴とする請求項1記載の印刷画像処理装置。  When the other image data is data for landscape printing and the other arrangement position is set to be vertically long, the image data conversion unit rotates the image data to reduce the other image data and arrange it vertically. The print image processing apparatus according to claim 1. 縦長ページ印刷用の描画データ及び横長ページ印刷用の描画データからそれぞれ第1及び第2のイメージデータを生成し、該第1及び第2のイメージデータから1枚の印刷媒体に印刷を行うための印刷画像処理方法であって、
記憶部に印刷データ編集部として前記印刷媒体の縦及び横の寸法に対応させた記憶領域を設定すること、
前記第1及び第2のイメージデータの一方のイメージデータを縮小して前記記憶領域の所定配列位置に格納すること、
前記第1及び第2のイメージデータの他方のイメージデータを縮小した後に、前記記憶領域の他の配列位置に整合させるべく回転させて該他の配列位置に格納すること、
前記第1及び第2のイメージデータを縮小または縮小後回転し記憶したイメージデータを前記印刷データ編集部の前記記憶領域から読み出し画像形成部に出力すること、
を特徴とする印刷画像処理方法。
First and second image data are generated from drawing data for printing a portrait page and drawing data for printing a landscape page, respectively, and printing on one print medium from the first and second image data A print image processing method comprising:
Setting a storage area corresponding to the vertical and horizontal dimensions of the print medium as a print data editing unit in the storage unit;
Reducing one of the first and second image data and storing it in a predetermined array position in the storage area;
After the other image data of the first and second image data is reduced, the image data is rotated to be aligned with another arrangement position of the storage area and stored in the other arrangement position;
Reading the first and second image data from the storage area of the print data editing unit and outputting the image data to the image forming unit;
A printed image processing method.
JP36837598A 1998-12-25 1998-12-25 Print image processing device Expired - Lifetime JP3901373B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36837598A JP3901373B2 (en) 1998-12-25 1998-12-25 Print image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36837598A JP3901373B2 (en) 1998-12-25 1998-12-25 Print image processing device

Publications (3)

Publication Number Publication Date
JP2000194528A JP2000194528A (en) 2000-07-14
JP2000194528A5 JP2000194528A5 (en) 2005-06-16
JP3901373B2 true JP3901373B2 (en) 2007-04-04

Family

ID=18491659

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36837598A Expired - Lifetime JP3901373B2 (en) 1998-12-25 1998-12-25 Print image processing device

Country Status (1)

Country Link
JP (1) JP3901373B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5408170B2 (en) * 2011-03-25 2014-02-05 ブラザー工業株式会社 Information processing program, information processing apparatus, and information processing method
JP5957969B2 (en) * 2012-03-05 2016-07-27 ブラザー工業株式会社 Program, storage medium, and information processing apparatus

Also Published As

Publication number Publication date
JP2000194528A (en) 2000-07-14

Similar Documents

Publication Publication Date Title
JP3573175B2 (en) Image processing device
US6317193B2 (en) Image forming apparatus
US6226095B1 (en) Image processing apparatus, method, and system
JP2000335022A (en) Printer control device
JP3901373B2 (en) Print image processing device
JP2006263969A (en) Image processing device, printing job forming device, and image processing system
JPH11136459A (en) Image input/output device and method
JPS601967A (en) Picture processing device
US6246488B1 (en) Recording apparatus
JPH06217106A (en) Method and device for processing image
JP2003274138A (en) Image processing system, control method therefor, program, and storage medium
JP3129133B2 (en) Color printing equipment
JP2850717B2 (en) Printing control device
JP3029025B2 (en) Electrophotographic printer
JP2001147788A (en) Printer driver and data processing method
JPH04271474A (en) System for forming image
JPH06325137A (en) Image processing system
JPH06350831A (en) Image processor, image output device and image forming system
JPH064631A (en) Method and device for processing image
JP2000225735A (en) Image printer
JPH0568724B2 (en)
JPH11327823A (en) Output method/device and storage medium
JP2000203103A (en) Image data processor for printer
JPS59229639A (en) Information processor
JPH09191381A (en) Printer and method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040831

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040831

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040914

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060921

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060926

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061127

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: 20061219

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061226

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100112

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110112

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120112

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130112

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140112

Year of fee payment: 7

EXPY Cancellation because of completion of term