[go: up one dir, main page]

JP2008123345A - Information processing apparatus, information processing method and program, and storage medium storing the program - Google Patents

Information processing apparatus, information processing method and program, and storage medium storing the program Download PDF

Info

Publication number
JP2008123345A
JP2008123345A JP2006307910A JP2006307910A JP2008123345A JP 2008123345 A JP2008123345 A JP 2008123345A JP 2006307910 A JP2006307910 A JP 2006307910A JP 2006307910 A JP2006307910 A JP 2006307910A JP 2008123345 A JP2008123345 A JP 2008123345A
Authority
JP
Japan
Prior art keywords
image data
image
stamp
print
setting
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
Application number
JP2006307910A
Other languages
Japanese (ja)
Inventor
Kei Kitakata
圭 北形
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2006307910A priority Critical patent/JP2008123345A/en
Publication of JP2008123345A publication Critical patent/JP2008123345A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processor, an information processing method, an information processing program, and a storage medium storing the program for preventing breakage of coded image data when printing is carried out while setting the coded image data and the stamp image data. <P>SOLUTION: A spool file manager reads a configuration of the stamp image data from a spool file and starts management of a job. A coded image detection part detects whether coded image data are included in document image data or not, and if the coded image data are included, determines whether the stamp image data overlaps with the coded image data or not. Then, breakage of the coded image data is prevented by stopping print processing itself, composing no stamp image data, or changing/shrinking the position of the stamp image data. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、符号化画像データを取り扱うことができる情報処理装置、情報処理方法およびプログラム、並びにそのプログラムを格納した記憶媒体に関する。より詳細には、パーソナルコンピュータ等の情報処理装置において、符号化画像データとスタンプ画像データとを印刷する際の処理に関する。   The present invention relates to an information processing apparatus capable of handling encoded image data, an information processing method and program, and a storage medium storing the program. More specifically, the present invention relates to processing when printing encoded image data and stamp image data in an information processing apparatus such as a personal computer.

従来、「機密」、「回覧」などの文字列が記されたマークを文書に付与する場合、スタンプ画像データが使用されていた。   Conventionally, when a mark having a character string such as “confidential” or “circulation” is added to a document, stamp image data has been used.

パーソナルコンピュータなどのホストコンピュータ上で動作するアプリケーションによって作成された画像データをプリンタで印刷する際、このようなマークを付与するための技術が知られている。すなわち、プリンタドライバにスタンプマークやウォーターマーク(watermark:透かし)を付与する機能が取り入れられている(特許文献1参照)。   A technique for giving such a mark when image data created by an application operating on a host computer such as a personal computer is printed by a printer is known. That is, a function of adding a stamp mark or a watermark to the printer driver is incorporated (see Patent Document 1).

プリンタドライバとは、オペレーティングシステム(OS)のグラフィックスモジュールを介してアプリケーションから描画指示を受け、この描画指示に従って、出力先のプリンタに固有の画像記録データを生成するソフトウェアである。   The printer driver is software that receives a drawing instruction from an application via a graphics module of an operating system (OS) and generates image recording data unique to the output destination printer in accordance with the drawing instruction.

このプリンタドライバは、個々のアプリケーションに依存しないOS固有のものである。このため、従来、既存のアプリケーションに改変を加えることなく、任意のアプリケーションで作成された画像に対し、共通のマークを重ね合わせて出力する機能もプリンタドライバに取り入れられている(特許文献2参照)。   This printer driver is unique to the OS and does not depend on individual applications. For this reason, conventionally, a function for superimposing and outputting a common mark on an image created by an arbitrary application without modifying an existing application is also incorporated in the printer driver (see Patent Document 2). .

従来、バーコードやQRコード(二次元コード)に代表されるように、製品等の情報を符号化画像データに変換して出力用紙(この場合、ラベル等が多い)に埋め込む事が行われてきた。このような出力用紙をリーダ(読み取り機)で読み取ることにより、符号化される前の情報を取得し、商品の管理等に利用する形態が実用化されている。   Conventionally, as represented by barcodes and QR codes (two-dimensional codes), information such as products is converted into encoded image data and embedded in output paper (in this case, there are many labels and the like). It was. By reading such output paper with a reader (reader), information before being encoded is acquired and used for product management or the like.

最近では、単なるテキストデータ(文字情報)だけでなく画像やその他の様々な情報を符号化画像データに変換して紙に埋め込むべく、従来よりも大容量の情報が埋め込み可能なn次元の符号化方法が考えられている(特許文献3参照)。特許文献3では、サムネイル(多数の画像を一覧表示するために縮小された画像)と共にその元ファイルが符号化画像データに変換されて出力用紙に印刷され、その出力用紙を複写機に読み込ませることで、元ファイルを印刷可能となっている。   Recently, not only text data (character information) but also an image and various other information are converted into encoded image data and embedded in paper. A method has been considered (see Patent Document 3). In Patent Document 3, the original file together with thumbnails (images reduced to display a large number of images as a list) is converted into encoded image data, printed on output paper, and the output paper is read by a copying machine. The original file can be printed.

特開2001−197297号公報JP 2001-197297 A 特開2004−260852号公報JP 2004260852 A 特開2001−344588号広報JP 2001-344588

情報を符号化して符号化画像データを生成し、該符号化画像データを原稿画像データに合成した印刷データにスタンプ画像データを追加して印刷する場合、符号化画像データとスタンプ画像データとが重複して印字されることがある。このような場合には、符号化画像データが破損し、読み取りが正確にできなくなる。   When the encoded image data is generated by encoding the information, and the stamp image data is added to the print data obtained by synthesizing the encoded image data with the original image data, the encoded image data and the stamp image data overlap. May be printed. In such a case, the encoded image data is damaged and cannot be read accurately.

本発明は、このような課題に鑑みてなされたものであり、その目的とするところは、符号化画像データとスタンプ画像データの設定が行われて印刷される場合に、符号化画像データを破損させない情報処理装置および情報処理方法を提供することにある。   The present invention has been made in view of such a problem, and an object of the present invention is to damage the encoded image data when the encoded image data and the stamp image data are set and printed. An object is to provide an information processing apparatus and an information processing method that are not allowed to be performed.

上記の問題を解決するため、本発明の情報処理装置は、原稿画像にスタンプ画像を合成する設定が存在するか否かを判定する第1の判定手段と、原稿画像に符号化画像が合成されているか否かを判定する第2の判定手段と、第1の判定手段により設定が存在すると判定され、第2の判定手段により符号化画像が合成されていると判定された場合、原稿画像においてスタンプ画像と符号化画像とが重複するか否かを判定する第3の判定手段と、第3の判定手段によりスタンプ画像と符号化画像とが重複すると判定される場合、重複する旨をユーザに対して通知する通知手段とを備えたことを特徴とする。   In order to solve the above problem, an information processing apparatus according to the present invention includes a first determination unit that determines whether or not there is a setting for combining a stamp image with a document image, and the encoded image is combined with the document image. If the second determination unit and the first determination unit determine that there is a setting, and the second determination unit determines that the encoded image is synthesized, the original image includes A third determination unit that determines whether or not the stamp image and the encoded image overlap, and if the third determination unit determines that the stamp image and the encoded image overlap, the user is notified that the stamp image and the encoded image overlap. And notifying means for notifying the user.

また、本発明の情報処理方法は、原稿画像にスタンプ画像を合成する設定が存在するか否かを判定する第1の判定ステップと、原稿画像に符号化画像が合成されているか否かを判定する第2の判定ステップと、第1の判定ステップにより設定が存在すると判定され、第2の判定ステップにより符号化画像が合成されていると判定された場合、原稿画像においてスタンプ画像と符号化画像とが重複するか否かを判定する第3の判定ステップと、第3の判定ステップによりスタンプ画像と符号化画像とが重複すると判定される場合、重複する旨をユーザに対して通知する通知ステップとを備えることを特徴とする。   The information processing method of the present invention also includes a first determination step for determining whether or not there is a setting for combining a stamp image with a document image, and determining whether or not an encoded image is combined with the document image. When it is determined that there is a setting in the second determination step and the first determination step, and it is determined in the second determination step that the encoded image is synthesized, the stamp image and the encoded image in the document image A determination step for determining whether or not the stamp image and the encoded image are overlapped by the third determination step, and a notification step for notifying the user of the overlap It is characterized by providing.

また、本発明は、情報処理装置に上記の情報処理方法を実行させるためのプログラム、さらに、そのプログラムを格納した記憶媒体に存する。   Further, the present invention resides in a program for causing an information processing apparatus to execute the above information processing method, and a storage medium storing the program.

本発明によれば、符号化画像データとスタンプ画像データの設定が同時に行われた場合に、符号化画像データが破損することを検知すると印刷処理が中止される。または、ユーザインターフェースなどを利用してユーザに通知し、スタンプ画像データを合成せずに印刷処理が行われる。   According to the present invention, when the encoded image data and the stamp image data are set at the same time, the printing process is stopped when it is detected that the encoded image data is damaged. Alternatively, the user is notified using a user interface or the like, and the printing process is performed without combining the stamp image data.

さらに、符号化画像データが破損することを検知するとスタンプ画像データの印刷位置を自動的にずらしたり、スタンプ画像データのサイズを縮小したりすることにより符号化画像データが破損しないように印刷処理することができる。   Further, when it is detected that the encoded image data is damaged, the printing process is performed so that the encoded image data is not damaged by automatically shifting the printing position of the stamp image data or reducing the size of the stamp image data. be able to.

以下、図面を参照しながら本発明を適用することができる実施形態について詳細に説明する。   Hereinafter, embodiments to which the present invention can be applied will be described in detail with reference to the drawings.

図1乃至図18は、本発明の一実施形態に係る情報処理装置(ホストコンピュータ3000)と画像形成装置(プリンタ1500)とを備える画像形成システムにについて説明する。また、図1乃至図18は、画像形成システムにおける印刷処理、およびそれに伴う符号化画像データ、およびスタンプ画像データの生成/合成方法に関する構成を説明する。   1 to 18 illustrate an image forming system including an information processing apparatus (host computer 3000) and an image forming apparatus (printer 1500) according to an embodiment of the present invention. FIGS. 1 to 18 illustrate a configuration relating to a printing process in the image forming system, and a method for generating / combining encoded image data and stamp image data associated therewith.

(第1の実施形態)
<印刷システムの構成>
図1は、本発明の第1の実施形態に係る画像形成システムの構成を示すブロック図である。なお、本発明の機能が実行されるのであれば、単体の機器からなるシステムであっても、複数の機器からなるシステムであっても、LAN/WAN等のネットワークを介して接続がなされて処理が行われるシステムであっても構わない。
(First embodiment)
<Configuration of printing system>
FIG. 1 is a block diagram showing a configuration of an image forming system according to the first embodiment of the present invention. As long as the functions of the present invention are executed, processing is performed by connecting via a network such as a LAN / WAN, regardless of whether the system is composed of a single device or a system composed of a plurality of devices. It may be a system in which is performed.

図1は、ホストコンピュータ3000、およびプリンタ1500が、双方向性インターフェース21により接続されている。   In FIG. 1, a host computer 3000 and a printer 1500 are connected by a bidirectional interface 21.

ホストコンピュータ3000は、制御部2000、キーボード(KB)9、CRTディスプレイ(CRT)10、および外部メモリ11を備える。   The host computer 3000 includes a control unit 2000, a keyboard (KB) 9, a CRT display (CRT) 10, and an external memory 11.

さらに、制御部2000は、CPU1、RAM2、ROM3、システムバス4、キーボードコントローラ(KBC)5、CRTコントローラ(CRTC)6、ディスクコントローラ(DKC)7、およびプリンタコントローラ(PRTC)8を備える。   Further, the control unit 2000 includes a CPU 1, a RAM 2, a ROM 3, a system bus 4, a keyboard controller (KBC) 5, a CRT controller (CRTC) 6, a disk controller (DKC) 7, and a printer controller (PRTC) 8.

CPU1、RAM2、ROM3、キーボードコントローラ(KBC)5、CRTコントローラ(CRTC)6、ディスクコントローラ(DKC)7、およびプリンタコントローラ(PRTC)8は、システムバス4を介して接続されている。   The CPU 1, RAM 2, ROM 3, keyboard controller (KBC) 5, CRT controller (CRTC) 6, disk controller (DKC) 7, and printer controller (PRTC) 8 are connected via a system bus 4.

ROM3は、その内部にフォントROM、プログラムROM、およびデータROMをさらに備える。   The ROM 3 further includes a font ROM, a program ROM, and a data ROM therein.

一方、プリンタ1500は、制御部1000、印刷部(プリンタエンジン)17、操作部1501、および外部メモリ14を備える。   On the other hand, the printer 1500 includes a control unit 1000, a printing unit (printer engine) 17, an operation unit 1501, and an external memory 14.

さらに、制御部1000は、CPU12、ROM13、システムバス15、印刷部インターフェース(I/F)16、入力部18、RAM19、およびメモリコントローラ(MC)20を備える。   Further, the control unit 1000 includes a CPU 12, a ROM 13, a system bus 15, a printing unit interface (I / F) 16, an input unit 18, a RAM 19, and a memory controller (MC) 20.

CPU12、ROM13、印刷部インターフェース(I/F)16、入力部18、RAM19、およびメモリコントローラ(MC)20は、システムバス15を介して接続されている。   The CPU 12, the ROM 13, the printing unit interface (I / F) 16, the input unit 18, the RAM 19, and the memory controller (MC) 20 are connected via a system bus 15.

ROM13は、ROM3と同様に、その内部にフォントROM、プログラムROM、およびデータROMをさらに備える。   Like the ROM 3, the ROM 13 further includes a font ROM, a program ROM, and a data ROM.

図1の各構成要素について詳細に説明する。
最初に、図1のホストコンピュータ3000が備える各構成要素について説明する。
Each component in FIG. 1 will be described in detail.
First, each component included in the host computer 3000 of FIG. 1 will be described.

CPU1は、ホストコンピュータ3000全体を制御し、本発明の実施形態に係る処理を含む、図形、イメージ、文字、表(表計算等を含む)等が混在した文書処理、およびそれに基づく印刷処理の実行を制御する。該処理は、ROM3のプログラムROM、または外部メモリ11に格納された文書処理プログラム等に基づいて行われる。なお、本発明の実施形態に係る処理は図2以降で詳述する。また、CPU1は、システムバス4を介して接続されている各デバイスについても総括的に制御する。   The CPU 1 controls the entire host computer 3000 and executes document processing including a graphic, an image, a character, a table (including a spreadsheet), and the like including processing according to the embodiment of the present invention, and print processing based on the document processing. To control. The processing is performed based on a program ROM stored in the ROM 3 or a document processing program stored in the external memory 11. The processing according to the embodiment of the present invention will be described in detail with reference to FIG. In addition, the CPU 1 comprehensively controls each device connected via the system bus 4.

RAM2は、CPU1の主メモリ、ワークエリア等として機能する。後述するように、本発明の実施形態に係る各種データがRAM2上に格納され、または各種プログラムなどがRAM2上にロードされて実行される。   The RAM 2 functions as a main memory and work area for the CPU 1. As will be described later, various data according to the embodiment of the present invention is stored on the RAM 2 or various programs are loaded on the RAM 2 and executed.

ROM3が有するフォントROM、プログラムROM、およびデータROMについて説明する。   The font ROM, program ROM, and data ROM included in the ROM 3 will be described.

プログラムROMは、CPU1の制御プログラムであるオペレーティングシステム(以下、OS)等を格納する。   The program ROM stores an operating system (hereinafter referred to as OS) that is a control program of the CPU 1.

フォントROMは、上記文書処理の際に使用するフォントデータ等を格納する。   The font ROM stores font data used for the document processing.

データROMは、上記文書処理等を行う際に使用する各種データを格納する。   The data ROM stores various data used when performing the document processing or the like.

なお、上記フォントROM、プログラムROM、およびデータROMはROM3に存在してもよいが、外部メモリ11に存在する実施形態であっても構わない。   The font ROM, the program ROM, and the data ROM may exist in the ROM 3, but may be an embodiment that exists in the external memory 11.

キーボードコントローラ(KBC)5は、キーボード(KB)9やポインティングデバイス(図示せず)からのキー入力を制御する。   A keyboard controller (KBC) 5 controls key input from a keyboard (KB) 9 or a pointing device (not shown).

CRTコントローラ(CRTC)6は、CRTディスプレイ(CRT)10による表示を制御する。   A CRT controller (CRTC) 6 controls display on a CRT display (CRT) 10.

ディスクコントローラ(DKC)7は、ハードディスク(HD)、およびフロッピー(登録商標)ディスク(FD)等の外部メモリ11とのアクセスを制御する。HD、およびFD等の外部メモリ11は、ブートプログラム、各種アプリケーション、フォントデータ、ユーザファイル、編集ファイル、およびプリンタ制御コマンド生成プログラム(以下、プリンタドライバと称する)等を格納する。なお、ここでは、外部メモリ11の例としてHDやFDを挙げたが、これらに限定されることはなく、CD−ROMなどデータを格納しておくための記録媒体であれば良い。   A disk controller (DKC) 7 controls access to an external memory 11 such as a hard disk (HD) and a floppy (registered trademark) disk (FD). The external memory 11 such as HD and FD stores a boot program, various applications, font data, user files, editing files, a printer control command generation program (hereinafter referred to as a printer driver), and the like. Here, HD and FD are given as examples of the external memory 11, but the present invention is not limited to these, and any recording medium such as a CD-ROM may be used.

