JP2009177492A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- Publication number
- JP2009177492A JP2009177492A JP2008013993A JP2008013993A JP2009177492A JP 2009177492 A JP2009177492 A JP 2009177492A JP 2008013993 A JP2008013993 A JP 2008013993A JP 2008013993 A JP2008013993 A JP 2008013993A JP 2009177492 A JP2009177492 A JP 2009177492A
- Authority
- JP
- Japan
- Prior art keywords
- page
- module
- print data
- data
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、画像処理装置及び画像処理方法に係り、特にページ記述言語で生成された印刷データに基づいて印刷を行う画像処理装置及び画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method, and more particularly to an image processing apparatus and an image processing method for performing printing based on print data generated in a page description language.
例えば画像処理装置の一例としての複合機や印刷装置では使用者(ユーザ)がワープロソフトや表計算ソフト等のアプリケーションから印刷を要求すると、複合機や印刷装置が解釈できるページ記述言語(Page Description Language: PDL)で印刷データが生成されたあと、その印刷データに基づいて印刷を行う。 For example, in a multifunction peripheral or printing apparatus as an example of an image processing apparatus, when a user (user) requests printing from an application such as word processing software or spreadsheet software, a page description language (Page Description Language) that can be interpreted by the multifunction peripheral or the printing apparatus. : After printing data is generated in (PDL), printing is performed based on the printing data.
PDLは、主に、印刷の為のページ記述に関する情報や描画に関する情報を記述する為の言語であり、ポストスクリプト(PostScript: PS)、プリンタ制御言語(Printer Control Language: PCL)、RPCS(Refined Printing Command Stream)等、様々な種類が存在している。従って、複合機や印刷装置では、各種PDLに対応するため、それぞれのPDLに対応した解釈機構(インタプリタ)と各インタプリタを呼び出すための機構とを備えている。 PDL is a language for mainly describing information related to page description for printing and information related to drawing. PostScript (PS), Printer Control Language (PCL), RPCS (Refined Printing) There are various types such as Command Stream). Therefore, in order to cope with various PDLs, multifunction devices and printing apparatuses have an interpretation mechanism (interpreter) corresponding to each PDL and a mechanism for calling each interpreter.
また、PDLで生成された印刷データには、ジョブ記述言語(Printer Job Language: PJL)によってPDLの先頭にジョブの制御に関する情報を付加されたものが広く用いられている(例えば特許文献1〜3参照)。PJLは、形式が比較的単純でASCII形式のデータであるため、多くのベンダーが独自の拡張を行い、それぞれの複合機や印刷装置のジョブ処理用言語として用いている。
例えばPJLではPDLで生成された印刷データの印刷範囲(印刷ページ)を指定することができる。印刷範囲がPJLにより指定された(PJL設定された)印刷データを印刷する場合、複合機や印刷装置はPDLで生成された印刷データに付加されているPJLからPJLモジュールが印刷範囲(印刷ページ)を取得する。複合機や印刷装置はPDLで生成された印刷データをPDLに対応したPDLモジュールで解析し、ページ出力要求により印刷範囲内のページを描画機能提供モジュールに描画させたあと、プロッタ部などに印刷させていた。 For example, in PJL, a print range (print page) of print data generated by PDL can be specified. When printing print data in which the print range is specified by PJL (PJL setting), the multi-function peripheral or printing device uses the PJL module added from the PJL added to the print data generated by PDL to the print range (print page). To get. MFPs and printing devices analyze PDL-generated print data with a PDL module that supports PDL, draw a page within the print range to the drawing function providing module in response to a page output request, and then print it on the plotter unit, etc. It was.
ところで、従来の複合機や印刷装置では、印刷範囲外のページであっても、PDLで生成された印刷データをPDLに対応したPDLモジュールで解析し、ページ破棄要求を描画機能提供モジュールに対して行わなければならなかった。 By the way, in a conventional multifunction device or printing apparatus, even if a page is outside the print range, print data generated by PDL is analyzed by a PDL module corresponding to PDL, and a page discard request is sent to the rendering function providing module. Had to be done.
したがって、従来の複合機や印刷装置は、例えば印刷範囲内のページが少なかったとしても、PDLで生成された印刷データの全てをPDLモジュールで解析しなければならないという問題があった。特に印刷範囲内のページが後半に少しあるような場合は、印刷範囲内のページがPDLモジュールで解析されるまで時間が掛かり、印刷範囲内のページがプロッタ部などにより印刷されるまでに時間が掛かるという問題があった。 Therefore, the conventional multifunction peripherals and printing apparatuses have a problem that even if there are few pages in the printing range, for example, all the print data generated by the PDL must be analyzed by the PDL module. Especially when there are a few pages in the printing range in the second half, it takes time until the pages in the printing range are analyzed by the PDL module, and it takes time for the pages in the printing range to be printed by the plotter. There was a problem of hanging.
本発明は、上記の点に鑑みなされたもので、印刷範囲指定を含むページ記述言語で生成された印刷データが印刷されるまでの時間を短縮できる画像処理装置及び画像処理方法を提供することを目的とする。 The present invention has been made in view of the above points, and provides an image processing apparatus and an image processing method capable of shortening the time until print data generated in a page description language including a print range specification is printed. Objective.
上記課題を解決するため、本発明は、印刷範囲指定を含むページ記述言語で生成された印刷データに基づいてプロッタ部に印刷を行わせる画像処理装置であって、前記印刷データに含まれる印刷範囲指定を取得し、前記印刷データに含まれるページ区切りを表す命令に基づいて前記印刷データを印刷範囲内のページに対応する部分と印刷範囲外のページに対応する部分とに分け、前記印刷データから印刷範囲外のページに対応する部分を破棄するページ記述言語処理手段と、印刷範囲外のページに対応する部分が破棄された前記印刷データを描画する描画機能提供手段と、描画された前記印刷データを前記プロッタ部に印刷させる制御手段とを有することを特徴とする。 In order to solve the above problems, the present invention provides an image processing apparatus that causes a plotter unit to perform printing based on print data generated in a page description language including a print range specification, and includes a print range included in the print data Obtaining the designation, and dividing the print data into a portion corresponding to a page within the print range and a portion corresponding to a page outside the print range based on an instruction representing a page break included in the print data, and from the print data Page description language processing means for discarding a portion corresponding to a page outside the print range, a rendering function providing means for rendering the print data where the portion corresponding to a page outside the print range is discarded, and the rendered print data And a control means for printing on the plotter unit.
また、本発明は、印刷範囲指定を含むページ記述言語で生成された印刷データに基づいてプロッタ部に印刷を行わせる画像処理装置の画像処理方法であって、前記印刷データに含まれる印刷範囲指定を取得し、前記印刷データに含まれるページ区切りを表す命令に基づいて前記印刷データを印刷範囲内のページに対応する部分と印刷範囲外のページに対応する部分とに分け、前記印刷データから印刷範囲外のページに対応する部分を破棄するページ記述言語処理ステップと、印刷範囲外のページに対応する部分が破棄された前記印刷データを描画する描画機能提供ステップと、描画された前記印刷データを前記プロッタ部に印刷させる制御ステップとを有することを特徴とする。 The present invention also relates to an image processing method of an image processing apparatus for causing a plotter unit to perform printing based on print data generated in a page description language including a print range specification, the print range specification included in the print data The print data is divided into a portion corresponding to a page within the print range and a portion corresponding to a page outside the print range based on an instruction representing a page break included in the print data, and printing is performed from the print data. A page description language processing step for discarding a portion corresponding to a page outside the range, a drawing function providing step for rendering the print data where the portion corresponding to a page outside the print range is discarded, and the rendered print data And a control step for printing on the plotter unit.
なお、本発明の構成要素、表現または構成要素の任意の組合せを、方法、装置、システム、コンピュータプログラム、記録媒体、データ構造などに適用したものも本発明の態様として有効である。 In addition, what applied the component, expression, or arbitrary combination of the component of this invention to a method, an apparatus, a system, a computer program, a recording medium, a data structure, etc. is also effective as an aspect of this invention.
本発明によれば、印刷範囲指定を含むページ記述言語で生成された印刷データが印刷されるまでの時間を短縮できる画像処理装置及び画像処理方法を提供可能である。 According to the present invention, it is possible to provide an image processing apparatus and an image processing method capable of shortening the time until print data generated in a page description language including a print range specification is printed.
次に、本発明を実施するための最良の形態を、以下の実施例に基づき図面を参照しつつ説明していく。なお、本実施例では、画像処理装置の一例として複合機を例に説明していくが、印刷機能を有する如何なる画像処理装置であってもよい。 Next, the best mode for carrying out the present invention will be described based on the following embodiments with reference to the drawings. In this embodiment, a multifunction peripheral is described as an example of an image processing apparatus. However, any image processing apparatus having a printing function may be used.
図1は本実施例の複合機のモジュール構成図である。図1の複合機1はオペレーティングシステム(OS)10,サービス層11,GPSモジュール12,PJLモジュール13,PS3モジュール14,PRモジュール15,DIモジュール16,他のPDL用モジュール17及び18を含む構成である。なお、図1のモジュール構成図では、PS3モジュール14,PRモジュール15,DIモジュール16がPS用インタプリタとなる。
FIG. 1 is a module configuration diagram of a multifunction machine according to the present embodiment. 1 includes an operating system (OS) 10, a service layer 11, a
OS10はUNIX(登録商標)等の汎用オペレーティングシステムであり、サービス層11を形成する複数のモジュール,GPSモジュール12,PJLモジュール13,PS3モジュール14,PRモジュール15,DIモジュール16,他のPDL用モジュール17及び18を、それぞれプロセスとして並列実行する。
The OS 10 is a general-purpose operating system such as UNIX (registered trademark), and includes a plurality of modules forming the service layer 11, a
サービス層11は、GPSモジュール12からの要求を解釈してプロッタ部等のハードウェア資源の獲得要求を発生させるモジュール、一または複数のハードウェア資源の管理を行い、獲得要求を調停するモジュール等を有する。
The service layer 11 interprets a request from the
GPSモジュール12は、サービス層11とのアクセスを行うモジュールである。PJLモジュール13は、ジョブレベルでの印刷制御言語を処理するモジュールである。PS3モジュール14は、ポストスクリプト3(PS)を処理するモジュールである。PRモジュール15は描画機能を提供するモジュールである。DIモジュール16は、プリンタ環境にアクセスする為のモジュールである。また、他のPDL用モジュール17及び18は他のPDLを処理するモジュールである。
The
ここで、本実施例の複合機1の理解を容易とするため、従来の複合機において印刷範囲指定(PJL設定)を含むPSデータを印刷する例について説明する。なお、印刷範囲指定(PJL設定)を含むPSデータとは、PSで生成された印刷データの印刷範囲(印刷ページ)をPJLで指定(PJL設定)したものを言う。 Here, in order to facilitate understanding of the multifunction device 1 of the present embodiment, an example of printing PS data including print range designation (PJL setting) in a conventional multifunction device will be described. The PS data including the print range designation (PJL setting) refers to data in which the print range (print page) of the print data generated by the PS is designated by PJL (PJL setting).
図2は従来の複合機において印刷範囲指定(PJL設定)を含むPSデータを印刷するジョブの手順を表した一例のフローチャートである。ステップS1に進み、受信バッファが印刷範囲指定(PJL設定)を含むPSデータを格納する。 FIG. 2 is a flowchart illustrating an example of a job procedure for printing PS data including print range designation (PJL setting) in a conventional multifunction peripheral. In step S1, the reception buffer stores PS data including print range designation (PJL setting).
ステップS2に進み、GPSモジュール12は受信バッファに格納されたPSデータにPJLデータが付加されているか否かを判定する。受信バッファに格納されたPSデータにPJLデータが付加されているため、GPSモジュール12はPJLモジュール13を起動する。ステップS3に進み、PJLモジュール13はPSデータに付加されていたPJLデータのPJLコマンド解析を行い、PJL設定値を取得する。
In step S2, the
ステップS4に進み、PJLモジュール13はGPSモジュール12のプリンタ情報領域に、取得したPJL設定値を保存する。ステップS4の処理後、又は、ステップS2において受信バッファに格納されたPSデータにPJLデータが付加されていないと判定した場合、GPSモジュール12はステップS5に進み、受信バッファにPSデータが格納されているか否かを判定する。受信バッファにPSデータが格納されているため、GPSモジュール12はPS3モジュール14を起動する。
In step S4, the PJL
ステップS6に進み、PS3モジュール14はDIモジュール16を介して、GPSモジュール12のプリンタ情報領域からPJL設定値を取得する。PS3モジュール14はステップS7に進み、受信バッファから取得したPSデータの解析を行う。ステップS8に進み、PS3モジュール14は出力命令がPSデータにあるか否かを判定する。
In step S6, the
ここで出力命令とは、ページ区切りを表す命令であり、ページの終わりを表す命令であるとする。出力命令があれば、PS3モジュール14はステップS9に進み、PJL設定値から印刷範囲を取得し、出力命令により特定されたページ(処理ページ)が印刷範囲外であるか否かを判定する。
Here, the output command is a command that represents a page break and is a command that represents the end of a page. If there is an output command, the
処理ページが印刷範囲外であれば、PS3モジュール14はステップS10に進み、PRモジュール15へページ破棄を要求する。従って、PRモジュール15は処理ページを描画しない。処理ページが印刷範囲内であれば、PS3モジュール14はステップS11に進み、PRモジュール15へページ出力を要求する。従って、PRモジュール15は処理ページを描画し、GPSモジュール12へ印刷処理要求を行う。なお、印刷処理要求を受けたGPSモジュール12はサービス層11経由でプロッタ部に印刷を行わせる。
If the processed page is out of the print range, the
ステップS7〜S11の処理は処理ページ分もしくはPSデータの最後まで繰り返し行われる。ステップS7〜S11の処理が処理ページ分もしくはPSデータの最後まで繰り返し行われた場合、又はステップS8において出力命令がない場合、図2に示したジョブの処理を終了する。 The processing in steps S7 to S11 is repeated until the processing page or the end of the PS data. If the processing in steps S7 to S11 is repeatedly performed for the processing page or the end of the PS data, or if there is no output command in step S8, the processing of the job shown in FIG.
また、ステップS5において、受信バッファにPSデータ以外が格納されていると判定した場合、GPSモジュール12は受信バッファに格納されているPDLデータに対応した他のPDL用モジュール17又は18を起動し、他のPDL用モジュール17又は18に処理を実行させる。
If it is determined in step S5 that data other than PS data is stored in the reception buffer, the
図2に示したジョブの処理では印刷範囲外の処理ページであっても、PSデータの解析をPS3モジュール14で行い、ページ破棄要求をPRモジュール15に対して行わなければならない。
In the job processing shown in FIG. 2, PS data must be analyzed by the
したがって、図2に示したジョブの処理では印刷範囲内の処理ページが少なかったとしても印刷範囲外の処理ページが多ければ、印刷範囲内のページがプロッタ部などにより印刷されるまでに時間が掛かるという問題があった。特に印刷範囲内の処理ページが後半に少しあるような場合は、印刷範囲内の処理ページがPS3モジュール14で解析されるまで時間が掛かり、印刷範囲内の処理ページがプロッタ部などにより印刷されるまでに時間が掛かるという問題があった。そこで、本実施例の複合機1では図3に示すジョブの手順により従来の複合機にあった上記の問題を解決している。
Therefore, in the job processing shown in FIG. 2, even if there are few processed pages in the print range, if there are many processed pages outside the print range, it takes time until the pages in the print range are printed by the plotter unit or the like. There was a problem. In particular, when there are a few processing pages in the printing range in the second half, it takes time until the processing pages in the printing range are analyzed by the
図3は本実施例の複合機において印刷範囲指定(PJL設定)を含むPSデータを印刷するジョブの手順を表した一例のフローチャートである。なお、ステップS21〜S26の処理は図2のステップS1〜6の処理と同様であるため、説明を省略する。 FIG. 3 is a flowchart illustrating an example of a job procedure for printing PS data including print range designation (PJL setting) in the multifunction peripheral according to the present exemplary embodiment. In addition, since the process of step S21-S26 is the same as the process of step S1-6 of FIG. 2, description is abbreviate | omitted.
ステップS27に進み、PS3モジュール14は、受信バッファに格納されているPSデータから決められた予約語である出力命令(copypage/showpage)を解析するプレパース処理を行う。例えば予約語は、図4のようにPSデータへ挿入されている。
Proceeding to step S27, the
図4は予約語が挿入されたPSデータの一例の構成図である。図4のPSデータは計4ページの処理ページから2ページ目及び3ページ目を印刷する例を表している。PJL部分41には印刷範囲として印刷開始ページである2ページ目及び印刷終了ページである3ページ目が指定されている。PSデータ部分には、予約語である出力命令(showpage)42〜45が含まれている。
FIG. 4 is a configuration diagram of an example of PS data in which a reserved word is inserted. The PS data in FIG. 4 represents an example in which the second and third pages are printed from a total of four processing pages. In the
出力命令(showpage)42〜45は、ページの終わりを表す命令である。出力命令(showpage)42〜45を利用することで、PS3モジュール14は1〜4ページまでの処理ページを特定できる。
Output instructions (showpages) 42 to 45 are instructions representing the end of a page. By using the output commands (showpages) 42 to 45, the
図3のステップS28に進み、PS3モジュール14は受信バッファに格納されているPSデータから出力命令(copypage/showpage)を発見するたびに処理ページ数をインクリメントする。ステップS29に進み、PS3モジュール14はPJL設定値から印刷開始ページを判定し、印刷開始ページより前のページに対応するデータ部分を受信バッファに格納されているPSデータから破棄する。例えば図4のPSデータの場合、PS3モジュール14は1ページ目に対応するデータ部分を破棄する。
Proceeding to step S28 in FIG. 3, the
ステップS30に進み、PS3モジュール14は受信バッファから取得したPSデータの解析を行う。ここでPS3モジュール14が受信バッファから取得するPSデータは印刷開始ページより前のページに対応するデータ部分が破棄されたものである。例えば図4のPSデータの場合、PS3モジュール14は1ページ目に対応するデータ部分が破棄されたPSデータを受信バッファから取得する。
In step S30, the
ステップS31に進み、PS3モジュール14は出力命令がPSデータにあるか否かを判定する。出力命令があれば、PS3モジュール14はステップS32に進み、PJL設定値から印刷範囲を取得し、出力命令により特定されたページ(処理ページ)が印刷範囲外であるか否かを判定する。受信バッファから取得するPSデータは、印刷開始ページより前のページに対応するデータ部分が破棄されたものであるため、印刷終了ページより後のページまで処理ページが印刷範囲内であると判定される。
In step S31, the
処理ページが印刷範囲内であればPS3モジュール14はステップS34に進み、PRモジュール15へページ出力を要求する。従って、PRモジュール15は印刷範囲内の処理ページを描画し、GPSモジュール12へ印刷処理要求を行う。なお、印刷処理要求を受けたGPSモジュール12はサービス層11経由でプロッタ部に印刷を行わせる。
If the processed page is within the print range, the
処理ページが印刷範囲外であればPS3モジュール14はステップS33に進み、PRモジュール15へページ破棄を要求する。従って、PRモジュール15は印刷範囲外の処理ページを描画しない。
If the processed page is out of the print range, the
ステップS30〜S34の処理は処理ページ分もしくはPSデータの最後まで繰り返し行われる。ステップS30〜S34の処理が処理ページ分もしくはPSデータの最後まで繰り返し行われた場合、又はステップS31において出力命令がない場合、図3に示したジョブの処理を終了する。 The processes in steps S30 to S34 are repeated until the process page or the end of the PS data. If the processing in steps S30 to S34 is repeated for the processing page or the end of the PS data, or if there is no output command in step S31, the processing of the job shown in FIG.
また、ステップS25において、受信バッファにPSデータ以外が格納されていると判定した場合、GPSモジュール12は受信バッファに格納されているPDLデータに対応した他のPDL用モジュール17又は18を起動し、他のPDL用モジュール17又は18に処理を実行させる。
If it is determined in step S25 that data other than PS data is stored in the reception buffer, the
図3に示したジョブの処理では印刷範囲外の処理ページのうち印刷開始ページより前の処理ページに対応するデータ部分を受信バッファに格納されているPSデータから破棄したあとでPS3モジュール14による解析を行う為、破棄した処理ページ分のPSデータの解析及びページ破棄要求が不要となる。
In the job processing shown in FIG. 3, the
したがって、図3に示したジョブの処理では印刷開始ページより前の処理ページが多くても破棄してしまうため、印刷範囲内の処理ページがPS3モジュール14で解析されるまでの時間を短縮でき、印刷範囲内のページがプロッタ部などにより印刷されるまでの時間を短縮できる。
Therefore, in the job processing shown in FIG. 3, even if there are many processing pages before the print start page, the processing pages within the print range are discarded, so that the time until the
図5は本実施例の複合機において印刷範囲指定(PJL設定)を含むPSデータを印刷する処理手順を表した一例のシーケンス図である。受信バッファが印刷範囲指定(PJL設定)を含むPSデータを格納すると、GPSモジュール12は受信バッファに格納されたPSデータにPJLデータが付加されているか否かを判定する。
FIG. 5 is a sequence diagram illustrating an example of a processing procedure for printing PS data including print range designation (PJL setting) in the multifunction peripheral according to the present exemplary embodiment. When the reception buffer stores PS data including the print range specification (PJL setting), the
受信バッファに格納されたPSデータにPJLデータが付加されているため、GPSモジュール12はステップS41に進み、PJLモジュール13を起動する。起動されたPJLモジュール13はPSデータに付加されていたPJLデータのPJLコマンド解析を行い、PJL設定値を取得する。
Since the PJL data is added to the PS data stored in the reception buffer, the
ステップS42に進み、PJLモジュール13は、GPSモジュール12のプリンタ情報領域に、取得したPJL設定値を保存する。GPSモジュール12は、受信バッファにPSデータが格納されているか否かを判定する。受信バッファにPSデータが格納されているため、GPSモジュール12はステップS43に進み、PS3モジュール14を起動する。
In step S42, the
ステップS44,S45に進み、起動されたPS3モジュール14はDIモジュール16を介してGPSモジュール12のプリンタ情報領域からPJL設定値等の環境変数を取得する。また、ステップS46,S47に進み、PS3モジュール14はDIモジュール16を介して受信バッファに格納されているPSデータを取得する。
Proceeding to steps S44 and S45, the activated
ステップS48に進み、PS3モジュール14は、取得したPSデータから決められた予約語である出力命令(copypage/showpage)を解析するプレパース処理を行う。PS3モジュール14はプレパース処理により印刷開始ページを判定し、印刷開始ページより前のページに対応するデータ部分を、受信バッファに格納されているPSデータから破棄する。
Proceeding to step S48, the
PS3モジュール14は、印刷開始ページより前のページに対応するデータ部分が破棄されたPSデータの解析を行う。そして、PS3モジュール14は処理ページ毎に印刷範囲内であるか否かを判定する。ステップS49では、PS3モジュール14が、印刷範囲内の処理ページのページ出力をPRモジュール15へ要求すると共に、印刷範囲外の処理ページの破棄をPRモジュール15へ要求する。
The
PS3モジュール14からページ出力を要求されると、PRモジュール15はページ出力を要求された処理ページを描画する。ステップS50に進み、PRモジュール15はGPSモジュール12へ印刷処理要求を行う。印刷処理要求を受けたGPSモジュール12はサービス層11経由でプロッタ部に印刷を行わせる。なお、PS3モジュール14からページ破棄を要求されると、PRモジュール15はページ破棄を要求された処理ページを描画しない。
When the page output is requested from the
そして、ステップS51に進み、PR15はGPSモジュール12から印刷処理結果を受信する。ステップS52に進み、PR15はページ出力又はページ破棄の要求に対する処理結果をPS3モジュール14に送信する。
In
以下、GPSモジュール12,PJLモジュール13及びPS3モジュール14の処理をフローチャートに基づいて順番に説明していく。
Hereinafter, the processes of the
(GPSモジュール12)
図6は、GPSモジュールの処理手順を表した一例のフローチャートである。ステップS61に進み、受信バッファには印刷範囲指定(PJL設定)を含むPSデータが格納される。
(GPS module 12)
FIG. 6 is a flowchart illustrating an example of the processing procedure of the GPS module. In step S61, PS data including print range designation (PJL setting) is stored in the reception buffer.
ステップS62に進み、GPSモジュール12は受信バッファに格納されたPSデータにPJLデータが付加されているか否かを判定する。PSデータにPJLデータが付加されていれば、GPSモジュール12はステップS63に進み、PJLモジュール13を起動させる。GPSモジュール12はステップS64に進み、起動させたPJLモジュール13に、PJLデータのPJLコマンド解析を行わせ、PJL設定値を取得する。PJLモジュール13は、GPSモジュール12のプリンタ情報領域に、取得したPJL設定値を保存する。
In step S62, the
ステップS64に続いて、又はステップS62においてPSデータにPJLデータが付加されていないと判定された場合に、GPSモジュール12はステップS65に進み、受信バッファに格納されているPDLデータ(PSデータなど)を判定し、そのPDLデータに対応した有効なPDL用モジュールがあるか否かを判定する。
Following step S64 or when it is determined in step S62 that PJL data has not been added to the PS data, the
有効なPDL用モジュールがあれば、ステップS66に進み、GPSモジュール12は有効なPDL用モジュールを起動したあと、図6に示した処理を終了する。有効なPDL用モジュールがなければ、ステップS66に進み、GPSモジュール12は現在起動しているPDL用モジュールから変更を行わず、図6に示した処理を終了する。
If there is a valid PDL module, the process proceeds to step S66, where the
(PJLモジュール13)
図7は、PJLモジュールの処理手順を表した一例のフローチャートである。ステップS71に進み、PJLモジュール13はPSデータに付加されていたPJLデータのPJLコマンド解析を行う。ステップS72に進み、PJLモジュール13はPJLデータに印刷範囲指定のコマンドが含まれているか否かを判定する。
(PJL module 13)
FIG. 7 is a flowchart illustrating an example of the processing procedure of the PJL module. In step S71, the
印刷範囲指定のコマンドが含まれていれば、PJLモジュール13はステップS73に進み、印刷範囲指定が正しいか否かを判定する。印刷範囲指定が正しく無い例としては印刷開始ページに印刷終了ページよりも後ろのページが指定されている場合等である。
If a print range designation command is included, the
印刷範囲指定が正しければ、PJLモジュール13はステップS74に進み、印刷範囲指定を、GPSモジュール12のプリンタ情報領域に保存したあと、図7に示した処理を終了する。
If the print range designation is correct, the
なお、ステップS72において印刷範囲指定のコマンドが含まれていないと判定した場合、又は、ステップS73において印刷範囲指定が正しく無いと判定した場合、PJLモジュール13は、図7に示した処理を終了する。
If it is determined in step S72 that the print range designation command is not included, or if it is determined in step S73 that the print range designation is not correct, the
(PS3モジュール14)
図8はPS3モジュールの処理手順を表した一例のフローチャートである。ステップS81に進み、PS3モジュール14はDIモジュール16を介して、GPSモジュール12のプリンタ情報領域からPJL設定値(印刷開始ページ等)を取得し、印刷開始ページより前のページが破棄されたPSデータとマージさせる。ステップS82に進み、PS3モジュール14は処理ページ数を0で初期化する。
(PS3 module 14)
FIG. 8 is a flowchart of an example showing the processing procedure of the PS3 module. In step S81, the
ステップS83に進み、PS3モジュール14は、受信バッファに格納されているPSデータから決められた予約語である出力命令(copypage/showpage)を解析するプレパース処理を行う。
Proceeding to step S83, the
ステップS84に進み、PS3モジュール14は、PSデータから出力命令(copypage/showpage)を発見するたびに処理ページ数をインクリメントする。ステップS85に進み、PS3モジュール14は取得したPJL設定値から印刷開始ページを判定し、印刷開始ページより前のページに対応するデータ部分を受信バッファに格納されているPSデータから破棄する。
Proceeding to step S84, the
ステップS86に進み、PS3モジュール14は受信バッファから取得したPSデータの解析を行う。ここでPS3モジュール14が受信バッファから取得するPSデータは印刷開始ページより前のページに対応するデータ部分が破棄されたものである。ステップS87に進み、PS3モジュール14はPJL設定値から印刷範囲を取得し、出力命令により特定されたページ(処理ページ)が印刷範囲外であるか否かを判定する。受信バッファから取得するPSデータは、印刷開始ページより前のページに対応するデータ部分が破棄されたものであるため、印刷終了ページより後のページまで処理ページが印刷範囲内であると判定される。処理ページが印刷範囲内であればPS3モジュール14はステップS89に進み、PRモジュール15へページ出力を要求する。処理ページが印刷範囲外であればPS3モジュール14はステップS88に進み、PRモジュール15へページ破棄を要求する。
In step S86, the
ステップS88又はS89に続いてステップS90に進み、PS3モジュール14は処理ページ数をインクリメントする。ステップS86〜S90の処理は印刷開始ページより前のページが破棄されたPSデータの処理ページ数分、繰り返し行ったあと、図8に示した処理を終了する。
Progressing to step S90 following step S88 or S89, the
図8に示したPS3モジュール14の処理では印刷範囲外の処理ページのうち印刷開始ページより前の処理ページに対応するデータ部分をPSデータから破棄したあとで解析を行う為、破棄した処理ページ分のPSデータの解析及びページ破棄要求が不要となる。
In the process of the
したがって、図8に示した処理では印刷開始ページより前の処理ページが多くても破棄してしまうため、印刷範囲内の処理ページがPS3モジュール14で解析されるまでの時間を短縮でき、印刷範囲内のページがプロッタ部などにより印刷されるまでの時間を短縮できる。
Therefore, in the process shown in FIG. 8, even if there are many process pages before the print start page, the process page within the print range is discarded, so that the time until the process page within the print range is analyzed by the
以上、本実施例では印刷範囲外の処理ページのうち印刷開始ページより前の処理ページに対応するデータ部分を破棄する例を説明したが、印刷終了ページより後の処理ページに対応するデータ部分を破棄するようにしてもよい。また、印刷範囲内の処理ページに対するステップS86〜S90の処理が終了した時点で、図8に示した処理を終了するようにしてもよい。 As described above, in the present embodiment, the example in which the data portion corresponding to the processing page before the print start page among the processing pages outside the print range has been described has been described. However, the data portion corresponding to the processing page after the print end page has been described. You may make it discard. Further, the processing shown in FIG. 8 may be ended when the processing in steps S86 to S90 for the processing page in the print range is completed.
本発明は、具体的に開示された実施例に限定されるものではなく、特許請求の範囲から逸脱することなく、種々の変形や変更が可能である。 The present invention is not limited to the specifically disclosed embodiments, and various modifications and changes can be made without departing from the scope of the claims.
1 複合機
10 オペレーティングシステム(OS)
11 サービス層
12 GPSモジュール
13 PJLモジュール
14 PS3モジュール
15 PRモジュール
16 DIモジュール
17,18 他のPDL用モジュール
1
11
Claims (8)
前記印刷データに含まれる印刷範囲指定を取得し、前記印刷データに含まれるページ区切りを表す命令に基づいて前記印刷データを印刷範囲内のページに対応する部分と印刷範囲外のページに対応する部分とに分け、前記印刷データから印刷範囲外のページに対応する部分を破棄するページ記述言語処理手段と、
印刷範囲外のページに対応する部分が破棄された前記印刷データを描画する描画機能提供手段と、
描画された前記印刷データを前記プロッタ部に印刷させる制御手段と
を有することを特徴とする画像処理装置。 An image processing apparatus that causes a plotter unit to perform printing based on print data generated in a page description language including a print range specification,
A portion corresponding to a page within the print range and a portion corresponding to a page outside the print range based on an instruction representing a page break included in the print data, obtained by specifying a print range included in the print data A page description language processing means for discarding a portion corresponding to a page outside the print range from the print data;
A drawing function providing means for drawing the print data in which a portion corresponding to a page outside the print range is discarded;
An image processing apparatus comprising: control means for printing the drawn print data on the plotter unit.
前記制御手段は、受信バッファに格納されている前記印刷データを解析し、前記ジョブ記述言語に応じたジョブ記述言語処理手段と、前記ページ記述言語に応じたページ記述言語処理手段とを起動させることを特徴とする請求項1又は2記載の画像処理装置。 The print range specification is described in a job description language,
The control unit analyzes the print data stored in the reception buffer, and activates a job description language processing unit according to the job description language and a page description language processing unit according to the page description language. The image processing apparatus according to claim 1 or 2.
前記印刷データに含まれる印刷範囲指定を取得し、前記印刷データに含まれるページ区切りを表す命令に基づいて前記印刷データを印刷範囲内のページに対応する部分と印刷範囲外のページに対応する部分とに分け、前記印刷データから印刷範囲外のページに対応する部分を破棄するページ記述言語処理ステップと、
印刷範囲外のページに対応する部分が破棄された前記印刷データを描画する描画機能提供ステップと、
描画された前記印刷データを前記プロッタ部に印刷させる制御ステップと
を有することを特徴とする画像処理方法。 An image processing method of an image processing apparatus for causing a plotter unit to perform printing based on print data generated in a page description language including a print range specification,
A portion corresponding to a page within the print range and a portion corresponding to a page outside the print range based on an instruction representing a page break included in the print data, obtained by specifying a print range included in the print data A page description language processing step for discarding a portion corresponding to a page outside the print range from the print data;
A drawing function providing step of drawing the print data in which a portion corresponding to a page outside the print range is discarded;
And a control step for causing the plotter unit to print the drawn print data.
前記制御ステップは、受信バッファに格納されている前記印刷データを解析し、前記ジョブ記述言語に応じたジョブ記述言語処理手段と、前記ページ記述言語に応じたページ記述言語処理手段とを起動させることを特徴とする請求項5又は6記載の画像処理方法。 The print range specification is described in a job description language,
The control step analyzes the print data stored in the reception buffer and activates a job description language processing unit corresponding to the job description language and a page description language processing unit corresponding to the page description language. The image processing method according to claim 5 or 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008013993A JP2009177492A (en) | 2008-01-24 | 2008-01-24 | Image processor and image processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008013993A JP2009177492A (en) | 2008-01-24 | 2008-01-24 | Image processor and image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2009177492A true JP2009177492A (en) | 2009-08-06 |
Family
ID=41032130
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008013993A Pending JP2009177492A (en) | 2008-01-24 | 2008-01-24 | Image processor and image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2009177492A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20170001619A (en) * | 2015-06-26 | 2017-01-04 | 캐논 가부시끼가이샤 | Print control apparatus, and print control method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005254515A (en) * | 2004-03-09 | 2005-09-22 | Canon Inc | Printing device, printing controlling method, program, and storage medium |
-
2008
- 2008-01-24 JP JP2008013993A patent/JP2009177492A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005254515A (en) * | 2004-03-09 | 2005-09-22 | Canon Inc | Printing device, printing controlling method, program, and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20170001619A (en) * | 2015-06-26 | 2017-01-04 | 캐논 가부시끼가이샤 | Print control apparatus, and print control method |
US10489695B2 (en) | 2015-06-26 | 2019-11-26 | Canon Kabushiki Kaisha | Print control apparatus, and print control method that selectively rasterize print data |
KR102130515B1 (en) * | 2015-06-26 | 2020-07-06 | 캐논 가부시끼가이샤 | Print control apparatus, and print control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR20210021078A (en) | Information processing device, control method and program | |
JP5578975B2 (en) | Information processing apparatus, processing method thereof, and program | |
JP6454213B2 (en) | Image output system, image processing apparatus, image output apparatus, method and program therefor | |
JP2008262543A (en) | Discontinuous transfer of pdf data for pdf direct printing | |
JP2010129057A (en) | Information processor, display data translation method, and program | |
US10996908B2 (en) | Print system, printing apparatus, method of controlling the printing apparatus, and storage medium that generate print data to be printed using rendered print data | |
US7916321B2 (en) | Document processing apparatus and document processing method | |
JP5261250B2 (en) | Print data processing apparatus, method, and computer-readable medium for processing page description language | |
JP2007257592A (en) | Printing system, information processor, and printer | |
JP2009187553A (en) | Method for printing text-only content of pdf document | |
JP2010026895A (en) | Information processor, image forming apparatus, and program | |
JP2017151820A (en) | Information processing device, program, and control method | |
US9626131B2 (en) | Print data processing method, print data processing apparatus, and storage medium for processing print data according to print setting information in the print data | |
JP2023018114A (en) | Program, information processing device, and method for controlling information processing device | |
JP2009177492A (en) | Image processor and image processing method | |
JP2004178097A (en) | Image processor, image forming device and program | |
JP6234417B2 (en) | Information processing apparatus, control method therefor, and program | |
US20170147912A1 (en) | Print control system, print control apparatus, and program | |
JP6437076B2 (en) | Information processing apparatus, control method therefor, and program | |
KR102130515B1 (en) | Print control apparatus, and print control method | |
US9858510B2 (en) | Information processing apparatus, method for controlling the same, and storage medium for conversion processing using plural geometric transformations on image data | |
JP6376876B2 (en) | Information processing apparatus, program, and control method | |
JP7293577B2 (en) | Image processing device, program, information processing system and image processing method | |
JP2022157948A (en) | printer | |
JP2022157949A (en) | printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100902 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111125 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111206 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120410 |