Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4706495B2 - Image processing apparatus, image processing method, and program - Google Patents
[go: Go Back, main page]

JP4706495B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP4706495B2
JP4706495B2 JP2006035610A JP2006035610A JP4706495B2 JP 4706495 B2 JP4706495 B2 JP 4706495B2 JP 2006035610 A JP2006035610 A JP 2006035610A JP 2006035610 A JP2006035610 A JP 2006035610A JP 4706495 B2 JP4706495 B2 JP 4706495B2
Authority
JP
Japan
Prior art keywords
data
page
command
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 - Fee Related
Application number
JP2006035610A
Other languages
Japanese (ja)
Other versions
JP2007215135A (en
Inventor
洋三 鹿島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2006035610A priority Critical patent/JP4706495B2/en
Publication of JP2007215135A publication Critical patent/JP2007215135A/en
Application granted granted Critical
Publication of JP4706495B2 publication Critical patent/JP4706495B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Facsimiles In General (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、文書データの印刷を指示する印刷データをラスタデータに変換して文書画像を生成する画像処理装置等に関する。   The present invention relates to an image processing apparatus or the like that converts print data for instructing printing of document data into raster data to generate a document image.

ホストコンピュータで作成された文書データは、例えば、ページ記述言語(Page Description Language)で記述されたデータ(以下、「PDLデータ」という)としてプリンタに送られることにより、印刷が可能となる。ところで、近年、このようにホストコンピュータからプリンタへPDLデータが送信された後に、このPDLデータに基づく画像データに対し、プリンタ側で何らかの加工を施して印刷する機能への要望が高まっている。例えば、情報漏洩の抑止効果を狙い、印刷を要求した時刻やユーザを特定する情報を画像データに強制的に付加する機能等である。
ここで、ホストコンピュータから送出されるPDLデータに基づく画像データに対し、プリンタ側で画像データを付加する技術として、スキャナプリンタで入力された画像データを付加するものがある(例えば、特許文献1参照)。この特許文献1の技術では、PDLデータを一旦ビットマップに変換し、このビットマップとスキャナ入力された画像データとを合成している。
The document data created by the host computer can be printed by being sent to the printer as, for example, data described in a page description language (hereinafter referred to as “PDL data”). By the way, in recent years, after PDL data is transmitted from the host computer to the printer in this way, there is an increasing demand for a function for printing the image data based on the PDL data by performing some processing on the printer side. For example, there is a function of forcibly adding information specifying the time of printing request and the user to the image data with the aim of preventing information leakage.
Here, as a technique for adding image data on the printer side to image data based on PDL data sent from a host computer, there is a technique for adding image data input by a scanner printer (see, for example, Patent Document 1). ). In the technique of this Patent Document 1, PDL data is once converted into a bitmap, and this bitmap and the image data input by the scanner are combined.

特開平6−214923号公報JP-A-6-214923

しかしながら、特許文献1の手法では、PDLデータに基づくラスタデータ及びスキャナ入力されたラスタデータについて画素単位でマージ処理を行わなければならないため、処理に時間がかかるという問題点があった。また、場合によっては、ラスタデータを保存する記憶領域が2ページ分必要となり、システム構成が大規模になってしまうという問題点もあった。   However, the method of Patent Document 1 has a problem that it takes time to process the raster data based on the PDL data and the raster data input by the scanner in a pixel unit. In some cases, two pages of storage area for storing raster data are required, resulting in a large system configuration.

本発明は、以上のような技術的課題を解決するためになされたものであって、その目的は、オリジナルの印刷データに手を加えることなく、付加的な情報の追加描画を効率的に行うことにある。   The present invention has been made to solve the technical problems as described above, and its purpose is to efficiently perform additional drawing of additional information without modifying the original print data. There is.

かかる目的のもと、本発明では、印刷データをラスタデータに変換する場合、印刷データの解釈時に特定の命令を検知すると解釈を一時停止し、解釈対象のデータの読込み先を切り替えるようにした。即ち、本発明の画像処理装置は、文書画像の印刷を指示する印刷データを入力する入力手段と、文書画像に付加する付加画像の印刷のための付加データを格納する格納手段と、印刷データを解釈し、その印刷データ中に特定の命令を検出すると、その印刷データの解釈を中断し、付加データを解釈することにより、付加画像が付加された文書画像を生成する解釈手段とを備えている。ここで、特定の命令としては、ページの開始を指示する命令、ページの終了を指示する命令、印刷ジョブの開始を指示する命令、印刷ジョブの終了を指示する命令が例示される。或いは、印刷データの解釈の中断点として機能する命令として予め登録された命令であってもよい。   For this purpose, in the present invention, when converting print data into raster data, the interpretation is temporarily stopped when a specific command is detected when interpreting the print data, and the reading destination of the data to be interpreted is switched. That is, an image processing apparatus according to the present invention includes an input unit that inputs print data for instructing printing of a document image, a storage unit that stores additional data for printing an additional image to be added to the document image, and print data. Interpreting means for interrupting interpretation of the print data and interpreting the additional data when a specific command is detected in the print data, and generating a document image to which the additional image is added. . Here, examples of the specific command include a command for instructing the start of the page, a command for instructing the end of the page, a command for instructing the start of the print job, and a command for instructing the end of the print job. Alternatively, it may be an instruction registered in advance as an instruction that functions as an interruption point for interpretation of print data.

また、本発明は、このような画像処理の方法として捉えることもできる。その場合、本発明の画像処理方法は、文書画像の印刷を指示する印刷データを入力する入力ステップと、文書画像に付加する付加画像の印刷のための付加データを生成する生成ステップと、印刷データ中に特定の命令を検出するまでその印刷データを解釈する第1の解釈ステップと、印刷データ中に特定の命令を検出した後は、付加データを解釈する第2の解釈ステップと、第1の解釈ステップでの解釈結果と第2の解釈ステップでの解釈結果とに基づいて、付加画像が付加された文書画像を生成するステップとを含んでいる。   The present invention can also be understood as such an image processing method. In that case, the image processing method of the present invention includes an input step for inputting print data for instructing printing of a document image, a generation step for generating additional data for printing an additional image to be added to the document image, and the print data. A first interpreting step for interpreting the print data until a specific command is detected therein; a second interpreting step for interpreting the additional data after detecting the specific command in the print data; And generating a document image to which the additional image is added based on the interpretation result in the interpretation step and the interpretation result in the second interpretation step.

一方、本発明は、コンピュータに画像処理を実行させるプログラムとして捉えることもできる。その場合、本発明のプログラムは、コンピュータに、文書画像の印刷を指示する印刷データ中に特定の命令を検出するまでその印刷データを解釈する機能と、印刷データ中に特定の命令を検出した後は、文書画像に付加する付加画像の印刷のための付加データを解釈する機能とを実現させるためのものである。   On the other hand, the present invention can also be understood as a program for causing a computer to execute image processing. In that case, the program of the present invention has a function of interpreting the print data until it detects a specific command in the print data instructing the computer to print the document image, and after detecting the specific command in the print data. Is for realizing a function of interpreting additional data for printing an additional image to be added to a document image.

本発明によれば、オリジナルの印刷データに手を加えることなく、付加的な情報の追加描画を効率的に行うことが可能となる。   According to the present invention, it is possible to efficiently perform additional drawing of additional information without modifying the original print data.

以下、添付図面を参照して、本発明を実施するための最良の形態(以下、「実施の形態」という)について詳細に説明する。
[第1の実施の形態]
本実施の形態は、ホストコンピュータで作成された文書(オリジナルの文書)を印刷装置で印刷する際に、印刷装置側で、文書を印刷した日付と文書の印刷を指示したユーザ名とを追加描画するものである。
まず、本実施の形態における処理のイメージについて説明する。
図1は、本実施の形態における画像の具体例を示したものである。
The best mode for carrying out the present invention (hereinafter referred to as “embodiment”) will be described below in detail with reference to the accompanying drawings.
[First Embodiment]
In this embodiment, when a document (original document) created by a host computer is printed by a printing apparatus, the printing apparatus side additionally draws the date when the document was printed and the user name instructed to print the document. To do.
First, an image of processing in the present embodiment will be described.
FIG. 1 shows a specific example of an image in the present embodiment.

このうち、図1(a)は、基本ページ画像101を示している。この基本ページ画像101は、ホストコンピュータで作成され、印刷装置での印刷が指示される文書画像であり、印刷装置側では何の加工も行われていないオリジナルの文書画像である。
また、図1(b)は、ページ加工画像102を示している。このページ加工画像102は、基本ページ画像101に対して施される加工処理を表した画像である。具体的には、ページ上部に、文書を印刷した日付を描画し、ページ下部に、文書を印刷した者の名前(ユーザ名)を描画するページ加工画像102が示されている。
更に、図1(c)は、加工済みページ画像103を示している。この加工済みページ画像103は、基本ページ画像101に対して、ページ加工画像102をマージした結果の画像である。
Among these, FIG. 1A shows a basic page image 101. The basic page image 101 is a document image that is created by the host computer and instructed to be printed by the printing apparatus, and is an original document image that has not been processed on the printing apparatus side.
FIG. 1B shows the page processed image 102. This page processed image 102 is an image representing the processing applied to the basic page image 101. Specifically, a page processed image 102 in which the date when the document is printed is drawn at the top of the page and the name (user name) of the person who printed the document is drawn at the bottom of the page.
Further, FIG. 1C shows a processed page image 103. The processed page image 103 is an image obtained by merging the page processed image 102 with the basic page image 101.

次に、基本ページ画像101を描画するためのPDLデータ(以下、「基本ページデータ」という)201、及び、ページ加工画像に対応するPDLデータ(以下、「ページ加工データ」という)202について説明する。
図2は、基本ページデータ201及びページ加工データ202を示したものである。
このうち、図2(a)は、基本ページデータ201を示している。
基本ページデータ201は、ジョブ開始命令で始まり、ジョブ終了命令で終わる。ジョブ開始命令とジョブ終了命令の間には、ページを表現するデータが含まれる。本実施の形態では、1ページ分のデータしか含めていないが、複数ページ分のデータを含めることも可能である。本実施の形態における1ページ分のPDLデータは、ページ開始命令で始まり、3つの文字描画命令及び1つのイメージ描画命令を含み、ページ出力命令で終わる。ページ開始命令とページ出力命令で囲まれた部分がページを記述した命令群である。ページ出力命令が現れた時点で、ページ開始命令以降の描画命令を1つのページに描画した結果が用紙に印刷される。
Next, PDL data (hereinafter referred to as “basic page data”) 201 for rendering the basic page image 101 and PDL data (hereinafter referred to as “page processed data”) 202 corresponding to the page processed image will be described. .
FIG. 2 shows basic page data 201 and page processing data 202.
Among these, FIG. 2A shows basic page data 201.
The basic page data 201 starts with a job start command and ends with a job end command. Data representing a page is included between the job start command and the job end command. In this embodiment, only data for one page is included, but it is also possible to include data for a plurality of pages. The PDL data for one page in the present embodiment starts with a page start command, includes three character drawing commands and one image drawing command, and ends with a page output command. A portion surrounded by a page start command and a page output command is a command group describing a page. When a page output command appears, the result of drawing a drawing command after the page start command on one page is printed on paper.

また、図2(b)は、ページ加工データ202を示している。
ページ加工データ202は、日付とユーザ名を描画するための2つの文字列描画命令、及び、文字列の背景を描画する2つの矩形描画命令から構成されている。尚、ページ加工データ202は、基本ページデータ201とは異なり、ジョブ開始命令、ジョブ終了命令、ページ開始命令、及び、ページ出力命令を含まない。
FIG. 2B shows page processing data 202.
The page processing data 202 includes two character string drawing commands for drawing a date and a user name, and two rectangular drawing commands for drawing the background of the character string. Unlike the basic page data 201, the page processing data 202 does not include a job start command, a job end command, a page start command, and a page output command.

本実施の形態は、図1に示した基本ページ画像101とページ加工画像102とから、加工済みページ画像103を得る機能を実現させるためのものである。
図3は、本実施の形態が適用されるコンピュータシステムの構成を示している。
図示するように、このコンピュータシステムは、印刷装置300と、ホストコンピュータ311とを含んでいる。ホストコンピュータ311としては、PCが例示されるが、印刷装置300に対して印刷指示を送信可能なコンピュータであれば、如何なるものであってもよい。また、ホストコンピュータ311は、印刷指示と共に、プリンタドライバによって生成された基本ページデータ201(図2参照)と、印刷指示をしたユーザ名とを印刷装置300に対して送出する。一方、印刷装置300は、ホストコンピュータ311とネットワークを介して接続されており、ホストコンピュータ311が送信した印刷指示を、ネットワークを通じて受信する。
This embodiment is for realizing the function of obtaining the processed page image 103 from the basic page image 101 and the page processed image 102 shown in FIG.
FIG. 3 shows a configuration of a computer system to which the present embodiment is applied.
As shown in the figure, this computer system includes a printing apparatus 300 and a host computer 311. The host computer 311 is exemplified by a PC, but may be any computer as long as it can transmit a print instruction to the printing apparatus 300. Further, the host computer 311 sends the basic page data 201 (see FIG. 2) generated by the printer driver together with the print instruction and the name of the user who made the print instruction to the printing apparatus 300. On the other hand, the printing apparatus 300 is connected to the host computer 311 via a network, and receives a print instruction transmitted from the host computer 311 via the network.

ここで、印刷装置300の内部構成について詳細に説明する。
図示するように、印刷装置300は、データ入力部312と、ページ加工データ生成部310と、入力データ記憶部301と、制御部302と、PDLデータ解釈部303とを含んでいる。また、中間データ生成部304と、中間データ記憶部305と、中間データ展開部306と、ラスタデータ記憶部307と、印刷制御部308と、印刷エンジン309とを含む。
Here, the internal configuration of the printing apparatus 300 will be described in detail.
As illustrated, the printing apparatus 300 includes a data input unit 312, a page processing data generation unit 310, an input data storage unit 301, a control unit 302, and a PDL data interpretation unit 303. The intermediate data generation unit 304, the intermediate data storage unit 305, the intermediate data development unit 306, the raster data storage unit 307, the print control unit 308, and the print engine 309 are included.

データ入力部312は、ホストコンピュータ311から基本ページデータ201及び印刷を指示したユーザ名を受信し、基本ページデータ201は入力データ記憶部301に保存し、ユーザ名はページ加工データ生成部310に送る。また、制御部302に対し、PDLデータ解釈部303に対する各種制御を指示する。
ページ加工データ生成部310は、ユーザ名と印刷指示を受信した日付とを含んだページ加工データ202を作成し、入力データ記憶部301に保存する。
入力データ記憶部301は、データ入力部312が入力した基本ページデータ201と、ページ加工データ生成部310が生成したページ加工データ202とを記憶する。
The data input unit 312 receives the basic page data 201 and the user name instructing printing from the host computer 311, stores the basic page data 201 in the input data storage unit 301, and sends the user name to the page processing data generation unit 310. . In addition, the controller 302 is instructed to perform various controls on the PDL data interpreter 303.
The page modification data generation unit 310 creates page modification data 202 including the user name and the date when the print instruction is received, and stores the page modification data 202 in the input data storage unit 301.
The input data storage unit 301 stores the basic page data 201 input by the data input unit 312 and the page processing data 202 generated by the page processing data generation unit 310.

制御部302は、PDLデータ解釈部303に対し、処理の中断及び再開の制御を指示する。また、PDLデータ解釈部303に対し、読込み先のデータの切替えを指示する。
PDLデータ解釈部303は、入力データ記憶部301に保存されている基本ページデータ201及びページ加工データ202を解釈し、解釈した結果を中間データ生成部304に送信する。また、制御部302の指示に従い、基本ページデータ201又はページ加工データ202のどちらからデータを読み込むかを判断する。更に、制御部302の指示に従い、処理の中断及び再開も行う。
The control unit 302 instructs the PDL data interpretation unit 303 to control processing interruption and resumption. Further, the PDL data interpretation unit 303 is instructed to switch data to be read.
The PDL data interpretation unit 303 interprets the basic page data 201 and the page processing data 202 stored in the input data storage unit 301 and transmits the interpreted result to the intermediate data generation unit 304. Further, in accordance with an instruction from the control unit 302, it is determined whether to read data from the basic page data 201 or the page processing data 202. Further, the processing is interrupted and resumed according to the instruction of the control unit 302.

中間データ生成部304は、PDLデータ解釈部303より送信された解釈結果を中間データに変換する。中間データとは、PDL形式の入力データと比較して、より抽象度の低い描画命令群である。
中間データ記憶部305は、中間データ生成部304によって生成された中間データを記憶する。
中間データ展開部306は、中間データ記憶部305に1ページ分の中間データが記憶されると、その1ページ分の中間データを1ライン毎にラスタデータに展開する。
ラスタデータ記憶部307は、中間データ展開部306によって生成されたラスタデータを記憶する。
The intermediate data generation unit 304 converts the interpretation result transmitted from the PDL data interpretation unit 303 into intermediate data. The intermediate data is a drawing command group having a lower abstraction level than the input data in the PDL format.
The intermediate data storage unit 305 stores the intermediate data generated by the intermediate data generation unit 304.
When intermediate data for one page is stored in the intermediate data storage unit 305, the intermediate data expansion unit 306 expands the intermediate data for one page into raster data line by line.
The raster data storage unit 307 stores the raster data generated by the intermediate data expansion unit 306.

印刷制御部308は、印刷エンジン309を起動し、ラスタデータ記憶部307に記憶されたラスタデータを印刷エンジン309に送信する。その際、ラスタデータを印刷エンジン309に適合するような色に変換する色変換処理や、多値で表現されたラスタデータを2値データに変換する中間調処理等を実行する。
印刷エンジン309は用紙にラスタデータを印刷する。この印刷エンジン309としては、電子写真方式を用いた印刷エンジンが例示されるが、その他の如何なる方式を採用した印刷エンジンであっても構わない。
The print control unit 308 activates the print engine 309 and transmits the raster data stored in the raster data storage unit 307 to the print engine 309. At this time, color conversion processing for converting raster data into a color suitable for the print engine 309, halftone processing for converting raster data expressed in multiple values into binary data, and the like are executed.
A print engine 309 prints raster data on a sheet. The print engine 309 is exemplified by a print engine that uses an electrophotographic method, but may be a print engine that employs any other method.

尚、これらの機能は、ソフトウェアとハードウェア資源とが協働することにより実現される。即ち、データ入力部312、ページ加工データ生成部310、制御部302、PDLデータ解釈部303、中間データ生成部304、中間データ展開部306、印刷制御部308は、印刷装置300の図示しないCPUが、これらの機能を実現するプログラムを、例えばハードディスク等の外部記憶装置からメインメモリに読み込むことにより実現される。
また、入力データ記憶部301、中間データ記憶部305、ラスタデータ記憶部307は、半導体メモリ、磁気ディスク等の種々の記憶媒体を用いて実現することができる。
These functions are realized by cooperation between software and hardware resources. That is, the data input unit 312, the page processing data generation unit 310, the control unit 302, the PDL data interpretation unit 303, the intermediate data generation unit 304, the intermediate data development unit 306, and the print control unit 308 are processed by a CPU (not shown) of the printing apparatus 300. The program for realizing these functions is realized by reading the program from an external storage device such as a hard disk into the main memory.
The input data storage unit 301, the intermediate data storage unit 305, and the raster data storage unit 307 can be realized using various storage media such as a semiconductor memory and a magnetic disk.

次に、本実施の形態の動作について説明する。
本実施の形態では、ホストコンピュータ311から基本ページデータ201及び印刷を指示したユーザ名が送られると、データ入力部312がこれらを受信する。そして、基本ページデータ201を入力データ記憶部301に記憶し、ユーザ名をページ加工データ生成部310に送る。これにより、ページ加工データ生成部310は、ユーザ名と印刷指示を受信した日付とを含んだページ加工データ202を生成し、入力データ記憶部301に記憶する。
Next, the operation of the present embodiment will be described.
In the present embodiment, when the basic page data 201 and the user name instructing printing are sent from the host computer 311, the data input unit 312 receives them. Then, the basic page data 201 is stored in the input data storage unit 301, and the user name is sent to the page processing data generation unit 310. Thereby, the page modification data generation unit 310 generates the page modification data 202 including the user name and the date when the print instruction is received, and stores the page modification data 202 in the input data storage unit 301.

このようにして基本ページデータ201及びページ加工データ202が入力データ記憶部301に保持されると、PDLデータ解釈部303の動作が開始する。
図4は、PDLデータ解釈部303の動作を示したフローチャートである。
処理が開始すると、PDLデータ解釈部303は、データの読込み先を判定する(ステップ402)。尚、データの読込み先は、後述するように、制御部302が設定している。
まず、ステップ402において読込み先が基本ページデータ201であると判定された場合について説明する。
この場合、PDLデータ解釈部303は、基本ページデータ201中に次に読み込むべき命令が存在するかどうかを判定する(ステップ403)。ここで、次に読み込むべき命令がないと判定されれば、処理を終了するが、次に読み込むべき命令があると判定されれば、その命令を読み込む(ステップ405)。そして、読み込んだ命令がページ出力命令であるかどうかを判定する(ステップ406)。
When the basic page data 201 and the page processing data 202 are held in the input data storage unit 301 in this way, the operation of the PDL data interpretation unit 303 starts.
FIG. 4 is a flowchart showing the operation of the PDL data interpretation unit 303.
When the process starts, the PDL data interpretation unit 303 determines the data reading destination (step 402). The data reading destination is set by the control unit 302 as will be described later.
First, a case where it is determined in step 402 that the read destination is the basic page data 201 will be described.
In this case, the PDL data interpretation unit 303 determines whether there is an instruction to be read next in the basic page data 201 (step 403). If it is determined that there is no next instruction to be read, the process is terminated. If it is determined that there is a next instruction to be read, the instruction is read (step 405). Then, it is determined whether or not the read instruction is a page output instruction (step 406).

その結果、読み込んだ命令がページ出力命令であると判定された場合、PDLデータ解釈部303は、ページ出力命令を処理してよいかを制御部302に問い合わせる(ステップ407)。そして、この問い合わせに対する回答(問い合わせ結果)を制御部302から受信するまで、処理は中断する。その後、制御部302から回答を受信すると、PDLデータ解釈部303は、問い合わせ結果の内容を判定する(ステップ408)。ここで、判定結果が処理可能である場合、PDLデータ解釈部303は、中間データ生成部304にページ出力命令を送る(ステップ409)。また、判定結果が処理不可である場合、PDLデータ解釈部303は、ページ出力命令の読込みを取り消し、処理しなかったものとする(ステップ410)。そして、ステップ409、ステップ410の処理後は、いずれの場合もステップ402に戻り、次の命令の処理に移る。
一方、読み込んだ命令がページ出力命令でないと判定された場合、PDLデータ解釈部303は、中間データ生成部304に描画命令(解釈結果)を送り(ステップ413)、その後、ステップ402に戻る。
As a result, when it is determined that the read instruction is a page output instruction, the PDL data interpretation unit 303 inquires of the control unit 302 whether the page output instruction can be processed (step 407). Then, the processing is interrupted until an answer to the inquiry (inquiry result) is received from the control unit 302. Thereafter, when an answer is received from the control unit 302, the PDL data interpretation unit 303 determines the content of the inquiry result (step 408). If the determination result can be processed, the PDL data interpretation unit 303 sends a page output command to the intermediate data generation unit 304 (step 409). If the determination result cannot be processed, the PDL data interpretation unit 303 cancels the reading of the page output command and does not process it (step 410). Then, after the processing of Step 409 and Step 410, in either case, the processing returns to Step 402 and proceeds to processing of the next instruction.
On the other hand, if it is determined that the read command is not a page output command, the PDL data interpretation unit 303 sends a drawing command (interpretation result) to the intermediate data generation unit 304 (step 413), and then returns to step 402.

次に、ステップ402において読込み先がページ加工データ202であると判定された場合について説明する。
この場合、PDLデータ解釈部303は、ページ加工データ202中に次に読み込むべき命令が存在するかどうかを判定する(ステップ411)。ここで、次に読み込むべき命令があると判定されれば、その命令を読み込む(ステップ412)。そして、中間データ生成部304に描画命令(解釈結果)を送り(ステップ413)、その後、ステップ402に戻る。また、読み込むべき命令がないと判定されれば、「データなし」を制御部302に通知する(ステップ414)。そして、制御部302からの処理継続許可を待つ(ステップ415)。その後、制御部302から処理継続許可を受信したら、ステップ402に進み、次の命令の処理に移る。
以上により、PDLデータ解釈部303の動作の説明を終了する。
Next, a case where it is determined in step 402 that the reading destination is the page processing data 202 will be described.
In this case, the PDL data interpretation unit 303 determines whether there is an instruction to be read next in the page processing data 202 (step 411). If it is determined that there is an instruction to be read next, the instruction is read (step 412). Then, a drawing command (interpretation result) is sent to the intermediate data generation unit 304 (step 413), and then the process returns to step 402. If it is determined that there is no instruction to be read, “no data” is notified to the control unit 302 (step 414). Then, the process waits for permission to continue processing from the control unit 302 (step 415). Thereafter, when the processing continuation permission is received from the control unit 302, the process proceeds to step 402, and the process of the next command is started.
This is the end of the description of the operation of the PDL data interpretation unit 303.

ところで、このPDLデータ解釈部303に対し、基本ページデータ201とページ加工データ202のいずれからデータを読み込むべきかを指示していたのは、制御部302であった。また、PDLデータ解釈部303がページ出力命令を検出して中断した基本ページデータ201の解釈処理を再開してよいかどうか、或いは、ページ加工データ202のデータがなくなった際に処理を継続してよいかの指示も、制御部302が行っていた。   Incidentally, it is the control unit 302 that has instructed the PDL data interpretation unit 303 from which of the basic page data 201 and the page processing data 202 the data should be read. Further, whether the interpretation processing of the basic page data 201 interrupted by the PDL data interpretation unit 303 detecting the page output command may be resumed, or the processing is continued when the data of the page processing data 202 is lost. The control unit 302 also gives an instruction as to whether it is okay.

そこで、次に、この制御部302の動作について説明する。
図5は、制御部302の動作を示したフローチャートである。
まず、制御部302は、PDLデータ解釈部303に対し、読込み先を基本ページデータ201に設定する(ステップ502)。図2のPDLデータを例にとると、図2(a)の基本ページデータ201が読込み先として設定される。そして、制御部302は、PDLデータ解釈部303に解釈開始を指示する(ステップ503)。尚、PDLデータ解釈部303は、この指示を受け、ステップ403以降の基本ページデータ201の解釈処理を行うことになる。
Therefore, the operation of the control unit 302 will be described next.
FIG. 5 is a flowchart showing the operation of the control unit 302.
First, the control unit 302 sets the reading destination to the basic page data 201 for the PDL data interpretation unit 303 (step 502). Taking the PDL data in FIG. 2 as an example, the basic page data 201 in FIG. 2A is set as the reading destination. Then, the control unit 302 instructs the PDL data interpretation unit 303 to start interpretation (step 503). In response to this instruction, the PDL data interpretation unit 303 performs interpretation processing of the basic page data 201 after step 403.

その後、制御部302は、PDLデータ解釈部303からのページ出力命令の処理可否問い合わせを待つ(ステップ504)。尚、PDLデータ解釈部303は、ページ出力命令を検知すると、ステップ407で制御部302に処理可否問い合わせを行い、制御部302からの返答が得られるまで処理を中断している。
このように、PDLデータ解釈部303から問い合わせが発生すると、制御部302は、未処理のページ加工データ202が存在するかどうかを判定する(ステップ505)。
Thereafter, the control unit 302 waits for a page output command processing inquiry from the PDL data interpretation unit 303 (step 504). When the PDL data interpretation unit 303 detects a page output command, the PDL data interpretation unit 303 inquires of the control unit 302 whether processing is possible in step 407 and suspends the processing until a response from the control unit 302 is obtained.
As described above, when an inquiry is generated from the PDL data interpretation unit 303, the control unit 302 determines whether or not unprocessed page processing data 202 exists (step 505).

その結果、未処理のページ加工データ202が存在すると判定された場合は、PDLデータ解釈部303に対し、読込み先をページ加工データ202に設定する(ステップ506)。図2のPDLデータを例にとると、図2(b)のページ加工データ202が読込み先として設定される。そして、PDLデータ解釈部303からのページ出力命令の処理可否問い合わせに対して「処理不可」を返す(ステップ507)。尚、PDLデータ解釈部303は、この回答を受信した時点で処理を再開する。但し、PDLデータ解釈部303は、ステップ410でページ出力命令の読込みを取り消し、ステップ402で読込み先がページ加工データ202と判定されるので、ステップ411以降のページ加工データ202の解釈処理を行うことになる。   As a result, when it is determined that there is unprocessed page processing data 202, the reading destination is set in the page processing data 202 for the PDL data interpretation unit 303 (step 506). Taking the PDL data in FIG. 2 as an example, the page processing data 202 in FIG. 2B is set as the reading destination. In response to the page output command processability inquiry from the PDL data interpretation unit 303, “process not possible” is returned (step 507). Note that the PDL data interpretation unit 303 resumes the processing when receiving this answer. However, since the PDL data interpretation unit 303 cancels the reading of the page output command in step 410 and the reading destination is determined to be the page processing data 202 in step 402, the PDL data interpretation unit 303 performs the interpretation processing of the page processing data 202 after step 411. become.

その後、制御部302は、PDLデータ解釈部303から「データなし」通知を待つ(ステップ508)。尚、PDLデータ解釈部303は、ページ加工データ202を全て解釈し終わると、ステップ414で制御部302に「データなし」を通知する。
制御部302は、「データなし」通知を受信すると、PDLデータ解釈部303に対し、読込み先を基本ページデータ201に設定する(ステップ509)。そして、PDLデータ解釈部303に「処理継続許可」を送り(ステップ510)、ステップ504に戻る。
Thereafter, the control unit 302 waits for a “no data” notification from the PDL data interpretation unit 303 (step 508). When the PDL data interpretation unit 303 finishes interpreting all the page processing data 202, the PDL data interpretation unit 303 notifies the control unit 302 of “no data” in step 414.
Upon receiving the “no data” notification, the control unit 302 sets the reading destination to the basic page data 201 for the PDL data interpretation unit 303 (step 509). Then, “process continuation permission” is sent to the PDL data interpretation unit 303 (step 510), and the process returns to step 504.

一方、未処理のページ加工データ202が存在しないと判定された場合は、PDLデータ解釈部303からのページ出力命令の処理可否問い合わせに対して「処理可能」を返す(ステップ511)。このような場合としては、例えば、元々ページ加工データ202が存在しない場合、即ち、オリジナルの文書を全く加工せずに印刷する場合がある。或いは、基本ページデータ201に対するページ加工が完了した場合もある。即ち、ページ加工が完了すると、ステップ505での判定が「No」となり、ステップ511を経て、処理は終了する。
以上により、制御部302の動作の説明を終了する。
On the other hand, if it is determined that the unprocessed page processing data 202 does not exist, “processing is possible” is returned in response to the processing possibility inquiry of the page output command from the PDL data interpretation unit 303 (step 511). As such a case, for example, there is a case where the page processing data 202 originally does not exist, that is, the original document is printed without being processed at all. Alternatively, page processing for the basic page data 201 may be completed. That is, when the page processing is completed, the determination in step 505 is “No”, and the process ends through step 511.
This is the end of the description of the operation of the control unit 302.

このように、本実施の形態では、印刷データをラスタデータに変換するに当たり、印刷データの解釈時にページ出力命令を検知すると解釈を一時停止し、解釈対象のデータの読込み先を切り替えるようにした。これにより、オリジナルの印刷データに手を加えることなく、ページに対する情報の追加描画を効率的に行えるようになった。即ち、一度作成したPDLデータ内のページ出力命令の直前に情報の描画命令を挿入するには、一度PDLデータを解釈し、命令の挿入のためにPDLデータを移動又はコピーする手法も考えられるが、本実施の形態によれば、かかる手法よりも格段に効率的な手法が得られる。   As described above, in this embodiment, when converting print data to raster data, if a page output command is detected when interpreting the print data, the interpretation is temporarily stopped and the reading destination of the data to be interpreted is switched. This makes it possible to efficiently draw additional information on the page without modifying the original print data. That is, in order to insert an information rendering command immediately before a page output command in PDL data once created, a method of interpreting the PDL data once and moving or copying the PDL data for inserting the command is also conceivable. According to the present embodiment, a method that is much more efficient than this method can be obtained.

尚、本実施の形態では、ページ出力命令の直前に情報の描画命令を挿入することとしたため、検出対象の命令をページ出力命令としたが、これに限るものではない。1ページ分のPDLデータの先頭に付加的な情報の描画命令を挿入するものとすれば、ページ開始命令の次の命令を検出対象の命令としてもよい。また、図2の例において、ページ出力命令は、ページの終了を指示する命令とページの出力を指示する命令とを兼ねた命令となっているため、本実施の形態では、ページ出力命令を検出対象の命令としたが、ページの終了を指示する命令とページの出力を指示する命令とが別々の命令である場合は、ページの終了を指示する命令を検出対象の命令としてもよい。   In this embodiment, since the information rendering command is inserted immediately before the page output command, the command to be detected is the page output command. However, the present invention is not limited to this. If a drawing instruction for additional information is inserted at the head of PDL data for one page, the instruction next to the page start instruction may be set as a detection target instruction. In the example of FIG. 2, the page output command is a command that serves as both a command for instructing the end of the page and a command for commanding the output of the page. In this embodiment, the page output command is detected. Although the target instruction is used, when the instruction for instructing the end of the page and the instruction for instructing the output of the page are different instructions, the instruction for instructing the end of the page may be the instruction to be detected.

[第2の実施の形態]
本実施の形態は、ホストコンピュータで作成された文書(オリジナルの文書)を印刷装置で印刷する際に、バナーページ(例えば、印刷開始ページや印刷終了ページ)を文書の前後に挿入するものである。
まず、本実施の形態における処理のイメージについて説明する。
図6は、本実施の形態におけるバナーページ画像の具体例を示したものである。尚、本実施の形態において、基本ページ画像は任意のページ画像でよいが、例えば、図1(a)に示した基本ページ画像101を用いるものとする。
[Second Embodiment]
In this embodiment, when a document (original document) created by a host computer is printed by a printing apparatus, banner pages (for example, a print start page and a print end page) are inserted before and after the document. .
First, an image of processing in the present embodiment will be described.
FIG. 6 shows a specific example of a banner page image in the present embodiment. In this embodiment, the basic page image may be an arbitrary page image, but for example, the basic page image 101 shown in FIG. 1A is used.

このうち、図6(a)は、印刷開始ページ画像601を示している。この印刷開始ページ画像601は、基本ページ画像101を印刷する前に印刷される画像である。具体的には、ページ上部に、印刷を開始した日付と時刻を描画し、その下に、ユーザ名(印刷者の名前)を描画し、更にその下に、「Start」という文字列を描画したものとなっている。
また、図6(b)は、印刷終了ページ画像602を示している。この印刷終了ページ画像602は、基本ページ画像101を印刷した後に印刷される画像である。具体的には、ページ上部に、印刷を終了した日付と時刻を描画し、その下に、ユーザ名(印刷者の名前)を描画し、更にその下に、「End」という文字列を描画したものとなっている。
尚、本実施の形態では、基本ページ画像101には加工処理は施されない。
Among these, FIG. 6A shows a print start page image 601. The print start page image 601 is an image that is printed before the basic page image 101 is printed. Specifically, the date and time when printing started is drawn at the top of the page, the user name (printer's name) is drawn below it, and the character string “Start” is drawn below it. It has become a thing.
FIG. 6B shows a print end page image 602. The print end page image 602 is an image that is printed after the basic page image 101 is printed. Specifically, the date and time when printing is finished is drawn at the top of the page, the user name (printer's name) is drawn below it, and the character string “End” is drawn below it. It has become a thing.
In the present embodiment, the basic page image 101 is not processed.

次に、バナーページ画像を描画するためのPDLデータについて説明する。
図7は、印刷開始ページ画像601を描画するためのPDLデータ(以下、「印刷開始ページデータ」という)701、及び、印刷終了ページ画像602を描画するためのPDLデータ(以下、「印刷終了ページデータ」という)702を示したものである。
このうち、図7(a)は、印刷開始ページデータ701を示している。
印刷開始ページデータ701は、ページ開始命令と、ページ出力命令と、印刷を開始した日付及び時刻、ユーザ名、文字列「Start」を印刷するための3つの文字列描画命令と、文字列の背景を描画する2つの矩形描画命令とから構成されている。
Next, PDL data for drawing a banner page image will be described.
FIG. 7 shows PDL data (hereinafter referred to as “print start page data”) 701 for rendering the print start page image 601 and PDL data (hereinafter referred to as “print end page”) for rendering the print end page image 602. 702) (referred to as “data”).
Among these, FIG. 7A shows print start page data 701.
The print start page data 701 includes a page start command, a page output command, a date and time when printing is started, a user name, three character string drawing commands for printing the character string “Start”, and a character string background. Are composed of two rectangular drawing commands for drawing.

また、図7(b)は、印刷終了ページデータ702を示している。
印刷終了ページデータ702は、ページ開始命令と、ページ出力命令と、印刷を終了した日付及び時刻、ユーザ名、文字列「End」を印刷するための3つの文字列描画命令と、文字列の背景を描画する2つの矩形描画命令とから構成されている。
ところで、印刷開始ページデータ701及び印刷終了ページデータ702は、ページ開始命令とページ出力命令とを含んでいることから、独立したページを表現していることが分かる。但し、ジョブ開始命令及びジョブ終了命令は含んでいない。尚、印刷開始ページデータ701及び印刷終了ページデータ702において、文字列描画命令の引数の文字列内に、「日付取得()」及び「時刻取得()」という関数が使われている。これは、PDLデータの解釈中に日付と時刻を取得する命令である。
FIG. 7B shows print end page data 702.
The print end page data 702 includes a page start command, a page output command, a date and time when printing is completed, a user name, three character string drawing commands for printing the character string “End”, and a character string background. Are composed of two rectangular drawing commands for drawing.
By the way, since the print start page data 701 and the print end page data 702 include a page start command and a page output command, it can be seen that they represent independent pages. However, the job start command and job end command are not included. In the print start page data 701 and the print end page data 702, functions “date acquisition ()” and “time acquisition ()” are used in the character string of the argument of the character string drawing command. This is a command for obtaining the date and time during interpretation of PDL data.

本実施の形態は、図6に示した印刷開始ページ画像601及び印刷終了ページ画像602を、基本ページ画像101の前後に挿入する機能を実現させるためのものである。
図8は、本実施の形態が適用されるコンピュータシステムの構成を示している。
図示するように、このコンピュータシステムは、印刷装置800と、ホストコンピュータ811とを含んでいる。ホストコンピュータ811としては、PCが例示されるが、印刷装置800に対して印刷指示を送信可能なコンピュータであれば、如何なるものであってもよい。また、ホストコンピュータ811は、印刷指示と共に、プリンタドライバによって生成された基本ページデータ201(図2参照)と、印刷指示をしたユーザ名とを印刷装置800に対して送出する。一方、印刷装置800は、ホストコンピュータ811とネットワークを介して接続されており、ホストコンピュータ811が送信した印刷指示を、ネットワークを通じて受信する。
This embodiment is for realizing a function of inserting the print start page image 601 and the print end page image 602 shown in FIG. 6 before and after the basic page image 101.
FIG. 8 shows the configuration of a computer system to which this embodiment is applied.
As shown, the computer system includes a printing apparatus 800 and a host computer 811. The host computer 811 is exemplified by a PC, but may be any computer as long as it can transmit a print instruction to the printing apparatus 800. In addition, the host computer 811 sends to the printing apparatus 800 the basic page data 201 (see FIG. 2) generated by the printer driver and the name of the user who has given the print instruction together with the print instruction. On the other hand, the printing apparatus 800 is connected to the host computer 811 via a network, and receives a print instruction transmitted from the host computer 811 via the network.

ここで、印刷装置800の内部構成について詳細に説明する。
図示するように、印刷装置800は、データ入力部812と、バナーページデータ生成部810と、入力データ記憶部801と、制御部802と、PDLデータ解釈部803とを含んでいる。また、中間データ生成部804と、中間データ記憶部805と、中間データ展開部806と、ラスタデータ記憶部807と、印刷制御部808と、印刷エンジン809とを含む。
Here, the internal configuration of the printing apparatus 800 will be described in detail.
As illustrated, the printing apparatus 800 includes a data input unit 812, a banner page data generation unit 810, an input data storage unit 801, a control unit 802, and a PDL data interpretation unit 803. Also, an intermediate data generation unit 804, an intermediate data storage unit 805, an intermediate data expansion unit 806, a raster data storage unit 807, a print control unit 808, and a print engine 809 are included.

データ入力部812は、ホストコンピュータ811から基本ページデータ201及び印刷を指示したユーザ名を受信し、基本ページデータ201は入力データ記憶部801に保存し、ユーザ名はバナーページデータ生成部810に送る。また、制御部802に対し、PDLデータ解釈部803に対する各種制御を指示する。
バナーページデータ生成部810は、ユーザ名と印刷開始時刻とを含んだ印刷開始ページデータ701、及び、ユーザ名と印刷終了時刻とを含んだ印刷終了ページデータ702を生成し、入力データ記憶部801に保存する。
入力データ記憶部801は、データ入力部812が入力した基本ページデータ201と、バナーページデータ生成部810が生成した印刷開始ページデータ701及び印刷終了ページデータ702とを記憶する。
The data input unit 812 receives the basic page data 201 and the user name instructing printing from the host computer 811, stores the basic page data 201 in the input data storage unit 801, and sends the user name to the banner page data generation unit 810. . Further, the controller 802 is instructed to perform various controls on the PDL data interpreter 803.
The banner page data generation unit 810 generates print start page data 701 including a user name and print start time, and print end page data 702 including a user name and print end time, and an input data storage unit 801. Save to.
The input data storage unit 801 stores the basic page data 201 input by the data input unit 812, the print start page data 701 and the print end page data 702 generated by the banner page data generation unit 810.

制御部802は、PDLデータ解釈部803に対し、処理の中断及び再開の制御を指示する。また、PDLデータ解釈部803に対し、読込み先のデータの切替えを指示する。
PDLデータ解釈部803は、入力データ記憶部801に保存されている基本ページデータ201、印刷開始ページデータ701、印刷終了ページデータ702を解釈し、解釈した結果を中間データ生成部804に送信する。また、制御部802の指示に従い、基本ページデータ201、印刷開始ページデータ701、或いは、印刷終了ページデータ702のどちらからデータを読み込むかを判断する。更に、制御部802の指示に従い、処理の中断及び再開も行う。
The control unit 802 instructs the PDL data interpretation unit 803 to control processing interruption and resumption. Also, the PDL data interpretation unit 803 is instructed to switch data to be read.
The PDL data interpretation unit 803 interprets the basic page data 201, the print start page data 701, and the print end page data 702 stored in the input data storage unit 801, and transmits the interpreted results to the intermediate data generation unit 804. Further, in accordance with an instruction from the control unit 802, it is determined whether data is to be read from the basic page data 201, the print start page data 701, or the print end page data 702. Further, the processing is interrupted and resumed in accordance with an instruction from the control unit 802.

一方、中間データ生成部804、中間データ記憶部805、中間データ展開部806、ラスタデータ記憶部807、印刷制御部808、及び、印刷エンジン809については、それぞれ、第1の実施の形態における中間データ生成部304、中間データ記憶部305、中間データ展開部306、ラスタデータ記憶部307、印刷制御部308、及び、印刷エンジン309と同様であるため、ここでの詳しい説明は省略する。   On the other hand, the intermediate data generation unit 804, the intermediate data storage unit 805, the intermediate data development unit 806, the raster data storage unit 807, the print control unit 808, and the print engine 809 are respectively the intermediate data in the first embodiment. Since the generation unit 304, the intermediate data storage unit 305, the intermediate data expansion unit 306, the raster data storage unit 307, the print control unit 308, and the print engine 309 are the same, detailed description thereof is omitted here.

尚、これらの機能は、ソフトウェアとハードウェア資源とが協働することにより実現される。即ち、データ入力部812、バナーページデータ生成部810、制御部802、PDLデータ解釈部803、中間データ生成部804、中間データ展開部806、印刷制御部808は、印刷装置800の図示しないCPUが、これらの機能を実現するプログラムを、例えばハードディスク等の外部記憶装置からメインメモリに読み込むことにより実現される。
また、入力データ記憶部801、中間データ記憶部805、ラスタデータ記憶部807は、半導体メモリ、磁気ディスク等の種々の記憶媒体を用いて実現することができる。
These functions are realized by cooperation between software and hardware resources. That is, the data input unit 812, the banner page data generation unit 810, the control unit 802, the PDL data interpretation unit 803, the intermediate data generation unit 804, the intermediate data expansion unit 806, and the print control unit 808 are executed by a CPU (not shown) of the printing apparatus 800. The program for realizing these functions is realized by reading the program from an external storage device such as a hard disk into the main memory.
The input data storage unit 801, the intermediate data storage unit 805, and the raster data storage unit 807 can be realized by using various storage media such as a semiconductor memory and a magnetic disk.

次に、本実施の形態の動作について説明する。
本実施の形態では、ホストコンピュータ811から基本ページデータ201及び印刷を指示したユーザ名が送られると、データ入力部812がこれらを受信する。そして、基本ページデータ201を入力データ記憶部801に記憶し、ユーザ名をバナーページデータ生成部810に送る。これにより、バナーページデータ生成部810は、ユーザ名と印刷開始時刻とを含んだ印刷開始ページデータ701、及び、ユーザ名と印刷終了時刻とを含んだ印刷終了ページデータ702を生成し、入力データ記憶部801に記憶する。
Next, the operation of the present embodiment will be described.
In the present embodiment, when the basic page data 201 and the user name instructing printing are sent from the host computer 811, the data input unit 812 receives them. The basic page data 201 is stored in the input data storage unit 801, and the user name is sent to the banner page data generation unit 810. Accordingly, the banner page data generation unit 810 generates print start page data 701 including the user name and the print start time, and print end page data 702 including the user name and the print end time. Store in the storage unit 801.

このようにして基本ページデータ201、印刷開始ページデータ701、印刷終了ページデータ702が入力データ記憶部801に保持されると、PDLデータ解釈部803の動作が開始する。
図9は、PDLデータ解釈部803の動作を示したフローチャートである。
処理が開始すると、PDLデータ解釈部803は、データの読込み先を判定する(ステップ902)。尚、データの読込み先は、後述するように、制御部802が設定している。
まず、ステップ902において読込み先が基本ページデータ201であると判定された場合について説明する。
この場合、PDLデータ解釈部803は、基本ページデータ201中に次に読み込むべき命令が存在するかどうかを判定する(ステップ903)。ここで、次に読み込むべき命令がないと判定されれば、処理を終了するが、次に読み込むべき命令があると判定されれば、その命令を読み込む(ステップ905)。そして、読み込んだ命令がジョブ開始命令の次の命令(以下、「ジョブ開始後命令」という)又はジョブ終了命令であるかどうかを判定する(ステップ906)。
When the basic page data 201, the print start page data 701, and the print end page data 702 are held in the input data storage unit 801 in this way, the operation of the PDL data interpretation unit 803 starts.
FIG. 9 is a flowchart showing the operation of the PDL data interpretation unit 803.
When the process starts, the PDL data interpretation unit 803 determines the data reading destination (step 902). The data reading destination is set by the control unit 802 as described later.
First, a case where it is determined in step 902 that the read destination is the basic page data 201 will be described.
In this case, the PDL data interpretation unit 803 determines whether there is an instruction to be read next in the basic page data 201 (step 903). If it is determined that there is no instruction to be read next, the process is terminated. If it is determined that there is an instruction to be read next, the instruction is read (step 905). Then, it is determined whether or not the read command is a command next to the job start command (hereinafter referred to as “command after job start”) or a job end command (step 906).

その結果、読み込んだ命令がジョブ開始後命令又はジョブ終了命令であると判定された場合、PDLデータ解釈部803は、ジョブ開始後命令又はジョブ終了命令を処理してよいかを制御部802に問い合わせる(ステップ907)。そして、この問い合わせに対する回答(問い合わせ結果)を制御部802から受信するまで、処理は中断する。その後、制御部802から回答を受信すると、PDLデータ解釈部803は、問い合わせ結果の内容を判定する(ステップ908)。ここで、判定結果が処理可能である場合、PDLデータ解釈部803は、中間データ生成部804にジョブ開始後命令又はジョブ終了命令を送る(ステップ909)。また、判定結果が処理不可である場合、PDLデータ解釈部803は、ジョブ開始後命令又はジョブ終了命令の読込みを取り消し、処理しなかったものとする(ステップ910)。そして、ステップ909、ステップ910の処理後は、いずれの場合もステップ902に戻り、次の命令の処理に移る。
一方、読み込んだ命令がジョブ開始後命令又はジョブ終了命令でないと判定された場合、PDLデータ解釈部803は、中間データ生成部804に描画命令(解釈結果)を送り(ステップ913)、その後、ステップ902に戻る。
As a result, when it is determined that the read instruction is a post-job start instruction or a job end instruction, the PDL data interpretation unit 803 inquires of the control unit 802 whether the post-job start instruction or the job end instruction may be processed. (Step 907). The processing is suspended until an answer (inquiry result) to the inquiry is received from the control unit 802. Thereafter, when an answer is received from the control unit 802, the PDL data interpretation unit 803 determines the content of the inquiry result (step 908). If the determination result can be processed, the PDL data interpretation unit 803 sends a post-job start command or a job end command to the intermediate data generation unit 804 (step 909). If the determination result cannot be processed, it is assumed that the PDL data interpretation unit 803 cancels the reading of the job start command or the job end command and does not process the job (step 910). Then, after the processing of step 909 and step 910, in either case, the processing returns to step 902 and proceeds to processing of the next instruction.
On the other hand, when it is determined that the read command is not a job start command or a job end command, the PDL data interpretation unit 803 sends a drawing command (interpretation result) to the intermediate data generation unit 804 (step 913), and then the step Return to 902.

次に、ステップ902において読込み先が印刷開始ページデータ701又は印刷終了ページデータ702であると判定された場合について説明する。
この場合、PDLデータ解釈部803は、印刷開始ページデータ701又は印刷終了ページデータ702中に次に読み込むべき命令が存在するかどうかを判定する(ステップ911)。ここで、次に読み込むべき命令があると判定されれば、その命令を読み込む(ステップ912)。そして、中間データ生成部804に描画命令(解釈結果)を送り(ステップ913)、その後、ステップ902に戻る。また、読み込むべき命令がないと判定されれば、「データなし」を制御部802に通知する(ステップ914)。そして、制御部802からの処理継続許可を待つ(ステップ915)。その後、制御部802から処理継続許可を受信したら、ステップ902に進み、次の命令の処理に移る。
以上により、PDLデータ解釈部803の動作の説明を終了する。
Next, a case where it is determined in step 902 that the reading destination is the print start page data 701 or the print end page data 702 will be described.
In this case, the PDL data interpretation unit 803 determines whether there is an instruction to be read next in the print start page data 701 or the print end page data 702 (step 911). If it is determined that there is an instruction to be read next, the instruction is read (step 912). Then, a drawing command (interpretation result) is sent to the intermediate data generation unit 804 (step 913), and then the process returns to step 902. If it is determined that there is no instruction to be read, “no data” is notified to the control unit 802 (step 914). Then, it waits for permission to continue processing from the control unit 802 (step 915). Thereafter, when processing continuation permission is received from the control unit 802, the process proceeds to step 902, and the processing of the next command is started.
This is the end of the description of the operation of the PDL data interpretation unit 803.

ところで、このPDLデータ解釈部803に対し、基本ページデータ201、印刷開始ページデータ701、印刷終了ページデータ702のいずれからデータを読み込むべきかを指示していたのは、制御部802であった。また、PDLデータ解釈部803がジョブ開始後命令又はジョブ終了命令を検出して中断した基本ページデータ201の解釈処理を再開してよいかどうか、或いは、印刷開始ページデータ701又は印刷終了ページデータ702のデータがなくなった際に処理を継続してよいかの指示も、制御部802が行っていた。   Incidentally, it is the control unit 802 that instructs the PDL data interpretation unit 803 from which of the basic page data 201, the print start page data 701, and the print end page data 702 to read data. Further, whether the PDL data interpretation unit 803 may resume the interpretation processing of the basic page data 201 that has been interrupted by detecting a job start command or job end command, or print start page data 701 or print end page data 702. The control unit 802 also gives an instruction as to whether the processing can be continued when there is no more data.

そこで、次に、この制御部802の動作について説明する。
図10は、制御部802の動作を示したフローチャートである。
まず、制御部802は、PDLデータ解釈部803に対し、読込み先を基本ページデータ201に設定する(ステップ1002)。図2のPDLデータを例にとると、図2(a)の基本ページデータ201が読込み先として設定される。そして、制御部802は、PDLデータ解釈部803に解釈開始を指示する(ステップ1003)。尚、PDLデータ解釈部803は、この指示を受け、ステップ903以降の基本ページデータ201の解釈処理を行うことになる。
Therefore, the operation of the control unit 802 will be described next.
FIG. 10 is a flowchart showing the operation of the control unit 802.
First, the control unit 802 sets the reading destination to the basic page data 201 for the PDL data interpretation unit 803 (step 1002). Taking the PDL data in FIG. 2 as an example, the basic page data 201 in FIG. 2A is set as the reading destination. Then, the control unit 802 instructs the PDL data interpretation unit 803 to start interpretation (step 1003). In response to this instruction, the PDL data interpretation unit 803 performs interpretation processing of the basic page data 201 after step 903.

その後、制御部802は、PDLデータ解釈部803からのジョブ開始後命令の処理可否問い合わせを待つ(ステップ1004)。尚、PDLデータ解釈部803は、ジョブ開始後命令を検知した時点で制御部802に処理可否問い合わせを行い、制御部802からの返答が得られるまで処理を中断している。
このように、PDLデータ解釈部803から問い合わせが発生すると、制御部802は、未処理の印刷開始ページデータ701が存在するかどうかを判定する(ステップ1005)。
Thereafter, the control unit 802 waits for an inquiry about whether or not to process a post-job instruction from the PDL data interpretation unit 803 (step 1004). Note that the PDL data interpretation unit 803 makes an inquiry about whether or not processing is possible to the control unit 802 at the time when a command after starting a job is detected, and the processing is suspended until a response from the control unit 802 is obtained.
As described above, when an inquiry is generated from the PDL data interpretation unit 803, the control unit 802 determines whether there is unprocessed print start page data 701 (step 1005).

その結果、未処理の印刷開始ページデータ701が存在すると判定された場合は、PDLデータ解釈部803に対し、読込み先を印刷開始ページデータ701に設定する(ステップ1006)。図7のPDLデータを例にとると、図7(a)の印刷開始ページデータ701が読込み先として設定される。そして、PDLデータ解釈部803からのジョブ開始後命令の処理可否問い合わせに対して「処理不可」を返す(ステップ1007)。尚、PDLデータ解釈部803は、この回答を受信した時点で処理を再開する。但し、PDLデータ解釈部803は、ステップ910でジョブ開始後命令の読込みを取り消し、ステップ902で読込み先が印刷開始ページデータ701と判定されるので、ステップ911以降の印刷開始ページデータ701の解釈処理を行うことになる。   As a result, if it is determined that there is unprocessed print start page data 701, the read destination is set in the print start page data 701 for the PDL data interpretation unit 803 (step 1006). Taking the PDL data in FIG. 7 as an example, the print start page data 701 in FIG. 7A is set as the reading destination. Then, in response to the inquiry about whether or not the post-job start command can be processed from the PDL data interpretation unit 803, “unprocessable” is returned (step 1007). Note that the PDL data interpretation unit 803 resumes processing when receiving this answer. However, since the PDL data interpretation unit 803 cancels the reading of the instruction after the job start in step 910 and the read destination is determined to be the print start page data 701 in step 902, the interpretation process of the print start page data 701 in step 911 and subsequent steps. Will do.

その後、制御部802は、PDLデータ解釈部803から「データなし」通知を待つ(ステップ1008)。尚、PDLデータ解釈部803は、印刷開始ページデータ701を全て解釈し終わると、ステップ914で制御部802に「データなし」を通知する。
制御部802は、「データなし」通知を受信すると、PDLデータ解釈部803に対し、読込み先を基本ページデータ201に設定する(ステップ1009)。そして、PDLデータ解釈部803に「処理継続許可」を送り(ステップ1010)、ステップ1004に戻る。
Thereafter, the control unit 802 waits for a “no data” notification from the PDL data interpretation unit 803 (step 1008). When the PDL data interpretation unit 803 has completely interpreted the print start page data 701, the PDL data interpretation unit 803 notifies the control unit 802 of “no data” in step 914.
Upon receiving the “no data” notification, the control unit 802 sets the reading destination to the basic page data 201 for the PDL data interpretation unit 803 (step 1009). Then, “process continuation permission” is sent to the PDL data interpretation unit 803 (step 1010), and the process returns to step 1004.

一方、未処理の印刷開始ページデータ701が存在しないと判定された場合は、PDLデータ解釈部803からのジョブ開始後命令の処理可否問い合わせに対して「処理可能」を返す(ステップ1011)。このような場合としては、例えば、元々印刷開始ページデータ701が存在しない場合、即ち、オリジナルの文書をバナーページを挿入せずに印刷する場合がある。或いは、印刷開始ページデータ701の挿入が完了した場合もある。   On the other hand, if it is determined that the unprocessed print start page data 701 does not exist, “processable” is returned in response to the process enable / disable inquiry about the post-job start command from the PDL data interpretation unit 803 (step 1011). As such a case, for example, there is a case where the print start page data 701 originally does not exist, that is, an original document is printed without inserting a banner page. Alternatively, the insertion of the print start page data 701 may be completed.

その後、制御部802は、PDLデータ解釈部803からのジョブ終了命令の処理可否問い合わせを待つ(ステップ1012)。尚、PDLデータ解釈部803は、ジョブ終了命令を検知すると、ステップ907で制御部802に処理可否問い合わせを行い、制御部802からの返答が得られるまで処理を中断している。
このように、PDLデータ解釈部803から問い合わせが発生すると、制御部802は、未処理の印刷終了ページデータ702が存在するかどうかを判定する(ステップ1013)。
Thereafter, the control unit 802 waits for an inquiry about whether or not to process a job end command from the PDL data interpretation unit 803 (step 1012). When the PDL data interpretation unit 803 detects a job end command, the PDL data interpretation unit 803 inquires of the control unit 802 whether processing is possible in step 907 and suspends the processing until a response from the control unit 802 is obtained.
As described above, when an inquiry is generated from the PDL data interpretation unit 803, the control unit 802 determines whether or not unprocessed print end page data 702 exists (step 1013).

その結果、未処理の印刷終了ページデータ702が存在すると判定された場合は、PDLデータ解釈部803に対し、読込み先を印刷終了ページデータ702に設定する(ステップ1014)。図7のPDLデータを例にとると、図7(b)の印刷終了ページデータ702が読込み先として設定される。そして、PDLデータ解釈部803からのジョブ終了命令の処理可否問い合わせに対して「処理不可」を返す(ステップ1015)。尚、PDLデータ解釈部803は、この回答を受信した時点で処理を再開する。但し、PDLデータ解釈部803は、ステップ910でジョブ終了命令の読込みを取り消し、ステップ902で読込み先が印刷終了ページデータ702と判定されるので、ステップ911以降の印刷終了ページデータ702の解釈処理を行うことになる。   As a result, if it is determined that there is unprocessed print end page data 702, the reading destination is set in the print end page data 702 for the PDL data interpretation unit 803 (step 1014). Taking the PDL data in FIG. 7 as an example, the print end page data 702 in FIG. 7B is set as the reading destination. Then, in response to the job end instruction process availability inquiry from the PDL data interpretation unit 803, “process not possible” is returned (step 1015). Note that the PDL data interpretation unit 803 resumes processing when receiving this answer. However, since the PDL data interpretation unit 803 cancels the reading of the job end instruction in step 910 and the read destination is determined to be the print end page data 702 in step 902, the interpretation process of the print end page data 702 after step 911 is performed. Will do.

その後、制御部802は、PDLデータ解釈部803から「データなし」通知を待つ(ステップ1008)。尚、PDLデータ解釈部803は、印刷終了ページデータ702を全て解釈し終わると、ステップ914で制御部802に「データなし」を通知する。
制御部802は、「データなし」通知を受信すると、PDLデータ解釈部803に対し、読込み先を基本ページデータ201に設定する(ステップ1009)。そして、PDLデータ解釈部803に「処理継続許可」を送り(ステップ1010)、ステップ1004に戻る。
Thereafter, the control unit 802 waits for a “no data” notification from the PDL data interpretation unit 803 (step 1008). When the PDL data interpretation unit 803 has completely interpreted the print end page data 702, the PDL data interpretation unit 803 notifies the control unit 802 of “no data” in step 914.
Upon receiving the “no data” notification, the control unit 802 sets the reading destination to the basic page data 201 for the PDL data interpretation unit 803 (step 1009). Then, “process continuation permission” is sent to the PDL data interpretation unit 803 (step 1010), and the process returns to step 1004.

一方、未処理の印刷終了ページデータ702が存在しないと判定された場合は、PDLデータ解釈部803からのジョブ終了命令の処理可否問い合わせに対して「処理可能」を返す(ステップ1016)。このような場合としては、例えば、元々印刷終了ページデータ702が存在しない場合、即ち、オリジナルの文書をバナーページを挿入せずに印刷する場合がある。或いは、印刷終了ページデータ702の挿入が完了した場合もある。即ち、印刷終了ページデータ702の挿入が完了すると、ステップ1009、1010でPDLデータ解釈部803に対し基本ページデータ201の命令を処理させることにより、処理待ち状態になっていたジョブ終了命令が処理される。そして、ステップ1005での判定、及び、ステップ1013での判定が共に「No」となり、ステップ1016を経て、処理は終了する。
以上により、制御部802の動作の説明を終了する。
On the other hand, if it is determined that the unprocessed print end page data 702 does not exist, “processable” is returned in response to the job end instruction process availability inquiry from the PDL data interpretation unit 803 (step 1016). As such a case, for example, there is a case where the print end page data 702 originally does not exist, that is, an original document is printed without inserting a banner page. Alternatively, the insertion of the print end page data 702 may be completed. That is, when the insertion of the print end page data 702 is completed, in step 1009 and 1010, the PDL data interpretation unit 803 processes the instruction of the basic page data 201, thereby processing the job end instruction that has been waiting for processing. The Then, both the determination in step 1005 and the determination in step 1013 are “No”, and the process ends through step 1016.
This is the end of the description of the operation of the control unit 802.

このように、本実施の形態では、印刷データをラスタデータに変換するに当たり、印刷データの解釈時にジョブ開始後命令又はジョブ終了命令を検知すると解釈を一時停止し、解釈対象のデータの読込み先を切り替えるようにした。これにより、オリジナルの印刷データに手を加えることなく、バナーページの追加を効率的に行えるようになった。即ち、一度作成したPDLデータの前後にバナーページを描画する命令を挿入するには、一度PDLデータを解釈し、命令の挿入のためにPDLデータを移動又はコピーする手法も考えられるが、本実施の形態によれば、かかる手法よりも格段に効率的な手法が得られる。   As described above, in this embodiment, when converting print data to raster data, if a post-job start command or job end command is detected when interpreting the print data, the interpretation is temporarily stopped and the reading destination of the data to be interpreted is determined. Changed. As a result, banner pages can be added efficiently without changing the original print data. In other words, in order to insert an instruction to draw a banner page before and after the PDL data once created, a method of interpreting the PDL data once and moving or copying the PDL data for inserting the instruction is also conceivable. According to this embodiment, a method that is much more efficient than this method can be obtained.

[第3の実施の形態]
本実施の形態は、基本ページデータ201の任意の命令の前後に付加的なPDLデータを挿入するものである。即ち、付加的なPDLデータを挿入する基本ページデータ201中の位置として、第1の実施の形態では、ページ出力命令の直前を採用し、第2の実施の形態では、ジョブ開始後命令及びジョブ終了命令の直前を採用したが、ここではこのような位置には限らないものとする。
このように任意の位置へPDLデータを挿入するためには、例えば、図3のPDLデータ解釈部303に対し、処理を中断すべき条件を登録する機構を設ければよい。この場合、PDLデータ解釈部303は、中断条件を検出した時点で、制御部302に中断条件を通知し、処理継続可能かどうかを問い合わせる。制御部302は、中断条件を解析し、付加的なPDLデータを追加すべきと判定すれば、PDLデータ解釈部803に対して読込み先として付加的なPDLデータを設定し、「処理不可」を通知すればよい。
[Third Embodiment]
In the present embodiment, additional PDL data is inserted before and after an arbitrary instruction of the basic page data 201. That is, as the position in the basic page data 201 into which additional PDL data is inserted, in the first embodiment, the position immediately before the page output command is adopted, and in the second embodiment, the post job start command and job Although immediately before the end command is adopted, it is assumed that the position is not limited to this.
In order to insert PDL data at an arbitrary position in this way, for example, a mechanism for registering conditions for interrupting processing may be provided in the PDL data interpretation unit 303 of FIG. In this case, when the PDL data interpretation unit 303 detects the interruption condition, the PDL data interpretation unit 303 notifies the control unit 302 of the interruption condition and inquires whether the processing can be continued. If the control unit 302 analyzes the interruption condition and determines that additional PDL data should be added, the control unit 302 sets additional PDL data as a reading destination to the PDL data interpretation unit 803, and sets “unprocessable”. Just notify.

ここで、中断条件としては、命令の種類を登録することもできるし、命令の種類と引数とを組み合わせたものを登録することもできる。例えば、全ての基本ページ画像101の前に白紙を挿入したいときは、ページ開始命令という命令の種類を中断条件として登録すればよい。一方、特定のサイズの基本ページ画像101の前だけに白紙を挿入したいときは、ページ開始命令とその命令の引数である用紙サイズを中断条件として登録すればよい。   Here, as the interruption condition, an instruction type can be registered, or a combination of an instruction type and an argument can be registered. For example, when a blank sheet is to be inserted before all the basic page images 101, the type of instruction called a page start instruction may be registered as an interruption condition. On the other hand, when it is desired to insert a blank page only in front of the basic page image 101 of a specific size, a page start command and the paper size as an argument of the command may be registered as an interruption condition.

尚、第1から第3の実施の形態では、基本ページデータ201の解釈時に特定の命令を検出すると、その命令を解釈せずに、付加的なPDLデータを解釈するようにした。しかしながら、特定の命令を検出した場合に、その命令を解釈してから、付加的なPDLデータを解釈するような構成としてもよい。このような構成において、第1の実施の形態のようにページ出力命令の直前に付加的なPDLデータを挿入する場合、ページ出力命令の直前の命令が検出対象の命令となる。一方、第2の実施の形態のようにジョブ開始後命令及びジョブ終了命令の直前に付加的なPDLデータを挿入する場合、ジョブ開始命令、及び、ジョブ終了命令の直前の命令が検出対象の命令となる。
また、第1から第3の実施の形態では、文書の印刷を指示する印刷データとして、PDLデータを例示したが、ホストコンピュータから印刷装置へ送られる文書データを印刷データとしてもよい。
In the first to third embodiments, when a specific command is detected when interpreting the basic page data 201, additional PDL data is interpreted without interpreting the command. However, when a specific command is detected, the PDL data may be interpreted after the command is interpreted. In such a configuration, when additional PDL data is inserted immediately before the page output instruction as in the first embodiment, the instruction immediately before the page output instruction becomes the instruction to be detected. On the other hand, when the additional PDL data is inserted immediately before the job start command and the job end command as in the second embodiment, the job start command and the command immediately before the job end command are detected commands. It becomes.
In the first to third embodiments, PDL data is exemplified as print data for instructing printing of a document. However, document data sent from a host computer to a printing apparatus may be used as print data.

本発明の第1の実施の形態で処理される画像の例を示した図である。It is the figure which showed the example of the image processed in the 1st Embodiment of this invention. 本発明の第1の実施の形態で処理されるPDLデータの例を示した図である。It is the figure which showed the example of the PDL data processed in the 1st Embodiment of this invention. 本発明の第1の実施の形態が適用されるコンピュータシステムの構成を示した図である。It is the figure which showed the structure of the computer system to which the 1st Embodiment of this invention is applied. 本発明の第1の実施の形態におけるPDLデータ解釈部の動作例を示したフローチャートである。It is the flowchart which showed the operation example of the PDL data interpretation part in the 1st Embodiment of this invention. 本発明の第1の実施の形態における制御部の動作例を示したフローチャートである。It is the flowchart which showed the operation example of the control part in the 1st Embodiment of this invention. 本発明の第2の実施の形態で処理される画像の例を示した図である。It is the figure which showed the example of the image processed in the 2nd Embodiment of this invention. 本発明の第2の実施の形態で処理されるPDLデータの例を示した図である。It is the figure which showed the example of the PDL data processed in the 2nd Embodiment of this invention. 本発明の第2の実施の形態が適用されるコンピュータシステムの構成を示した図である。It is the figure which showed the structure of the computer system with which the 2nd Embodiment of this invention is applied. 本発明の第2の実施の形態におけるPDLデータ解釈部の動作例を示したフローチャートである。It is the flowchart which showed the operation example of the PDL data interpretation part in the 2nd Embodiment of this invention. 本発明の第2の実施の形態における制御部の動作例を示したフローチャートである。It is the flowchart which showed the operation example of the control part in the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

300,800…印刷装置、301,801…入力データ記憶部、302,802…制御部、303,803…PDLデータ解釈部、304,804…中間データ生成部、305,805…中間データ記憶部、306,806…中間データ展開部、307,807…ラスタデータ記憶部、308,808…印刷制御部、309,809…印刷エンジン、310…ページ加工データ生成部、311,811…ホストコンピュータ、312,812…データ入力部、810…バナーページデータ生成部 300, 800 ... printing device, 301,801 ... input data storage unit, 302,802 ... control unit, 303,803 ... PDL data interpretation unit, 304,804 ... intermediate data generation unit, 305,805 ... intermediate data storage unit, 306, 806: Intermediate data development unit, 307, 807 ... Raster data storage unit, 308, 808 ... Print control unit, 309, 809 ... Print engine, 310 ... Page processing data generation unit, 311, 811 ... Host computer, 312, 812 ... Data input unit, 810 ... Banner page data generation unit

Claims (13)

文書画像の印刷を指示する印刷データを格納する第1の格納手段と、
前記文書画像に付加する付加画像であって、当該文書画像の印刷を指示した日付と当該文書画像の印刷を指示した者の名前とを含む付加画像の印刷のための付加データを格納する第2の格納手段と、
前記第1の格納手段から前記印刷データを読み込んで解釈し、当該印刷データ中に特定の命令を検出すると、前記第2の格納手段に未処理の付加データが存在するかどうかを判定し、当該未処理の付加データが存在すると判定した場合には、当該印刷データの解釈を中断し、当該特定の命令の読込みを取り消し、当該未処理の付加データを解釈した後、当該特定の命令を前記第1の格納手段から再度読み込むことにより、前記付加画像が付加された前記文書画像を生成し、当該未処理の付加データが存在しないと判定した場合には、当該印刷データの解釈を継続することにより、前記付加画像が付加されない前記文書画像を生成する解釈手段と
を備えたことを特徴とする画像処理装置。
First storage means for storing print data for instructing printing of a document image;
A second image that is an additional image to be added to the document image, and stores additional data for printing the additional image including the date when the printing of the document image is instructed and the name of the person who instructs the printing of the document image . and storage means,
When the print data is read and interpreted from the first storage means and a specific command is detected in the print data, it is determined whether there is unprocessed additional data in the second storage means, If it is determined that there is unprocessed additional data, the interpretation of the print data is interrupted, the reading of the specific command is canceled, the unprocessed additional data is interpreted, and then the specific command is By re-reading from the storage unit 1, the document image to which the additional image is added is generated, and when it is determined that the unprocessed additional data does not exist, interpretation of the print data is continued. And an interpreting means for generating the document image to which the additional image is not added.
前記解釈手段による前記印刷データの解釈の中断に応じて、前記未処理の付加データを解釈するよう当該解釈手段に指示する制御手段を更に備えたことを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a control unit that instructs the interpretation unit to interpret the unprocessed additional data in response to the interruption of the interpretation of the print data by the interpretation unit. . 前記特定の命令は、ページの開始を指示する命令、又は、ページの終了を指示する命令であることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specific command is a command for instructing start of a page or a command for instructing end of a page. 前記特定の命令は、印刷ジョブの開始を指示する命令、又は、印刷ジョブの終了を指示する命令であることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specific command is a command for instructing start of a print job or a command for instructing end of the print job. 前記特定の命令は、前記印刷データの解釈の中断点として機能する命令として予め登録された命令であることを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the specific command is a command registered in advance as a command that functions as an interruption point of interpretation of the print data. 文書画像の印刷を指示する印刷データを第1の格納手段に格納する第1の格納ステップと、
前記文書画像に付加する付加画像であって、当該文書画像の印刷を指示した日付と当該文書画像の印刷を指示した者の名前とを含む付加画像の印刷のための付加データを第2の格納手段に格納する第2の格納ステップと、
前記第1の格納手段から前記印刷データを読み込んで解釈する解釈ステップと、
前記印刷データ中に特定の命令を検出すると、前記第2の格納手段に未処理の付加データが存在するかどうかを判定する判定ステップと、
前記未処理の付加データが存在すると判定した場合には、前記印刷データの解釈を中断し、当該特定の命令の読込みを取り消し、当該未処理の付加データを解釈した後、当該特定の命令を前記第1の格納手段から再度読み込むことにより、前記付加画像が付加された前記文書画像を生成し、前記未処理の付加データが存在しないと判定した場合には、前記印刷データの解釈を継続することにより、前記付加画像が付加されない前記文書画像を生成するステップと
を含むことを特徴とする画像処理方法。
A first storage step of storing print data instructing printing of the document image in the first storage means ;
A second storage of additional data for printing an additional image , which is an additional image to be added to the document image, including a date when the document image is instructed to be printed and a name of the person who has instructed the document image to be printed. A second storing step for storing in the means ;
An interpretation step of reading and interpreting the print data from the first storage means ;
A determination step of determining whether unprocessed additional data exists in the second storage means when detecting a specific command in the print data;
When it is determined that the unprocessed additional data exists, the interpretation of the print data is interrupted, the reading of the specific command is canceled, the unprocessed additional data is interpreted, and then the specific command is By re-reading from the first storage means, the document image to which the additional image is added is generated, and when it is determined that the unprocessed additional data does not exist, interpretation of the print data is continued. And generating the document image to which the additional image is not added.
前記特定の命令は、ページの開始を指示する命令、又は、ページの終了を指示する命令であることを特徴とする請求項6記載の画像処理方法。 The image processing method according to claim 6 , wherein the specific command is a command for instructing start of a page or a command for instructing end of a page. 前記特定の命令は、印刷ジョブの開始を指示する命令、又は、印刷ジョブの終了を指示する命令であることを特徴とする請求項6記載の画像処理方法。 The image processing method according to claim 6 , wherein the specific command is a command for instructing the start of a print job or a command for instructing the end of the print job. 前記特定の命令は、前記印刷データの解釈の中断点として機能する命令として予め登録された命令であることを特徴とする請求項6記載の画像処理方法。 The image processing method according to claim 6 , wherein the specific command is a command registered in advance as a command that functions as an interruption point of the interpretation of the print data. コンピュータに、
文書画像の印刷を指示する印刷データを第1の格納手段に格納する機能と、
前記文書画像に付加する付加画像であって、当該文書画像の印刷を指示した日付と当該文書画像の印刷を指示した者の名前とを含む付加画像の印刷のための付加データを第2の格納手段に格納する機能と、
前記第1の格納手段から前記印刷データを読み込んで解釈する機能と、
前記印刷データ中に特定の命令を検出すると、前記第2の格納手段に未処理の付加データが存在するかどうかを判定する機能と、
前記未処理の付加データが存在すると判定した場合には、前記印刷データの解釈を中断し、当該特定の命令の読込みを取り消し、当該未処理の付加データを解釈した後、当該特定の命令を前記第1の格納手段から再度読み込むことにより、前記付加画像が付加された前記文書画像を生成し、前記未処理の付加データが存在しないと判定した場合には、前記印刷データの解釈を継続することにより、前記付加画像が付加されない前記文書画像を生成する機能と
を実現させるためのプログラム。
On the computer,
A function of storing print data instructing printing of a document image in the first storage means;
A second storage of additional data for printing an additional image, which is an additional image to be added to the document image, including a date when the document image is instructed to be printed and a name of the person who has instructed the document image to be printed. A function stored in the means;
A function of reading and interpreting the print data from the first storage means ;
A function for determining whether unprocessed additional data exists in the second storage means when a specific command is detected in the print data;
If it is determined that the unprocessed additional data exists, the interpretation of the print data is interrupted, the reading of the specific command is canceled, the unprocessed additional data is interpreted, and then the specific command is By re-reading from the first storage means, the document image to which the additional image is added is generated, and when it is determined that the unprocessed additional data does not exist, interpretation of the print data is continued. And a function for generating the document image to which the additional image is not added.
前記特定の命令は、ページの開始を指示する命令、又は、ページの終了を指示する命令であることを特徴とする請求項10記載のプログラム。 11. The program according to claim 10 , wherein the specific instruction is an instruction for instructing a start of a page or an instruction for instructing an end of a page. 前記特定の命令は、印刷ジョブの開始を指示する命令、又は、印刷ジョブの終了を指示する命令であることを特徴とする請求項10記載のプログラム。 11. The program according to claim 10 , wherein the specific command is a command for instructing the start of a print job or a command for instructing the end of a print job. 前記特定の命令は、前記印刷データの解釈の中断点として機能する命令として予め登録された命令であることを特徴とする請求項10記載のプログラム。 11. The program according to claim 10 , wherein the specific instruction is an instruction registered in advance as an instruction that functions as an interruption point of interpretation of the print data.
JP2006035610A 2006-02-13 2006-02-13 Image processing apparatus, image processing method, and program Expired - Fee Related JP4706495B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006035610A JP4706495B2 (en) 2006-02-13 2006-02-13 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006035610A JP4706495B2 (en) 2006-02-13 2006-02-13 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2007215135A JP2007215135A (en) 2007-08-23
JP4706495B2 true JP4706495B2 (en) 2011-06-22

Family

ID=38493134

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006035610A Expired - Fee Related JP4706495B2 (en) 2006-02-13 2006-02-13 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP4706495B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6373633B2 (en) * 2014-04-30 2018-08-15 理想科学工業株式会社 Image processing apparatus and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11170655A (en) * 1997-12-12 1999-06-29 Canon Inc Image output apparatus and method
JP2000216986A (en) * 1999-01-26 2000-08-04 Canon Inc Output data creation device, output data processing device, data processing system, data processing method, and storage medium
JP3906638B2 (en) * 2000-05-10 2007-04-18 富士ゼロックス株式会社 Image processing device
JP2002248829A (en) * 2001-02-23 2002-09-03 Fuji Xerox Co Ltd Image processor and storage medium with image processing program recorded therein

Also Published As

Publication number Publication date
JP2007215135A (en) 2007-08-23

Similar Documents

Publication Publication Date Title
US6796730B2 (en) Printing system and printing apparatus
JP2010211627A (en) Image processor and method of controlling the same
US20110255126A1 (en) Printing apparatus, print processing method, and program
JP2009118340A (en) Image processing apparatus, image processing method, program, and storage medium
JP2001158159A (en) Print control method and apparatus and print system
JP3757847B2 (en) Spool file processing apparatus, program, and recording medium
US7365868B2 (en) Information processing apparatus, method of controlling printing, computer program, and printing system
JP2007329919A (en) Image forming apparatus and control method thereof
US6804028B1 (en) Image processing apparatus and method, and storage medium storing computer-readable program
JP2003256166A (en) Print command generation apparatus and method, printing apparatus and control method thereof, and printing system
US8259313B2 (en) Image processing apparatus, method, and computer-readable medium storing the program thereof
JP2004074783A (en) Method of suppressing printing of nearly-blank page
JP2005332403A (en) System and method for combining selection of image finishing functions by multiple devices at a single location
JP2006155308A (en) Image forming apparatus
JP4706495B2 (en) Image processing apparatus, image processing method, and program
JP4577907B2 (en) Image processing apparatus, image forming apparatus, and printing system
US20060050308A1 (en) Information processing device capable of outputting print data to print device, and control method thereof
JP4147928B2 (en) Control device for image formation
JP4706884B2 (en) Image processing apparatus, image processing program, and printing apparatus
JP5104446B2 (en) Print control apparatus, program, and system
JP2002248829A (en) Image processor and storage medium with image processing program recorded therein
JP2010105191A (en) Image processing device
JP3284457B2 (en) Printer
JP2000263873A (en) Printing method and apparatus, and storage medium
KR100675370B1 (en) An image forming apparatus capable of processing canceled print data and a print data processing method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081225

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100924

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100928

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101214

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110125

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110215

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110228

LAPS Cancellation because of no payment of annual fees