プリンタコントローラ(PRTC)8は、双方向性インターフェース21を介してプリンタ1500に接続されており、プリンタ1500との通信制御処理を実行する。   The printer controller (PRTC) 8 is connected to the printer 1500 via the bidirectional interface 21 and executes communication control processing with the printer 1500.

なお、CPU1は、例えば、RAM2上に設定された表示情報についてRAM2へのアウトラインフォントの展開(ラスタライズ)処理を実行し、CRT10上でのWYSIWYG(ウィジウィグ)を可能としている。   For example, the CPU 1 executes an outline font rasterization process on the display information set on the RAM 2 to enable WYSIWYG (wizig wig) on the CRT 10.

また、CPU1は、CRT10上のマウスカーソル(図示せず)等で指示されたコマンドに基づいて、登録された種々のウィンドウを開き、および種々のデータ処理を実行する。このため、ユーザは印刷を実行する際、印刷の設定に関するウィンドウを開き、プリンタの設定や印刷モードの選択を含むプリンタドライバに対する印刷処理方法の設定を行うことができる。   Further, the CPU 1 opens various registered windows and executes various data processing based on commands instructed by a mouse cursor (not shown) or the like on the CRT 10. For this reason, when executing printing, the user can open a window regarding print settings and set the print processing method for the printer driver, including printer settings and print mode selection.

次に、図1のプリンタ1500が備える各構成要素について説明する。   Next, each component provided in the printer 1500 of FIG. 1 will be described.

CPU12は、プリンタ1500全体を制御し、ROM13のプログラムROMに格納された制御プログラム等、または外部メモリ14に格納された制御プログラム等に基づいて、システムバス15に接続されている各デバイスを制御する。例えば、CPU12は、印刷部I/F16を介して印刷部(プリンタエンジン)17に印刷出力情報としての画像信号を出力する。   The CPU 12 controls the entire printer 1500 and controls each device connected to the system bus 15 based on a control program stored in the program ROM of the ROM 13 or a control program stored in the external memory 14. . For example, the CPU 12 outputs an image signal as print output information to the printing unit (printer engine) 17 via the printing unit I / F 16.

ROM13が有するフォントROM、プログラムROM、およびデータROMについて説明する。   The font ROM, program ROM, and data ROM included in the ROM 13 will be described.

プログラムROMは、CPU12の制御プログラム等を格納する。   The program ROM stores a control program for the CPU 12 and the like.

フォントROMは、上記印刷出力情報を生成する際に使用するフォントデータ等を格納する。   The font ROM stores font data used when generating the print output information.

データROMは、プリンタ1500上で利用される情報等を格納する。   The data ROM stores information used on the printer 1500.

なお、上記フォントROM、プログラムROM、およびデータROMはROM13に存在してもよいが、外部メモリ14に存在する実施形態であっても構わない。   The font ROM, the program ROM, and the data ROM may exist in the ROM 13, but may be an embodiment that exists in the external memory 14.

さらに、CPU12は、入力部18、および双方向性インターフェース21を介してホストコンピュータ3000との通信処理についても制御し、プリンタ1500内の情報をホストコンピュータ3000に送信することもできる。   Further, the CPU 12 can also control communication processing with the host computer 3000 via the input unit 18 and the bidirectional interface 21, and can transmit information in the printer 1500 to the host computer 3000.

RAM19は、CPU12の主メモリや、ワークエリア等として機能するメモリであり、増設ポート(図示せず)に接続されるオプションRAMによりメモリ容量を拡張することもできるように構成されている。なお、RAM19は、出力情報展開領域、環境データ格納領域、NVRAM(Non Volatile RAM:不揮発性RAM)等に用いられる。   The RAM 19 is a memory that functions as a main memory of the CPU 12, a work area, and the like, and is configured such that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). The RAM 19 is used as an output information expansion area, an environment data storage area, an NVRAM (Non Volatile RAM), and the like.

外部メモリ14は、メモリコントローラ(MC)20を介してアクセスされ、その制御は、上記CPU12が行う。外部メモリ14は、オプションとして接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を格納する。   The external memory 14 is accessed via a memory controller (MC) 20 and is controlled by the CPU 12. The external memory 14 is connected as an option and stores font data, an emulation program, form data, and the like.

また、外部メモリ14は、1個に限定されることなく、複数個備えられている構成でも構わない。つまり、プリンタ1500は、内蔵フォントに加えてオプションカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリ14を複数個接続できるように構成されていてもよい。さらに、プリンタ1500は、NVRAM(図示せず)を有し、操作部1501からのプリンタモード設定情報を格納するような構成であってもよい。   Further, the number of external memories 14 is not limited to one, and a plurality of external memories 14 may be provided. That is, the printer 1500 may be configured to be able to connect a plurality of external memories 14 that store an option card and a program for interpreting printer control languages of different language systems in addition to the built-in font. Further, the printer 1500 may include an NVRAM (not shown) and store printer mode setting information from the operation unit 1501.

なお、外部メモリ14は、図1では、ハードディスク(HD)、およびフロッピー(登録商標)ディスク(FD)等の記憶媒体を例にして図示しているが、これらに限定されることなく、CD−ROMなど他の記憶媒体であっても構わない。   In FIG. 1, the external memory 14 is illustrated as an example of a storage medium such as a hard disk (HD) and a floppy (registered trademark) disk (FD). Other storage media such as a ROM may be used.

印刷部17は、本実施形態では電子写真方式のエンジンを備えている。従って、画像の印刷、およびそれに伴う地紋画像の印刷は、それらの印刷データに従って形成されるトナーのドットによって行われる。なお、本発明に適用可能な印刷方式は、このような電子写真方式に限られないことはもちろんであり、例えば、インクジェット方式など、インクによるドットを形成して印刷を行う他の印刷方式にも本発明を適用することができる。   In this embodiment, the printing unit 17 includes an electrophotographic engine. Therefore, the printing of the image and the accompanying copy-forgery-inhibited pattern image are performed by toner dots formed according to the print data. It should be noted that the printing method applicable to the present invention is not limited to such an electrophotographic method, and other printing methods that perform printing by forming ink dots, such as an ink jet method. The present invention can be applied.

入力部18は、操作パネルであり、操作のためのスイッチ、およびLED表示器等が配されている。   The input unit 18 is an operation panel, on which switches for operation, an LED display, and the like are arranged.

図2は、図1に示したホストコンピュータ3000における印刷処理のための構成の一例を示す。   FIG. 2 shows an example of a configuration for print processing in the host computer 3000 shown in FIG.

図2では、説明の便宜上、外部メモリ11が省略されているが、アプリケーション201、グラフィックエンジン202、プリンタドライバ203、およびシステムスプーラ204は、外部メモリ11に格納されたファイルとして存在する。アプリケーション201、グラフィックエンジン202、プリンタドライバ203、およびシステムスプーラ204は、プログラムモジュールであり、実行時にはOSやOSのモジュールを利用するモジュールによってRAM2にロードされ実行される。   In FIG. 2, the external memory 11 is omitted for convenience of explanation, but the application 201, the graphic engine 202, the printer driver 203, and the system spooler 204 exist as files stored in the external memory 11. The application 201, the graphic engine 202, the printer driver 203, and the system spooler 204 are program modules, which are loaded into the RAM 2 and executed by the modules that use the OS and OS modules when executed.

また、アプリケーション201、およびプリンタドライバ203は、外部メモリ11のFDやCD−ROM(図示せず)、あるいはネットワーク(図示せず)を介して外部メモリ11のHDに追加することもできる。   Further, the application 201 and the printer driver 203 can be added to the HD of the external memory 11 via the FD or CD-ROM (not shown) of the external memory 11 or a network (not shown).

アプリケーション201は、RAM2にロードされて実行される。アプリケーション201は、プリンタ1500に対して印刷を行う場合、同様にRAM2にロードされ実行可能となっているグラフィックエンジン202に対してGDI(Graphic Device Interface)関数を出力する。   The application 201 is loaded into the RAM 2 and executed. When printing to the printer 1500, the application 201 outputs a GDI (Graphic Device Interface) function to the graphic engine 202 that is similarly loaded into the RAM 2 and can be executed.

グラフィックエンジン202は、プリンタ1500などの画像形成装置毎に用意されたプリンタドライバ203を外部メモリ11からRAM2にロードする。そして、グラフィックエンジン202は、アプリケーション201から受信したGDI関数をDDI(Device Driver Interface)関数に変換して、プリンタドライバ203に対してDDI関数を出力する。   The graphic engine 202 loads the printer driver 203 prepared for each image forming apparatus such as the printer 1500 from the external memory 11 to the RAM 2. The graphic engine 202 converts the GDI function received from the application 201 into a DDI (Device Driver Interface) function, and outputs the DDI function to the printer driver 203.

プリンタドライバ203は、グラフィックエンジン202から受信したDDI関数を、プリンタ1500が認識可能な制御コマンド、例えば、PDL(Page Description Language:ページ記述言語)に変換する。変換された制御コマンドは、OSによってRAM2にロードされたシステムスプーラ204を経て、双方向性インターフェース21を介してプリンタ1500へ印刷データとして送信される。   The printer driver 203 converts the DDI function received from the graphic engine 202 into a control command that can be recognized by the printer 1500, for example, PDL (Page Description Language). The converted control command is transmitted as print data to the printer 1500 via the bidirectional interface 21 via the system spooler 204 loaded into the RAM 2 by the OS.

ここで、本実施形態で示すアプリケーション201は、符号化画像データを生成し、原稿画像データと合成するアプリケーションである。   Here, the application 201 shown in the present embodiment is an application that generates encoded image data and synthesizes it with document image data.

<印刷関連のソフトウエアモジュール>
図3は、ホストコンピュータ3000における印刷処理のための構成の他の例を示す図である。
<Printing-related software module>
FIG. 3 is a diagram illustrating another example of a configuration for print processing in the host computer 3000.

図3は、図2に示した構成を拡張したものであり、グラフィックエンジン202からプリンタドライバ203へ印刷命令を送る間に、一旦中間コードからなるスプールファイル303を生成する構成を示している。   FIG. 3 is an extension of the configuration shown in FIG. 2, and shows a configuration in which a spool file 303 consisting of intermediate code is temporarily generated while a print command is sent from the graphic engine 202 to the printer driver 203.

図2と同様に外部メモリ11は、図3でも説明の便宜上省略するが、図3に示す各構成要素は外部メモリ11に格納されている。   As in FIG. 2, the external memory 11 is omitted in FIG. 3 for convenience of explanation, but each component shown in FIG. 3 is stored in the external memory 11.

ホストコンピュータ3000は、外部メモリ11の中に、アプリケーション201、グラフィックエンジン202、プリンタドライバ203、システムスプーラ204、ディスパッチャ301、スプーラ302、およびスプールファイル303を備える。また、ホストコンピュータ3000は、外部メモリ11の中に、スプールファイルマネージャ304、デスプーラ305、プレビューア306、設定変更エディタ307を備える。さらに、スプールファイルマネージャ304は、その内部に、符号化画像検知部308、およびスタンプ画像処理部309を備える。   The host computer 3000 includes an application 201, a graphic engine 202, a printer driver 203, a system spooler 204, a dispatcher 301, a spooler 302, and a spool file 303 in the external memory 11. The host computer 3000 includes a spool file manager 304, a despooler 305, a previewer 306, and a setting change editor 307 in the external memory 11. Further, the spool file manager 304 includes an encoded image detection unit 308 and a stamp image processing unit 309 therein.

図2、および図3で示す構成の差異について、まず説明する。   Differences between the configurations shown in FIGS. 2 and 3 will be described first.

図2の構成では、アプリケーション201が印刷処理から開放されるのは、プリンタドライバ203がグラフィックエンジン202から受信した全ての印刷命令をプリンタ1500が認識可能な制御コマンドへ変換し終わった時点である。   In the configuration of FIG. 2, the application 201 is released from the printing process when the printer driver 203 has converted all print commands received from the graphic engine 202 into control commands that can be recognized by the printer 1500.

一方、図3の構成では、アプリケーション201が印刷処理から開放されるのは、スプーラ302が全ての印刷命令を中間コードデータに変換し、スプールファイル303に出力した時点であるという点で異なる。   On the other hand, the configuration shown in FIG. 3 is different in that the application 201 is released from the printing process when the spooler 302 converts all print commands into intermediate code data and outputs them to the spool file 303.

通常、後者(図3で示す構成)の方がアプリケーション201による印刷処理が短時間で済む。   Usually, the latter (configuration shown in FIG. 3) requires a shorter printing process by the application 201.

また、図3で示す構成においては、スプールファイル303の内容に対して加工することも可能である。これによりアプリケーション201から受け取った原稿画像データに対して、拡大縮小機能や複数ページを1ページに縮小して印刷する機能等、アプリケーション201自身が持たない機能を実現することができる。   In the configuration shown in FIG. 3, the contents of the spool file 303 can be processed. As a result, functions that the application 201 itself does not have, such as an enlargement / reduction function or a function of reducing a plurality of pages into one page and printing the original image data received from the application 201 can be realized.

これらのことを実現するために、図2の構成に対し、図3に示すように中間コードデータからなるファイルをスプールするよう、システムの拡張がなされている。   In order to realize these things, the system is extended to spool the file consisting of the intermediate code data as shown in FIG. 3 with respect to the configuration of FIG.

なお、原稿画像データの加工を行うためには、通常、プリンタドライバ203によってCRTディスプレイ(CRT)10に表示されるウィンドウ(図示せず)から設定を行う。プリンタドライバ203は、該ウィンドウから設定された内容をRAM2、または外部メモリ11に格納する。   In order to process the document image data, the printer driver 203 normally performs settings from a window (not shown) displayed on the CRT display (CRT) 10. The printer driver 203 stores the contents set from the window in the RAM 2 or the external memory 11.

以下、図3に示す構成を詳細に説明する。   Hereinafter, the configuration shown in FIG. 3 will be described in detail.

図3に示す通り、ディスパッチャ301は、グラフィックエンジン202から印刷命令(DDI関数)を受信する。該印刷命令(DDI関数)が、アプリケーション201からグラフィックエンジン202へ出力された印刷命令(GDI関数)に基づいて変換されたものである場合、図2で説明したルートとは異なるルートで該印刷命令(DDI関数)は送信される。つまり、ディスパッチャ301は、スプーラ302をRAM2にロードし、プリンタドライバ203ではなくスプーラ302へ該印刷命令(DDI関数)を送信する。   As shown in FIG. 3, the dispatcher 301 receives a print command (DDI function) from the graphic engine 202. When the print command (DDI function) is converted based on the print command (GDI function) output from the application 201 to the graphic engine 202, the print command is different from the route described in FIG. (DDI function) is transmitted. That is, the dispatcher 301 loads the spooler 302 into the RAM 2 and transmits the print command (DDI function) to the spooler 302 instead of the printer driver 203.

スプーラ302は、受信した印刷命令(DDI関数)を解析し、ページ単位に中間コードに変換したスプールファイルをスプールファイル303に出力する。なお、このページ単位に格納されている中間コードのスプールファイルを、本明細書では、「ページ描画ファイル(PDF:Page Description File)」と呼ぶ。   The spooler 302 analyzes the received print command (DDI function) and outputs a spool file converted into an intermediate code for each page to the spool file 303. Note that the spool file of the intermediate code stored in units of pages is referred to as a “page drawing file (PDF)” in this specification.

また、スプーラ302は、「ジョブ設定ファイル(SDF:Spool Description File)」をプリンタドライバ203から取得して、ジョブ設定ファイルをジョブ単位のファイルとしてスプールファイル303に格納する。   Further, the spooler 302 acquires a “job setting file (SDF: Spool Description File)” from the printer driver 203 and stores the job setting file in the spool file 303 as a file for each job.

本明細書で、「ジョブ設定ファイル」とは、アプリケーション201からプリンタドライバ203に対して設定されたファイルを意味する。より詳細に言うと、原稿画像データの印刷に関する加工設定(Nup、両面、ステイプル、カラー/モノクロ、スタンプ画像データ指定など)をジョブ単位にまとめたファイルである。このジョブ設定ファイルについては後述する。   In this specification, the “job setting file” means a file set for the printer driver 203 by the application 201. More specifically, the file is a file in which processing settings (Nup, double-sided, staple, color / monochrome, stamp image data designation, etc.) relating to printing of document image data are collected in units of jobs. This job setting file will be described later.

なお、スプールファイル303は、本実施形態では外部メモリ11上にファイルとして生成されるが、RAM2上に生成されても構わない。   The spool file 303 is generated as a file on the external memory 11 in this embodiment, but may be generated on the RAM 2.

さらに、スプーラ302は、スプールファイルマネージャ304をRAM2にロードし、スプールファイルマネージャ304に対してスプールファイル303の生成状況を送信する。   Further, the spooler 302 loads the spool file manager 304 into the RAM 2 and transmits the generation status of the spool file 303 to the spool file manager 304.

その後、スプールファイルマネージャ304は、スプールファイル303に格納された上記加工設定の内容に従って印刷を行えるか否かを判断する。その際、符号化画像検知部308は、原稿画像データの符号化画像データを復号(デコード)し、その結果、符号化画像データの存在を検知する。符号化画像データを検知した場合、符号化画像検知部308は、原稿画像データにおけるその符号化画像データの描画位置をRAM2に格納する。   Thereafter, the spool file manager 304 determines whether printing can be performed in accordance with the contents of the processing settings stored in the spool file 303. At that time, the encoded image detection unit 308 decodes the encoded image data of the document image data, and as a result, detects the presence of the encoded image data. When the encoded image data is detected, the encoded image detection unit 308 stores the drawing position of the encoded image data in the document image data in the RAM 2.

一方、スタンプ画像処理部309は、符号化画像データの描画位置とスタンプ画像データを描画する位置とにより後述のスタンプ画像データの描画処理の可否、および描画位置を決定する。   On the other hand, the stamp image processing unit 309 determines whether or not a later-described stamp image data drawing process can be performed and a drawing position based on the drawing position of the encoded image data and the position where the stamp image data is drawn.

スプールファイルマネージャ304は、上記決定の結果、グラフィックエンジン202を利用して印刷を行えると判断した場合、デスプーラ305をRAM2にロードする。そして、スプールファイルマネージャ304は、スプールファイル303に格納されているページ描画ファイル(PDF)の印刷処理を行うよう、デスプーラ305に指示(通知)する。   If the spool file manager 304 determines that printing can be performed using the graphic engine 202 as a result of the determination, the spool file manager 304 loads the despooler 305 into the RAM 2. Then, the spool file manager 304 instructs (notifies) the despooler 305 to perform print processing of the page drawing file (PDF) stored in the spool file 303.

デスプーラ305は、スプールファイル303に格納されているページ描画ファイルを、スプールファイル303に格納されている上記加工設定情報を含むジョブ設定ファイル(SDF)に従って加工し、印刷命令(GDI関数)を再生成する。そして、デスプーラ305は、グラフィックエンジン202へ該印刷命令(GDI関数)を送信する。その際、スタンプ画像データの描画位置については、デスプーラ305は、スタンプ画像処理部309をロードして描画位置の情報を取得し、その情報に従って描画処理を行う。   The despooler 305 processes the page drawing file stored in the spool file 303 according to the job setting file (SDF) including the processing setting information stored in the spool file 303, and regenerates the print command (GDI function). To do. Then, the despooler 305 transmits the print command (GDI function) to the graphic engine 202. At this time, for the drawing position of the stamp image data, the despooler 305 loads the stamp image processing unit 309 to acquire the drawing position information, and performs the drawing process according to the information.

デスプーラ305からグラフィックエンジン202へ送信された印刷命令(GDI関数)は、グラフィックエンジン202にて印刷命令(DDI関数)に変換され、ディスパッチャ301に送信される。   The print command (GDI function) transmitted from the despooler 305 to the graphic engine 202 is converted into a print command (DDI function) by the graphic engine 202 and transmitted to the dispatcher 301.

かかる場合、ディスパッチャ301は、スプーラ302ではなく、プリンタドライバ203に印刷命令(DDI関数)を送信する。   In such a case, the dispatcher 301 transmits a print command (DDI function) to the printer driver 203 instead of the spooler 302.

すなわち、ディスパッチャ301は、グラフィックエンジン202から受信した印刷命令(DDI関数)がデスプーラ305から受信された印刷命令(DDI関数)である場合には、プリンタドライバ203に該印刷命令(DDI関数)を送信する。一方、上述したように、ディスパッチャ301は、グラフィックエンジン202から受信した印刷命令(DDI関数)がアプリケーション201から受信された印刷命令(GDI関数)である場合には、スプーラ302に該印刷命令(DDI関数)を送信する。   That is, when the print command (DDI function) received from the graphic engine 202 is the print command (DDI function) received from the despooler 305, the dispatcher 301 transmits the print command (DDI function) to the printer driver 203. To do. On the other hand, as described above, when the print command (DDI function) received from the graphic engine 202 is the print command (GDI function) received from the application 201, the dispatcher 301 sends the print command (DDI) to the spooler 302. Function).

プリンタドライバ203は、ディスパッチャ301から受信した印刷命令(DDI関数)に基づいてPDL(ページ記述言語)等からなるプリンタ制御コマンドを生成し、システムスプーラ204を介してプリンタ1500に送信する。   The printer driver 203 generates a printer control command including PDL (page description language) based on the print command (DDI function) received from the dispatcher 301, and transmits the printer control command to the printer 1500 via the system spooler 204.

さらに、図3は、上述の構成に加えて、プレビューア306、および設定変更エディタ307をさらに配し、スタンプ画像データのプレビューを含む印刷プレビュー、印刷設定変更、および複数ジョブの結合を可能にした例を示している。   In addition to the above-described configuration, FIG. 3 further includes a previewer 306 and a setting change editor 307, which enables print preview including a preview of stamp image data, print setting change, and combination of multiple jobs. An example is shown.

印刷プレビュー、印刷設定変更、および複数ジョブの結合を行うためには、まずユーザがプリンタドライバ203のプロパティシート(図示せず)において、「出力先の指定」を行うプルダウンメニュー(図示せず)において「ストア」を指定する必要がある。なお、印刷プレビューだけを見たい場合は、出力先の指定として「プレビュー」を選択することによっても可能である。   In order to perform print preview, print setting change, and combination of a plurality of jobs, first, in a property sheet (not shown) of the printer driver 203, a pull-down menu (not shown) for “designating an output destination” is used. It is necessary to specify "Store". If only the print preview is desired, it is also possible to select “Preview” as the output destination designation.

このようにプリンタドライバ203のプロパティシートで設定される内容は設定ファイルとしてOSが提供する構造体(Windows(登録商標)OSでは、DEVMODEと呼ばれる)に格納される。その構造体には、例えば、加工設定情報を含むジョブ設定ファイル中にスプールファイルマネージャ304が上記ストアを行うか否かの設定が含まれている。スプールファイルマネージャ304がプリンタドライバを介してその加工設定を読み込み、ストア指定がなされていた場合には、前述したようにスプールファイル303にページ描画ファイル(PDF)とジョブ設定ファイル(SDF)とが生成・格納される。そして、スプールファイルマネージャ304は、スプールファイルマネージャ304のウィンドウ画面(図示せず)をポップアップし、スプールファイル303にスプールされているジョブのリストを表示する。   The contents set in the property sheet of the printer driver 203 are stored as a setting file in a structure provided by the OS (called DEVMODE in the Windows (registered trademark) OS). The structure includes, for example, a setting for whether or not the spool file manager 304 performs the store in a job setting file including processing setting information. When the spool file manager 304 reads the processing settings via the printer driver and stores are specified, a page drawing file (PDF) and a job setting file (SDF) are generated in the spool file 303 as described above. -Stored. Then, the spool file manager 304 pops up a window screen (not shown) of the spool file manager 304 and displays a list of jobs spooled in the spool file 303.

スプールファイルマネージャ304のウィンドウ画面上で、ある単体ジョブ、または結合ジョブのプレビュー指定がされた場合、スプールファイルマネージャ304は、プレビューア306をRAM2にロードする。そして、スプールファイルマネージャ304は、プレビューア306に対してスプールファイル303に格納されたページ描画ファイル(PDF)のプレビュー処理を行うように指示する。   When a preview of a single job or a combined job is designated on the window screen of the spool file manager 304, the spool file manager 304 loads the previewer 306 into the RAM 2. Then, the spool file manager 304 instructs the previewer 306 to perform a preview process of the page drawing file (PDF) stored in the spool file 303.

(プレビューア)
ここで、プレビューア306について詳細に説明する。
プレビューア306は、スプールファイル303に格納されているページ描画ファイル(PDF)を順次読み出し、スプールファイル303に格納されているジョブ設定ファイル(SDF)に含まれる加工設定情報の内容に従って加工する。そして、加工したプレビュー情報について、プレビューア306は、スプールファイルマネージャ304を介してグラフィックエンジン202に対して描画データ(実体的には、GDI関数である)を送信する。グラフィックエンジン202が自身の確保するクライアント領域に受信した描画データを出力することによって、画面上にプレビューを出力することが可能となる。
(Previewer)
Here, the previewer 306 will be described in detail.
The previewer 306 sequentially reads the page drawing file (PDF) stored in the spool file 303 and processes it according to the content of the processing setting information included in the job setting file (SDF) stored in the spool file 303. Then, with respect to the processed preview information, the previewer 306 transmits drawing data (substantially a GDI function) to the graphic engine 202 via the spool file manager 304. When the graphic engine 202 outputs the received drawing data to the client area secured by the graphic engine 202, it is possible to output a preview on the screen.

グラフィックエンジン202は、指定された出力先に応じて適切なレンダリングを行うことが可能である。このことから、プレビューア306は、デスプーラ305同様に、スプールファイル303に格納されているページ描画ファイル(PDF)をスプールファイル303に格納されているジョブ設定ファイル(SDF)の加工設定内容に従って加工することができる。そして、プレビューア306は、グラフィックエンジン202を利用して加工したプレビューを出力することでプレビューを実現することができる。このように、プレビューア306は、プリンタドライバ203で設定された加工設定をジョブ設定ファイル(SDF)としてスプールファイル303に格納し、該ジョブ設定ファイル(SDF)に基づいてページ描画ファイル(PDF)をデータ加工して出力する。   The graphic engine 202 can perform appropriate rendering according to the designated output destination. From this, the previewer 306 processes the page drawing file (PDF) stored in the spool file 303 in accordance with the processing setting contents of the job setting file (SDF) stored in the spool file 303, similarly to the despooler 305. be able to. The previewer 306 can realize a preview by outputting a preview processed using the graphic engine 202. As described above, the previewer 306 stores the processing settings set by the printer driver 203 in the spool file 303 as a job setting file (SDF), and generates a page drawing file (PDF) based on the job setting file (SDF). Process and output data.

一般的なアプリケーションソフトウェアが有するプレビュー機能は、あくまでそのアプリケーションにおけるページ設定に基づき描画するため、プリンタドライバの印刷設定が反映されず、実際に出力されるプレビューをユーザに認識させることはできなかった。   Since the preview function of general application software is drawn based on the page setting in the application, the print setting of the printer driver is not reflected, and the user cannot recognize the preview that is actually output.

一方、本発明は上述の処理により、実際の描画データがどのように印刷されるかをユーザに提供することができる。さらに、本発明は、Nup、両面印刷、製本印刷、およびスタンプ画像データが指定されている場合、各々に応じて、プリンタで出力されるものに近い印刷プレビューをユーザに提供することができる。なお、Nupとは、Nページの論理ページを1ページの物理ページに縮小配置して印刷する処理を指す。   On the other hand, the present invention can provide the user with how the actual drawing data is printed by the above-described processing. Furthermore, when Nup, double-sided printing, bookbinding printing, and stamp image data are designated, the present invention can provide the user with a print preview that is close to that output by the printer. Note that Nup indicates a process of printing N pages of logical pages in a reduced arrangement on one physical page.

上記のようにプレビュー処理を行うことにより、スプールファイル303に含まれる印刷の加工設定に基づくプレビューがプレビューア306によって画面上に表示される。   By performing the preview process as described above, a preview based on the print processing setting included in the spool file 303 is displayed on the screen by the previewer 306.

ユーザの非表示指示によってプレビューア306がクローズされると、制御はスプールファイルマネージャ304のウィンドウ画面(図示せず)に移行する。そして、ユーザがプレビューア306によって表示された内容に従って印刷を行う場合、スプールファイルマネージャ304上で「印刷」または「セーブして印刷」を指示することにより、スプールファイルマネージャ304が印刷要求を発行する。この印刷要求により、前述したようにデスプーラ305は、ジョブ設定ファイル(SDF)に基づいてページ描画ファイル(PDF)を加工してGDI関数を生成し、グラフィックエンジン202に送信する。グラフィックエンジン202からディスパッチャ301経由でプリンタドライバ203に印刷命令(DDI関数)が送信され、印刷が実行される。   When the previewer 306 is closed by a user non-display instruction, control is transferred to a window screen (not shown) of the spool file manager 304. When the user performs printing according to the contents displayed by the previewer 306, the spool file manager 304 issues a print request by instructing “print” or “save and print” on the spool file manager 304. . In response to this print request, the despooler 305 generates a GDI function by processing the page drawing file (PDF) based on the job setting file (SDF) and transmits the GDI function to the graphic engine 202 as described above. A print command (DDI function) is transmitted from the graphic engine 202 to the printer driver 203 via the dispatcher 301, and printing is executed.

(設定変更エディタ)
次に、設定変更エディタ307を用いた設定変更について説明する。設定変更エディタ307では、上述したプレビュー同様、「ストア」指定されたジョブに関して設定変更が可能である。
(Setting change editor)
Next, setting change using the setting change editor 307 will be described. In the setting change editor 307, as with the preview described above, the setting can be changed for a job designated as “Store”.

まず、スプールファイルマネージャ304は、プレビューと同様の手順によりスプールファイルマネージャ304のウィンドウ画面(図示せず)をポップアップし、スプールファイル303にスプールされているジョブのリストを表示する。スプールファイルマネージャ304のウィンドウ画面上で「ジョブ編集」が選択され、設定変更指示がされた場合、スプールファイルマネージャ304は、設定変更エディタ307をRAM2にロードする。そして、スプールファイルマネージャ304は、設定変更エディタ307に対して、現在またはデフォルトの加工設定の表示を行うように指示する。そして、設定変更エディタ307によってジョブ設定画面が表示される。   First, the spool file manager 304 pops up a window screen (not shown) of the spool file manager 304 in the same procedure as the preview, and displays a list of jobs spooled in the spool file 303. When “job editing” is selected on the window screen of the spool file manager 304 and a setting change instruction is given, the spool file manager 304 loads the setting change editor 307 into the RAM 2. Then, the spool file manager 304 instructs the setting change editor 307 to display the current or default processing settings. Then, the setting change editor 307 displays a job setting screen.

設定変更エディタ307は、「ジョブ編集」が指定されたジョブのジョブ設定ファイル(SDF)をスプールファイル303から取得し、そのジョブ設定ファイル(SDF)に指定されている設定項目に基づいてジョブ設定画面のデフォルト値を変更する。この設定変更エディタ307でも画面上でのプレビュー出力が可能となる。すなわち、設定変更エディタ307は、スプールファイル303に含まれる中間コードのページ描画ファイル(PDF)をスプールファイル303に格納されているジョブ設定ファイル(SDF)に含まれる加工設定の内容に従って加工する。加工後、設定変更エディタ307は、グラフィックエンジン202を用いてメモリに出力することによって、画面上でのプレビュー出力が可能となる。   The setting change editor 307 acquires a job setting file (SDF) of a job for which “job editing” is specified from the spool file 303, and sets the job setting screen based on the setting items specified in the job setting file (SDF). Change the default value of. This setting change editor 307 can also output a preview on the screen. That is, the setting change editor 307 processes the page drawing file (PDF) of the intermediate code included in the spool file 303 according to the contents of the processing setting included in the job setting file (SDF) stored in the spool file 303. After processing, the setting change editor 307 can output a preview on the screen by outputting it to the memory using the graphic engine 202.

また、設定変更エディタ307では、スプールファイル303に格納されているジョブ設定ファイル(SDF)に含まれる加工設定の内容を変更することが可能である。かかる場合、設定変更エディタ307のユーザインターフェースがプリンタドライバ203で設定可能な項目を持つ構成としてもよく、またはプリンタドライバ203自身のユーザインターフェースを呼び出す構成としても構わない。設定変更エディタ307では、部数、印刷方法(片面、両面、製本印刷)、ステイプル(サドルフィニッシャー等)、ページレイアウト、配置順等の指定ができる。また、設定変更エディタ307では、プリンタドライバ203で指定できる詳細設定の項目を設定し直すことも可能である。   The setting change editor 307 can change the contents of the processing settings included in the job setting file (SDF) stored in the spool file 303. In such a case, the user interface of the setting change editor 307 may be configured to have items that can be set by the printer driver 203, or may be configured to call up the user interface of the printer driver 203 itself. In the setting change editor 307, the number of copies, printing method (single side, double side, bookbinding printing), staple (saddle finisher, etc.), page layout, arrangement order, etc. can be specified. The setting change editor 307 can also reset the detailed setting items that can be specified by the printer driver 203.

設定変更エディタ307で変更された変更項目は、設定変更エディタ307上の認証要求に従い、その変更が認証されると、制御がスプールファイルマネージャ304に移行する。スプールファイルマネージャ304は、変更が認証された項目を印刷設定の変更情報として格納するが、その際、オリジナルのジョブ設定ファイル(SDF)には格納せず、ジョブ編集等で用いられるジョブ出力用設定ファイルを新たに生成して格納する。ジョブ出力用設定ファイルについての詳細は、図10以降を参照して後述する。   The change item changed in the setting change editor 307 is transferred to the spool file manager 304 when the change is authenticated in accordance with the authentication request on the setting change editor 307. The spool file manager 304 stores the item whose change has been authenticated as print setting change information. At this time, the spool file manager 304 does not store the item in the original job setting file (SDF). Create a new file and store it. Details of the job output setting file will be described later with reference to FIG.

そして、ユーザがプレビューア306での確認後、設定変更内容に従って印刷を行う場合は、スプールファイルマネージャ304は、上記ジョブ出力用設定ファイルを読み出して、印刷要求を発行する。該印刷要求は、デスプーラ305を介してグラフィックエンジン202に送信される。その後、該印刷要求は、グラフィックエンジン202からディスパッチャ301を経てプリンタドライバ203に送信され、設定変更内容に従った印刷が実行される。   When the user performs printing according to the setting change content after confirmation by the previewer 306, the spool file manager 304 reads the job output setting file and issues a print request. The print request is transmitted to the graphic engine 202 via the despooler 305. Thereafter, the print request is transmitted from the graphic engine 202 to the printer driver 203 via the dispatcher 301, and printing according to the setting change content is executed.

また、スプールファイルマネージャ304のウィンドウ画面(図示せず)では、複数の印刷ジョブを結合し、1つの印刷ジョブとして印刷するように指定することも可能である。上述したプレビュー、および設定変更同様、この結合処理は、プリンタドライバ203のプロパティシート(図示せず)において出力先を「ストア」指定されたジョブについて行うことができる。また、メールボックスやセキュアプリントなどの機能も「ストア」指定したメニュー(図示せず)中の「メールボックス」「セキュアプリント」をそれぞれ指定することにより選択することができる。   Also, on the window screen (not shown) of the spool file manager 304, it is possible to combine a plurality of print jobs and specify printing as one print job. Similar to the preview and setting change described above, this combining process can be performed for a job whose output destination is designated as “store” in the property sheet (not shown) of the printer driver 203. Also, functions such as a mailbox and secure print can be selected by designating “mailbox” and “secure print” in a menu (not shown) designated “store”.

ユーザが印刷ジョブの結合を行う場合、まず、アプリケーション201からプリンタドライバ203を呼び出し、ユーザインターフェース(図示せず)からストアを選択する。上記と同様、この選択により中間コードデータ(ページ描画ファイル)がスプールファイル303にストアされ、スプールファイルマネージャ304は、スプールファイルマネージャ304のウィンドウ画面をポップアップする。そして、スプールファイルマネージャ304は、スプールファイル303にスプールされたジョブをスプールファイルマネージャ304のウィンドウ画面上にリスト表示する。アプリケーション201から上記と同様の操作をすることにより、スプールファイルマネージャ304上に複数のジョブリストを表示することができる。   When a user combines print jobs, first, the printer driver 203 is called from the application 201, and a store is selected from a user interface (not shown). Similar to the above, the intermediate code data (page drawing file) is stored in the spool file 303 by this selection, and the spool file manager 304 pops up the window screen of the spool file manager 304. Then, the spool file manager 304 displays a list of jobs spooled in the spool file 303 on the window screen of the spool file manager 304. A plurality of job lists can be displayed on the spool file manager 304 by performing the same operation as described above from the application 201.

ここで、複数ジョブを選択して「結合」が指定された場合、スプールファイルマネージャ304は、外部メモリ11に格納されている設定変更エディタ307をRAM2にロードし実行する。ユーザが、設定変更エディタ307を介してリスト上の先頭ジョブまたはデフォルトの加工設定の表示を行うように指示すると、結合設定画面(図示せず)が表示される。ここでは、設定変更エディタ307を結合設定画面として用いて説明したが、別モジュールの設定画面を用いても構わない。   Here, when multiple jobs are selected and “join” is designated, the spool file manager 304 loads the setting change editor 307 stored in the external memory 11 into the RAM 2 and executes it. When the user instructs to display the first job on the list or the default processing setting via the setting change editor 307, a combination setting screen (not shown) is displayed. Here, the setting change editor 307 has been described as the combination setting screen, but a setting screen of another module may be used.

この設定変更エディタ307は、スプールファイル303に格納されているページ描画ファイル(PDF)をスプールファイル303に格納されているジョブ設定ファイル(SDF)に含まれる加工設定の内容に従って加工する。その後、設定変更エディタ307は、結合ジョブとして指定された全てのジョブについて、グラフィックエンジン202を用いてメモリに出力することによって、画面出力を行う。その際、プレビュー領域に選択された全てのジョブのプレビューが可能となる。また、結合ジョブを生成する際に、それぞれの単体ジョブのジョブ設定ファイル(SDF)を拡張したジョブ出力用設定ファイルを生成する。このジョブ出力用設定ファイルは、ジョブ編集を行う際にも生成されるものであり、1つのジョブに対して1つ生成され、結合ジョブの場合もまた1つ生成される。   The setting change editor 307 processes the page drawing file (PDF) stored in the spool file 303 according to the contents of the processing settings included in the job setting file (SDF) stored in the spool file 303. Thereafter, the setting change editor 307 performs screen output by outputting all jobs designated as combined jobs to the memory using the graphic engine 202. At that time, all jobs selected in the preview area can be previewed. When generating a combined job, a job output setting file is generated by expanding the job setting file (SDF) of each single job. This job output setting file is also generated when job editing is performed. One job output setting file is generated for one job, and one job is also generated for a combined job.

ここでは、それぞれのジョブについて結合前の加工設定で表示することも、結合ジョブとして統一の加工設定に変更して表示することも可能である。その際、プリンタドライバ203の設定可能な項目を設定変更エディタ307のユーザインターフェースで設定可能としてもよく、またはプリンタドライバ203自身のユーザインターフェースを呼び出して設定しても構わない。   Here, each job can be displayed with the processing setting before combining, or can be changed to a unified processing setting and displayed as a combined job. At this time, items that can be set by the printer driver 203 may be set by the user interface of the setting change editor 307, or may be set by calling the user interface of the printer driver 203 itself.

結合されたジョブ、および変更された変更項目は、前述したように、設定変更エディタ307上の認証要求に従い、変更が認証されると、制御がスプールファイルマネージャ304に移行する。この操作により、先に選択された複数ジョブは、スプールファイルマネージャ304のウィンドウ上で1つの結合ジョブとして表示される。   As described above, when the combined job and the changed change item are authenticated according to the authentication request on the setting change editor 307, the control is transferred to the spool file manager 304. By this operation, the plurality of jobs selected previously are displayed as one combined job on the spool file manager 304 window.

そして、ユーザがプレビューア306での確認同様、設定変更内容に従って印刷を行う場合、スプールファイルマネージャ304は、印刷要求を発行する。発行された印刷要求は、グラフィックエンジン202に送信される。グラフィックエンジン202は、該印刷要求をDDI関数に変換した上で、変換された印刷命令をディスパッチャ301経由でプリンタドライバ203に送信し、その印刷命令に従って印刷が実行される。   When the user performs printing according to the setting change content, as in the confirmation by the previewer 306, the spool file manager 304 issues a print request. The issued print request is transmitted to the graphic engine 202. The graphic engine 202 converts the print request into a DDI function, transmits the converted print command to the printer driver 203 via the dispatcher 301, and performs printing according to the print command.

図4は、本発明におけるアプリケーション201に関する構成を示す図である。アプリケーション201は、符号化画像データを生成し、生成した符号化画像データと原稿画像データとを合成する。   FIG. 4 is a diagram showing a configuration related to the application 201 in the present invention. The application 201 generates encoded image data, and synthesizes the generated encoded image data and document image data.

アプリケーション201は、アプリケーション制御部401、ドライバ呼び出し部402、符号画像生成部403、符号画像合成部404、印刷ファイル読み込み部405、符号化データファイル読み込み部406、およびファイルI/O部407を備える。   The application 201 includes an application control unit 401, a driver call unit 402, a code image generation unit 403, a code image synthesis unit 404, a print file reading unit 405, an encoded data file reading unit 406, and a file I / O unit 407.

アプリケーション制御部401は、アプリケーション201内の各部を統括して制御する。後述するアプリケーション201のユーザインターフェース500の各部から実行命令があると、アプリケーション制御部401は、その命令を受信し、図4の各部に指示を出す。すなわち、図4に示すように、アプリケーション制御部401は、ドライバ呼び出し部402、符号画像生成部403、印刷ファイル読み込み部405、および符号化データファイル読み込み部406に対して指示を出す。   The application control unit 401 controls each unit in the application 201 in an integrated manner. When there is an execution command from each part of the user interface 500 of the application 201 to be described later, the application control unit 401 receives the command and issues an instruction to each part in FIG. That is, as shown in FIG. 4, the application control unit 401 issues an instruction to the driver call unit 402, the code image generation unit 403, the print file reading unit 405, and the encoded data file reading unit 406.

<符号化処理>
CPU1は、所定の情報(この所定の情報には、例えば、機器番号や印刷時間情報やユーザID情報などが含まれる)の符号化処理を行って符号化画像データを生成するように制御することが可能である。
<Encoding process>
The CPU 1 performs control to perform encoding processing of predetermined information (the predetermined information includes, for example, a device number, printing time information, user ID information, and the like) to generate encoded image data. Is possible.

なお、本明細書では、「符号化画像データ」とは、二次元コード画像やバーコード画像といった画像や電子透かし技術により生成された電子透かし画像のことを指す。   In this specification, “encoded image data” refers to an image such as a two-dimensional code image or a barcode image, or a digital watermark image generated by a digital watermark technique.

また、上記制御(符号画像の生成制御、送信制御)は、CPU1がRAM2内に格納されたプログラムを実行することによって行われる。   The above control (code image generation control, transmission control) is performed by the CPU 1 executing a program stored in the RAM 2.

ドライバ呼び出し部402は、スタンプ画像データの指定等の印刷設定を行うためにプリンタドライバ203を呼び出す。   A driver call unit 402 calls the printer driver 203 to perform print settings such as designation of stamp image data.

符号画像生成部403は、符号化画像データを生成し、符号画像合成部404に送信する。符号画像合成部404は、原稿画像データに該符号化画像データを合成する。   The code image generation unit 403 generates encoded image data and transmits it to the code image synthesis unit 404. The code image combining unit 404 combines the encoded image data with the document image data.

印刷ファイル読み込み部405は、印刷を行うファイルを読み込みRAM2に展開する。   A print file reading unit 405 reads a file to be printed and develops it in the RAM 2.

符号化データファイル読み込み部406は、符号化されて原稿画像データに合成されるデータをファイルとして読み込み、RAM2に展開する。   The encoded data file reading unit 406 reads the data that has been encoded and combined with the document image data as a file, and develops it in the RAM 2.

ファイルI/O部407は、印刷ファイル読み込み部405、および符号化データファイル読み込み部406で読み込まれたファイルを開き、データをRAM2に展開する。   The file I / O unit 407 opens the file read by the print file reading unit 405 and the encoded data file reading unit 406 and develops the data in the RAM 2.

図5は、アプリケーション201のユーザインターフェース500の操作画面の一例である。上述したように、アプリケーション201は、アプリケーション制御部401によって制御されるため、ユーザインターフェース500についてもアプリケーション制御部401が制御する。   FIG. 5 is an example of an operation screen of the user interface 500 of the application 201. As described above, since the application 201 is controlled by the application control unit 401, the application control unit 401 also controls the user interface 500.

ユーザインターフェース500は、印刷イメージ表示領域501、合成イメージ表示領域502、印刷ファイル読み込みボタン503、符号化データ読み込みボタン504、印刷設定ボタン505、印刷開始ボタン506、および閉じるボタン507を備える。   The user interface 500 includes a print image display area 501, a composite image display area 502, a print file read button 503, an encoded data read button 504, a print setting button 505, a print start button 506, and a close button 507.

以後、ユーザインターフェース500の各構成要素について説明する。   Hereinafter, each component of the user interface 500 will be described.

アプリケーション制御部401は、印刷ファイル読み込みボタン503が押下されたことを検知すると原稿画像データを読み込み、読み込んだ原稿画像データを印刷イメージ表示領域501に表示する。   When the application control unit 401 detects that the print file reading button 503 is pressed, it reads the document image data and displays the read document image data in the print image display area 501.

また、アプリケーション制御部401は、符号化データ読み込みボタン504が押下されたことを検知すると符号化を行うデータファイルを読み込み、符号化画像データを原稿画像データに合成したイメージを合成イメージ表示領域502に表示する。   When the application control unit 401 detects that the encoded data reading button 504 is pressed, the application control unit 401 reads the data file to be encoded, and an image obtained by combining the encoded image data with the document image data is displayed in the combined image display area 502. indicate.

印刷設定ボタン505が押下されると、ドライバ呼び出し部402がプリンタドライバ203を呼び出し、後述のプリンタドライバ203の印刷設定ユーザインターフェースを表示する(図6参照)。   When the print setting button 505 is pressed, the driver calling unit 402 calls the printer driver 203 and displays a print setting user interface of the printer driver 203 described later (see FIG. 6).

印刷開始ボタン506を押下して印刷を開始すると、グラフィックエンジン202は、プリンタ1500などの画像形成装置毎に用意されたプリンタドライバ203を外部メモリ11からRAM2にロードする。そして、グラフィックエンジン202は、アプリケーション201からの出力をプリンタドライバ203に設定する。   When the printing start button 506 is pressed to start printing, the graphic engine 202 loads the printer driver 203 prepared for each image forming apparatus such as the printer 1500 from the external memory 11 to the RAM 2. Then, the graphic engine 202 sets the output from the application 201 in the printer driver 203.

閉じるボタン507を押下すると、ユーザインターフェース500は閉じられる。   When the close button 507 is pressed, the user interface 500 is closed.

図6は、プリンタドライバ203の印刷設定ユーザインターフェースの一例であり、このユーザインターフェースでスタンプ画像データを指定する。スタンプ画像データとしては、「マル秘」「コピー禁止」などスタンプ画像データとして設定したい項目をプルダウンメニューから選択することが可能である。   FIG. 6 is an example of a print setting user interface of the printer driver 203, and the stamp image data is designated by this user interface. As the stamp image data, items to be set as stamp image data such as “secret” and “copy prohibited” can be selected from a pull-down menu.

<印刷用中間データの保存処理>
図7は、スプーラ302により実行される、スプールファイル303の生成におけるページ単位格納ステップの処理を示すフローチャートである。以下、各ステップにおける処理を説明する。
<Storage processing of intermediate data for printing>
FIG. 7 is a flowchart showing the processing of the page unit storage step in generating the spool file 303, which is executed by the spooler 302. Hereinafter, processing in each step will be described.

ステップS701では、スプーラ302は、アプリケーション201からグラフィックエンジン202、およびディスパッチャ301を介して印刷要求を受信する。   In step S <b> 701, the spooler 302 receives a print request from the application 201 via the graphic engine 202 and the dispatcher 301.

アプリケーション201においては、図6に示すような印刷設定を入力するダイアログが表示され、このダイアログから入力された印刷設定もプリンタドライバ203よりスプーラ302に渡される。この印刷設定は、上述したジョブ設定ファイル(SDF)のことである。例えば、図6に示す設定入力ダイアログは、「スタンプ」のチェックボックスのようにスタンプ画像データを印刷するか否かを決定するような設定項目等を含んでいる。このような印刷設定がプリンタドライバ203よりスプーラ302に渡される。   In the application 201, a dialog for inputting print settings as shown in FIG. 6 is displayed, and the print settings input from this dialog are also passed from the printer driver 203 to the spooler 302. This print setting is the above-described job setting file (SDF). For example, the setting input dialog shown in FIG. 6 includes setting items for determining whether or not to print stamp image data, such as a “stamp” check box. Such print settings are transferred from the printer driver 203 to the spooler 302.

ステップS702では、スプーラ302は、上記受信した印刷要求がジョブ開始要求か否かを判定し、ジョブ開始要求であると判定された場合はステップS703に進み、一方、ジョブ開始要求でないと判定された場合はステップS706に進む。   In step S702, the spooler 302 determines whether the received print request is a job start request. If it is determined that the request is a job start request, the process proceeds to step S703. On the other hand, the spooler 302 determines that the request is not a job start request. In this case, the process proceeds to step S706.

まず、ステップS703に進む処理フローから説明する。   First, the processing flow that proceeds to step S703 will be described.

ステップS703では、スプーラ302は、中間データを一時的に格納するためのスプールファイル303を作成する。   In step S703, the spooler 302 creates a spool file 303 for temporarily storing intermediate data.

続いて、ステップS704では、スプーラ302は、スプールファイルマネージャ304へ印刷処理の進捗を通知する。   In step S704, the spooler 302 notifies the spool file manager 304 of the progress of the printing process.

ステップS705では、スプーラ302は、自身のページ数カウンタを1に初期化する。   In step S705, the spooler 302 initializes its own page number counter to 1.

なお、スプールファイルマネージャ304は、印刷が開始されたジョブに対するジョブの情報や加工設定などをスプールファイル303より読み込み、スプールファイルマネージャ304内に記憶する。   Note that the spool file manager 304 reads job information, processing settings, and the like for a job for which printing has started from the spool file 303 and stores it in the spool file manager 304.

次に、ステップS706に進む処理フローを説明する。   Next, the processing flow that proceeds to step S706 will be described.

ステップS706では、受信した要求がジョブ終了要求か否かの判定を行う。ここで、ジョブ終了要求であると判定された場合には、ステップS712の処理に進み、一方、ジョブ終了要求でないと判定された場合には、ステップS707の処理に進む。   In step S706, it is determined whether the received request is a job end request. If it is determined that the request is a job end request, the process proceeds to step S712. If it is determined that the request is not a job end request, the process proceeds to step S707.

まず、ステップS707に進む処理フローから説明する。   First, the processing flow that proceeds to step S707 will be described.

ステップS707では、スプーラ302は、受信した要求が改ページか否かの判定を行う。ステップS707で、受信した要求が改ページであると判定された場合には、ステップS708に進み、スプーラ302は、スプールファイルマネージャ304へ印刷処理の進捗、すなわち、改ページの印刷要求を受信したことを通知する。また、スプーラ302は、ページ数カウンタを1増加(インクリメント)して、中間コードを格納しているページ描画ファイル(PDF)を閉じ、次のページ描画ファイル(PDF)を生成する。   In step S707, the spooler 302 determines whether the received request is a page break. If it is determined in step S707 that the received request is a page break, the process advances to step S708, and the spooler 302 has received the progress of print processing, that is, a page break print request, to the spool file manager 304. To be notified. The spooler 302 increments (increments) the page number counter by 1, closes the page drawing file (PDF) storing the intermediate code, and generates the next page drawing file (PDF).

一方、ステップS707において、受信した印刷要求が改ページではないと判定された場合には、ステップS709に進み、ページ描画ファイル(PDF)への中間コードの書き出しの準備を行う。   On the other hand, if it is determined in step S707 that the received print request is not a page break, the process advances to step S709 to prepare for writing the intermediate code to the page drawing file (PDF).

次に、ステップS710では、スプーラ302は、印刷要求をスプールファイル303へ格納するため、印刷要求を中間コードへ変換する処理を行う。   Next, in step S710, the spooler 302 performs processing for converting the print request into an intermediate code in order to store the print request in the spool file 303.

ステップS711では、スプーラ302は、ステップS710において格納可能な形に変換された印刷要求、すなわち、中間コードをスプールファイル303のページ描画ファイル(PDF)へ書き込む。   In step S <b> 711, the spooler 302 writes the print request converted into the form that can be stored in step S <b> 710, that is, the intermediate code into the page drawing file (PDF) of the spool file 303.

その後、ステップS701に戻り、スプーラ302は、再びアプリケーション201からの印刷要求を受信する。   Thereafter, the process returns to step S701, and the spooler 302 receives the print request from the application 201 again.

スプーラ302は、ステップS701からステップS711までの一連の処理を、アプリケーション201よりジョブ終了要求(EndDoc)を受信するまで続ける。   The spooler 302 continues the series of processing from step S701 to step S711 until a job end request (EndDoc) is received from the application 201.

また、スプーラ302は、上記一連の処理中にプリンタドライバ203からDEVMODE構造体に格納されている加工設定等の情報を取得し、ジョブ設定ファイル(SDF)としてスプールファイル303に格納する。   Further, the spooler 302 acquires information such as processing settings stored in the DEVMODE structure from the printer driver 203 during the above-described series of processing, and stores the information in the spool file 303 as a job setting file (SDF).

次に、ステップS706にて、アプリケーションからの印刷要求がジョブ終了であると判定され、ステップS712に進む処理フローを説明する。   Next, a processing flow in which it is determined in step S706 that the print request from the application is a job end and the process proceeds to step S712 will be described.

この場合、アプリケーション201からの印刷要求は全て終了であるので、ステップS712に進み、スプーラ302は、スプールファイルマネージャ304へ印刷処理の進捗を通知し、処理を終える。   In this case, since all print requests from the application 201 are completed, the process advances to step S712, and the spooler 302 notifies the spool file manager 304 of the progress of the printing process and ends the process.

<スプールファイルの生成>
図8は、スプールファイルマネージャ304により実行される、スプールファイル303生成プロセスと、以降説明する印刷データ生成プロセスとの間での制御の詳細を示すフローチャートである。
<Generate spool file>
FIG. 8 is a flowchart showing details of control between the spool file 303 generation process and the print data generation process described below, which is executed by the spool file manager 304.

ステップS801では、スプールファイルマネージャ304は、スプーラ302、またはデスプーラ305からの印刷処理の進捗通知を受信する。   In step S <b> 801, the spool file manager 304 receives a print processing progress notification from the spooler 302 or the despooler 305.

ステップS802では、スプールファイルマネージャ304は、上記進捗通知が前述のステップS704において通知されるスプーラ302からの印刷開始通知であるか否かを判定する。上記進捗通知がスプーラ302からの印刷開始通知である場合、ステップS803へ進み、印刷の加工設定(スタンプ画像データの設定等)をスプールファイル303から読み込み、ジョブの管理を開始する。その後、ステップS816で、スプールファイルマネージャ304は、後述のスタンプ画像データの設定を行う。   In step S802, the spool file manager 304 determines whether the progress notification is a print start notification from the spooler 302 notified in step S704 described above. If the progress notification is a print start notification from the spooler 302, the process advances to step S803 to read print processing settings (stamp image data settings, etc.) from the spool file 303, and start job management. Thereafter, in step S816, the spool file manager 304 sets stamp image data described later.

一方、スプールファイルマネージャ304は、ステップS802において、上記進捗通知がスプーラ302からの印刷開始通知でないと判定した場合ステップS804へ進む。スプールファイルマネージャ304は、ステップS804において、進捗通知が前述のステップS708において通知されるスプーラ302からの1論理ページの印刷終了通知、すなわち改ページの通知であるか否かを判定する。ここで1論理ページの印刷終了通知であれば、スプールファイルマネージャ304は、S817で後述のスタンプ画像データの設定を行い、ステップS805にて、この論理ページに関する論理ページ情報をRAM2に格納する。   On the other hand, if the spool file manager 304 determines in step S802 that the progress notification is not a print start notification from the spooler 302, the process advances to step S804. In step S804, the spool file manager 304 determines whether or not the progress notification is a print end notification of one logical page from the spooler 302 notified in the above-described step S708, that is, a page break notification. If it is a print end notification for one logical page, the spool file manager 304 sets stamp image data, which will be described later, in step S817, and stores logical page information related to this logical page in the RAM 2 in step S805.

そして、続くステップS806では、スプールファイルマネージャ304は、この時点でスプールが終了したn論理ページに対して、1物理ページの印刷が開始できるか否かを判定する。ここで、印刷可能であると判定された場合はステップS807へ進み、スプールファイルマネージャ304は、印刷する1物理ページに対して割り付けられる論理数から物理ページ番号を決定する。   In subsequent step S806, the spool file manager 304 determines whether printing of one physical page can be started with respect to the n logical pages for which spooling has been completed at this time. If it is determined that printing is possible, the process advances to step S807, and the spool file manager 304 determines the physical page number from the logical number assigned to one physical page to be printed.

物理ページの計算は、以下のように行われる。   The calculation of the physical page is performed as follows.

例えば、加工設定が1物理ページに4論理ページを配置するような設定の場合、第1物理ページは、第1論理ページ乃至第4論理ページがスプールされた時点で印刷可能となる。続いて、第2物理ページは、第5論理ページ乃至第8論理ページがスプールされた時点で印刷可能となる。   For example, when the processing setting is such that four logical pages are arranged on one physical page, the first physical page can be printed when the first to fourth logical pages are spooled. Subsequently, the second physical page can be printed when the fifth to eighth logical pages are spooled.

また、論理ページ数の総数が1物理ページに配置する論理ページ数の倍数でなくても、ステップS712におけるスプール終了通知によって1物理ページに配置する論理ページを決定することができる。   Even if the total number of logical pages is not a multiple of the number of logical pages allocated to one physical page, the logical page to be allocated to one physical page can be determined by the spool end notification in step S712.

そして、ステップS808では、スプールファイルマネージャ304は、物理ページ情報をジョブ出力用設定ファイル(物理ページ情報を含むファイル)に格納する。すなわち、図10に示すような形式で、印刷可能となった物理ページを構成する論理ページ番号、およびその物理ページ番号などの情報がジョブ出力用設定ファイルに格納される。その後、スプールファイルマネージャ304は、物理ページ情報が1物理ページ分追加されたことをデスプーラ305に通知する。   In step S808, the spool file manager 304 stores the physical page information in a job output setting file (a file including physical page information). That is, in the format shown in FIG. 10, information such as the logical page number constituting the printable physical page and the physical page number is stored in the job output setting file. Thereafter, the spool file manager 304 notifies the despooler 305 that one physical page of physical page information has been added.

その後、ステップS801に処理が戻り、スプールファイルマネージャ304は、次の通知を待つ。本実施形態においては、印刷ジョブのスプールが全て終了していなくても、印刷データ1ページ、即ち1物理ページを構成する論理ページがスプールされた時点で印刷処理が可能である。   Thereafter, the process returns to step S801, and the spool file manager 304 waits for the next notification. In the present embodiment, even if the spooling of the print job is not completed, the printing process can be performed when one page of print data, that is, a logical page constituting one physical page is spooled.

一方、ステップS804において、進捗通知がスプーラ302からの1論理ページの印刷終了通知でなかった場合、ステップS809へ処理が進む。ステップS809で、スプールファイルマネージャ304は、その進捗通知がステップS712において通知されるスプーラ302からのジョブ終了通知であるか否かを判定する。   On the other hand, if the progress notification is not a print end notification of one logical page from the spooler 302 in step S804, the process proceeds to step S809. In step S809, the spool file manager 304 determines whether or not the progress notification is a job end notification from the spooler 302 notified in step S712.

スプーラ302からのジョブ終了通知であると判定された場合、前述のステップS806へ処理が進む。以降の処理内容については、上記説明と重複するので省略する。   If it is determined that the job end notification is received from the spooler 302, the process proceeds to step S806 described above. Since the subsequent processing contents overlap with the above description, they are omitted.

一方、スプーラ302からのジョブ終了通知ではないと判定された場合、ステップS810へ処理が進み、スプールファイルマネージャ304は、上記進捗通知がデスプーラ305からの1物理ページの印刷終了通知であるか否かを判定する。   On the other hand, if it is determined that it is not a job end notification from the spooler 302, the process advances to step S810, and the spool file manager 304 determines whether or not the progress notification is a print end notification of one physical page from the despooler 305. Determine.

ステップS810で、1物理ページの印刷終了通知であると判定された場合、ステップS811に処理が進む。そして、ステップS811で、スプールファイルマネージャ304は、ステップS803でスプールファイル303から読み込んだ加工設定に対する印刷が全て終了したか否かを判定する。上記加工設定に対する印刷が全て終了した場合、スプールファイルマネージャ304は、ステップS812へ処理を進め、デスプーラ305に印刷終了の通知を行う。   If it is determined in step S810 that it is a print end notification for one physical page, the process proceeds to step S811. In step S811, the spool file manager 304 determines whether printing for all the processing settings read from the spool file 303 in step S803 has been completed. When printing for all the processing settings is completed, the spool file manager 304 advances the process to step S812 to notify the despooler 305 of the completion of printing.

一方、ステップS811にて、上記加工設定に対する印刷がまだ終了していないと判断された場合、前述のステップS806へ進む。   On the other hand, if it is determined in step S811 that printing for the processing setting has not yet been completed, the process proceeds to step S806 described above.

本実施形態におけるデスプーラ305は印刷処理を行う単位として1物理ページ数ごとを想定している。また、ステップS808では、1物理ページの印刷処理を行うのに必要な情報をジョブ出力用設定ファイルに逐次格納し、再利用可能な形式にしている。しかし、再利用不要な場合には、共有メモリ等の高速な媒体を使用し、1物理ページ単位で該媒体に次々と上書きし、速度とリソースを節約するような実施形態であってもよい。また、デスプーラ305の進捗よりもスプーラ302の進捗の方が早い場合や、スプーラ302による処理終了後からデスプーラ305による処理が開始されるような場合、上述した処理とは異なる処理を行ってもよい。すなわち、スプールファイルマネージャ304は、ステップS808で1物理ページ毎にページ印刷可能を通知せずに、デスプーラ305側の進捗に応じた通知を行ってもよい。例えば、スプールファイルマネージャ304は、複数物理ページまたは全物理ページが印刷可能になったことを通知すれば、通知回数を節約することが可能である。   The despooler 305 in this embodiment assumes every physical page number as a unit for performing a printing process. In step S808, information necessary for performing printing processing of one physical page is sequentially stored in the job output setting file so that it can be reused. However, in the case where reuse is unnecessary, an embodiment may be used in which a high-speed medium such as a shared memory is used, and the medium is overwritten one after another in units of one physical page to save speed and resources. In addition, when the progress of the spooler 302 is faster than the progress of the despooler 305, or when the processing by the despooler 305 is started after the end of the processing by the spooler 302, processing different from the processing described above may be performed. . That is, the spool file manager 304 may perform notification according to the progress on the despooler 305 side without notifying that page printing is possible for each physical page in step S808. For example, if the spool file manager 304 notifies that a plurality of physical pages or all physical pages can be printed, the number of notifications can be saved.

ここで、ステップS810に戻って説明する。   Here, it returns to step S810 and demonstrates.

上記進捗通知がデスプーラ305からの1物理ページの印刷終了通知ではないと判定された場合、ステップS813へ処理が進む。ステップS813では、スプールファイルマネージャ304は、デスプーラ305からの印刷終了通知か否かを判定する。   If it is determined that the progress notification is not a print end notification of one physical page from the despooler 305, the process proceeds to step S813. In step S813, the spool file manager 304 determines whether a print end notification is received from the despooler 305.

一方、上記進捗通知がデスプーラ305からの印刷終了通知であると判定された場合、ステップS814へ処理が進む。その後、スプールファイルマネージャ304は、スプールファイル303の該当するページ描画ファイル(PDF)の削除を行い、処理を終える。   On the other hand, if it is determined that the progress notification is a print end notification from the despooler 305, the process proceeds to step S814. Thereafter, the spool file manager 304 deletes the corresponding page drawing file (PDF) from the spool file 303 and ends the processing.

一方、デスプーラ305からの印刷終了通知でなかった場合はステップS815へ進み、スプールファイルマネージャ304は、エラー処理を実行する。その後、その他の処理(図示せず)を実行し、次の通知を待つ。   On the other hand, if the print end notification is not received from the despooler 305, the process advances to step S815, and the spool file manager 304 executes error processing. Thereafter, other processing (not shown) is executed, and the next notification is awaited.

<スプールファイルの出力>
図9は、デスプーラ305により実行される、印刷命令の生成プロセスの詳細を示すフローチャートである。
<Output spool file>
FIG. 9 is a flowchart showing details of a print command generation process executed by the despooler 305.

デスプーラ305は、スプールファイルマネージャ304からの印刷要求に応じて、スプールファイル303から必要な情報(ページ描画ファイル(PDF)、およびジョブ設定ファイル(SDF))を読み出して印刷命令を生成する。生成された印刷命令をプリンタ1500まで送信する方法については図3を用いて前述した通りである。   In response to a print request from the spool file manager 304, the despooler 305 reads necessary information (page drawing file (PDF) and job setting file (SDF)) from the spool file 303 and generates a print command. The method for transmitting the generated print command to the printer 1500 is as described above with reference to FIG.

印刷命令の生成では、まず、ステップS901において、前述のスプールファイルマネージャ304からの通知がデスプーラ305に入力される。   In the generation of the print command, first, the notification from the spool file manager 304 is input to the despooler 305 in step S901.

続くステップS902では、デスプーラ305は、該入力された通知がジョブの終了通知か否かを判定し、ジョブ終了通知であると判定された場合は、ステップS903へ処理が進む。ステップS903では、デスプーラ305は、RAM2(または、外部メモリ11)上に終了フラグを立てる。その後、ステップS905へ処理が進む。   In subsequent step S902, the despooler 305 determines whether or not the input notification is a job end notification. If it is determined that the input is a job end notification, the process proceeds to step S903. In step S903, the despooler 305 sets an end flag on the RAM 2 (or the external memory 11). Thereafter, the process proceeds to step S905.

一方、ステップS902において上記入力された通知がジョブ終了通知でないと判定された場合は、ステップS904に処理が進む。ステップS904では、デスプーラ305は、上記入力された通知が前述のステップS808においてスプールファイルマネージャ304から通知された1物理ページの印刷開始要求であるか否かを判定する。   On the other hand, if it is determined in step S902 that the input notification is not a job end notification, the process proceeds to step S904. In step S904, the despooler 305 determines whether the input notification is a request to start printing one physical page notified from the spool file manager 304 in step S808 described above.

ステップS904において印刷開始要求でないと判定された場合は、ステップS910へ処理が進み、デスプーラ305は、その他エラー処理を行い、ステップS901へ戻って次の通知を待つ。   If it is determined in step S904 that the request is not a print start request, the process proceeds to step S910, the despooler 305 performs other error processing, returns to step S901, and waits for the next notification.

一方、ステップS904において1物理ページの印刷開始要求であると判定された場合はステップS905へ処理が進み、デスプーラ305はステップS904で通知を受けた印刷処理可能な物理ページのIDを図10に示すジョブ出力用設定ファイルに格納する。ジョブ出力用設定ファイルについては、図10の説明において詳述する。   On the other hand, if it is determined in step S904 that it is a request to start printing one physical page, the process proceeds to step S905, and the despooler 305 shows the ID of the physical page that can be printed, notified in step S904, as shown in FIG. Store in the job output setting file. The job output setting file will be described in detail with reference to FIG.

続くステップS906では、デスプーラ305は、ステップS905で格納した物理ページIDの全てのページに関して印刷処理が済んでいるのか否かを判定する。全物理ページの処理が済んでいると判定された場合は、ステップS907へ処理が進み、デスプーラ305は、上記終了フラグが立てられているのか否かを判定する。   In the subsequent step S906, the despooler 305 determines whether or not the printing process has been completed for all pages of the physical page ID stored in step S905. If it is determined that all physical pages have been processed, the process proceeds to step S907, and the despooler 305 determines whether or not the end flag is set.

ステップS907で、上記終了フラグが立っていると判定された場合は、ジョブの印刷が終了したとみなし、デスプーラ305は、処理終了の通知をスプールファイルマネージャ304に通知し、処理を終える。   If it is determined in step S907 that the end flag is set, it is assumed that the job printing has ended, and the despooler 305 notifies the spool file manager 304 of the end of processing, and the processing ends.

一方、ステップS907で、終了フラグが立っていないと判定された場合は、ステップS901へ戻り次の通知を待つ。   On the other hand, if it is determined in step S907 that the end flag is not set, the process returns to step S901 to wait for the next notification.

また、ステップS906で、印刷可能な物理ページが残っていると判定された場合には、ステップS908へ処理が進む。   If it is determined in step S906 that a printable physical page remains, the process proceeds to step S908.

ステップS908では、デスプーラ305は、上記格納された物理ページIDから未処理の物理ページIDを順に読み出す。そして、デスプーラ305は、読み出した物理ページIDに対応する物理ページの印刷命令の生成に必要な情報を読み込み、印刷処理を行う。該印刷処理では、デスプーラ305は、スプールファイル303に格納された印刷要求命令をグラフィックエンジン202が認識可能な形式(GDI関数)に変換し、送信する。   In step S908, the despooler 305 sequentially reads unprocessed physical page IDs from the stored physical page IDs. The despooler 305 reads information necessary for generating a physical page print command corresponding to the read physical page ID, and performs print processing. In the printing process, the despooler 305 converts the print request command stored in the spool file 303 into a format (GDI function) that can be recognized by the graphic engine 202 and transmits the converted print request command.

本実施形態のような、複数論理ページを1物理ページにレイアウトするような加工設定(以下、Nページ印刷)については、ステップS908で縮小配置を考慮にいれながら変換する。   For the processing setting (hereinafter, N-page printing) for laying out a plurality of logical pages on one physical page as in the present embodiment, conversion is performed in consideration of the reduced arrangement in step S908.

必要な印刷処理を終えた場合、デスプーラ305は、続くステップS909において1物理ページの印刷命令生成終了の通知をスプールファイルマネージャ304に対して行う。その後、再びステップS906へ戻り、ステップS905で格納した印刷可能な物理ページID全てについて印刷処理を行うまで上記処理を繰り返す。   When the necessary print processing is completed, the despooler 305 notifies the spool file manager 304 of the end of print command generation for one physical page in the subsequent step S909. Thereafter, the process returns to step S906 again, and the above process is repeated until the print process is performed for all printable physical page IDs stored in step S905.

以上が、ディスパッチャ301、スプーラ302、スプールファイルマネージャ304、およびデスプーラ305を用いた印刷処理の流れである。   The above is the flow of print processing using the dispatcher 301, the spooler 302, the spool file manager 304, and the despooler 305.

上記処理をすることにより、スプーラ302がページ描画ファイル(PDF)を生成してスプールファイル303に格納するタイミングでアプリケーション201が印刷処理から開放されるので、プリンタドライバ203に直接出力するよりも短時間で済む。   By performing the above processing, the application 201 is released from the printing process at the timing when the spooler 302 generates a page drawing file (PDF) and stores it in the spool file 303, so that it takes a shorter time than directly outputting to the printer driver 203. Just do it.

また、スプールファイル303に、プリンタドライバ203の印刷設定を踏まえた中間ファイル(ページ描画ファイル(PDF)、ジョブ設定ファイル(SDF))として一時的に格納される。そのため、実際の印刷イメージをプレビューでユーザに認識させることや、複数のアプリケーションで生成した印刷ジョブの結合や並べ替えが可能となる。また、印刷設定の変更を行う場合にも、再度アプリケーションを立ち上げて印刷をすることなしにユーザに行わせることが可能となる。   Further, the spool file 303 is temporarily stored as an intermediate file (page drawing file (PDF), job setting file (SDF)) based on the print settings of the printer driver 203. Therefore, it is possible to allow the user to recognize an actual print image in a preview, and to combine and rearrange print jobs generated by a plurality of applications. Also, when changing the print settings, it is possible to allow the user to execute without starting up the application again and printing.

ここで、ジョブ出力用設定ファイルについて説明する。   Here, the job output setting file will be described.

ジョブ出力用設定ファイルは、スプーラ302を用いた印刷処理において、デスプーラ305からグラフィックエンジン202への印刷要求時に生成されるが、プレビューやジョブ結合等を行う場合にも生成される。ジョブ出力用設定ファイルは、単体ジョブの場合はジョブ設定ファイル(SDF)と同等のものであり、結合ジョブの場合は複数のジョブ設定情報に基づいて生成される。   The job output setting file is generated at the time of a print request from the despooler 305 to the graphic engine 202 in the printing process using the spooler 302, but is also generated when previewing or job combination is performed. The job output setting file is equivalent to the job setting file (SDF) for a single job, and is generated based on a plurality of job setting information for a combined job.

<ジョブ出力用設定ファイルの構成>
図10は、ステップS808において、スプールファイルマネージャ304が生成する印刷可能となった物理ページを構成する情報を格納するジョブ出力用設定ファイルの例を示す。
<Configuration of job output setting file>
FIG. 10 shows an example of a job output setting file that stores information constituting the printable physical page generated by the spool file manager 304 in step S808.

フィールド1001は、ジョブを識別するためのIDが格納される。なお、本情報を格納するファイル名や共有メモリの名称という形で格納することも可能である。   A field 1001 stores an ID for identifying a job. It is also possible to store the information in the form of a file name for storing this information or a shared memory name.

フィールド1002は、ジョブ設定情報が格納される。ジョブ設定情報には、1つのジョブに対して1つしか設定できない情報が含まれる。例えば、グラフィックエンジン202に対してジョブの印刷を開始するために必要な構造体、カラーモードの指定、Nページ印刷の指定、ページ枠などの追加描画の指定、部数、ステイプルなどのフィニッシング指定等である。フィールド1002のジョブ設定情報には、ジョブに対する機能に応じて必要なだけ情報が格納される。   A field 1002 stores job setting information. The job setting information includes information that can only be set for one job. For example, a structure necessary for starting printing of a job to the graphic engine 202, a color mode specification, an N page print specification, an additional drawing specification such as a page frame, the number of copies, a finishing specification such as stapling, etc. is there. The job setting information in the field 1002 stores as much information as necessary according to the function for the job.

フィールド1003は、ジョブの物理ページ数で、本フィールド以降、この数の分だけ物理ページ情報が格納されていることを示す。これ以降、フィールド1004から最後までフィールド1003の数だけ物理ページ情報が格納される。すなわち、フィールド1003に格納される物理ページ情報の数に従ってフィールド1004以降の数は決定される。例えば、フィールド1003に、ジョブの物理ページ数が「4」という情報が格納されている場合、フィールドは4つ必要であるので、最後の物理ページである四つ目の物理ページ情報は、フィールド1007に格納される。   A field 1003 is the number of physical pages of the job, and indicates that this number of physical page information is stored after this field. Thereafter, the physical page information is stored in the number of fields 1003 from the field 1004 to the end. That is, the number after field 1004 is determined according to the number of physical page information stored in field 1003. For example, when the information that the number of physical pages of the job is “4” is stored in the field 1003, four fields are necessary. Therefore, the fourth physical page information that is the last physical page is the field 1007. Stored in

なお、本実施形態では、印刷可能な物理ページ数を通知する方式であるので、このフィールドはなくても動作可能である。   In this embodiment, since the number of printable physical pages is notified, the operation is possible without this field.

物理ページ情報については図12を参照して後述する。   The physical page information will be described later with reference to FIG.

<ジョブ設定情報の構成>
図11は、図10のフィールド1002に示されたジョブ設定情報の一例を示す。
<Configuration of job setting information>
FIG. 11 shows an example of job setting information shown in the field 1002 of FIG.

フィールド1101は、全物理ページ数である。一方、フィールド1102は、全論理ページ数である。フィールド1101、およびフィールド1102は、印刷命令にページ数などを付加情報として追加して印刷する場合などに利用する。印刷が続いている際には、両フィールドは暫定的な値を有するか、または、印刷が終了するまでスプールファイルマネージャ304は印刷可能な物理ページの情報の作成を延期する。   A field 1101 is the total number of physical pages. On the other hand, the field 1102 is the total number of logical pages. Fields 1101 and 1102 are used when printing by adding the number of pages as additional information to the print command. As printing continues, both fields have provisional values, or the spool file manager 304 postpones the creation of printable physical page information until printing ends.

フィールド1103は、本印刷ジョブを何部印刷するかを指定する部数情報が格納されるフィールドである。   A field 1103 stores the number of copies information that specifies how many copies of the print job are to be printed.

フィールド1104は、フィールド1103で複数部印刷する設定がされている場合、部単位で印刷するか否かを指定するフィールドである。   A field 1104 is a field for designating whether or not printing is to be performed in units of copies when the field 1103 is set to print a plurality of copies.

フィールド1105は、ステイプル、パンチ、Z折などのフィニッシング情報が格納されるフィールドであり、プリンタ本体、または外部にフィニッシャーがある場合に指定される。   A field 1105 is a field for storing finishing information such as stapling, punching, Z-folding, and the like, and is designated when a finisher exists in the printer main body or outside.

フィールド1106は、付加印刷情報、すなわち、本発明のスタンプ画像データの印刷を始めとして、ページ枠などの飾り、日付などの付加情報、ユーザ名、ページ数等、ジョブに対して付加する情報等が格納されるフィールドである。機能が増えるに従って、本ジョブ設定情報に含まれるフィールドの数も増加し、例えば、両面印刷が可能な場合は、両面印刷の指定を格納するフィールドが追加される。   The field 1106 contains additional print information, that is, information added to the job such as decoration of a page frame, additional information such as date, user name, number of pages, and the like, including printing of stamp image data of the present invention. The field to be stored. As the number of functions increases, the number of fields included in the job setting information increases. For example, when double-sided printing is possible, a field for storing designation of double-sided printing is added.

<物理ページ情報>
図12は、図10のフィールド1004に示された物理ページ情報の一例を示す。
<Physical page information>
FIG. 12 shows an example of physical page information shown in the field 1004 of FIG.

フィールド1201は、物理ページ番号が格納されるフィールドであり、該物理ページ番号は、印刷順序の管理や、物理ページ番号を追加印刷する際に使用される値である。   A field 1201 is a field in which a physical page number is stored, and the physical page number is a value used when managing the printing order and additionally printing the physical page number.

フィールド1202は、物理ページ設定情報が格納されるフィールドであり、物理ページ毎にレイアウトやカラー・モノクロの指定が可能である場合には、レイアウトやカラー・モノクロの設定情報が格納される。   A field 1202 stores physical page setting information. When layout or color / monochrome can be specified for each physical page, layout / color / monochrome setting information is stored.

フィールド1203は、本物理ページに割り付けられる論理ページ数が格納されるフィールドであり、1物理ページに4ページを割り付ける場合には4、または4ページ印刷を示すIDが格納される。   A field 1203 is a field for storing the number of logical pages to be allocated to the physical page. When 4 pages are allocated to one physical page, an ID indicating 4 or 4-page printing is stored.

フィールド1204以降は、フィールド1203で指定された数だけ論理ページの情報が格納されるフィールドである。アプリケーション201から印刷されたページ数によっては、フィールド1203で指定されるページ数よりも実際のページデータ数が少なくなる場合がある。その場合には、論理ページ情報に空ページを示す特別なデータ(例えば、NULL値)を格納して対応する。   Fields 1204 and after are fields in which logical page information is stored in the number specified in the field 1203. Depending on the number of pages printed from the application 201, the actual number of page data may be smaller than the number of pages specified in the field 1203. In that case, special data (for example, NULL value) indicating an empty page is stored in the logical page information.

図13は、フィールド1202の物理ページ設定情報の一例を示す図である。   FIG. 13 is a diagram illustrating an example of physical page setting information in the field 1202.

フィールド1301は、物理ページ上への論理ページの配置順が格納されるフィールドであり、例えば、Nページ印刷で、物理ページ上に論理ページを配置する順番(左上から横へ、左上から下へ等)の指定が格納されている。なお、システムによっては、配置順ではなく、フィールド1204以降の論理ページ情報の順番をページ番号順ではなく、配置順に応じた順序で配することでフィールド1301の設定を代用することも可能である。   A field 1301 is a field in which the order of arrangement of logical pages on a physical page is stored. For example, in N-page printing, the order of arrangement of logical pages on a physical page (from top left to side, top left to bottom, etc.) ) Is stored. Depending on the system, the setting of the field 1301 can be substituted by arranging the logical page information after the field 1204 in the order corresponding to the arrangement order instead of the page number order, instead of the arrangement order.

フィールド1302は、両面印刷の表・裏の情報が格納されるフィールドであり、例えば、綴じ代を表裏でそろえる際に使用される。   A field 1302 is a field in which information on both sides of double-sided printing is stored, and is used, for example, when aligning binding margins on the front and back sides.

フィールド1303は、カラーページかモノクロページかの指定を示すフィールドであり、フィールド1303を使用して物理ページ単位にカラー/モノクロのモード指定をすることができる。   A field 1303 is a field for indicating whether a color page or a monochrome page is specified. By using the field 1303, a color / monochrome mode can be specified for each physical page.

フィールド1304は、付加印刷情報が格納されるフィールドであり、物理ページに対してページ数や日付などの付加情報を印刷する場合に使用される。物理ページ設定情報も、システムの機能に応じてフィールドが追加される。   A field 1304 stores additional print information, and is used when additional information such as the number of pages and date is printed on a physical page. In the physical page setting information, a field is added according to the function of the system.

図14は、フィールド1204で示された論理ページ情報の一例を示す図である。   FIG. 14 is a diagram illustrating an example of the logical page information indicated in the field 1204.

フィールド1401は、論理ページ識別IDが格納されるフィールドであり、論理ページ識別IDを利用して、スプールファイル303から論理ページに対応するページ描画ファイル(PDF)の中間コードを参照することができる。なお、論理ページ識別IDを利用して論理ページに対応するページ描画ファイル(PDF)の中間コードへアクセス可能であれば良い。このため、フィールド1401には、ファイルやメモリのポインタが入っていてもよく、または論理ページを構成する中間コード自身が入っていてもよい。   A field 1401 stores a logical page identification ID, and an intermediate code of a page drawing file (PDF) corresponding to the logical page can be referred to from the spool file 303 using the logical page identification ID. Note that it is only necessary that the intermediate code of the page drawing file (PDF) corresponding to the logical page can be accessed using the logical page identification ID. For this reason, the field 1401 may contain a file or memory pointer, or may contain the intermediate code itself constituting the logical page.

フィールド1402は、論理ページ番号が格納されるフィールドであり、論理ページ番号を付加情報として印刷する場合や、論理ページIDの補助情報に使用される。   A field 1402 is a field in which a logical page number is stored, and is used when the logical page number is printed as additional information or used as auxiliary information for the logical page ID.

フィールド1403は、フォーマット情報が格納されるフィールドであり、論理ページ単位で指定可能である各種設定項目が格納される。例えば、ページ枠などの付加印刷情報、拡縮率などの論理ページ単位に指定される各種設定の情報が格納される。また、必要であれば、論理ページ単位のカラー・モノクロ情報などの論理ページに対する属性情報を格納することもできる。なお、論理ページ単位で設定を切りかえるシステム、または論理ページ単位での属性情報が不要なシステムでは、フィールド1403は不要である。   A field 1403 stores format information, and stores various setting items that can be specified in units of logical pages. For example, it stores additional print information such as page frames, and various setting information designated for each logical page such as an enlargement / reduction ratio. Further, if necessary, attribute information for a logical page such as color / monochrome information in units of logical pages can be stored. Note that the field 1403 is not necessary in a system that switches settings in units of logical pages, or in a system that does not require attribute information in units of logical pages.

図10乃至図14を参照して説明したように、ジョブ出力用設定ファイルは、上記のように構成されている。なお、ジョブ設定ファイル(SDF)もほぼ同様の構成であり、印刷体裁(片面、両面、製本印刷)、印刷レイアウト(Nup、ポスター印刷)、付加情報(地紋プリント情報、スタンプ、日付、ユーザ名など)、部数、用紙サイズ情報を有する。また、ジョブ設定ファイル(SDF)は、物理ページ毎に論理ページの配置順、両面印刷の表面/裏面、カラーモード等を有して構成されている。   As described with reference to FIGS. 10 to 14, the job output setting file is configured as described above. Note that the job setting file (SDF) has almost the same configuration, and print format (single-sided, double-sided, bookbinding printing), print layout (Nup, poster printing), additional information (background print information, stamp, date, user name, etc.) ), The number of copies, and paper size information. The job setting file (SDF) includes a logical page arrangement order for each physical page, a front / back side for duplex printing, a color mode, and the like.

図3に戻って説明すると、図3は、これまで説明した拡張システムに加えて、ジョブの設定変更機能を持つ設定変更エディタ307を配した例を示している。本実施形態ではジョブの設定内容は、単体ジョブの場合は、ジョブ設定ファイル(SDF)に含まれており、一方、結合ジョブの場合は、図10に示すジョブ出力用設定ファイル中に含まれている。つまり、ジョブの設定内容は、中間コードであるページ描画ファイルを格納するスプールファイル303とは独立している。   Returning to FIG. 3, FIG. 3 shows an example in which a setting change editor 307 having a job setting change function is arranged in addition to the extended system described so far. In the present embodiment, the job setting contents are included in the job setting file (SDF) in the case of a single job, while in the job output setting file shown in FIG. 10 in the case of a combined job. Yes. That is, the job settings are independent of the spool file 303 that stores the page drawing file that is an intermediate code.

このため、ジョブ出力用設定ファイルを作り変えることでジョブの設定変更が可能である。設定変更エディタ307は、単独で、またはスプールファイルマネージャ304と連携してジョブ出力用設定ファイルを作り変え、若しくは、一部を書き換えることでジョブの設定変更機能を実現している。   For this reason, it is possible to change job settings by recreating a job output setting file. The setting change editor 307 implements a job setting change function by changing the job output setting file by itself or in cooperation with the spool file manager 304 or by rewriting a part thereof.

<スタンプ画像データ設定>
図15は、スプールファイルマネージャ304が、スタンプ画像データを原稿画像データに合成するフローチャートを示す。スプールファイルマネージャ304は、RAM2に展開され、CPU1によって実行される。
<Stamp image data setting>
FIG. 15 shows a flowchart in which the spool file manager 304 combines the stamp image data with the document image data. The spool file manager 304 is expanded in the RAM 2 and executed by the CPU 1.

ステップS1501で、スプールファイルマネージャ304は、ステップS803で読み込んだ加工設定にスタンプ印刷の指定があるか否かを判定する。指定があると判定された場合は、ステップS1502へ処理が進み、逆に、指定がないと判定された場合は、ステップS1505へ処理が進む。   In step S1501, the spool file manager 304 determines whether or not stamp printing is designated in the processing settings read in step S803. If it is determined that there is a designation, the process proceeds to step S1502. Conversely, if it is determined that there is no designation, the process proceeds to step S1505.

ステップS1502で、スプールファイルマネージャ304内の符号化画像検知部308は、原稿画像データの符号化画像データを復号(デコード)し、原稿画像データに符号化画像データが含まれるか否かを検知する。そして、このステップS1502で符号化画像データが含まれていないと判定された場合には、ステップS1504に移行して、上記符号化画像データを含まない原稿画像データとスタンプとを合成する。一方、ステップS1502で符号化画像データが含まれていると判定された場合には、ステップS1503に移行する。   In step S1502, the encoded image detection unit 308 in the spool file manager 304 decodes (decodes) the encoded image data of the document image data, and detects whether the encoded image data is included in the document image data. . If it is determined in step S1502 that the encoded image data is not included, the process proceeds to step S1504, and the document image data not including the encoded image data is combined with the stamp. On the other hand, if it is determined in step S1502 that the encoded image data is included, the process proceeds to step S1503.

ステップS1503では、符号化画像検知部308は、検知された符号化画像データの描画位置を取得し、該取得された描画位置をRAM2に格納する。これと共に、スプールファイルマネージャ304は、上記加工設定に含まれるスタンプ画像データの描画位置を取得し、該取得された描画位置をRAM2に格納する。スプールファイルマネージャ304は、RAM2に格納された符号化画像データの描画位置とスタンプ画像データの描画位置とに重複領域があるか、即ち、符号化画像データとスタンプ画像データとが重複するか否かを判定する。このステップS1503で、符号化画像検知部308が符号化画像データとスタンプ画像データとが重複しないと判定する場合、ステップS1504に処理が移行し、スタンプ画像データと符号化画像データを含む原稿画像データとを併せて印刷データとしてプリンタに送信する。即ち、スタンプ画像データと原稿画像データとがプリンタで合成されるように、これらのスタンプ画像データと原稿画像データとを印刷データとしてプリンタに送信する。その後、プリンタは、印刷データとして受け取った原稿画像データとスタンプ画像データとを合成してシート上に形成する。一方、ステップS1503で、符号化画像検知部308が符号化画像データとスタンプ画像データとが重複していると判定する場合は、ステップS1506に処理が進み、印刷を中断する処理(ユーザに対して印刷を中断する旨の通知)を行い、プリンタに対しては印刷データを送らない。   In step S1503, the encoded image detection unit 308 acquires the drawing position of the detected encoded image data, and stores the acquired drawing position in the RAM 2. At the same time, the spool file manager 304 acquires the drawing position of the stamp image data included in the processing setting, and stores the acquired drawing position in the RAM 2. The spool file manager 304 determines whether there is an overlap area between the drawing position of the encoded image data stored in the RAM 2 and the drawing position of the stamp image data, that is, whether the encoded image data and the stamp image data overlap. Determine. In step S1503, if the encoded image detection unit 308 determines that the encoded image data and the stamp image data do not overlap, the process proceeds to step S1504, and the original image data including the stamp image data and the encoded image data. Are sent to the printer as print data. That is, the stamp image data and the document image data are transmitted to the printer as print data so that the stamp image data and the document image data are combined by the printer. Thereafter, the printer synthesizes the original image data and the stamp image data received as print data and forms them on the sheet. On the other hand, if the encoded image detection unit 308 determines in step S1503 that the encoded image data and the stamp image data overlap, the process proceeds to step S1506, and the process of interrupting printing (for the user) Notification to interrupt printing), and print data is not sent to the printer.

(第2の実施形態)
第1の実施形態と第2の実施形態とでは、上記図15のフローチャートにおけるステップS1506での処理が異なっている。そのため、このステップS1506について説明する。
(Second Embodiment)
The processing in step S1506 in the flowchart of FIG. 15 is different between the first embodiment and the second embodiment. Therefore, step S1506 will be described.

ステップS1503において、符号化画像検知部308が、符号化画像データが重複していると判定した場合、ステップS1506に移行する。このステップS1506では、符号化画像データが存在する旨をアプリケーション201のユーザインターフェースなどを使用してユーザに対して通知し、さらに、原稿画像データのみを印刷データとしてプリンタに送信する。この際、原稿画像データのみを印刷データとして送信し、符号化画像データは送信しないため、プリンタは原稿画像データのみをシート上に形成することになる。   In step S1503, when the encoded image detection unit 308 determines that the encoded image data is duplicated, the process proceeds to step S1506. In step S1506, the user is notified of the presence of the encoded image data using the user interface of the application 201, and only the document image data is transmitted to the printer as print data. At this time, since only the document image data is transmitted as print data and the encoded image data is not transmitted, the printer forms only the document image data on the sheet.

このため、スタンプ画像データが符号化画像データ上に合成されることがなく、従って、符号化画像データを破損させずに印刷データとしてプリンタに送信することが可能となり、さらに、ユーザもスタンプ画像データを合成しないことを該通知によって知ることができる。   For this reason, the stamp image data is not combined with the encoded image data. Therefore, the encoded image data can be transmitted to the printer as print data without damaging the encoded image data. Can be known from the notification.

なお、本実施形態では、通知をし、スタンプ画像データを合成せずに印刷処理を行う実施形態について説明したが、通知をして印刷処理を中止する実施形態であっても構わない。   In the present embodiment, the embodiment is described in which the notification is performed and the printing process is performed without compositing the stamp image data. However, the embodiment may be an embodiment in which the notification is notified and the printing process is stopped.

(第3の実施形態)
図17は、スタンプ画像データ設定における実施形態を説明する。図17は、符号化画像データとスタンプ画像データとを合成した場合の処理のイメージを視覚的に示した図であり、スタンプ画像データをずらした場合にスタンプ画像データが原稿画像データからサイズ的にはみ出る場合の処理を示した図である。
(Third embodiment)
FIG. 17 illustrates an embodiment in setting stamp image data. FIG. 17 is a diagram visually showing an image of processing when the encoded image data and the stamp image data are combined. When the stamp image data is shifted, the stamp image data is reduced in size from the original image data. It is the figure which showed the process in the case of protruding.

符号1701は、符号化画像データが存在する原稿画像データであり、符号1702は、スタンプ画像データである。符号1701の原稿画像データに符号1702のスタンプ画像データをそのまま合成すると符号1703の描画データのようにスタンプ画像データと符号化画像データとが重複してしまう。   Reference numeral 1701 is document image data in which encoded image data exists, and reference numeral 1702 is stamp image data. When the stamp image data of the reference numeral 1702 is directly combined with the original image data of the reference numeral 1701, the stamp image data and the encoded image data overlap as in the drawing data of the reference numeral 1703.

その場合、符号1704のようにスタンプ画像データを原稿画像データ上で符号化画像データが描画されている領域から符号化画像データ以外の領域が最も広い方向に、重複しない距離にずらした場所にスタンプ画像データを描画する。しかし、符号1704に示すようにスタンプ画像データを描画可能な領域がない(スタンプ画像データが原稿画像データからはみ出してしまう)場合も発生する。このような場合は、加工設定で初めに指定された描画位置でスタンプ画像データのサイズをN%縮小し、符号1705に示すように、それぞれの画像データが重複しないサイズまでスタンプ画像データを縮小する。   In this case, the stamp image data is stamped at a position shifted from the area where the encoded image data is drawn on the document image data to the non-overlapping distance in the widest area other than the encoded image data as indicated by reference numeral 1704. Draw image data. However, as indicated by reference numeral 1704, there may be a case where there is no region where the stamp image data can be drawn (the stamp image data protrudes from the document image data). In such a case, the size of the stamp image data is reduced by N% at the drawing position initially specified in the processing settings, and as indicated by reference numeral 1705, the stamp image data is reduced to a size that does not overlap each other. .

なお、本実施形態の目的とするのは、スタンプ画像データを合成する際に、符号化画像データを破損しないことにある。そのため、符号1703のようにスタンプ画像データと符号化画像データが重複する場合に、ユーザインターフェースを利用してユーザに警告表示を通知し、スタンプ画像の設定を再度行わせるようにしても構わない。また、符号1703のようにスタンプ画像データと符号化画像データが重複する場合に、ユーザインターフェースを利用してユーザに警告表示を通知し、印刷処理を中止させるようにしても構わない。   The object of the present embodiment is to prevent the encoded image data from being damaged when the stamp image data is synthesized. For this reason, when the stamp image data and the encoded image data overlap as shown by reference numeral 1703, a warning display may be notified to the user using the user interface, and the stamp image may be set again. Further, when stamp image data and encoded image data overlap as shown by reference numeral 1703, a warning display may be notified to the user using the user interface, and the printing process may be stopped.

図18は、図17で図示したスタンプ画像データ設定の実施形態を説明するフローチャートであり、スプールファイルマネージャ304がスタンプ画像データを原稿画像データに合成するフローチャートである。なお、スプールファイルマネージャ304は、RAM2に展開され、CPU1によって実行される。   FIG. 18 is a flowchart for explaining an embodiment of the stamp image data setting shown in FIG. 17, and is a flowchart in which the spool file manager 304 combines the stamp image data with the document image data. The spool file manager 304 is expanded in the RAM 2 and executed by the CPU 1.

ステップS1801で、スプールファイルマネージャ304は、ステップS803で読み込んだ加工設定にスタンプ画像データの印刷指定があるか否かを判定する。スタンプ画像データの印刷指定があると判定された場合は、ステップS1802へ処理が進み、一方、指定がないと判定された場合は、処理を終了する。   In step S1801, the spool file manager 304 determines whether or not stamp image data printing is specified in the processing settings read in step S803. If it is determined that there is a print designation for stamp image data, the process proceeds to step S1802. On the other hand, if it is determined that there is no designation, the process ends.

ステップS1802で、スプールファイルマネージャ304内の符号化画像検知部308は、原稿画像データに符号化画像データが含まれるか否かを検知する。   In step S1802, the encoded image detection unit 308 in the spool file manager 304 detects whether or not encoded image data is included in the document image data.

ステップS1803で、符号化画像データありと判定された場合は、ステップS1804へ処理が進み、一方、符号化画像データなしと判定された場合は、処理が終了する。   If it is determined in step S1803 that there is encoded image data, the process proceeds to step S1804. If it is determined that there is no encoded image data, the process ends.

ステップS1804で、符号化画像検知部308が原稿画像データの符号化画像データを復号(デコード)し、符号化画像データの描画位置を検知する。   In step S1804, the encoded image detection unit 308 decodes the encoded image data of the document image data, and detects the drawing position of the encoded image data.

ステップS1805で、スプールファイルマネージャ304は、上記加工設定からスタンプ画像データの描画位置を取得する。   In step S1805, the spool file manager 304 acquires the drawing position of the stamp image data from the processing setting.

ステップS1806で、スプールファイルマネージャ304内のスタンプ画像処理部309が符号化画像データの描画位置とスタンプ画像データの描画位置とが重複するか否かを判定する。   In step S1806, the stamp image processing unit 309 in the spool file manager 304 determines whether the drawing position of the encoded image data and the drawing position of the stamp image data overlap.

ステップS1806で、描画位置が重複すると判断した場合は、ステップS1807に処理が進み、一方、描画位置が重複しないと判断した場合は、処理が終了する。   If it is determined in step S1806 that the drawing positions overlap, the process proceeds to step S1807. On the other hand, if it is determined that the drawing positions do not overlap, the process ends.

ステップS1807で、スタンプ画像処理部309は、スタンプ画像データを原稿画像データ上で符号化画像データが描画されている領域から符号化画像データ以外の領域が最も広い方向に、重複しない距離にずらす処理を行う。   In step S 1807, the stamp image processing unit 309 shifts the stamp image data from the area where the encoded image data is drawn on the document image data to the distance where the area other than the encoded image data is widest so as not to overlap. I do.

ステップS1808で、スタンプ画像データをずらした描画位置が原稿画像データの示す領域内に収まるか否か(すなわち、原稿画像データからはみ出るか否か)を判定する。この判定の結果、図16の符号1604に示すように収まる場合には印刷を実行して処理を終了し、一方、収まらない場合は、ステップS1809に処理が進む。   In step S1808, it is determined whether or not the drawing position from which the stamp image data has been shifted falls within the area indicated by the document image data (that is, whether or not the drawing position protrudes from the document image data). If the result of this determination is that it fits as indicated by reference numeral 1604 in FIG. 16, printing is executed and the process is terminated. If not, the process proceeds to step S1809.

ステップS1809で、上記加工設定から初めに取得した描画位置をベースとして、スタンプ画像データの大きさをN%縮小し、符号化画像データの描画位置とスタンプ画像データの描画位置とが重複しない大きさになるまでスタンプ画像データを縮小する。なお、このN%という数値は予め所定の数値を決めておき、上記縮小処理を行った後、再びステップS1808に戻り、上記判定をした上で、再びステップS1809での処理を行うこととしてもよい。   In step S1809, the size of the stamp image data is reduced by N% based on the drawing position first obtained from the processing setting, and the drawing position of the encoded image data and the drawing position of the stamp image data do not overlap. The stamp image data is reduced until. It should be noted that the numerical value of N% is determined in advance, and after performing the reduction process, the process returns to step S1808 again, and after making the above determination, the process in step S1809 may be performed again. .

以上の処理が終了すると、縮小された(又は、図16に示すように縮小されなかった)スタンプと、符号化画像データを含む原稿画像データとを併せて印刷データとしてプリンタに送信する。即ち、スタンプと原稿画像データとがプリンタで合成されるように、スタンプと原稿画像データとを印刷データとしてプリンタに送信する。プリンタは、このスタンプと原稿画像データとを合成してシート上に形成する。   When the above processing is completed, the reduced stamp (or not reduced as shown in FIG. 16) and the original image data including the encoded image data are transmitted to the printer as print data. That is, the stamp and the document image data are transmitted to the printer as print data so that the stamp and the document image data are combined by the printer. The printer combines the stamp and the original image data to form on the sheet.

(その他の実施形態)
さらに、本発明は、複数の機器(例えばコンピュータ、インターフェース機器、リーダ、プリンタなど)を含むシステムに適用することも、1つの機器からなる装置(画像形成装置、プリンタ、ファクシミリ装置など)に適用することも可能である。
(Other embodiments)
Furthermore, the present invention can be applied to a system including a plurality of devices (for example, a computer, an interface device, a reader, a printer, etc.) or to an apparatus (an image forming apparatus, a printer, a facsimile device, etc.) including a single device. It is also possible.

また、本発明の目的は、上述の実施形態で示したフローチャートの手順を実現するプログラムを格納した記憶媒体から、システムまたは装置のコンピュータ(または、CPUやMPU)が、そのプログラムを読み出し、実行することによっても達成される。この場合、記憶媒体から読み出されたプログラム自体が上述した実施形態の機能を実現することになる。そのため、このプログラム、およびプログラムを格納した記憶媒体も本発明の一つを構成することになる。   In addition, an object of the present invention is to read and execute a program of a system or apparatus (or CPU or MPU) from a storage medium storing a program that realizes the procedure of the flowchart shown in the above-described embodiment. Can also be achieved. In this case, the program itself read from the storage medium realizes the functions of the above-described embodiment. Therefore, this program and a storage medium storing the program also constitute one aspect of the present invention.

プログラムを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROMなどを用いることができる。   As a storage medium for supplying the program, for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like is used. Can do.

コンピュータが読み出したプログラムを実行することにより、上述した実施形態の機能が実現される。加えて、そのプログラムの指示に基づきコンピュータ上で稼動しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって上述した実施形態の機能が実現される場合も含まれる。   The functions of the above-described embodiment are realized by executing the program read by the computer. In addition, an OS (operating system) running on the computer based on the instruction of the program performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing. It is.

さらに、記憶媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれる場合も可能である。その後、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって上述した実施形態の機能が実現される。   Furthermore, the program read from the storage medium may be written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. Thereafter, the CPU of the function expansion board or function expansion unit performs part or all of the actual processing based on the instructions of the program, and the functions of the above-described embodiments are realized by the processing.

本発明の一実施形態にかかるプリンタ制御システムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a printer control system according to an embodiment of the present invention. FIG. 本発明の一実施形態にかかるホストコンピュータにおける印刷処理のための構成の一例を示すブロック図である。It is a block diagram which shows an example of the structure for the printing process in the host computer concerning one Embodiment of this invention. 図2に示した構成を拡張した一例を示すブロック図である。FIG. 3 is a block diagram illustrating an example in which the configuration illustrated in FIG. 2 is expanded. 本発明の一実施形態にかかる符号化画像データを作成するアプリケーションの構成を示すブロック図である。It is a block diagram which shows the structure of the application which produces the encoding image data concerning one Embodiment of this invention. 本発明の一実施形態にかかる符号化画像データを作成するアプリケーションのユーザインターフェースの一例を示す図である。It is a figure which shows an example of the user interface of the application which produces the encoding image data concerning one Embodiment of this invention. 本発明の一実施形態にかかるスタンプ画像データを指定することができるプリンタドライバのユーザインターフェースの一例を示す図である。It is a figure which shows an example of the user interface of the printer driver which can designate the stamp image data concerning one Embodiment of this invention. 本発明の一実施形態にかかるスプールファイルの生成方法を示すフローチャートである。It is a flowchart which shows the production | generation method of the spool file concerning one Embodiment of this invention. 本発明の一実施形態にかかるスプールファイルマネージャによる印刷制御、および物理ページ番号の決定処理の一例を示すフローチャートである。It is a flowchart which shows an example of the printing control by the spool file manager concerning one Embodiment of this invention, and the determination process of a physical page number. 本発明の一実施形態にかかるデスプーラにおける処理の一例を示すフローチャートである。It is a flowchart which shows an example of the process in the despooler concerning one Embodiment of this invention. 本発明の一実施形態にかかるジョブ出力用設定ファイルの一例を示す図である。It is a figure which shows an example of the setting file for job output concerning one Embodiment of this invention. 図10で示されたジョブ設定情報の一例を示す図である。It is a figure which shows an example of the job setting information shown by FIG. 図10で示された物理ページ情報の一例を示す図である。It is a figure which shows an example of the physical page information shown by FIG. 図12で示された物理ページ設定情報の一例を示す図である。It is a figure which shows an example of the physical page setting information shown by FIG. 図12で示された論理ページ情報の一例を示す図である。It is a figure which shows an example of the logical page information shown by FIG. 本発明の一実施形態にかかるスプールファイルマネージャによる、スタンプ画像データを原稿画像データに合成するフローチャートである。6 is a flowchart for combining stamp image data with document image data by a spool file manager according to an embodiment of the present invention. 本発明の一実施形態にかかるスタンプ画像データを原稿画像データに合成する例を示す図である。It is a figure which shows the example which synthesize | combines stamp image data concerning one Embodiment of this invention with original image data. 本発明の一実施形態にかかるスタンプ画像データを縮小して原稿画像データに合成する処理を示す図である。It is a figure which shows the process which reduces the stamp image data concerning one Embodiment of this invention, and synthesize | combines it with original image data. 図17で図示したスタンプ画像データを縮小して原稿画像データに合成する処理のフローチャートである。FIG. 18 is a flowchart of processing for reducing the stamp image data illustrated in FIG. 17 and combining it with document image data.

符号の説明Explanation of symbols

1 CPU
2 RAM
3 ROM
4 システムバス
5 キーボードコントローラ(KBC)
6 CRTコントローラ(CRTC)
7 ディスクコントローラ(DKC)
8 プリンタコントローラ(PRTC)
9 キーボード(KB)
10 CRTディスプレイ(CRT)
11 外部メモリ
12 CPU
13 ROM
14 外部メモリ
15 システムバス
16 印刷部インターフェース(I/F)
17 印刷部(プリンタエンジン)
18 入力部
19 RAM
20 メモリコントローラ(MC)
21 双方向性インターフェース
1000、2000 制御部
1500 プリンタ
1501 操作部
3000 ホストコンピュータ
201 アプリケーション
202 グラフィックエンジン
203 プリンタドライバ
204 システムスプーラ
301 ディスパッチャ
302 スプーラ
303 スプールファイル
304 スプールファイルマネージャ
305 デスプーラ
306 プレビューア
307 設定変更エディタ
308 符号化画像検知部
309 スタンプ画像処理部
401 アプリケーション制御部
402 ドライバ呼び出し部
403 符号画像生成部
404 符号画像合成部
405 印刷ファイル読み込み部
406 符号化データファイル読み込み部
407 ファイルI/O部
1 CPU
2 RAM
3 ROM
4 System bus 5 Keyboard controller (KBC)
6 CRT controller (CRTC)
7 Disk controller (DKC)
8 Printer controller (PRTC)
9 Keyboard (KB)
10 CRT display (CRT)
11 External memory 12 CPU
13 ROM
14 External memory 15 System bus 16 Printing section interface (I / F)
17 Printing Department (Printer Engine)
18 Input unit 19 RAM
20 Memory controller (MC)
21 Bidirectional Interface 1000, 2000 Control Unit 1500 Printer 1501 Operation Unit 3000 Host Computer 201 Application 202 Graphic Engine 203 Printer Driver 204 System Spooler 301 Dispatcher 302 Spooler 303 Spool File 304 Spool File Manager 305 Despooler 306 Previewer 307 Setting Change Editor 308 Coded image detection unit 309 Stamp image processing unit 401 Application control unit 402 Driver call unit 403 Code image generation unit 404 Code image synthesis unit 405 Print file reading unit 406 Coded data file reading unit 407 File I / O unit

Claims (14)

原稿画像にスタンプ画像を合成する設定が存在するか否かを判定する第1の判定手段と、
前記原稿画像に符号化画像が合成されているか否かを判定する第2の判定手段と、
前記第1の判定手段により前記設定が存在すると判定され、前記第2の判定手段により前記符号化画像が合成されていると判定された場合、前記原稿画像において前記スタンプ画像と前記符号化画像とが重複するか否かを判定する第3の判定手段と、
前記第3の判定手段により前記スタンプ画像と前記符号化画像とが重複すると判定される場合、重複する旨をユーザに対して通知する通知手段と
を備えたことを特徴とする情報処理装置。
First determination means for determining whether a setting for combining a stamp image with a document image exists;
Second determination means for determining whether an encoded image is combined with the document image;
When the first determination unit determines that the setting exists and the second determination unit determines that the encoded image is combined, the stamp image and the encoded image in the document image Third determination means for determining whether or not the
An information processing apparatus comprising: notification means for notifying a user that the stamp image and the encoded image are overlapped by the third determination means.
前記第3の判定手段により重複すると判定された場合、重複する旨をユーザに対して通知すると共に、スタンプ画像及び原稿画像のうち原稿画像のみを出力することを特徴とする請求項1に記載の情報処理装置。   2. The apparatus according to claim 1, wherein when it is determined by the third determination unit that the image overlaps, the user is notified of the overlap, and only the document image is output from the stamp image and the document image. Information processing device. 前記第3の判定手段により重複すると判定された場合、重複する旨をユーザに対して通知すると共に、スタンプ画像及び原稿画像の出力を中止することを特徴とする請求項1に記載の情報処理装置。   2. The information processing apparatus according to claim 1, wherein when the third determination unit determines that there is an overlap, the user is notified of the overlap and the output of the stamp image and the document image is stopped. . 前記第3の判定手段により重複すると判定された場合、前記原稿画像に対して合成されるスタンプ画像の設定を変更する変更手段をさらに備えたことを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, further comprising a changing unit that changes a setting of a stamp image to be combined with the document image when the third determining unit determines that the document image overlaps. . 前記変更手段は、前記スタンプ画像が前記原稿画像内の符号画像に重ならないように、前記スタンプ画像の位置設定を変更することを特徴とする請求項4に記載の情報処理装置。   The information processing apparatus according to claim 4, wherein the changing unit changes a position setting of the stamp image so that the stamp image does not overlap a code image in the document image. 前記変更手段は、前記スタンプ画像が前記原稿画像内の符号画像に重ならないように、前記スタンプ画像のサイズ設定を変更することを特徴とする請求項4に記載の情報処理装置。   The information processing apparatus according to claim 4, wherein the changing unit changes a size setting of the stamp image so that the stamp image does not overlap a code image in the document image. 原稿画像にスタンプ画像を合成する設定が存在するか否かを判定する第1の判定ステップと、
前記原稿画像に符号化画像が合成されているか否かを判定する第2の判定ステップと、
前記第1の判定ステップにより前記設定が存在すると判定され、前記第2の判定ステップにより前記符号化画像が合成されていると判定された場合、前記原稿画像において前記スタンプ画像と前記符号化画像とが重複するか否かを判定する第3の判定ステップと、
前記第3の判定ステップにより前記スタンプ画像と前記符号化画像とが重複すると判定される場合、重複する旨をユーザに対して通知する通知ステップと
を備えることを特徴とする情報処理方法。
A first determination step for determining whether or not a setting for combining a stamp image with a document image exists;
A second determination step of determining whether an encoded image is combined with the document image;
When it is determined that the setting exists in the first determination step and the encoded image is determined to be combined in the second determination step, the stamp image and the encoded image in the document image A third determination step of determining whether or not
An information processing method comprising: a notification step of notifying a user of an overlap when it is determined that the stamp image and the encoded image overlap in the third determination step.
前記第3の判定ステップにより重複すると判定された場合、重複する旨をユーザに対して通知すると共に、スタンプ画像及び原稿画像のうち原稿画像のみを出力することを特徴とする請求項7に記載の情報処理方法。   8. The apparatus according to claim 7, wherein, when it is determined that there is an overlap in the third determination step, the user is notified of the overlap, and only the document image is output from the stamp image and the document image. Information processing method. 前記第3の判定ステップにより重複すると判定された場合、重複する旨をユーザに対して通知すると共に、スタンプ画像及び原稿画像の出力を中止することを特徴とする請求項7に記載の情報処理方法。   8. The information processing method according to claim 7, wherein, when it is determined in the third determination step that there is an overlap, the user is notified of the overlap and the output of the stamp image and the document image is stopped. . 前記第3の判定ステップにより重複すると判定された場合、前記原稿画像に対して合成されるスタンプ画像の設定を変更する変更ステップをさらに備えることを特徴とする請求項7に記載の情報処理方法。   The information processing method according to claim 7, further comprising a changing step of changing a setting of a stamp image to be combined with the document image when it is determined that the third determination step causes overlap. 前記変更ステップは、前記スタンプ画像が前記原稿画像内の符号画像に重ならないように、前記スタンプ画像の位置設定を変更することを特徴とする請求項10に記載の情報処理方法。   The information processing method according to claim 10, wherein the changing step changes a position setting of the stamp image so that the stamp image does not overlap a code image in the document image. 前記変更ステップは、前記スタンプ画像が前記原稿画像内の符号画像に重ならないように、前記スタンプ画像のサイズ設定を変更することを特徴とする請求項10に記載の情報処理方法。   The information processing method according to claim 10, wherein the changing step changes a size setting of the stamp image so that the stamp image does not overlap a code image in the document image. 情報処理装置に請求項7乃至請求項12のいずれかに記載の情報処理方法を実行させるためのプログラム。   A program for causing an information processing apparatus to execute the information processing method according to any one of claims 7 to 12. 情報処理装置に請求項7乃至請求項12のいずれかに記載の情報処理方法を実行させるためのプログラムを格納した記憶媒体。   A storage medium storing a program for causing an information processing apparatus to execute the information processing method according to any one of claims 7 to 12.
JP2006307910A 2006-11-14 2006-11-14 Information processing apparatus, information processing method and program, and storage medium storing the program Pending JP2008123345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006307910A JP2008123345A (en) 2006-11-14 2006-11-14 Information processing apparatus, information processing method and program, and storage medium storing the program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006307910A JP2008123345A (en) 2006-11-14 2006-11-14 Information processing apparatus, information processing method and program, and storage medium storing the program

Publications (1)

Publication Number Publication Date
JP2008123345A true JP2008123345A (en) 2008-05-29

Family

ID=39508023

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006307910A Pending JP2008123345A (en) 2006-11-14 2006-11-14 Information processing apparatus, information processing method and program, and storage medium storing the program

Country Status (1)

Country Link
JP (1) JP2008123345A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122958A (en) * 2008-11-20 2010-06-03 Canon Inc Printing control apparatus, printing control method and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122958A (en) * 2008-11-20 2010-06-03 Canon Inc Printing control apparatus, printing control method and program
US8531721B2 (en) 2008-11-20 2013-09-10 Canon Kabushiki Kaisha Apparatus and method for printing a plurality of jobs without being interrupted by printing from another job

Similar Documents

Publication Publication Date Title
JP3862652B2 (en) Printing control method and information processing apparatus
US6883981B2 (en) Printing control method and apparatus
US8300238B2 (en) Print control device and method
US7911640B2 (en) Information processing apparatus, printing data generation method, and printing control program
KR101064065B1 (en) Information processing apparatus, control method, and storage medium
JP4095512B2 (en) Document conversion method and apparatus
JP5344583B2 (en) Information processing apparatus, information processing method, program, and storage medium
US8320001B2 (en) Information processing method and apparatus for banner printing
JP4110147B2 (en) Information leakage prevention method, information processing apparatus and driver program for realizing the method
JP3673684B2 (en) Information processing apparatus, information processing method, and storage medium storing computer-readable program
JP5807460B2 (en) Information processing apparatus, program, and storage medium
JP4817563B2 (en) Information processing apparatus, data processing method of the apparatus, data processing program, and storage medium storing the program
JP2006293598A (en) Document processing system
JP2008123345A (en) Information processing apparatus, information processing method and program, and storage medium storing the program
JP4054544B2 (en) Information processing apparatus, information processing method, print control program, print processing apparatus, print processing method, and print processing program
US8160469B2 (en) Information processing apparatus, method for controlling the information processing apparatus, and storage medium
JP2010102594A (en) Information processor and staple attribute setting method
JP4794812B2 (en) Preview display method and preview display device
JP2004284265A (en) Print control method and print control device
JP5748551B2 (en) Information processing apparatus, information processing method, and program
JP2005182267A (en) Print control device
JP2007272632A (en) Changing the saddle stitch binding setting
JP2006338166A (en) Information processing apparatus, control method therefor, and program
JP2007079743A (en) Information processing apparatus, control method therefor, and program
JP2004240487A (en) Print control device, print control method, and medium storing execution program