JP2006215745A - Printing control device and printing control method - Google Patents

Printing control device and printing control method Download PDF

Info

Publication number
JP2006215745A
JP2006215745A JP2005026833A JP2005026833A JP2006215745A JP 2006215745 A JP2006215745 A JP 2006215745A JP 2005026833 A JP2005026833 A JP 2005026833A JP 2005026833 A JP2005026833 A JP 2005026833A JP 2006215745 A JP2006215745 A JP 2006215745A
Authority
JP
Japan
Prior art keywords
information
printing
print
forgery
copy
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
JP2005026833A
Other languages
Japanese (ja)
Inventor
Yoshihiro Takagi
義博 高木
Hiroshi Omura
宏 大村
Yasuhiro Kujirai
康弘 鯨井
Tatsuro Uchida
達郎 内田
Masaki Aritomi
雅規 有富
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 JP2005026833A priority Critical patent/JP2006215745A/en
Publication of JP2006215745A publication Critical patent/JP2006215745A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printing system capable of normally performing a ground tint printing while automatically keeping density characteristics of the ground tint printing constant. <P>SOLUTION: In a step S4103, processing for acquiring calibration data is performed. The acquisition processing of the calibration data is executed in each certain fixed timing or prior to the start of a job output. In a step S4104, a ground tint processing part calculates the density of the background image of a ground tint from the calibration data being output characteristics of a printinger. For example, when the calibration data showing the output characteristics of the printinger that the density value of the background image of the grount tint is lighter than an initial value at the time of factory shipping are transmitted, the density value of the background image is adjusted so as to be higher than the density value of the background image decided corresponding to the initial value. Thus, the density value of the background image can be adjusted so as to be contrary to output characteristics obtained as the calibration information. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、印刷制御装置及び印刷制御方法に関し、より詳細には、特にパーソナルコンピュータ等の印刷制御装置とプリンタからなるシステムにおける、偽造抑止のための偽造牽制地紋を印刷する印刷制御装置、その制御方法、及びプログラムに関する。   The present invention relates to a printing control apparatus and a printing control method, and more particularly, a printing control apparatus that prints a counterfeit check pattern for suppressing counterfeiting, particularly in a system including a printing control apparatus such as a personal computer and a printer, and its control The present invention relates to a method and a program.

従来、帳票や住民票などの複写を禁止、或いは抑止する目的で、これらのコンテンツは偽造防止用紙と呼ばれる特殊な印刷を施した用紙に印刷されていた。偽造防止用紙とは、原本においては人間にとって見えにくいが、複写機などを用いて複写した場合には「COPY」などの所定の文字が浮び上がるような用紙である。偽造防止用紙は、通常の用紙と比較してコストが大きいことや、印刷時(偽造防止用紙の製作時)に設定された文字しか浮び上がらせることができないことが問題となっていた。   Conventionally, for the purpose of prohibiting or suppressing copying of forms and resident cards, these contents have been printed on a specially-printed paper called anti-counterfeit paper. The anti-counterfeit paper is a paper that is difficult for humans to see in the original, but when a copy machine or the like is used for copying, a predetermined character such as “COPY” is raised. The forgery-preventing paper has a problem that the cost is higher than that of normal paper, and only characters set at the time of printing (when the forgery-preventing paper is produced) can be raised.

一方、様々なコンテンツのデジタル化が進む中、これら帳票や住民票などのコンテンツも同様にデジタル化されている。しかしながら、これら帳票や住民票などのコンテンツに関してのデジタル化は、まだ過渡状態であり、コンピュータを用いて作成したコンテンツをプリンタなどを用いて紙に出力して利用することが一般的である。   On the other hand, as various contents are digitized, contents such as forms and resident's cards are also digitized. However, the digitization of content such as forms and resident's cards is still in a transitional state, and it is common to use content created using a computer on paper using a printer or the like.

こうした状況に加えて、近年のプリンタの性能の飛躍的な向上も起因して、従来の偽造防止用紙と同様の効果をコンピュータとプリンタを用いて行う技術が注目されている(特許文献1参照)。これは、コンピュータを用いて作られたコンテンツをプリンタを用いて出力する際に、コンテンツの背景に偽造防止模様または複写牽制模様と呼ばれる模様を重ねて出力するような技術である。以後、こうした模様のことを地紋と称する。地紋は原本(プリンタで出力した直後の印刷物)においては単なる模様に見えるが、複写すると所定の文字が浮び上がるようなものであり、偽造防止用紙と同様の効果がある。   In addition to such a situation, due to a dramatic improvement in printer performance in recent years, a technology that uses a computer and a printer to achieve the same effect as a conventional forgery prevention paper is drawing attention (see Patent Document 1). . This is a technique in which when a content created using a computer is output using a printer, a pattern called a forgery prevention pattern or a copy check pattern is superimposed on the background of the content and output. Hereinafter, such a pattern is referred to as a background pattern. The copy-forgery-inhibited pattern looks just as a pattern in the original (printed material immediately after being output by the printer), but when copied, it appears that certain characters are lifted, and has the same effect as forgery prevention paper.

コンピュータを用いてコンテンツデータと地紋を重ねて出力する場合、当然のことながら通常の普通紙を用いて出力できるため、偽造防止用紙に比べてコストの面で利点がある。更に、コンテンツを出力する際に地紋を生成するようにすることによって、「COPY」などの静的な文字列に加えて、ユーザ名や出力日時などの動的な文字列を浮び上がらせられるという利点もある。   When content data and a tint block pattern are output using a computer, it is naturally possible to output using normal plain paper, which is advantageous in terms of cost compared to forgery prevention paper. Furthermore, by generating a copy-forgery-inhibited pattern when outputting content, in addition to a static character string such as “COPY”, a dynamic character string such as a user name and output date / time can be highlighted. There are also advantages.

ここで偽造抑止のための地紋の画像について説明する。地紋は、前述のとおり複写によって原本が容易に複製できないような仕掛けを施し、心理的にではあるが原本の複写を抑止する効果を実現している。この効果を得るため地紋は、複写後にドットが残る領域と複写後にドットが消える領域の同じ濃度を持つ2つの領域から基本的に構成される。この2つの領域はほぼ同じ濃度であり、マクロ的には、一見すると「COPY」などの文字や画像が隠れていることが分からないが、ミクロ的にはそれぞれ異なる特性を持っている。この隠された文字や画像を潜像と呼ぶこととする。なお、潜像をユーザ向けに前景と呼ぶことがあるが同義である。   Here, a background pattern image for preventing forgery will be described. As described above, the tint block is provided with a mechanism that prevents the original from being easily copied by copying, and realizes an effect of suppressing the copying of the original psychologically. In order to obtain this effect, the tint block is basically composed of two areas having the same density, an area where dots remain after copying and an area where dots disappear after copying. These two regions have almost the same density. Macroscopically, it cannot be seen that characters and images such as “COPY” are hidden, but microscopically have different characteristics. This hidden character or image is called a latent image. Although the latent image is sometimes referred to as a foreground for the user, it is synonymous.

複写後にドットが残る領域(潜像部と呼ぶ)は各々のドットが集中した固まりのドットで構成し、複写後にドットが消える領域(背景部と呼ぶ)は各々のドットが分散したドットで構成することで、濃度がほぼ同じでそれぞれ特性が異なるふたつの領域を作り出すことが出来る。図21は、地紋の画像のふたつの領域を示す図である。このふたつの領域は、異なる網点処理や異なるディザ処理により生成できる。網点処理を用いて地紋画像を生成する場合、潜像部は低い線数の網点処理、背景部は高い線数の網点処理が適している。ディザ処理を用いて地紋画像を生成する場合、潜像部はドット集中型ディザマトリクスを用いたディザ処理、背景部はドット分散型ディザマトリクスを用いたディザ処理が適している。   The area where the dots remain after copying (called the latent image portion) is made up of a cluster of dots where each dot is concentrated, and the area where the dots disappear after copying (called the background portion) is made up of dots in which the dots are dispersed. This makes it possible to create two regions with almost the same concentration but different characteristics. FIG. 21 is a diagram showing two regions of a tint block image. These two regions can be generated by different halftone processing or different dither processing. When a tint block image is generated using halftone dot processing, halftone dot processing with a low number of lines is suitable for the latent image portion and halftone dot processing with a high number of lines is suitable for the background portion. When a copy-forgery-inhibited pattern image is generated using dither processing, dither processing using a dot concentration type dither matrix is suitable for the latent image portion, and dither processing using a dot dispersion type dither matrix is suitable for the background portion.

一般に複写機には、原稿の微小なドットを読み取る入力解像度や微小なドットを再現する出力解像度に依存した再現能力の限界が存在する。地紋の背景部が複写機で再現できるドットの限界を超えるように作成されている場合、複写により地紋の大きなドット(集中したドット)は再現され、小さなドット(分散したドット)は再現されず、隠されていた画像(潜像)が浮かび上がるように見える現象がおこる。また、複写により分散したドットは完全に消えなくとも、集中したドットと比較して明らかに複写後の濃度さが違う場合でも、隠された画像(潜像)は浮かび上がる。この画像が浮かび上がる現象は顕像と呼ばれる。図22は、地紋の顕像を示す図である。   In general, a copying machine has a limit of reproducibility depending on an input resolution for reading minute dots on an original and an output resolution for reproducing minute dots. If the background of the copy-forgery-inhibited pattern is created so as to exceed the limit of dots that can be reproduced by a copier, copying reproduces large dots (concentrated dots) in the copy-forgery-inhibited pattern and does not reproduce small dots (dispersed dots) A phenomenon occurs in which the hidden image (latent image) appears to emerge. Further, even if the dots dispersed by copying do not disappear completely, even if the density after copying is clearly different compared to the concentrated dots, the hidden image (latent image) appears. The phenomenon in which this image emerges is called a visible image. FIG. 22 is a diagram showing a visible image of a tint block.

さて、カラープリンタ、複写機等、紙などのプリント媒体に文字、画像をプリントするプリント装置では、一般に、プリント環境の変化や装置自体の経年変化によって、プリント結果における階調性等、プリント出力の特性が変化する場合があることが知られている。   Now, in a printing apparatus that prints characters and images on a print medium such as a paper such as a color printer or a copying machine, in general, a print output such as gradation in a print result due to a change in a printing environment or a secular change of the apparatus itself. It is known that the characteristics may change.

プリント環境は、例えば装置が置かれている雰囲気の温度や湿度などであり、これらが変化することによって、電子写真方式ではプリント媒体に付着するトナーの量が変化し、また、インクジェット方式ではインクの吐出量が変化して、上記出力特性が所望のものでなくなることがある。また、比較的長時間、連続的にプリントを行なうような場合に装置各部の温度などが変化し、これによって出力特性が変化することもある。さらには、トナーの残量などに応じて出力特性が変化する場合もある。また、経年変化は、プリント装置の使用頻度にも依るが比較的長い期間の使用の結果、装置各部の特性、例えば感光ドラムの帯電特性などが変化し、その結果、出力特性が変化するものである。   The printing environment is, for example, the temperature or humidity of the atmosphere in which the apparatus is placed. By changing these, the amount of toner adhering to the print medium changes in the electrophotographic method, and the ink amount in the ink jet method changes. The output characteristics may change and the output characteristics are not desired. Also, when printing is performed continuously for a relatively long time, the temperature of each part of the apparatus changes, and the output characteristics may change accordingly. Furthermore, the output characteristics may change depending on the remaining amount of toner. In addition, although the aging changes depending on the frequency of use of the printing apparatus, as a result of use for a relatively long period, the characteristics of each part of the apparatus, such as the charging characteristics of the photosensitive drum, change, and as a result, the output characteristics change. is there.

こうした変動要因を吸収し、安定的に地紋画像を出力するため、従来は地紋のサンプルプリントを出力し、ユーザによる目視確認作業が行われている。上述したように、地紋画像はドットが集中するように構成された潜像部とドットが分散するように制御された背景部とからなる。繰り返しになるが、最適な地紋画像とは、プリント出力時には潜像部と背景部と区別が人間の目につかないように見た目の濃さや色味をあわせ、複写物では背景部が除去され、潜像部が残存することにより、潜像部が浮かび上がってみえるように形成されたものである。   In order to absorb such fluctuation factors and stably output a tint block image, conventionally, a sample print of the tint block is output and a user visually confirms it. As described above, the copy-forgery-inhibited pattern image includes a latent image portion configured such that dots are concentrated and a background portion controlled so that dots are dispersed. To reiterate, the optimum copy-forgery-inhibited pattern image matches the darkness and color so that the latent image portion and the background portion are invisible to human eyes at the time of print output. When the image portion remains, the latent image portion is formed so as to appear.

即ち、このような最適な地紋画像を生成するためには、潜像部と背景部それぞれのドットの濃度バランスが重要となる。人間の見た目において濃さや色味が一致しているように見えたとしても、必ずしも潜像部を構成する画像データの濃度値と背景部を構成する画像データの濃度値が一致しているというわけではない。   That is, in order to generate such an optimal tint block image, the density balance of the dots in the latent image portion and the background portion is important. Even if the density and color appear to match in human appearance, the density value of the image data constituting the latent image portion and the density value of the image data constituting the background portion are not necessarily the same. is not.

換言すれば、人間の視覚上、潜像部と背景部の濃さが一致しているように見せるためには、潜像部と背景部それぞれの濃度値を高精度に制御する必要があるということになる。   In other words, it is necessary to control the density values of the latent image portion and the background portion with high precision in order to make the darkness of the latent image portion and the background portion appear to match with human vision. It will be.

従来より、地紋画像データの濃度調整は、任意の濃度レベル内で複数種類のサンプルプリントを出力し、ユーザがそのサンプルプリントを見比べたり、実際に複写するなどして、プリント物では潜像部と背景部の識別がしにくく、複写物では潜像部が背景部に比して浮かび上がって見えるものを選択している。ユーザが選択した値はホストコンピュータなどのインタフェースを介して入力される。入力された値は地紋画像データの生成段階において、潜像部と背景部の濃度値として設定され、その設定値に基づいてディザ処理などを行ってドットパターンを形成している。このようなサンプルプリントの出力については、特許文献2に記載されている。   Conventionally, the density adjustment of copy-forgery-inhibited pattern image data has been performed by outputting a plurality of types of sample prints within an arbitrary density level, and the user can compare the sample prints or actually copy them, so It is difficult to identify the background portion, and the copy is selected such that the latent image portion appears to be higher than the background portion. The value selected by the user is input via an interface such as a host computer. The input value is set as the density value of the latent image portion and the background portion at the generation stage of the copy-forgery-inhibited pattern image data, and a dot pattern is formed by performing dither processing or the like based on the set value. Such sample print output is described in Patent Document 2.

特開2001−197297号公報JP 2001-197297 A 特願2003−324691号Japanese Patent Application No. 2003-324691

上述のように、従来の技術では、地紋のサンプルプリントというユーザサイドの調整方法によって、地紋プリントを構成するドットの濃度特性を一定に保つ手法が採用されている。しかしながら、この方法では、ユーザが地紋のサンプルプリントというユーザサイドの調整を怠るだけで、地紋プリントを構成するドットの濃度特性を一定に保つことが出来ず、正常な地紋プリントが不可能になるという解決すべき課題があった。   As described above, the conventional technique employs a method of keeping the density characteristics of the dots constituting the copy-forgery-inhibited pattern print constant by a user-side adjustment method called copy-forgery-inhibited pattern print. However, with this method, if the user neglects the user-side adjustment of the background pattern sample print, the density characteristics of the dots constituting the background pattern print cannot be kept constant, and normal background pattern printing becomes impossible. There was a problem to be solved.

本発明は、このような課題に鑑みてなされたもので、その目的とするところは、キャリブレーション機能の実行によらず、かつユーザの手を煩わせることなく自動的に地紋プリントの濃度特性を一定に保ち、地紋プリントを正常に実行できる印刷制御装置及び印刷制御方法を提供することにある。   The present invention has been made in view of such problems, and the object of the present invention is to automatically set the density characteristics of a tint block print without executing the calibration function and without bothering the user. It is an object of the present invention to provide a print control apparatus and a print control method that can keep a constant pattern and normally execute a tint block print.

このような目的を達成するために、本発明の印刷制御装置は、印刷装置と通信可能であり、地紋画像データを生成することが可能な印刷制御装置であって、前記印刷装置から該印刷装置の出力濃度特性の情報を取得する情報取得手段と、前記情報取得手段によって取得した前記出力濃度特性の情報に基づいて、前記地紋画像データの濃度値を調整する調整手段とを備えたことを特徴とする。   In order to achieve such an object, a printing control apparatus according to the present invention is a printing control apparatus that can communicate with a printing apparatus and generate copy-forgery-inhibited pattern image data, from the printing apparatus to the printing apparatus. Information acquisition means for acquiring the output density characteristic information, and adjustment means for adjusting the density value of the copy-forgery-inhibited pattern image data based on the output density characteristic information acquired by the information acquisition means. And

また上記目的を達成するために、本発明の印刷制御方法は、印刷装置と通信可能であり、地紋画像データを生成することが可能な印刷制御装置の印刷制御方法であって、前記印刷装置から該印刷装置の出力濃度特性の情報を情報取得手段によって取得する情報取得ステップと、前記情報取得ステップにおいて取得した前記出力濃度特性の情報に基づいて、調整手段によって前記地紋画像データの濃度値を調整する調整ステップとを備えることを特徴とする。   In order to achieve the above object, a print control method of the present invention is a print control method of a print control apparatus capable of communicating with a printing apparatus and generating copy-forgery-inhibited pattern image data. An information acquisition step for acquiring output density characteristic information of the printing apparatus by an information acquisition unit, and an adjustment unit for adjusting the density value of the tint block image data based on the output density characteristic information acquired in the information acquisition step And an adjusting step.

また上記目的を達成するために、本発明のプログラムは、上記に記載の印刷制御装置の制御方法の各ステップをコンピュータに実行させることを特徴とする。   In order to achieve the above object, a program according to the present invention causes a computer to execute each step of the control method of the print control apparatus described above.

本発明によれば、印刷システムにおいて、自動的に地紋プリントに最適な濃度を設定でき、地紋プリントを正常に実行できる効果を奏する。   According to the present invention, the printing system can automatically set the optimum density for the copy-forgery-inhibited pattern print, and can effectively execute the copy-forgery-inhibited pattern print.

以下、図面を参照して本発明を適用できる実施形態を詳細に説明する。なお、各図面において同様の機能を有する箇所には同一の符号を付し、説明の重複は省略する。   Embodiments to which the present invention can be applied will be described below in detail with reference to the drawings. In addition, the same code | symbol is attached | subjected to the location which has the same function in each drawing, and duplication of description is abbreviate | omitted.

また、実施形態においては、複写時に顕像化する部分を潜像部または前景部と称し、複写時に消失または潜像部に比較して薄くなる部分を背景部と称している。そして、潜像部には「COPY」などのテキスト情報を入力している。しかしながら本発明における地紋画像はこれに限られるものではなく、複写時にテキスト情報は周囲の画像に対して白抜き文字のように表現される(顕像化する)形態であってもよい。この場合、潜像部と背景部のドットの集中と分散の関係は上述した白抜きでないものと逆の関係となることはもちろんである。また、本発明の適用は、地紋画像の種類や生成処理、色、形状、サイズなどによって制限されるものでないことは以下の説明からも明らかである。   In the embodiment, a portion that is visualized during copying is referred to as a latent image portion or a foreground portion, and a portion that disappears or becomes thinner than the latent image portion during copying is referred to as a background portion. Then, text information such as “COPY” is input to the latent image portion. However, the copy-forgery-inhibited pattern image in the present invention is not limited to this, and text information may be expressed (visualized) like white characters with respect to surrounding images during copying. In this case, it is a matter of course that the relationship between the concentration and dispersion of dots in the latent image portion and the background portion is opposite to that described above which is not white. Also, it is apparent from the following description that the application of the present invention is not limited by the type of tint block image, generation processing, color, shape, size, and the like.

[実施形態1]
<プリンタ制御システムの構成>
図1は、本実施形態を示すプリンタ制御システムの構成を説明するブロック図である。なお、本発明の機能が実行されるのであれば、単体の機器であっても、複数の機器からなるシステムであっても、LAN(local area network)、WAN(wide area network)等のネットワークを介して接続がなされ処理が行われるシステムであっても本発明を適用できる。
[Embodiment 1]
<Configuration of printer control system>
FIG. 1 is a block diagram illustrating the configuration of the printer control system according to the present embodiment. If the functions of the present invention are executed, a network such as a local area network (LAN) or a wide area network (WAN) may be used, whether it is a single device or a system composed of a plurality of devices. The present invention can also be applied to a system in which processing is performed through connection.

図1において、ホストコンピュータ3000は、例えばパーソナルコンピュータ等で、制御部2000を有する。制御部2000は、ROM(read only memory)3のプログラム用ROMあるいは外部メモリ11に記憶された文書処理プログラム等に基づいて、図形、イメージ、文字、表(表計算等を含む)等が混在した文書処理を実行するCPU(central processing unit)1を備え、システムバス4に接続される各デバイスをCPU1が総括的に制御する。また、このROM3のプログラム用ROMあるいは外部メモリ11には、CPU1の制御プログラムであるオペレーティングシステムプログラム(以下OS)等を記憶し、ROM3のフォント用ROMあるいは外部メモリ11には上記文書処理の際に使用するフォントデータ等を記憶し、ROM3のデータ用ROMあるいは外部メモリ11には上記文書処理等を行う際に使用する各種データを記憶する。RAM(random access memory)2は、CPU1の主メモリ、ワークエリア等として機能する。   In FIG. 1, a host computer 3000 is a personal computer or the like and has a control unit 2000. The control unit 2000 includes a mixture of figures, images, characters, tables (including spreadsheets), etc. based on a ROM (read only memory) 3 program ROM or a document processing program stored in the external memory 11. A CPU (central processing unit) 1 that executes document processing is provided, and the CPU 1 generally controls each device connected to the system bus 4. The ROM 3 program ROM or external memory 11 stores an operating system program (hereinafter referred to as OS) which is a control program of the CPU 1, and the ROM 3 font ROM or external memory 11 stores the above-mentioned document processing. Font data to be used is stored, and various data to be used when the document processing is performed is stored in the data ROM of the ROM 3 or the external memory 11. A RAM (random access memory) 2 functions as a main memory, work area, and the like of the CPU 1.

キーボードコントローラ(KBC)5は、キーボード9や不図示のポインティングデバイスからの入力を制御する。CRT(cathode ray tube)コントローラ(CRTC)6は、CRTディスプレイ(以下単にCRT)10の表示を制御する。図中符号7はディスクコントローラ(DKC)で、ブートプログラム、各種のアプリケーション、フォントデータ、ユーザファイル、編集ファイル、プリンタ制御コマンド生成プログラム(以下プリンタドライバ)等を記憶するハードディスク(HD)、フロッピー(登録商標)ディスク(FD)等の外部メモリ11とのアクセスを制御する。プリンタコントローラ(PRTC)8は、双方向性インタフェース(以下単にインタフェース)21を介してプリンタ1500に接続されており、プリンタ1500との通信制御処理を実行する。   A keyboard controller (KBC) 5 controls input from a keyboard 9 or a pointing device (not shown). A CRT (cathode ray tube) controller (CRTC) 6 controls display on a CRT display (hereinafter simply referred to as CRT) 10. Reference numeral 7 in the figure denotes a disk controller (DKC), which is a hard disk (HD), floppy (registered) that stores a boot program, various applications, font data, user files, edit files, a printer control command generation program (hereinafter referred to as a printer driver), and the like. (Trademark) Controls access to an external memory 11 such as a disk (FD). A printer controller (PRTC) 8 is connected to the printer 1500 via a bidirectional interface (hereinafter simply referred to as an interface) 21 and executes communication control processing with the printer 1500.

なお、CPU1は、例えばRAM2上に設定された表示情報のRAM2へのアウトラインフォントの展開(ラスタライズ)処理を実行し、CRT10上でのWYSIWYG(What You See Is What You Get)を可能としている。また、CPU1は、CRT10上の不図示のマウスカーソル等で指示されたコマンドに基づいて、登録された種々のウインドウを開き、種々のデータ処理を実行する。ユーザは印刷を実行する際、印刷の設定に関するウインドウを開き、プリンタの設定や、印刷モードの選択を含むプリンタドライバに対する印刷処理方法の設定を行える。   The CPU 1 executes, for example, an outline font development (rasterization) process of display information set on the RAM 2 to the RAM 2 to enable WYSIWYG (What You See Is What You Get) on the CRT 10. Further, the CPU 1 opens various registered windows based on commands instructed by a mouse cursor (not shown) on the CRT 10 and executes various data processing. When executing printing, the user opens a window relating to print settings, and can set the print processing method for the printer driver including printer settings and print mode selection.

プリンタ1500は、例えば周知の両面印刷機能を有するカラーレーザプリンタ等であり、制御部1000を有する。プリンタ1500は、制御部1000内のCPU12により制御される。CPU12は、ROM13のプログラム用ROMに記憶された制御プログラム等あるいは外部メモリ14に記憶された制御プログラム等に基づいてシステムバス15に接続される印刷部(プリンタエンジン)17に出力情報としての画像信号を出力する。また、このROM13のプログラムROMには、CPU12の制御プログラム等を記憶されている。ROM13のフォント用ROMには上記出力情報を生成する際に使用するフォントデータ等が記憶されており、ROM13のデータ用ROMには、ハードディスク等の外部メモリ14がないプリンタの場合には、ホストコンピュータ上で利用される情報等が記憶されている。   The printer 1500 is, for example, a color laser printer having a well-known double-sided printing function, and includes a control unit 1000. The printer 1500 is controlled by the CPU 12 in the control unit 1000. The CPU 12 outputs an image signal as output information to a printing unit (printer engine) 17 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. Is output. Further, a control program for the CPU 12 is stored in the program ROM of the ROM 13. The font ROM of the ROM 13 stores font data used when generating the output information. In the case of a printer without the external memory 14 such as a hard disk, the data ROM of the ROM 13 is a host computer. Information used above is stored.

CPU12は入力部18を介してホストコンピュータとの通信処理が可能となっており、プリンタ内の情報等をホストコンピュータ3000に通知できる。RAM19は、CPU12の主メモリや、ワークエリア等として機能するRAMで、図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。なお、RAM19は、出力情報展開領域、環境データ格納領域、NVRAM(nonvolatile random access memory)等に用いられる。前述したハードディスク(HD)、IC(integrated circuits)カード等の外部メモリ14は、メモリコントローラ(MC)20によりアクセスを制御される。外部メモリ14は、オプションとして接続され、フォントデータ、エミュレーションプログラム、フォームデータ等を記憶する。また、入力部18は前述した操作パネルで操作のためのスイッチ及びLED(light emitting diode)表示器等が配されている。   The CPU 12 can communicate with the host computer via the input unit 18 and can notify the host computer 3000 of information in the printer. The RAM 19 functions as a main memory of the CPU 12, a work area, or the like, and is configured to be able to expand the memory capacity 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 (nonvolatile random access memory), and the like. Access to the external memory 14 such as the hard disk (HD) and IC (integrated circuits) card is controlled by a memory controller (MC) 20. The external memory 14 is connected as an option and stores font data, an emulation program, form data, and the like. Further, the input unit 18 is provided with a switch for operation on the above-described operation panel, an LED (light emitting diode) display, and the like.

また、前述した外部メモリ14は1個に限らず、複数個備えられ、内蔵フォントに加えてオプションカード、言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されていてもよい。更に、図示しないNVRAMを有し、操作パネル1501からのプリンタモード設定情報を記憶するようにしてもよい。   The external memory 14 described above is not limited to one, and a plurality of external memories 14 are provided. In addition to the built-in font, a plurality of external memories storing an option card and a program for interpreting a printer control language having a different language system can be connected. May be. Further, an NVRAM (not shown) may be provided to store printer mode setting information from the operation panel 1501.

図2は、プリンタ等の印刷装置が直接接続されているか、あるいはネットワーク経由で接続されているホストコンピュータ3000における典型的な印刷処理のソフトウェア構成図である。アプリケーション201、グラフィックエンジン202、プリンタドライバ203、及びシステムスプーラ204は、外部メモリ11に保存されたファイルとして存在し、CPU1により処理される場合にOSやそのモジュールを利用する他のモジュールによってRAM2にロードされ実行されるプログラムモジュールである。また、アプリケーション201及びプリンタドライバ203は、外部メモリ11のFDや不図示のCD−ROM、あるいは不図示のネットワークを経由して外部ディスク11のHDに追加することが可能である。外部メモリ11に保存されているアプリケーション201は、CPU1によってRAM2にロードされて実行されるが、このアプリケーション201からプリンタ1500に対して印刷を行う際には、同様にRAM2にロードされ実行可能となっているグラフィックエンジン202を利用して出力(描画)を行う。   FIG. 2 is a software configuration diagram of typical print processing in the host computer 3000 to which a printing apparatus such as a printer is directly connected or connected via a network. 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, and are loaded into the RAM 2 by the OS and other modules that use the module when processed by the CPU 1. Program module to be executed. Further, the application 201 and the printer driver 203 can be added to the HD of the external disk 11 via the FD of the external memory 11, a CD-ROM (not shown), or a network (not shown). The application 201 stored in the external memory 11 is loaded into the RAM 2 by the CPU 1 and executed. When printing from the application 201 to the printer 1500, the application 201 is similarly loaded into the RAM 2 and can be executed. The graphic engine 202 is used for output (drawing).

グラフィックエンジン202は、印刷装置ごとに用意されたプリンタドライバ203を同様に外部メモリ11からRAM2にロードし、アプリケーション201の出力をプリンタドライバ203に設定する。そして、アプリケーション201から受け取るGDI(Graphic Device Interface)関数からDDI(Device Driver Interface)関数に変換して、プリンタドライバ203へDDI関数を出力する。プリンタドライバ203は、グラフィックエンジン202から受け取ったDDI関数に基づいて、プリンタが認識可能な制御コマンド、例えばPDL(Page Description Language)に変換する。変換されたプリンタ制御コマンドは、OSによってRAM2にロードされたシステムスプーラ204を経てインタフェース21経由でプリンタ1500へ印刷データとして出力される仕組みとなっている。   The graphic engine 202 similarly loads the printer driver 203 prepared for each printing apparatus from the external memory 11 to the RAM 2, and sets the output of the application 201 in the printer driver 203. Then, the GDI (Graphic Device Interface) function received from the application 201 is converted into a DDI (Device Driver Interface) function, and the DDI function is output to the printer driver 203. Based on the DDI function received from the graphic engine 202, the printer driver 203 converts it into a control command that can be recognized by the printer, for example, PDL (Page Description Language). The converted printer control command is output as print data to the printer 1500 via the interface 21 via the system spooler 204 loaded into the RAM 2 by the OS.

本実施形態の印刷システムは、プリンタドライバ203内に地紋処理部205(後述)を有する。地紋処理部205はプリンタドライバ203のビルドインモジュールであってもよいし、個別のインストレーションによって追加されるライブラリモジュールの形式であっても構わない。また、プリンタドライバ203は、地紋画像の印刷に関し、その地紋処理部205の実行により、後述の地紋画像の描画などの処理を行う。   The printing system of the present embodiment includes a tint block processing unit 205 (described later) in the printer driver 203. The copy-forgery-inhibited pattern processing unit 205 may be a built-in module of the printer driver 203, or a library module added by an individual installation. In addition, the printer driver 203 performs processing such as drawing of a tint block image, which will be described later, by executing the tint block processing unit 205 regarding printing of the tint block image.

本実施形態の印刷システムは、図2で示すプリンタとホストコンピュータからなる印刷システムに加えて、更に図3に示すように、アプリケーションからの印刷データを一旦中間コードデータでスプールする構成を有する。以下、図3を参照し本実施形態の印刷システムのソフトウェア構成について説明する。   In addition to the printing system comprising the printer and host computer shown in FIG. 2, the printing system of this embodiment has a configuration in which print data from an application is temporarily spooled with intermediate code data as shown in FIG. Hereinafter, the software configuration of the printing system of this embodiment will be described with reference to FIG.

<本実施形態における印刷関連のソフトウエアモジュール>
図3は、図2のソフトウェア構成を拡張した本実施形態の印刷システムのソフトウェア構成図で、グラフィックエンジン202からプリンタドライバ203へ印刷命令を送る際に、一旦中間コードからなるスプールファイル303を生成する構成をとる。図2のシステムでは、アプリケーション201が印刷処理から開放されるのはプリンタドライバ203がグラフィックエンジン202からのすべての印刷命令をプリンタの制御コマンドへ変換し終った時点である。これに対して、図3のシステムでは、スプーラ302がすべての印刷命令を中間コードデータに変換し、スプールファイル303に出力した時点である。通常、図3のシステムの方が処理が短時間で済む。また、図3で示すシステムにおいては、スプールファイル303の内容に対して加工することができる。これによりアプリケーションからの印刷データに対して、拡大縮小や、複数ページを1ページに縮小して印刷する等、アプリケーションの持たない機能を実現することができる。
<Printing-related software module in this embodiment>
FIG. 3 is a software configuration diagram of the printing system of the present embodiment in which the software configuration of FIG. 2 is expanded. When a print command is sent from the graphic engine 202 to the printer driver 203, a spool file 303 consisting of an intermediate code is once generated. Take the configuration. In the system shown in FIG. 2, the application 201 is released from the printing process when the printer driver 203 has converted all print commands from the graphic engine 202 into printer control commands. On the other hand, in the system shown in FIG. 3, the spooler 302 converts all print commands into intermediate code data and outputs the intermediate code data to the spool file 303. Usually, the processing of the system of FIG. In the system shown in FIG. 3, the contents of the spool file 303 can be processed. As a result, it is possible to realize functions that the application does not have, such as enlargement / reduction or printing by reducing a plurality of pages into one page with respect to print data from the application.

これらの目的のために、図2のシステムに対し、図3の様に中間コードデータでスプールする様、システムの拡張がなされてきている。なお、印刷データの加工を行うためには、通常プリンタドライバ203が提供するウィンドウから設定を行い、プリンタドライバ203がその設定内容をRAM2上あるいは外部メモリ11上に保管する。   For these purposes, the system of FIG. 2 has been extended to spool with intermediate code data as shown in FIG. In order to process the print data, settings are normally made from a window provided by the printer driver 203, and the printer driver 203 stores the setting contents on the RAM 2 or the external memory 11.

以下、図3の詳細を説明する。図3に示す各モジュールは、CPU1により処理される場合にOSやそのモジュールを利用する他のモジュールによってRAM2にロードされ実行されるプログラムモジュールである。図3に示す通り、この拡張された処理方式では、グラフィックエンジン202からの印刷命令であるDDI関数をディスパッチャ301が受け取る。ディスパッチャ301がグラフィックエンジン202から受け取った印刷命令(DDI関数)が、アプリケーション201からグラフィックエンジン202へ発行された印刷命令(GDI関数)に基づくものである場合には、ディスパッチャ301は外部メモリ11に格納されているスプーラ302をRAM2にロードし、プリンタドライバ203ではなくスプーラ302へ印刷命令(DDI関数)を送る。   Details of FIG. 3 will be described below. Each module shown in FIG. 3 is a program module that is loaded into the RAM 2 and executed by the OS and other modules that use the module when processed by the CPU 1. As shown in FIG. 3, in this expanded processing method, the dispatcher 301 receives a DDI function that is a print command from the graphic engine 202. When the print command (DDI function) received by the dispatcher 301 from the graphic engine 202 is based on the print command (GDI function) issued from the application 201 to the graphic engine 202, the dispatcher 301 stores it in the external memory 11. The spooler 302 is loaded into the RAM 2 and a print command (DDI function) is sent to the spooler 302 instead of the printer driver 203.

スプーラ302は受け取った印刷命令を解析し、ページ単位に中間コードに変換してスプールファイル303に出力する。このページ単位に格納されている中間コードのスプールファイルをページ描画ファイル(PDF:Page Description File)と呼ぶ。また、スプーラ302は、プリンタドライバ203に対して設定されている印刷データに関する加工設定(Nup、両面、ステープル、カラー/モノクロ指定等)をプリンタドライバ203から取得してジョブ単位のファイルとしてスプールファイル303に保存する。このジョブ単位に格納されている設定ファイルをジョブ設定ファイル(簡略してSDF:Spool Description Fileと呼ぶこともある)と呼ぶ。このジョブ設定ファイルについては後述する。なお、スプールファイル303は外部メモリ11上にファイルとして生成するが、RAM2上に生成されても構わない。更にスプーラ302は、外部メモリ11に格納されているスプールファイルマネージャ304をRAM2にロードし、スプールファイルマネージャ304に対してスプールファイル303の生成状況を通知する。その後、スプールファイルマネージャ304は、スプールファイル303に保存された印刷データに関する加工設定の内容に従って印刷を行えるか判断する。   The spooler 302 analyzes the received print command, converts it into an intermediate code for each page, and outputs it to the spool file 303. The spool file of intermediate code stored in units of pages is called a page drawing file (PDF). Further, the spooler 302 acquires processing settings (Nup, double-sided, staple, color / monochrome designation, etc.) relating to print data set for the printer driver 203 from the printer driver 203, and creates a spool file 303 as a job unit file. Save to. This setting file stored in units of jobs is called a job setting file (sometimes simply called SDF: Spool Description File). This job setting file will be described later. The spool file 303 is generated as a file on the external memory 11, but may be generated on the RAM 2. Further, the spooler 302 loads the spool file manager 304 stored in the external memory 11 into the RAM 2 and notifies the spool file manager 304 of the generation status of the spool file 303. Thereafter, the spool file manager 304 determines whether printing can be performed in accordance with the contents of the processing settings relating to the print data stored in the spool file 303.

スプールファイルマネージャ304がグラフィックエンジン202を利用して印刷を行えると判断した際には、外部メモリ11に格納されているデスプーラ305をRAM2にロードし、デスプーラ305に対して、スプールファイル303に記述された中間コードのページ描画ファイルの印刷処理を行うように指示する。   When the spool file manager 304 determines that printing can be performed using the graphic engine 202, the despooler 305 stored in the external memory 11 is loaded into the RAM 2, and is described in the spool file 303 with respect to the despooler 305. The intermediate code page drawing file is instructed to be printed.

デスプーラ305はスプールファイル303に含まれる中間コードのページ描画ファイルをスプールファイル303に含まれる加工設定情報を含むジョブ設定ファイルに従って加工し、GDI関数を再生成し、もう一度グラフィックエンジン202経由でDDI関数を出力する。   The despooler 305 processes the page drawing file of the intermediate code included in the spool file 303 according to the job setting file including the processing setting information included in the spool file 303, regenerates the GDI function, and again converts the DDI function via the graphic engine 202. Output.

その際、地紋プリントに関する描画については、デスプーラ305は、地紋処理部205(後述)をRAM2にロードし、描画処理を行う。このシステムの印刷形態では、地紋処理部205はデスプーラ305やスプールファイルマネージャ304等とともに地紋画像の印刷に関し、後述の地紋画像のコマンド生成などの処理を行う。   At this time, for drawing related to the tint block print, the despooler 305 loads the tint block processing unit 205 (described later) into the RAM 2 and performs drawing processing. In the printing form of this system, the tint block processing unit 205 performs processing such as generation of a tint block image command, which will be described later, with respect to the printing of the tint block image together with the despooler 305, the spool file manager 304, and the like.

ディスパッチャ301がグラフィックエンジン202から受け取った印刷命令(DDI関数)がデスプーラ305からグラフィックエンジン202へ発行された印刷命令(GDI関数)に基づいたものである場合には、ディスパッチャ301はスプーラ302ではなく、プリンタドライバ203に印刷命令(DDI関数)を送る。   If the print command (DDI function) received by the dispatcher 301 from the graphic engine 202 is based on the print command (GDI function) issued from the despooler 305 to the graphic engine 202, the dispatcher 301 is not the spooler 302. A print command (DDI function) is sent to the printer driver 203.

プリンタドライバ203はディスパッチャ301から取得したDDI関数に基づいてページ記述言語等からなるプリンタ制御コマンドを生成し、システムスプーラ204経由でプリンタ1500に出力する。   The printer driver 203 generates a printer control command including a page description language based on the DDI function acquired from the dispatcher 301 and outputs the printer control command to the printer 1500 via the system spooler 204.

更に、図3では、これまで説明した拡張システムに加えて、プレビューア306を配し、プレビューを可能にした例を示している。   Further, FIG. 3 shows an example in which a previewer 306 is arranged in addition to the extended system described so far to enable previewing.

印刷プレビューを行うためには、まずユーザが図8に示すプリンタドライバのプロパティにおいて、「出力先の指定」を行う手段であるプルダウンメニュー901において「ストア」を指定する。なお、プレビューだけをみたい場合は、出力先の指定として「プレビュー」を選択することによっても可能である。   In order to perform print preview, first, the user designates “Store” in the pull-down menu 901 which is a means for performing “designation of output destination” in the printer driver properties shown in FIG. If you want to see only the preview, you can also select “Preview” as the destination designation.

このようにプリンタドライバのプロパティで設定されている内容は設定ファイルとしてOSが提供する構造体(Windows(登録商標)OSでは、DEVMODEと呼ばれる)に格納される。その構造体には、例えばスプールファイル303に含まれる加工設定中にスプールファイルマネージャ304にストアを行うかどうかの設定が含まれており、スプールファイルマネージャ304がプリンタドライバを介して加工設定を読み込み、ストア指定がなされていた場合、前述したようにスプールファイル303にページ描画ファイルとジョブ設定ファイルとが生成・格納され、スプールファイルマネージャ304のウィンドウ画面がポップアップされ、スプールファイル303にスプールされたジョブがリスト表示される。   The contents set in the properties of the printer driver 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 to store in the spool file manager 304 during the processing settings included in the spool file 303. The spool file manager 304 reads the processing settings via the printer driver, If the store is specified, the page drawing file and the job setting file are generated and stored in the spool file 303 as described above, the window screen of the spool file manager 304 is popped up, and the job spooled in the spool file 303 is displayed. A list is displayed.

スプールファイルマネージャのウィンドウ画面上で、ある単体ジョブもしくは結合ジョブのプレビュー指定がされた場合、外部メモリ11に格納されているプレビューア306をRAM2にロードし、プレビューア306に対して、スプールファイル303に記述された中間コードのジョブのプレビュー処理を行うように指示する。   When a preview of a single job or a combined job is designated on the window screen of the spool file manager, the previewer 306 stored in the external memory 11 is loaded into the RAM 2, and the spool file 303 is sent to the previewer 306. Is instructed to perform a preview process of the intermediate code job described in (1).

プレビューア306はスプールファイル303に含まれる中間コードのページ描画ファイル(PDF)を順次読み出し、スプールファイル303に格納されているジョブ設定ファイル(SDF)に含まれる加工設定情報の内容に従って加工し、グラフィックエンジン202に対してGDI関数を出力し、グラフィックエンジン202が自身のクライアント領域に描画データを出力することによって、画面上の出力が可能となる。   The previewer 306 sequentially reads the page drawing file (PDF) of the intermediate code included in the spool file 303, processes it according to the content of the processing setting information included in the job setting file (SDF) stored in the spool file 303, and generates a graphic. A GDI function is output to the engine 202, and the graphic engine 202 outputs drawing data to its own client area, thereby enabling output on the screen.

グラフィックエンジン202は、指定された出力先に応じて適切なレンダリングを行うことが可能である。このことから、プレビューア306は、デスプーラ305同様に、スプールファイル303に含まれる中間コードをスプールファイル303に含まれる加工設定の内容に従って加工し、グラフィックエンジン202を利用して出力する方法で、プレビューが実現可能となる。このようにプリンタドライバ203で設定されている加工設定をジョブ設定ファイルとしてスプールファイル303に格納し、このジョブ設定ファイルに基づいてページ描画ファイルのデータを加工して出力することにより、実際の描画データがどのように印刷されるか、更には、Nup(Nページの論理ページを1ページの物理ページに縮小配置して印刷する処理)指定されている場合、両面印刷されている場合、製本印刷指定されている場合、スタンプが指定されている場合、それぞれに応じて、プリンタで出力されるものに近い印刷プレビューをユーザに提供することができる。   The graphic engine 202 can perform appropriate rendering according to the designated output destination. From this, the previewer 306, like the despooler 305, processes the intermediate code included in the spool file 303 in accordance with the contents of the processing settings included in the spool file 303, and outputs the result using the graphic engine 202. Is feasible. The processing settings set in the printer driver 203 in this way are stored in the spool file 303 as a job setting file, and the data of the page drawing file is processed and output based on the job setting file, so that the actual drawing data Is printed, and if Nup (N page logical pages are reduced and printed on one physical page) is specified, double-sided printing is specified, and bookbinding printing is specified If a stamp is designated, a print preview close to that output by the printer can be provided to the user accordingly.

<印刷用中間データの保存処理>
図4は、スプーラ302における、スプールファイル303の生成におけるページ単位保存ステップの処理を示すフローチャートである。
<Storage processing of intermediate data for printing>
FIG. 4 is a flowchart showing the process of the page unit storage step in the generation of the spool file 303 in the spooler 302.

まずステップ501において、スプーラ302は、アプリケーションからグラフィックエンジン202を介して印刷要求を受け付ける。アプリケーションにおいては、図7に示すような印刷設定を入力するダイアログが表示され、このダイアログから入力された印刷設定がプリンタドライバ203よりスプーラ302に渡される。図7に示す設定入力ダイアログにおいては、801のような1物理ページにレイアウトする論理ページの数を決定するような設定項目等を含んでいる。   First, in step 501, the spooler 302 receives a print request from the application via the graphic engine 202. In the application, a dialog for inputting print settings as shown in FIG. 7 is displayed, and the print settings input from this dialog are transferred from the printer driver 203 to the spooler 302. The setting input dialog shown in FIG. 7 includes setting items such as 801 for determining the number of logical pages to be laid out on one physical page.

ステップ502では、スプーラ302は、受け付けた印刷要求がジョブ開始要求か判定し、もしステップ502でジョブ開始要求であると判断した場合には、ステップ503に進み、スプーラ302は、中間データを一時的に保存するためのスプールファイル303を作成する。続いて、ステップ504では、スプーラ302は、スプールファイルマネージャ304へ印刷処理の進捗を通知し、続くステップ505でスプーラ302のページ数カウンタを1に初期化する。ここで、スプールファイルマネージャ304においては、印刷が開始されたジョブに対するジョブの情報や加工設定などをスプールファイル303より読み込み、記憶する。   In step 502, the spooler 302 determines whether the received print request is a job start request. If it is determined in step 502 that it is a job start request, the process proceeds to step 503, where the spooler 302 temporarily stores the intermediate data. Create a spool file 303 to be stored in In step 504, the spooler 302 notifies the spool file manager 304 of the progress of the printing process, and in step 505, the page number counter of the spooler 302 is initialized to 1. Here, the spool file manager 304 reads job information, processing settings, and the like for the job for which printing has started from the spool file 303 and stores it.

一方、ステップ502において、ジョブ開始要求ではなかったと判断した場合には、ステップ506に進む。   On the other hand, if it is determined in step 502 that the request is not a job start request, the process proceeds to step 506.

ステップ506では、スプーラ302は、受け付けた要求がジョブ終了要求かどうかの判別を行う。ジョブ終了要求でないと判断した場合には、ステップ507に進み、改ページかどうかの判別を行う。もしもステップ507で改ページであると判断した場合には、ステップ508に進み、スプールファイルマネージャ304へ印刷処理の進捗を通知する。そしてページ数カウンタをインクリメント(+1)して、中間コードを格納しているページ描画ファイルを閉じ、次のページ描画ファイルを生成する。   In step 506, the spooler 302 determines whether the received request is a job end request. If it is determined that the request is not a job end request, the process advances to step 507 to determine whether or not a page break is required. If it is determined in step 507 that the page breaks, the process advances to step 508 to notify the spool file manager 304 of the progress of the printing process. Then, the page number counter is incremented (+1), the page drawing file storing the intermediate code is closed, and the next page drawing file is generated.

ステップ507において、受け付けた印刷要求が改ページではないと判断した場合には、ステップ509に進み、スプーラ302は、ページ描画ファイルへの中間コードの書き出しの準備を行う。   If it is determined in step 507 that the received print request is not a page break, the process proceeds to step 509 and the spooler 302 prepares for writing intermediate code to the page drawing file.

次に、ステップ510では、印刷要求をスプールファイル303へ格納するため、スプーラ302は、印字要求のDDI関数の中間コードへの変換処理を行う。ステップ511では、スプーラ302は、ステップ510において格納可能な形に変換された印刷要求(中間コード)をスプールファイル303のページ描画ファイルへ書き込む。その後、ステップ501に戻り、再びアプリケーションからの印刷要求を受け付ける。この一連のステップ501からステップ511までの処理を、アプリケーションよりジョブ終了要求(EndDoc)を受け取るまで続ける。また、スプーラ302は、同時にプリンタドライバ203からDEVMODE構造体に格納されている加工設定等の情報を取得し、ジョブ設定ファイルとしてスプールファイル303に格納する。   Next, in step 510, in order to store the print request in the spool file 303, the spooler 302 converts the print request into an intermediate code of the DDI function. In step 511, the spooler 302 writes the print request (intermediate code) converted in the form that can be stored in step 510 to the page drawing file of the spool file 303. Thereafter, the process returns to step 501 to accept a print request from the application again. The series of processing from step 501 to step 511 is continued until a job end request (EndDoc) is received from the application. Further, the spooler 302 simultaneously acquires information such as processing settings stored in the DEVMODE structure from the printer driver 203 and stores the information in the spool file 303 as a job setting file.

一方、ステップ506にて、アプリケーションからの印刷要求がジョブ終了であると判断した場合には、アプリケーションからの印刷要求は全て終了であるので、ステップ512に進み、スプールファイルマネージャ304へ印刷処理の進捗を通知し、処理を終える。   On the other hand, if it is determined in step 506 that the print request from the application is the end of the job, all the print requests from the application are complete, so the process proceeds to step 512 and the print processing progress to the spool file manager 304. And finish the process.

<スプールファイルの生成>
図5は、スプールファイルマネージャ304における、上述したスプールファイル303生成プロセスと以降図6を参照し説明する印刷データ生成プロセスとの間の制御の詳細を示すフローチャートである。
<Generate spool file>
FIG. 5 is a flowchart showing details of control in the spool file manager 304 between the spool file 303 generation process described above and the print data generation process described below with reference to FIG.

ステップ601では、スプールファイルマネージャ304は、スプーラ302あるいはデスプーラ305からの印刷処理の進捗通知を受け付ける。   In step 601, the spool file manager 304 receives a print processing progress notification from the spooler 302 or the despooler 305.

ステップ602では、スプールファイルマネージャ304は、もし進捗通知が前述のステップ504において通知されるスプーラ302からの印刷開始通知であるかどうか判定し、もしそうであればステップ603へ進み、印刷の加工設定をスプールファイル303から読み込み、ジョブの管理を開始する。一方、ステップ602において、スプーラ302からの印刷開始通知でなければステップ604へ進み、スプールファイルマネージャ304は、進捗通知が前述のステップ508において通知されるスプーラ302からの1論理ページの印刷終了通知であるかどうか判定する。ここで1論理ページの印刷終了通知であればステップ605へ進み、この論理ページに対する論理ページ情報を格納する。そして、続くステップ606では、この時点でスプールが終了したn論理ページに対して、1物理ページの印刷が開始できるかを判定する。ここで、印刷可能である場合はステップ607へ進み、印刷する1物理ページに対して割り付けられる論理数から物理ページ番号を決定する。   In step 602, the spool file manager 304 determines whether or not the progress notification is a print start notification from the spooler 302 notified in the above-described step 504. If so, the process proceeds to step 603 and print processing settings are made. Is read from the spool file 303 and job management is started. On the other hand, if the print start notification is not received from the spooler 302 in step 602, the process advances to step 604, and the spool file manager 304 is notified of the completion of printing of one logical page from the spooler 302 notified in step 508 described above. Determine if there is. If it is a notification of printing completion of one logical page, the process proceeds to step 605 to store logical page information for this logical page. In the subsequent step 606, it is determined whether printing of one physical page can be started with respect to the n logical pages that have been spooled at this time. If printing is possible, the process proceeds to step 607, where the physical page number is determined from the logical number assigned to one physical page to be printed.

物理ページの計算については、例えば、加工設定が1物理ページに4論理ページを配置するような設定の場合、第1物理ページは第4論理ページがスプールされた時点で印刷可能となり、第1物理ページとなる。続いて、第2物理ページは第8論理ページがスプールされた時点で印刷可能となる。   Regarding the calculation of the physical page, for example, when the processing setting is such that four logical pages are arranged in one physical page, the first physical page can be printed when the fourth logical page is spooled, and the first physical page is printed. It becomes a page. Subsequently, the second physical page can be printed when the eighth logical page is spooled.

また、論理ページ数の総数が1物理ページに配置する論理ページ数の倍数でなくても、ステップ512におけるスプール終了通知によって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 512.

そして、ステップ608では、図9に示すような形式で、印刷可能となった物理ページを構成する論理ページ番号と、その物理ページ番号などの情報がジョブ出力用設定ファイル(物理ページ情報を含むファイル)に保存され、物理ページ情報が1物理ページ分追加されたことがデスプーラ305に通知される。その後ステップ601に戻り、次の通知を待つ。本実施形態においては、印刷データ1ページ、即ち1物理ページを構成する論理ページがスプールされた時点で印刷ジョブのスプールが全て終了していなくても印刷処理が可能である。   In step 608, information such as the logical page number constituting the printable physical page and the physical page number in the format shown in FIG. 9 is stored in the job output setting file (file including physical page information). ) And the despooler 305 is notified that one physical page has been added. Thereafter, the process returns to step 601 to wait for the next notification. In the present embodiment, print processing can be performed even if all the print jobs are not spooled when one page of print data, that is, a logical page constituting one physical page is spooled.

一方、ステップ604において、進捗通知がスプーラ302からの1論理ページの印刷終了通知でなかった場合ステップ609へ進み、スプールファイルマネージャ304は、前述のステップ512において通知されるスプーラ302からのジョブ終了通知であるかどうかを判定する。ここで、ジョブ終了通知である場合、前述のステップ606へ進む。一方、ジョブ終了通知でない場合、ステップ610へ進み、スプールファイルマネージャ304は、受け付けた通知がデスプーラ305からの1物理ページの印刷終了通知であるかどうか判定する。ここで、1物理ページの印刷終了通知である場合はステップ611へ進み、加工設定の印刷が全て終了したかを判定する。印刷終了した場合、ステップ612へ進み、デスプーラ305に印刷終了の通知を行う。一方、加工設定に対する印刷がまだ終了していないと判断した場合、前述の606へ進む。本実施形態におけるデスプーラ305は印刷処理を行う単位として1物理ページ数を想定している。また、ステップ608では、1物理ページの印刷処理を行うのに必要な情報をファイルに逐次保存し、再利用可能な形式にしているが、再利用不要な場合には、共有メモリ等高速な媒体を使用し、1物理ページ単位で次々と上書きする実装にして、速度とリソースを節約するような実装形式であってもよい。また、デスプールの進捗よりもスプールの進捗の方が早い場合や全ページのスプール終了後からデスプールが開始されるような場合には、ステップ608で1物理ページ毎にページ印刷可能を通知せずに、デスプール側の進捗に応じて、複数物理ページもしくは全物理ページが印刷可能になったという通知内容にして、通知回数を節約することが可能である。   On the other hand, if the progress notification is not a print end notification of one logical page from the spooler 302 in step 604, the process advances to step 609, and the spool file manager 304 notifies the job end from the spooler 302 notified in step 512 described above. It is determined whether or not. If it is a job end notification, the process proceeds to step 606 described above. On the other hand, if it is not a job end notification, the process advances to step 610, and the spool file manager 304 determines whether or not the received notification is a print end notification of one physical page from the despooler 305. If it is a print end notification for one physical page, the process proceeds to step 611, where it is determined whether all of the processing settings have been printed. When printing is completed, the process proceeds to step 612, and the despooler 305 is notified of printing completion. On the other hand, if it is determined that printing for the processing setting has not yet been completed, the processing proceeds to step 606 described above. The despooler 305 in this embodiment assumes the number of one physical page as a unit for performing print processing. In step 608, information necessary for printing one physical page is sequentially stored in a file so that it can be reused. If reuse is unnecessary, a high-speed medium such as a shared memory is used. May be implemented in such a manner that one physical page is overwritten one after another to save speed and resources. Further, when the spool progress is faster than the despooling progress or when the despooling is started after the spooling of all the pages is completed, it is not notified in step 608 that page printing is possible for each physical page. Depending on the progress on the despooling side, it is possible to save the number of notifications by setting the notification contents that a plurality of physical pages or all physical pages can be printed.

ステップ610において、通知がデスプーラ305からの1物理ページの印刷終了通知でないと判断された場合、ステップ613へ進み、スプールファイルマネージャ304は、デスプーラ305からの印刷終了通知かどうかを判定する。通知がデスプーラ305からの印刷終了通知と判定された場合、ステップ614へ進み、スプールファイルマネージャ304は、スプールファイル303の該当するページ描画ファイルの削除を行い処理を終える。ただし、一方、デスプーラ305からの印刷終了通知でなかった場合はステップ615へ進み、その他通常処理を行い、次の通知を待つ。   If it is determined in step 610 that the notification is not a print end notification for one physical page from the despooler 305, the process advances to step 613, and the spool file manager 304 determines whether it is a print end notification from the despooler 305. If it is determined that the notification is a print end notification from the despooler 305, the process advances to step 614, and the spool file manager 304 deletes the corresponding page drawing file in the spool file 303 and ends the process. However, if the print end notification is not received from the despooler 305, the process proceeds to step 615 to perform other normal processing and wait for the next notification.

<スプールファイルの出力>
図6は、デスプーラ305における、印刷データの生成プロセスの詳細を示すフローチャートである。
<Output spool file>
FIG. 6 is a flowchart showing details of the print data generation process in the despooler 305.

デスプーラ305は、スプールファイルマネージャ304からの印刷要求に応じて、スプールファイル303から必要な情報(ページ描画ファイル及びジョブ設定ファイル)を読み出して印刷データを生成する。生成された印刷データにおけるプリンタへの転送方法については図3を参照し説明した通りである。   In response to a print request from the spool file manager 304, the despooler 305 reads necessary information (page drawing file and job setting file) from the spool file 303 and generates print data. A method of transferring the generated print data to the printer is as described with reference to FIG.

印刷データの生成では、まず、ステップ701において、デスプーラ305は、前述のスプールファイルマネージャ304からの通知を入力する。続くステップ702では、デスプーラ305は、入力された通知がジョブの終了通知かどうか判定し、ジョブ終了通知であるならばステップ703へ進み、終了フラグを立て、ステップ705へ進む。一方、ステップ702においてジョブ終了通知でない場合は、ステップ704に進み、前述のステップ608における1物理ページの印刷開始要求が通知されたかどうか判定する。ステップ704において開始要求と判定されなかった場合は、ステップ710へ進み、その他エラー処理を行い、ステップ701へ戻り次の通知を待つ。   In the generation of print data, first, in step 701, the despooler 305 inputs a notification from the spool file manager 304 described above. In the subsequent step 702, the despooler 305 determines whether or not the input notification is a job end notification. If it is a job end notification, the despooler 305 proceeds to step 703, sets an end flag, and proceeds to step 705. On the other hand, if it is not a job end notification in step 702, the process proceeds to step 704, where it is determined whether a print start request for one physical page in step 608 is notified. If it is not determined to be a start request in step 704, the process proceeds to step 710, other error processing is performed, and the process returns to step 701 to wait for the next notification.

一方、ステップ704において1物理ページの印刷開始要求と判定された場合は、ステップ705へ進み、デスプーラ305は、ステップ704で通知を受けた印刷処理可能な物理ページのIDを保存する。続くステップ706では、デスプーラ305は、ステップ705で保存した物理ページIDのすべてのページに関して印刷処理が済んでいるかどうか判定する。ここで全物理ページの処理が済んでいる場合は、ステップ707へ進み、前述のステップ703で終了フラグが立てられているのか判定する。終了フラグがたっている場合は、ジョブの印刷が終了したとみなし、デスプーラ305の処理終了の通知をスプールファイルマネージャ304に通知し、処理を終える。ステップ707で、終了フラグが立っていないと判定された場合は、ステップ701へ戻り次の通知を待つ。   On the other hand, if it is determined in step 704 that the print start request is for one physical page, the process proceeds to step 705, and the despooler 305 stores the ID of the physical page that can be printed that is notified in step 704. In the subsequent step 706, the despooler 305 determines whether or not the print processing has been completed for all the pages of the physical page ID stored in step 705. If all the physical pages have been processed, the process proceeds to step 707 to determine whether the end flag is set in step 703 described above. If the end flag is set, it is considered that the printing of the job has been completed, the processing end notification of the despooler 305 is notified to the spool file manager 304, and the processing ends. If it is determined in step 707 that the end flag is not set, the process returns to step 701 to wait for the next notification.

一方、ステップ706で、印刷可能な物理ページが残っていると判定された場合には、ステップ708へ進み、デスプーラ305は、保存された物理ページIDから未処理の物理ページIDを順に読み出し、読み出した物理ページIDに対応する物理ページの印刷データ生成に必要な情報を読み込み、印刷処理を行う。印刷処理は、スプールファイル303に格納された印刷要求命令をデスプーラ305においてグラフィックエンジン202が認識可能な形式(GDI関数)に変換し、グラフィックエンジン202に転送する。本実施形態のような、複数論理ページを1物理ページにレイアウトするような加工設定(以下Nページ印刷)については、このステップで縮小配置を考慮にいれながら変換する。その際、地紋プリントに関する描画については、デスプーラ305は、地紋処理部205(後述)をRAM2にロードし、描画処理を行う。   On the other hand, if it is determined in step 706 that there are still printable physical pages, the process proceeds to step 708, and the despooler 305 sequentially reads and reads the unprocessed physical page ID from the stored physical page ID. The information necessary for generating the print data of the physical page corresponding to the physical page ID is read and printing processing is performed. In the printing process, the print request command stored in the spool file 303 is converted into a format (GDI function) that can be recognized by the graphic engine 202 in the despooler 305 and transferred to the graphic engine 202. For the processing setting (hereinafter, N-page printing) for laying out a plurality of logical pages into one physical page as in the present embodiment, conversion is performed while taking the reduced arrangement into consideration in this step. At this time, for drawing related to the tint block print, the despooler 305 loads the tint block processing unit 205 (described later) into the RAM 2 and performs drawing processing.

印刷処理では、デスプーラ305からグラフィックエンジン202へ発行された印刷命令(GDI関数)に基づいて、グラフィックエンジン202はDDI関数を出力する。そしてディスパッチャ301は、グラフィックエンジン202から受け取った印刷命令(DDI関数)を、プリンタドライバ203に送る。プリンタドライバ203はディスパッチャ301から取得したDDI関数に基づいてページ記述言語等からなるプリンタ制御コマンドを生成し、システムスプーラ204経由でプリンタ1500に出力する。   In the printing process, the graphic engine 202 outputs a DDI function based on a print command (GDI function) issued from the despooler 305 to the graphic engine 202. Then, the dispatcher 301 sends the print command (DDI function) received from the graphic engine 202 to the printer driver 203. The printer driver 203 generates a printer control command including a page description language based on the DDI function acquired from the dispatcher 301 and outputs the printer control command to the printer 1500 via the system spooler 204.

必要な印刷処理が終えたならば、デスプーラ305は、続くステップ709において1物理ページの印刷データ生成終了の通知をスプールファイルマネージャ304に対して行う。そしてデスプーラ305は、再びステップ706へ戻り、ステップ705で保存しておいた印刷可能な物理ページIDすべてについて印刷処理を行うまで繰り返す。   When the necessary print processing is completed, the despooler 305 notifies the spool file manager 304 of the end of print data generation of one physical page in the subsequent step 709. The despooler 305 returns to step 706 again, and repeats until print processing is performed for all printable physical page IDs stored in step 705.

以上が、ディスパッチャ301、スプーラ302、スプールファイルマネージャ304、デスプーラ305を用いた印刷処理の流れである。上記のように処理することにより、スプーラ302が中間コードを生成してスプールファイル303に格納するタイミングでアプリケーション201が印刷処理から開放されるので、プリンタドライバ203に直接出力するよりも短時間で済む。また、スプールファイル303にプリンタドライバの印刷設定を踏まえた中間ファイル(ページ描画ファイル、ジョブ設定ファイル)として一時保存しているので、実際に印刷されるべき印刷プレビューをユーザに認識させることや、複数のアプリケーションにより生成した印刷ジョブの結合や並び替えが可能となり、印刷設定の変更を行う場合にも、再度アプリケーションを立ち上げて印刷をすることなしにユーザに行わせることを可能とする。   The above is the flow of print processing using the dispatcher 301, the spooler 302, the spool file manager 304, and the despooler 305. By performing the processing as described above, the application 201 is released from the printing process at the timing when the spooler 302 generates the intermediate code and stores it in the spool file 303, so that it takes less time than outputting directly to the printer driver 203. . Further, since the spool file 303 is temporarily stored as an intermediate file (page drawing file, job setting file) based on the print settings of the printer driver, the print preview to be actually printed can be recognized by the user, The print jobs generated by the application can be combined and rearranged, and even when the print setting is changed, the user can perform the operation without starting up the application again and performing printing.

ここで、スプーラ302を用いた印刷処理において、デスプーラ305によりグラフィックエンジン202への印刷要求時にジョブ出力用設定ファイルが生成される。ジョブ出力用設定ファイルは、単体ジョブの場合はジョブ設定ファイルと同等のものであり、結合ジョブの場合は複数のジョブ設定情報に基づいて生成されるものである。ここでジョブ出力用設定ファイルについて説明する。   Here, in a printing process using the spooler 302, a job output setting file is generated by the despooler 305 when a print request is made to the graphic engine 202. The job output setting file is equivalent to the job setting file in the case of a single job, and is generated based on a plurality of job setting information in the case of a combined job. Here, the job output setting file will be described.

<ジョブ出力用設定ファイルの構成>
図9は、ステップ608において、スプールファイルマネージャ304が生成する印刷可能となった物理ページを構成する情報を保存しているジョブ出力用設定ファイルの例を示す。フィールド1001は、ジョブを識別するためのIDで、本情報を保存しているファイル名や共有メモリの名称という形で保持することも可能である。フィールド1002はジョブ設定情報である。ジョブ設定情報には、グラフィックエンジン202に対してジョブの印刷を開始するために必要な構造体、Nページ印刷の指定、ページ枠などの追加描画の指定、部数、ステープルなどのフィニッシング指定など、1つのジョブに対して1つしか設定できない情報が含まれている。ジョブ設定情報1002には、ジョブに対する機能に応じて必要なだけ情報が保存される。フィールド1003はジョブの物理ページ数で、本フィールド以降、この数の分だけ物理ページ情報が保存されていることを示す。本実施形態では、印刷可能な物理ページ数を通知する方式であるので、このフィールドは無くても動作可能である。これ以降、フィールド1004から最後までフィールド1003の数だけ物理ページ情報が格納される。物理ページ情報については図11で説明する。
<Configuration of job output setting file>
FIG. 9 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 608. A field 1001 is an ID for identifying a job, and can be held in the form of the name of a file storing this information or the name of a shared memory. A field 1002 is job setting information. The job setting information includes a structure necessary for starting printing of a job to the graphic engine 202, designation of N page printing, designation of additional drawing such as a page frame, number of copies, finishing designation such as stapling, etc. Information that can only be set for one job is included. The job setting information 1002 stores as much information as necessary according to the function for the job. A field 1003 is the number of physical pages of the job, and indicates that the physical page information corresponding to this number is stored after this field. In this embodiment, since the number of printable physical pages is notified, the operation is possible even without this field. Thereafter, the physical page information is stored in the number of fields 1003 from the field 1004 to the end. The physical page information will be described with reference to FIG.

図10は、図9のフィールド1002に図示されたジョブ設定情報の一例である。フィールド1101は全物理ページ数である。フィールド1102は、全論理ページ数である。フィールド1101及び1102は、印刷データに追加して、ページ数などを付加情報として印刷する場合などに利用する。印刷が続いている際には、両フィールドは暫定的な値、もしくは、印刷が終了するまでスプールファイルマネージャ304は印刷可能な物理ページの情報の作成を延期する。フィールド1103は本印刷ジョブを何部印刷するかを指定する部数情報である。フィールド1104は、フィールド1103で複数部印刷する設定の場合、部単位で印刷するかどうかの指定である。フィールド1105はステープル、パンチ、Z折などのフィニッシング情報で、プリンタ本体もしくは外部にフィニッシャーがある場合に指定される。フィールド1106は付加印刷情報で、本実施形態の特徴である地紋プリントを始め、ページ枠などの飾り、日付などの付加情報、ユーザ名、ページ数、ウォーターマーク印刷等、ジョブに対して付加する情報が保存される。機能が増えるに従って本ジョブ設定情報に含まれるフィールドの数も増加し、例えば、両面印刷が可能な場合は、両面印刷の指定を保存するフィールドが追加される。   FIG. 10 is an example of the job setting information illustrated in the field 1002 of FIG. A field 1101 is the total number of physical pages. A field 1102 is the total number of logical pages. The fields 1101 and 1102 are used when printing the number of pages as additional information in addition to the print data. When printing continues, both fields are provisional values, or the spool file manager 304 postpones the creation of printable physical page information until printing ends. A field 1103 is copy number information for designating how many copies of the print job are to be printed. A field 1104 is used to specify whether or not printing is performed in units of copies when the field 1103 is set to print a plurality of copies. A field 1105 is finishing information such as stapling, punching, Z-folding, and the like, and is specified when a finisher exists in the printer main body or outside. A field 1106 is additional print information. Information added to the job such as copy-forgery-inhibited pattern printing, which is a feature of this embodiment, additional information such as decorations such as a page frame, date, user name, number of pages, and watermark printing. Is saved. As the number of functions increases, the number of fields included in the job setting information also increases. For example, when double-sided printing is possible, a field for storing designation of double-sided printing is added.

図11は、図9のフィールド1004に図示された物理ページ情報の一例を示す。最初のフィールド1201は物理ページ番号で、印刷順序の管理や、物理ページ番号を追加印刷する際に使用される値である。フィールド1202は物理ページ設定情報で、物理ページ毎にレイアウトやカラー・モノクロの指定が可能である場合、レイアウトやカラー・モノクロの設定が保存される。フィールド1203は本物理ページに割り付けられる論理ページ数で、1物理ページに4ページを割り付ける場合には4もしくは4ページ印刷を示すIDが保存される。フィールド1204以降はフィールド1203で指定された数だけ論理ページの情報が保存される。アプリケーション201から印刷されたページ数によっては、1203で指定されるページ数よりも実際のページデータ数が少なくなる場合がある。その場合には、論理ページ情報に空ページを示す特別なデータを保存して対応する。   FIG. 11 shows an example of physical page information shown in the field 1004 of FIG. The first field 1201 is a physical page number, which is a value used when managing the printing order and additionally printing the physical page number. A field 1202 is physical page setting information. When the layout and color / monochrome can be designated for each physical page, the layout and color / monochrome settings are stored. A field 1203 is the number of logical pages allocated to this physical page. When four pages are allocated to one physical page, an ID indicating 4 or 4-page printing is stored. From the field 1204 onward, logical page information is stored for 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 1203. In that case, special data indicating an empty page is stored in the logical page information.

図12は、1202の物理ページ設定情報の例である。フィールド1301は物理ページ上への論理ページの配置順で、Nページ印刷で、物理ページ上に論理ページを配置する順番(左上から横へ、左上から下へ等)の指定が保存されている。システムによっては、配置順ではなく、フィールド1204以降の論理ページ情報の順番をページ番号順ではなく、配置順に応じた順序で配することで1301の設定を代用する場合もある。フィールド1302は両面印刷の表・裏の情報で、例えば綴じ代を表裏でそろえる際に使用される。フィールド1303はカラーページかモノクロページかの指定で、プリンタがモノクロモードとカラーモードを持つ場合、カラーページとモノクロページが混在する文書で、カラーページをカラーモードで、モノクロページをモノクロモードで印刷したい場合などに使用される値である。この情報を持つことにより、オートカラーモードとして、ページ単位にカラープリンタで処理を変更することが可能となる。フィールド1304は付加印刷情報で、物理ページに対して、ページ数や、日付などの付加情報を印刷する場合に使用される。物理ページ設定情報も、システムの機能に応じてフィールドが追加される。   FIG. 12 shows an example of physical page setting information 1202. A field 1301 stores the designation of the order in which the logical pages are arranged on the physical page by printing N pages in the order of arrangement of the logical pages on the physical page (from top left to side, top left to bottom, etc.). Depending on the system, the setting of 1301 may 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. A field 1302 is front / back information for double-sided printing, and is used, for example, when aligning binding margins on the front and back. Field 1303 specifies whether the page is a color page or a monochrome page. If the printer has monochrome mode and color mode, you want to print a color page in color mode and a monochrome page in monochrome mode for a document that contains both color and monochrome pages. It is a value used for cases. By having this information, it is possible to change the processing by the color printer for each page as the auto color mode. A field 1304 is 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.

本実施形態の場合、図15によって説明される地紋プリントは物理ページに対して付加される情報なので、1106に保持された地紋プリントに関する情報に基づき、各物理ページに対する設定情報として、フィールド1304内にも格納される。ジョブに対する付加印刷情報1106及び付加印刷情報1304内における、地紋プリントに関する設定情報を格納するデータ形式の一例については、図14において後述する。   In the case of this embodiment, since the tint block print described with reference to FIG. 15 is information added to the physical page, the setting information for each physical page is set in the field 1304 based on the information on the tint block print held in 1106. Is also stored. An example of a data format for storing setting information regarding copy-forgery-inhibited pattern printing in the additional print information 1106 and additional print information 1304 for the job will be described later with reference to FIG.

図13は、1204で示された論理ページ情報の一例を示す。フィールド1401は論理ページのIDで、このIDを利用して、スプールファイル303から論理ページに対応するページ描画ファイルの中間コードを参照する。このIDを利用して論理ページの中間コードへアクセス可能であれば良く、これはファイルやメモリポインタであっても、論理ページを構成する中間コード自身が入っていてもよい。フィールド1402は論理ページ番号で論理ページ番号を付加情報として印刷する場合や、論理ページIDの補助情報に使用される。フィールド1403のフォーマット情報には、論理ページ単位で指定可能である各種設定項目が保存される。例えば、ページ枠などの付加印刷情報、拡縮率などの論理ページ単位に指定される各種設定の情報が保存される。また、必要であれば、論理ページ単位のカラー・モノクロ情報などの論理ページに対する属性情報を保存する事も可能である。逆に、論理ページ単位で設定を切りかえる事や論理ページ単位での属性情報が不要であるようなシステムでは、フィールド1403は不要である。   FIG. 13 shows an example of the logical page information indicated by 1204. A field 1401 is an ID of a logical page. By using this ID, an intermediate code of a page drawing file corresponding to the logical page is referred to from the spool file 303. It is only necessary that the intermediate code of the logical page can be accessed using this ID. This may be a file or a memory pointer, or may contain the intermediate code itself constituting the logical page. A field 1402 is a logical page number, and is used for printing the logical page number as additional information or for auxiliary information of the logical page ID. The format information in the field 1403 stores various setting items that can be specified in units of logical pages. For example, additional print information such as a page frame and various setting information designated for each logical page such as an enlargement / reduction ratio are stored. If necessary, attribute information for a logical page such as color / monochrome information for each logical page can be stored. On the other hand, the field 1403 is unnecessary in a system in which the setting is switched in units of logical pages or attribute information in units of logical pages is unnecessary.

本実施形態の場合、図15から19において説明される地紋プリントに関する機能設定情報はフィールド1403内には保持されない。これは、N-Upなどによる論理ページの拡大縮小に対して地紋プリントで使用されるパターンが影響を受けなくさせるためである。   In the case of the present embodiment, the function setting information regarding the tint block print described in FIGS. 15 to 19 is not held in the field 1403. This is to prevent the pattern used in the copy-forgery-inhibited pattern printing from being affected by enlargement / reduction of the logical page by N-Up or the like.

ジョブ出力用設定ファイルは、上記のように構成されている。なお、ジョブ設定ファイルもほぼ同様であり、印刷体裁(片面、両面、製本印刷)、印刷レイアウト(Nup、ポスター印刷)、付加情報(地紋プリント情報、ウォーターマーク、日付、ユーザ名など)、部数、用紙サイズ情報をジョブとして有しており、物理ページ毎に、論理ページの配置順、両面印刷の表面か、裏面か、カラーモード等の情報から構成されている。   The job output setting file is configured as described above. The job setting file is almost the same as the print format (single-sided, double-sided, bookbinding printing), print layout (Nup, poster printing), additional information (background print information, watermark, date, user name, etc.), number of copies, Paper size information is included as a job, and is configured for each physical page, including information such as the order of logical page placement, front / back side of duplex printing, and color mode.

<地紋プリント処理の説明>
以下、地紋プリントに関する設定をおこなうユーザインタフェースの一例について、図15から17を用いて行う。
<Description of tint block print processing>
Hereinafter, an example of a user interface for performing settings related to the copy-forgery-inhibited pattern printing will be described with reference to FIGS.

図15はプリンタドライバ203が表示可能な、地紋プリントに関するユーザインタフェースの初期画面の一例である。この例では、ダイアログ内のプロパティシート2101において地紋プリントに関する設定が行えるようになっている。   FIG. 15 is an example of an initial screen of a user interface related to copy-forgery-inhibited pattern printing that can be displayed by the printer driver 203. In this example, a setting related to copy-forgery-inhibited pattern printing can be performed on the property sheet 2101 in the dialog.

図中符号2102は、印刷ジョブに対して地紋プリントを行うかどうかを指定するチェックボックスであり、図10における付加印刷情報1106内に地紋プリントを行うかどうかの設定が格納される。   Reference numeral 2102 in the figure is a check box for designating whether to perform copy-forgery-inhibited pattern printing for a print job, and stores whether or not to perform copy-forgery-inhibited pattern printing in the additional print information 1106 in FIG.

2103は、地紋プリントの複数の設定情報を1つの識別子(スタイル)で指定可能にするためのスタイル情報である。プリンタドライバ203は複数のスタイルを選択可能となっており、各スタイルと図14に示す地紋プリント情報との関係がレジストリに登録される。また、2104を押下することにより、図16に示すスタイル編集用ダイアログ2201が表示される。   Reference numeral 2103 denotes style information for making it possible to designate a plurality of pieces of setting information for a tint block print with one identifier (style). The printer driver 203 can select a plurality of styles, and the relationship between each style and the tint block print information shown in FIG. 14 is registered in the registry. Also, by pressing 2104, a style editing dialog 2201 shown in FIG. 16 is displayed.

2105は、地紋プリントにおける前景、背景のコントラストを調整する際に用いるチェックボックスで、ボタン2106を押下することにより、図17に示すダイアログ2301が表示される。   A check box 2105 is used when adjusting the foreground and background contrast in the tint block print. When a button 2106 is pressed, a dialog 2301 shown in FIG. 17 is displayed.

図16(a)は地紋プリントの個々の詳細設定を編集するためのダイアログの一例である。図中符号2201は地紋情報編集用ダイアログであり、この領域に後述する個々の地紋情報によって生成される地紋パターンの結果の簡易プレビューが表示される。2202は図15の2103にて選択可能なスタイルの一覧を表示する領域であり、2203及び2204を用いてスタイルの新規追加、削除が可能となっている。2205は、現在指定されているスタイル名称が表示される領域である。   FIG. 16A shows an example of a dialog for editing individual detailed settings of the tint block print. Reference numeral 2201 in the figure denotes a tint block information editing dialog, and a simple preview of the tint block pattern result generated by individual tint block information described later is displayed in this area. Reference numeral 2202 denotes an area for displaying a list of styles that can be selected in 2103 in FIG. 15. New styles can be added and deleted using 2203 and 2204. An area 2205 displays the currently designated style name.

2206は、地紋プリントに用いる描画オブジェクトの種類を選択するラジオボタンであり、「文字列」を選択するとテキストオブジェクトが使用され、「イメージ」を選択するとBMPなどに代表されるイメージデータが使用される。図16では、「文字列」が選択されているので、2201には後述する2207から2209などのようなテキストオブジェクトに関する設定情報が表示され、編集可能となっている。一方、2206において「イメージ」が選択されている場合、2207から2209は表示されず、その代わりに図16(b)におけるイメージファイル名称表示2215及び図不示のファイル選択ダイアログを表示するためのボタン2216が表示される。   Reference numeral 2206 denotes a radio button for selecting the type of drawing object used for copy-forgery-inhibited pattern printing. When “character string” is selected, a text object is used, and when “image” is selected, image data represented by BMP or the like is used. . In FIG. 16, since “character string” is selected, setting information related to a text object such as 2207 to 2209 described later is displayed in 2201 and can be edited. On the other hand, when “image” is selected in 2206, 2207 to 2209 are not displayed, and instead, a button for displaying the image file name display 2215 and the file selection dialog (not shown) in FIG. 2216 is displayed.

2207は地紋パターンとして使用する文字列を表示、編集するための領域である。2208は文字列のフォント情報を表示、編集するための領域である。本実施形態ではフォント名称のみの選択画面としているが、書体のファミリー情報(ボールド、イタリックなど)や、飾り文字情報などが選択可能に拡張してもよい。   Reference numeral 2207 denotes an area for displaying and editing a character string used as a tint block pattern. Reference numeral 2208 denotes an area for displaying and editing font information of a character string. In the present embodiment, only the font name selection screen is used. However, the font family information (bold, italic, etc.), decorative character information, and the like may be expanded.

2209は地紋パターンとして使用する文字列のフォントサイズを表示、設定する領域である。本実施形態では「大」「中」「小」の3段階で指定可能な形式を想定しているが、ポイント数の直接入力など、一般的に用いられるフォントサイズ指定方法を採用してもかまわない。   An area 2209 displays and sets the font size of the character string used as the tint block pattern. In this embodiment, a format that can be designated in three stages of “large”, “medium”, and “small” is assumed. However, a commonly used font size designation method such as direct input of the number of points may be adopted. Absent.

2210は地紋パターンと原稿データの印刷順序を設定するためのラジオボタンであり、「透かし印刷」が指定された場合は図18にて後述するように、地紋パターンを描画後、原稿データを描画する。一方、「重ね印刷」が指定された場合は図19にて後述するように、原稿データを描画後、地紋パターンを描画する。   Reference numeral 2210 denotes a radio button for setting the print order of the copy-forgery-inhibited pattern and document data. When “watermark printing” is designated, the document data is drawn after drawing the copy-forgery-inhibited pattern as will be described later with reference to FIG. . On the other hand, when “overlapping printing” is designated, as will be described later with reference to FIG. 19, the background pattern is drawn after drawing the document data.

2211は、地紋パターンの配置角度を指定するラジオボタンである。本実施形態では「右上がり」「右下がり」「横」の3通りの選択を可能としているが、角度を任意に指定可能な数値入力領域や、直感的に指定可能なスライダーバーなどを配し、角度指定方法を拡張してもよい。   Reference numeral 2211 denotes a radio button for designating the arrangement angle of the tint block pattern. In this embodiment, “rising right”, “declining right”, and “horizontal” can be selected, but a numerical value input area in which an angle can be arbitrarily specified, a slider bar that can be intuitively specified, and the like are arranged. The angle designation method may be extended.

2212は、地紋パターン(前景パターン、背景パターン)に用いる色を表示、指定するための領域である。2213は、前景パターン、背景パターンの入れ替えを行うためのチェックボックスである。チェックボックスがチェックされていない場合は、複写時に前景パターンが浮かび上がる。一方、チェックされている場合は複写時に背景パターンが浮かび上がる。   Reference numeral 2212 denotes an area for displaying and specifying a color used for the tint block pattern (foreground pattern, background pattern). Reference numeral 2213 denotes a check box for exchanging the foreground pattern and the background pattern. When the check box is not checked, the foreground pattern appears during copying. On the other hand, when checked, a background pattern appears during copying.

2214は、原稿に埋め込んだ地紋パターンを認識させづらくさせるためのカモフラージュ画像パターンを指定するための領域であり、複数のパターンから選択可能である。また、カモフラージュ画像を使用しないという選択肢も提供されている。   Reference numeral 2214 denotes an area for designating a camouflage image pattern for making it difficult to recognize the tint block pattern embedded in the document, and can be selected from a plurality of patterns. An option of not using camouflage images is also provided.

図17は、図15におけるコントラスト設定ボタン2106を押下した際に表示されるダイアログの一例である。地紋プリントでは、前景パターンと背景パターンの面濃度(見た目の濃度)をあわせることで不可視パターンを潜像させるため、2302及び2303に例示するように、前景パターン、背景パターンそれぞれに対する濃度調整をおこなうインタフェースを提供する。なお、濃度調整を行うインタフェースはこのダイアログに示された限りではない。このダイアログでは前景濃度と背景濃度をコントラストとして表現し、特定の基準濃度値に対して「弱く」と「強く」でそれぞれ調整可能なように構成されている。スライダーを移動させることで、特定の基準濃度値から濃度情報を変更することができる。しかしながら、前景と潜像それぞれの濃度値を数値として指定可能であってもよい。   FIG. 17 is an example of a dialog displayed when the contrast setting button 2106 in FIG. 15 is pressed. In the copy-forgery-inhibited pattern print, an invisible pattern is formed as a latent image by matching the surface density (appearance density) of the foreground pattern and the background pattern, and an interface for adjusting the density of the foreground pattern and the background pattern, as exemplified in 2302 and 2303 I will provide a. The interface for density adjustment is not limited to that shown in this dialog. In this dialog, the foreground density and the background density are expressed as contrast, and can be adjusted to “weak” and “strong” with respect to a specific reference density value. By moving the slider, the density information can be changed from a specific reference density value. However, the density values of the foreground and the latent image may be designated as numerical values.

<地紋プリント設定情報のデータ形式>
次に、図16において説明した地紋プリント設定情報に関する付加情報1106及び1304に格納されるデータ形式について図14を用いて説明する。図中符号2001では、図16(a)の2206で指定される、地紋プリントで描画するオブジェクト種(テキスト形式あるいはイメージ)を示す値が格納される。
<Data format of copy-forgery-inhibited pattern print setting information>
Next, the data format stored in the additional information 1106 and 1304 related to the copy-forgery-inhibited pattern print setting information described with reference to FIG. 16 will be described with reference to FIG. Reference numeral 2001 in the figure stores a value indicating the object type (text format or image) drawn by the copy-forgery-inhibited pattern print designated by 2206 in FIG.

2002では、図16(a)の2207から2209、あるいは図16(b)で指定される、2001で指定された描画オブジェクトに対する設定情報が格納される。テキスト選択時は文字列、フォント名、サイズ情報が、イメージ選択時は入力するイメージファイルのロケーションが格納される。なお、図16(a)の2207で指定される文字列において、特殊な文字列を使うことが可能である。これらの文字列を使うことで原本の保証を高めることが可能となる。   In 2002, setting information for the drawing object specified in 2001, which is specified in 2207 to 2209 in FIG. 16A or in FIG. 16B, is stored. When text is selected, a character string, font name, and size information are stored. When an image is selected, the location of an input image file is stored. Note that a special character string can be used in the character string designated by 2207 in FIG. By using these character strings, it is possible to increase the guarantee of the original.

2003は、図16(a)の2210で指定される、原稿データに対して地紋パターンを先に描画するか、後から描画するか(印刷順序)を指定する情報が格納される。2004では、図16(a)の2211で指定される、描画オブジェクトを配置する角度情報が格納される。2005では、図16(a)の2212で指定される、地紋パターン(前景パターン、背景パターン)に使用される色情報が格納される。   Information 2003 designates whether to designate the background pattern to be drawn first or later (printing order) for the document data, which is designated by 2210 in FIG. 16A. In 2004, the angle information for arranging the drawing object specified in 2211 of FIG. 16A is stored. In 2005, color information used for the tint block pattern (foreground pattern, background pattern) specified in 2212 of FIG. 16A is stored.

2006では、図16(a)の2213で指定される、前景パターン、背景パターンの入れ替えを行うかどうかの情報が格納される。2007では、図16(a)の2214で指定される、カモフラージュ画像のパターン付加情報が格納される。2008では、図17の2302で指定される、前景パターンの濃度情報が格納される。2009では、図17の2303で指定される、背景パターンの濃度情報が格納される。   In 2006, information regarding whether or not to replace the foreground pattern and the background pattern specified in 2213 of FIG. 16A is stored. In 2007, the camouflage image pattern additional information specified in 2214 of FIG. 16A is stored. In 2008, foreground pattern density information specified in 2302 of FIG. 17 is stored. In 2009, density information of the background pattern designated by 2303 in FIG. 17 is stored.

<地紋パターンの追加描画処理>
以降、地紋プリントにおける描画処理の流れについて、図18及び図19を用いて説明する。これらの処理は、図6のステップ708における印刷処理において行われる。
<Additional drawing process of tint block pattern>
Hereinafter, the flow of the drawing process in the tint block print will be described with reference to FIGS. These processes are performed in the printing process in step 708 of FIG.

まず、地紋パターン情報の追加描画処理について、図16(a)の2210において「透かし印刷」、すなわち、先に地紋パターンを描画するケースについて、図18のフローチャートを用いて詳細に述べる。   First, regarding the additional drawing process of the tint block pattern information, the case of “watermark printing” in 2210 of FIG. 16A, that is, the case of drawing the tint block pattern first will be described in detail with reference to the flowchart of FIG.

ステップ1901において、デスプーラ305は、図14に示す地紋パターン情報で示される地紋に関する情報に従い、描画を行う。その際、地紋プリントに関する描画については、デスプーラ305は、地紋処理部205をRAM2にロードし、描画処理を行う。この描画処理については、図20を参照して後述する。   In step 1901, the despooler 305 performs drawing in accordance with the information on the background pattern indicated by the background pattern information shown in FIG. At this time, for drawing related to the tint block print, the despooler 305 loads the tint block processing unit 205 into the RAM 2 and performs drawing processing. This drawing process will be described later with reference to FIG.

続いて、以降原稿データに関する描画処理を行う。ステップ1902において、デスプーラ305は、カウンタを初期化する。ステップ1903において、デスプーラ305は、カウンタが、予め設定されている1物理ページあたりの論理ページ数になったかどうかを判定し、論理ページ数と等しくなったらエンドへ進み(処理終了)、等しくなければステップ1904へ進む。   Subsequently, drawing processing relating to document data is performed thereafter. In step 1902, the despooler 305 initializes the counter. In step 1903, the despooler 305 determines whether or not the counter has reached a preset number of logical pages per physical page. If the counter is equal to the number of logical pages, the despooler 305 proceeds to the end (end of processing). Proceed to step 1904.

ステップ1904において、デスプーラ305は、カウンタを1増加させる。ステップ1905において、デスプーラ305は、1ページあたりの論理ページ数及びカウンタをもとに、これから描画する論理ページに対する有効印字領域を計算する。   In step 1904, the despooler 305 increments the counter by one. In step 1905, the despooler 305 calculates the effective print area for the logical page to be drawn from the number of logical pages per page and the counter.

ステップ1906において、デスプーラ305は、図9のような形態で通知された物理ページに関する情報から、カウンタをインデックスとして現在の論理ページ番号を読み取り、該当論理ページを有効印字領域内に収まるように縮小描画する。ただし、Nページ印刷が指定されていない場合にはもちろん縮小の必要はない。次いでデスプーラ305は、ステップ1903の処理へ戻る。   In step 1906, the despooler 305 reads the current logical page number from the information regarding the physical page notified in the form as shown in FIG. To do. However, if N-page printing is not designated, of course, there is no need for reduction. Next, the despooler 305 returns to the processing of step 1903.

次に、図16(a)の2210において「重ね印刷」、すなわち、原稿データを描画した後から地紋パターンを描画するケースについて、図19のフローチャートを用いて詳細に述べる。   Next, the case of “overlay printing” in 2210 of FIG. 16A, that is, the case of drawing a copy-forgery-inhibited pattern after drawing original data will be described in detail with reference to the flowchart of FIG.

ステップ1902において、デスプーラ305は、カウンタを初期化する。ステップ1903において、デスプーラ305は、カウンタが、予め設定されている1物理ページあたりの論理ページ数になったかどうかを判定し、論理ページ数と等しくなったらステップ1908へ進み、等しくなければステップ1904へ進む。   In step 1902, the despooler 305 initializes the counter. In step 1903, the despooler 305 determines whether the counter has reached the preset number of logical pages per physical page. If the counter is equal to the number of logical pages, the process proceeds to step 1908. move on.

ステップ1904において、デスプーラ305は、カウンタを1増加させる。ステップ1905において、デスプーラ305は、1ページあたりの論理ページ数及びカウンタをもとに、これから描画する論理ページに対する有効印字領域を計算する。   In step 1904, the despooler 305 increments the counter by one. In step 1905, the despooler 305 calculates the effective print area for the logical page to be drawn from the number of logical pages per page and the counter.

ステップ1906において、デスプーラ305は、図9のような形態で通知された物理ページに関する情報から、カウンタをインデックスとして現在の論理ページ番号を読み取り、該当論理ページを有効印字領域内に収まるように縮小描画する。ただし、Nページ印刷が指定されていない場合にはもちろん縮小の必要はない。次いでデスプーラ305は、ステップ1903の処理へ戻る。   In step 1906, the despooler 305 reads the current logical page number from the information about the physical page notified in the form as shown in FIG. 9 using the counter as an index, and draws the reduced logical page so that it falls within the effective print area. To do. However, if N-page printing is not designated, of course, there is no need for reduction. Next, the despooler 305 returns to the processing of step 1903.

デスプーラ305は、1物理ページとして所定数の論理ページを展開し終えたなら、ステップ1908に進む。ステップ1908では、デスプーラ305は、アプリケーションから取得している物理ページの有効印字領域に対して、図14に示す地紋パターン情報で示される地紋に関する情報に従い、描画を行う。その際、地紋プリントに関する描画については、デスプーラ305は、地紋処理部205をRAM2にロードし、描画処理を行う。この描画処理については、図20を参照して以下説明する。   When the despooler 305 has expanded a predetermined number of logical pages as one physical page, the despooler 305 proceeds to step 1908. In step 1908, the despooler 305 performs drawing on the effective print area of the physical page acquired from the application according to the information on the background pattern indicated by the background pattern information shown in FIG. At this time, for drawing related to the tint block print, the despooler 305 loads the tint block processing unit 205 into the RAM 2 and performs drawing processing. This drawing process will be described below with reference to FIG.

図20は本発明の一実施形態に係る、図18に示したS1901の地紋パターン(地紋画像)描画処理及び図19に示したS1908の地紋パターン描画部処理の詳細を示すフローチャートである。以下、図20を参照して、地紋パターン描画処理を説明する。   FIG. 20 is a flowchart showing details of the tint block pattern (ground pattern image) drawing process of S1901 shown in FIG. 18 and the tint block pattern drawing unit process of S1908 shown in FIG. 19 according to one embodiment of the present invention. Hereinafter, the tint block pattern drawing process will be described with reference to FIG.

初めにユーザインターフェース等を介して、ステップS2701で地紋パターン描画処理が開始される。次に、ステップS2702で、地紋画像もしくはその背景部画像の基となる画像(以下、入力背景画像)、背景閾値パターン、前景閾値パターン、上述した前景背景領域指定画像、カモフラージュ領域指定画像、地紋適用/非適用領域情報を読み込む。さらに、ステップS2703で、地紋画像を生成する際の初期画素の位置を決定する。例えば、入力背景画像全体に対して左上から右下までラスター走査順に画像処理を行い地紋画像に変更する場合、左上を初期位置とする。   First, a tint block pattern drawing process is started in step S2701 via a user interface or the like. Next, in step S2702, a background pattern image or an image that is a basis of the background image (hereinafter referred to as an input background image), a background threshold pattern, a foreground threshold pattern, the above-described foreground / background area specifying image, a camouflage area specifying image, and a tint block application / Read non-application area information. Further, in step S2703, the position of the initial pixel when generating the copy-forgery-inhibited pattern image is determined. For example, when image processing is performed on the entire input background image from the upper left to the lower right in order of raster scanning to change to a tint block image, the upper left is set as the initial position.

また、ステップS2703では、上記読み込んだ地紋適用/非適用領域情報に基づいて、地紋適用/非適用領域画像を生成する。この地紋適用/非適用領域画像は、例えば、地紋適用領域を1、非適用領域を0で表現した用紙(物理ページ)一面の2値ビットマップとして表すことができる。この地紋適用/非適用領域画像は、例えば、用紙全面が適用領域(全画素が1)であるビットマップを生成し、次に、地紋画像非適用領域を上記地紋適用/非適用領域情報から取得しその領域を0で描画することによって作成するか、もしくは、全面が非適用領域(全画素が0)であるビットマップを生成し、それに対して、地紋適用領域を1で描画することによって作成することができる。   In step S2703, based on the read ground pattern application / non-application area information, a ground pattern application / non-application area image is generated. This copy-forgery-inhibited pattern application / non-application area image can be represented as, for example, a binary bitmap on one sheet of paper (physical page) in which the copy-forgery-inhibited pattern application area is 1 and the non-application area is 0. For this copy-forgery-inhibited pattern application / non-application region image, for example, a bitmap in which the entire paper surface is the application region (all pixels are 1) is generated, and then the copy-forgery-inhibited pattern image non-application region is acquired from the above-mentioned background pattern application / non-application region information Then, it is created by drawing the area with 0, or by creating a bitmap whose entire surface is a non-applied area (all pixels are 0) and drawing the background pattern applied area with 1. can do.

次にS2704では、地紋処理部205は、背景閾値パターン、前景閾値パターン、基礎画像、カモフラージュ画像を、地紋画像領域の左上からタイル上に配置する処理を以下の式(1)に基づく計算によって実行する。この計算によって、当該画素位置に印刷時のドットに対応する画素値を書き込むか否かを判定する。このとき画素値は入力された色情報に対応する。なお、ここで、背景閾値パターンおよび前景閾値パターンは、ドットの書き込み/非書き込みに対応する「1」と「0」からなる画像データであり、これらの画像は前景(潜像)画像及び背景画像を作成するのに適したそれぞれのディザマトリクスによって2値化されたデータである。
nWriteDotOn=nCamouflage×
(nSmallDotOn׬nHiddenMark+nLargeDotOn×nHiddenMark) 式(1)
式の構成要素を以下に示す。
nComouflage:カモフラージュ画像において、対象画素がカモフラージュ模様を構成する画素であれば0、そうでなければ1。
nSmallDotOn:背景閾値パターンの画素値が黒であれば1、白であれば0(色はこれに限定されない)
nLargeDotOn:前景閾値パターンの画素値が黒であれば1、白であれば0(色はこれに限定されない)
nHiddenMark:基礎画像において、対象画素が潜像画像を構成する画素であれば1、背景画像を構成する画素であれば0。
¬nHiddenMark:nHiddenMarkの否定。前景部で0、背景部で1となる。
In step S2704, the tint block processing unit 205 executes a process of arranging the background threshold pattern, the foreground threshold pattern, the basic image, and the camouflage image on the tile from the upper left of the tint block image area by calculation based on the following equation (1). To do. By this calculation, it is determined whether or not the pixel value corresponding to the dot at the time of printing is written in the pixel position. At this time, the pixel value corresponds to the input color information. Here, the background threshold pattern and the foreground threshold pattern are image data composed of “1” and “0” corresponding to dot writing / non-writing, and these images are foreground (latent image) images and background images. The data is binarized by each dither matrix suitable for creating the.
nWriteDotOn = nCamouflage ×
(NSmallDotOn x nHiddenMark + nLargeDotOn x nHiddenMark) Formula (1)
The components of the formula are shown below.
nComouflage: 0 if the target pixel is a pixel constituting a camouflage pattern in the camouflage image, 1 otherwise.
nSmallDotOn: 1 if the pixel value of the background threshold pattern is black, 0 if white (color is not limited to this)
nLargeDotOn: 1 if the pixel value of the foreground threshold pattern is black, 0 if white (color is not limited to this)
nHiddenMark: 1 if the target pixel is a pixel constituting the latent image in the basic image, and 0 if the pixel constituting the background image.
¬nHiddenMark: Denial of nHiddenMark. 0 in the foreground part and 1 in the background part.

なお、各処理対象画素で式(1)の全ての要素を用いて計算する必要は無い。不必要な計算を省くことで処理の高速化を図ることができる。
例えば、nHiddenMark=1ならば¬nHiddenMark=0、nHiddenMark=0ならば¬nHiddenmark=1となる。従って、nHiddenMark=1ならば以下の式(2)の値をnLargeDotOnの値とし、nHiddenMark=0ならば、式(2)の値をnSmallDotOnの値とするとよい。
また、nCamouflageの値は式(1)に示したように、全体にかかる積算であるので、nCamouflage=0であれば、nWriteDotOn=0となる。従って、nCamouflage=0の場合は以下の式(2)の計算を省略できる。
(nSmallDotOn׬nHiddenMark+nLargeDotOn×nHiddenMark) 式(2)
また、生成される地紋画像では、背景閾値パターン、前景閾値パターン、基礎画像、カモフラージュ画像の縦横の長さの最小公倍数の大きさの画像が繰り返しの最小単位となる為、地紋処理部205では繰り返しの最小単位である地紋画像の一部分のみを生成し、その地紋画像の一部分を地紋画像領域の大きさにタイル状に繰り返し並べると地紋画像生成にかかる処理時間を短縮できる。
Note that it is not necessary to calculate using all the elements of Expression (1) for each processing target pixel. The processing can be speeded up by eliminating unnecessary calculations.
For example, if nHiddenMark = 1, ¬nHiddenMark = 0, and if nHiddenMark = 0, ¬nHiddenmark = 1. Therefore, if nHiddenMark = 1, the value of the following equation (2) may be the value of nLargeDotOn, and if nHiddenMark = 0, the value of equation (2) may be the value of nSmallDotOn.
Further, since the value of nCamouflage is an integration over the whole as shown in Expression (1), if nCamouflage = 0, nWriteDotOn = 0. Therefore, when nCamouflage = 0, the calculation of the following formula (2) can be omitted.
(NSmallDotOn x nHiddenMark + nLargeDotOn x nHiddenMark) Equation (2)
Further, in the generated tint block image, the background threshold pattern, the foreground threshold pattern, the basic image, and the image of the least common multiple of the vertical and horizontal lengths of the camouflage image are the smallest unit of repetition, and therefore the tint block processing unit 205 repeatedly If only a part of the tint block image, which is the smallest unit of the pattern, is generated, and a part of the tint block image is repeatedly arranged in a tile shape in the size of the tint block image area, the processing time required to generate the tint block image can be shortened.

次に、ステップS2705では、ステップS2704の計算結果(nWriteDotOnの値)をCPU1が判定する。即ち、nWriteDotOn=1ならばステップS2706に進み、nWriteDotOn=0ならばステップS2707に進む。   Next, in step S2705, the CPU 1 determines the calculation result (value of nWriteDotOn) in step S2704. That is, if nWriteDotOn = 1, the process proceeds to step S2706, and if nWriteDotOn = 0, the process proceeds to step S2707.

ステップS2706では、印刷時のドットに対応する画素値を書き込む処理を行う。ここで、画素値の値は、地紋画像の色によって変えることができる。黒色の地紋を作成したい場合、入力背景画像の処理対象画素を黒に設定する。その他、プリンタのトナーあるいはインクの色に合わせ、シアン、マゼンダ、イエローに設定することにより、カラーの地紋画像を作成することもできる。さらに、背景画像が1画素あたり1〜数ビットの画像データである場合には、インデックスカラーを用いて画素値を表現することができる。インデックスカラーは、画像データの表現方法で、対象とするカラー画像で頻繁に出現する色情報を目次に設定し(例えばインデックス0は白、インデックス1はシアンなど)、各画素の値は色情報を記載した目次の番号で表現するものである(例えば、1番目の画素値はインデックス1の値、2番目の画素値はインデックス2の値、・・・と表現する。)
ステップS2707では、入力背景画像の処理対象領域の全画素が処理されたか否かを判定する。入力背景画像の処理対象領域の全画素が処理されていない場合はステップS2708に進み、未処理の画素を選択し、再びステップS2704〜S2706の処理を実行する。
In step S2706, a process of writing a pixel value corresponding to a dot at the time of printing is performed. Here, the value of the pixel value can be changed according to the color of the tint block image. When it is desired to create a black background pattern, the processing target pixel of the input background image is set to black. In addition, a color copy-forgery-inhibited pattern image can also be created by setting cyan, magenta, and yellow according to the color of the toner or ink of the printer. Further, when the background image is image data of 1 to several bits per pixel, the pixel value can be expressed using the index color. Index color is a method of expressing image data, and color information that frequently appears in the target color image is set in the table of contents (for example, index 0 is white, index 1 is cyan, etc.), and the value of each pixel is color information. (The first pixel value is expressed as the value of index 1, the second pixel value is expressed as the value of index 2,...)
In step S2707, it is determined whether all the pixels in the processing target area of the input background image have been processed. If all the pixels in the processing target area of the input background image have not been processed, the process proceeds to step S2708, an unprocessed pixel is selected, and the processes in steps S2704 to S2706 are executed again.

ステップS2750では、ステップS2703で作成した、地紋適用/非適用領域画像とステップS2704〜S2708の処理で作成した地紋画像との論理積(AND)を全画素に対してとることにより、地紋画像の適用領域または非適用領域を考慮に入れた地紋パターンを生成する。すなわち、物理ページ(1ページの印刷用紙)において地紋画像の非適用領域として指定された領域では、本来その領域に地紋画像が印刷される場合でも、その部分では地紋画像が印刷されないことになる。   In step S2750, the application of the copy-forgery-inhibited pattern image is performed by taking the logical product (AND) of the copy-forgery-inhibited pattern application / non-applied region image created in step S2703 and the copy-forgery-inhibited pattern image created in steps S2704 to S2708 for all pixels. A tint block pattern is generated taking into account areas or non-application areas. That is, in the area designated as the non-application area of the copy-forgery-inhibited pattern image on the physical page (one page of printing paper), even when the copy-forgery-inhibited pattern image is originally printed in that area, the copy-forgery-inhibited pattern image is not printed in that area.

以上のように、入力背景画像に対して上述の各処理が施されることにより地紋画像を生成することができる。なお、これだけの処理では、前景背景領域指定画像の前景と背景の切り替わる部分にドットの固まりが生じ前景の概形が目立ち偽造防止地紋の効果が薄れるデメリットが生じる場合がある。そこで、前景背景領域指定画像の前景と背景の切り替わりでドットの固まりが生じないようにするバウンダリ処理もあわせて施してもよい。   As described above, the background pattern image can be generated by performing the above-described processes on the input background image. Note that this processing may cause a disadvantage that the foreground / background region designation image has a dot cluster at the portion where the foreground and the background are switched and the outline of the foreground is conspicuous and the effect of the anti-counterfeiting tint is reduced. Therefore, boundary processing may be performed so as to prevent dot clusters from being caused by switching between the foreground and the background of the foreground / background region designation image.

地紋画像は、背景画像の面濃度と前景画像(潜像画像)の面濃度が近づくように設定するべきであることは上述した通りである。但し、前景画像はドットが大きいために、画像形成は安定的であるが、背景画像はドットが小さいため、前景画像に比べて不安定となりやすい。また、上述したように、プリンタのキャリブレーションによっても地紋画像における出力の濃度は変更されてしまう。   As described above, the background pattern image should be set so that the surface density of the background image and the surface density of the foreground image (latent image) should be close to each other. However, since the foreground image has large dots, the image formation is stable, but the background image has small dots and is likely to be unstable compared to the foreground image. Further, as described above, the output density in the tint block image is also changed by the calibration of the printer.

以下の説明においては、説明を簡略化するために、前景画像の濃度値を固定とし、背画像の濃度値を調整することで、前景画像と背景画像の面濃度(見た目の濃度)が近似するための処理を記載する。   In the following description, in order to simplify the description, the density value of the foreground image is fixed, and the density value of the background image is adjusted by adjusting the density value of the back image. Describe the process.

しかしながら、背景画像の濃度値を固定とし、前景画像の濃度値を調整することで、前景画像と背景画像の面濃度が近似する方法も本発明は含むものである。   However, the present invention includes a method in which the surface density of the foreground image and the background image are approximated by fixing the density value of the background image and adjusting the density value of the foreground image.

また、背景画像と前景画像双方の濃度値をそれぞれ調整することも本発明は含むものである。   The present invention also includes adjusting the density values of both the background image and the foreground image.

図23を用いて、地紋処理部205における背景画像の濃度値を決定する処理を説明する。まず、前提として、地紋処理部205には、図17で上述したダイアログにおいて、前景画像(潜像画像)の濃度値と背景画像の濃度値がそれぞれ指定され保持されているものとする。これらの濃度値は特定の段階におけるプリンタの出力特性に対応して最適化された濃度であるものとする。設定された濃度値を用いて地紋画像を生成してプリンタに送信しても、プリンタの出力特性が変動することにより、実際に出力される地紋画像の面濃度は変化することになる。そのため、プリンタの出力特性変動を取得し、その変動に影響されないよう、地紋画像の濃度値を調整する処理手順を以下に説明する。   Processing for determining the density value of the background image in the tint block processing unit 205 will be described with reference to FIG. First, as a premise, it is assumed that the density value of the foreground image (latent image) and the density value of the background image are designated and held in the tint block processing unit 205 in the dialog described above with reference to FIG. It is assumed that these density values are optimized in accordance with the output characteristics of the printer at a specific stage. Even if a copy-forgery-inhibited pattern image is generated using the set density value and transmitted to the printer, the surface density of the copy-forgery-inhibited pattern image that is actually output changes as the output characteristics of the printer fluctuate. Therefore, a processing procedure for acquiring the output characteristic variation of the printer and adjusting the density value of the tint block image so as not to be affected by the variation will be described below.

図23において、S4101で、地紋処理部205は、背景画像の濃度値を決定する処理を開始する。S4102では、地紋処理部205は、プリンタ1500との双方向通信によりプリンタ1500の出力特性を示すデータ(以後、キャリブレーションデータと称する)を取得済みかどうか判定する。キャリブレーションデータとは、現在のプリンタにおける濃度特性を示すデータである。プリンタでは、一定タイミングで出力部の濃度特性を検出する処理を行っている。検出した濃度特性が設計時の濃度特性と大きく変化していることを検出した場合は、その変化を元の状態に戻すような処理も行われる。こうした補正はγ補正などと称されることもある。本実施形態では、プリンタ内部で行われる濃度特性の検出データを利用し、その検出データをキャリブレーションデータとしてコンピュータに送信することで、コンピュータに現在のプリンタの濃度特性の状態を提供し、コンピュータにおいて設定されている地紋画像の濃度値の変更処理を行うこととする。なお、送信するキャリブレーションデータの形式などはいかなるものであってもよい。例えば、入力濃度値(階調値)と出力濃度値の対応関係を示す数値データであればよい。
地紋処理部205は、キャリブレーションデータを取得済みの場合は、S4104の処理へ進む。まだ取得していない場合、地紋処理部205は、S4103の処理へ進む。
In FIG. 23, in S4101, the tint block processing unit 205 starts a process of determining the density value of the background image. In step S4102, the tint block processing unit 205 determines whether data indicating the output characteristics of the printer 1500 (hereinafter referred to as calibration data) has been acquired through bidirectional communication with the printer 1500. The calibration data is data indicating density characteristics in the current printer. The printer performs processing for detecting the density characteristics of the output unit at a fixed timing. When it is detected that the detected density characteristic is greatly changed from the density characteristic at the time of design, processing for returning the change to the original state is also performed. Such correction is sometimes referred to as γ correction. In this embodiment, density data detected in the printer is used, and the detected data is transmitted to the computer as calibration data, thereby providing the computer with the current density characteristics of the printer. It is assumed that the density value of the set tint block image is changed. The format of calibration data to be transmitted may be any format. For example, it may be numerical data indicating the correspondence between the input density value (tone value) and the output density value.
If the calibration pattern data has been acquired, the tint block processing unit 205 proceeds to the process of S4104. If it has not been acquired yet, the tint block processing unit 205 proceeds to the process of S4103.

S4103では、キャリブレーションデータを取得する処理が実行される。キャリブレーションデータの取得処理は、ある一定タイミング毎、またはジョブ出力開始前に実行される。もちろん、本発明はキャリブレーションデータの取得タイミングによって限定されるものではない。キャリブレーション情報を取得するためのホストコンピュータとプリンタ間の双方向通信については、特開2000−155653号公報などに記載されている手法などが存在し当業者には周知であるので、詳細な説明は省く。   In S4103, processing for acquiring calibration data is executed. The calibration data acquisition process is executed at certain fixed timings or before starting job output. Of course, the present invention is not limited by the calibration data acquisition timing. As for bidirectional communication between the host computer and the printer for acquiring the calibration information, there is a method described in Japanese Patent Laid-Open No. 2000-155653 and the like, which is well known to those skilled in the art. Will be omitted.

S4104では、地紋処理部205は、プリンタ1500の出力特性であるキャリブレーションデータから地紋の背景画像の濃度を算出する。例えば、プリンタ1500が工場出荷時などのイニシャル値より薄く出力される特性を示すキャリブレーションデータが送信されてきたならば、地紋の背景画像の濃度値は、イニシャル値に対応して決定された背景画像の濃度値よりも高くなるように調整する。また、プリンタ1500が工場出荷時などのイニシャル値より濃く出力される特性を示すキャリブレーションデータが送信されてきたならば、地紋の背景画像の濃度値は、イニシャル値に対応して決定された背景画像の濃度値よりも低くなるように調整される。以上のように、キャリブレーション情報として取得された出力特性に相反するように背景画像の濃度値が調整される。この処理によって、ユーザによるオペレートを必要としない自動的な背景画像濃度調整が可能となる。S4105で背景画像の濃度値を決定する処理は終了する。   In step S <b> 4104, the background pattern processing unit 205 calculates the density of the background image of the background pattern from the calibration data that is the output characteristic of the printer 1500. For example, if calibration data indicating a characteristic that the printer 1500 is output lighter than the initial value at the time of shipment from the factory is transmitted, the density value of the background image of the background pattern is determined based on the initial value. Adjust so that it is higher than the density value of the image. In addition, if calibration data indicating a characteristic that the printer 1500 is output darker than the initial value at the time of factory shipment or the like has been transmitted, the density value of the background image of the background pattern is determined based on the initial value. Adjustment is made to be lower than the density value of the image. As described above, the density value of the background image is adjusted so as to conflict with the output characteristics acquired as calibration information. This process enables automatic background image density adjustment that does not require user operation. In step S4105, the process of determining the density value of the background image ends.

なお、プリンタの濃度特性の変化は、階調全域に渡って同一の変化率となるとは限らない。例えば、階調レベルが0から255までの256段階を有する階調データを濃度データに変換して出力するプリンタの場合、低濃度となる階調レベルと、中濃度となる階調レベルと、高濃度となる階調レベルとでそれぞれ変化の度合いは異なることが多い。そのため、プリンタでは、階調全域に渡って濃度特性の変化度合いを検出し、検出した結果から補正が必要な階調域のみ補正を行うことになる。   Note that the change in the density characteristic of the printer does not necessarily have the same rate of change over the entire gradation. For example, in the case of a printer that converts gradation data having 256 gradation levels from 0 to 255 into density data and outputs it, a gradation level that is low density, a gradation level that is medium density, In many cases, the degree of change differs depending on the gradation level as the density. Therefore, the printer detects the degree of change in density characteristics over the entire gradation range, and corrects only the gradation range that needs to be corrected based on the detected result.

しかしながら、地紋画像の場合、潜像画像の濃度も背景画像の濃度も原則的には低濃度である。そこで、本実施形態におけるキャリブレーションデータは、地紋画像における濃度域の濃度特性データを取得することとする。このようにすることで、通信時間や通信量を削減することが可能となる。   However, in the case of a tint block image, both the density of the latent image and the density of the background image are low in principle. Therefore, the calibration data in the present embodiment is acquired as density characteristic data of the density area in the tint block image. By doing in this way, it becomes possible to reduce communication time and communication amount.

[実施形態2]
本実施形態2におけるプリンタ制御システムの構成及び印刷関連のソフトウエアモジュールの構成は、上述した実施形態1と同様である。本実施形態2は、実施形態1における地紋画像の追加描画処理において、上述の図23の処理に替えて、以下のように図24の処理を適用している。
[Embodiment 2]
The configuration of the printer control system and the configuration of the printing-related software module in the second embodiment are the same as those in the first embodiment. In the second embodiment, in the tint block image additional drawing process in the first embodiment, the process of FIG. 24 is applied as follows instead of the process of FIG. 23 described above.

本実施形態では、以下で説明するように、濃度変動が一定範囲内を超えるほど大きく変動した場合には、ユーザに対して目視による調整、即ちサンプルプリントを出力して調整することを促す処理を実施する。   In the present embodiment, as will be described below, when the density fluctuation greatly fluctuates beyond a certain range, a process for prompting the user to visually adjust, that is, to output the sample print and make adjustments is performed. carry out.

S5101から地紋処理部205は、背景パターンの濃度値を決定する処理を開始する。S5101からS5103は上述した実施形態1のS4101とS24103における処理と同一であるため説明を省略する。   From step S5101, the tint block processing unit 205 starts a process of determining the density value of the background pattern. Since S5101 to S5103 are the same as the processes in S4101 and S24103 of the first embodiment described above, description thereof will be omitted.

S5104では、地紋処理部205は、S5103で得た新しいキャリブレーションデータと予め保存済の古いキャリブレーションデータとを比較する。比較の際、地紋処理部205のプログラム中では事前に閾値が決定されており、地紋処理部205は、新旧キャリブレーションデータの差分の絶対値がその閾値を越えるかどうか判定する。地紋処理部205は、その差分の絶対値が閾値を越える場合(または、予め保存済の古いキャリブレーションデータがない場合)、処理をS5105へ進める。逆に地紋処理部205は、その差分の絶対値が閾値を越えない場合、処理をS5107へ進める。ここで、新旧キャリブレーションデータの差分の絶対値が閾値を越えるということは、プリンタの出力特性が自動調整で補正可能な範囲を超えて変動していることを意味する。   In step S5104, the tint block processing unit 205 compares the new calibration data obtained in step S5103 with the old calibration data stored in advance. At the time of comparison, a threshold value is determined in advance in the program of the tint block processing unit 205, and the tint block processing unit 205 determines whether or not the absolute value of the difference between the old and new calibration data exceeds the threshold value. If the absolute value of the difference exceeds the threshold value (or if there is no old calibration data stored in advance), the tint block processing unit 205 advances the process to step S5105. Conversely, if the absolute value of the difference does not exceed the threshold value, the tint block processing unit 205 advances the process to step S5107. Here, the fact that the absolute value of the difference between the old and new calibration data exceeds the threshold means that the output characteristics of the printer fluctuate beyond the range that can be corrected by automatic adjustment.

S5105で、地紋処理部205は、S5103で得た新しいキャリブレーションデータを保存する。つまり、地紋処理部205は、古いキャリブレーションデータを更新する。S5106では、地紋処理部205は、ユーザに地紋画像の濃度調整を促すユーザインタフェースを表示する。本実施形態では、図17のダイアログボックスを表示して、ユーザに再調整を促す。   In step S5105, the tint block processing unit 205 stores the new calibration data obtained in step S5103. That is, the tint block processing unit 205 updates old calibration data. In step S5106, the background pattern processing unit 205 displays a user interface that prompts the user to adjust the density of the background pattern image. In the present embodiment, the dialog box of FIG. 17 is displayed to prompt the user to readjust.

S5107では、地紋処理部205は、図17の方法で設定済みの地紋の背景画像及び前景画像の濃度を取得する。S5108で背景画像及び前景画像の濃度値を決定する処理は終了する。   In step S5107, the background pattern processing unit 205 acquires the density of the background image and foreground image of the background pattern that has been set by the method of FIG. In step S5108, the processing for determining the density values of the background image and the foreground image ends.

[他の実施形態]
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェース機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(複写機、プリンタ、ファクシミリ装置など)に適用してもよい。
[Other Embodiments]
Note that the present invention can be applied to a system (copier, printer, facsimile machine, etc.) consisting of a single device even if it is applied to a system consisting of a plurality of devices (eg, host computer, interface device, reader, printer, etc.). You may apply.

また、本発明の目的は、前述した実施形態の機能を実現する、各図のフローチャートの手順を実現するプログラムコードを記憶した記憶媒体を、システムあるいは装置のコンピュータ(またはCPUやMPU(micro processing unit))が記憶媒体に格納されたプログラムコードを読出し実行することによっても達成される。   Another object of the present invention is to store a storage medium storing program codes for realizing the functions of the above-described embodiments and realizing the procedures of the flowcharts in the drawings, as a system or apparatus computer (or CPU or MPU (micro processing unit). )) Is also achieved by reading and executing the program code stored in the storage medium.

この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

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

また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOS(オペレーティングシステム)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も本発明を構成することになる。   Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) operating on the computer based on the instruction of the program code. The present invention is also configured when part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.

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

[実施形態の効果]
以上説明したように、本実施形態によれば、プリンタと接続されたパーソナルコンピュータ等の印刷制御装置からなる印刷システムであって、印刷制御装置は、プリンタに送信される印刷データを生成する前に、一旦、最終的にプリンタに送付する印刷データとは異なる形式のデータ形式(いわゆる中間コード)での一時保存を行うスプール手段と、この中間コード形式で一時保存されたデータから改めて最終的にプリンタに送付する印刷データを生成するデスプール手段と、プリンタ制御コマンドを生成する手段とを備える印刷システムにおいて、印刷制御装置は、プリンタとの双方向通信によってプリンタの出力特性を得る手段と、その出力特性を元に地紋ドットの濃度特性を自動調整する手段とをさらに備える。
[Effect of the embodiment]
As described above, according to the present embodiment, a printing system including a print control device such as a personal computer connected to a printer, the print control device before generating print data to be transmitted to the printer. The spool means for temporarily storing data in a format different from the print data finally sent to the printer (so-called intermediate code), and finally reprinting the data temporarily stored in this intermediate code format In a printing system comprising despooling means for generating print data to be sent to the printer and means for generating a printer control command, the print control device includes means for obtaining output characteristics of the printer by bidirectional communication with the printer, and output characteristics thereof And a means for automatically adjusting the density characteristics of the tint block dots based on the above.

これにより、印刷システムは、ユーザのオペレーションを介さずに地紋プリントのドットの濃度特性を自動調整することによって濃度特性を一定に保ち、地紋プリントを正常に実行できる。   As a result, the printing system can perform the tint block printing normally by keeping the density characteristic constant by automatically adjusting the density characteristic of the dots of the tint block print without any user operation.

本発明を適用できる実施形態の印刷制御装置の構成を説明するブロック図である。It is a block diagram explaining the structure of the printing control apparatus of embodiment which can apply this invention. 本発明を適用できる実施形態のプリンタが接続されたホストコンピュータの典型的なプリントシステムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a typical print system of a host computer to which a printer according to an embodiment to which the present invention can be applied is connected. 本発明を適用できる実施形態のアプリケーションからの印刷命令をプリンタ制御コマンドに変換する前に、一旦スプールファイルにスプールするプリントシステムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a printing system that temporarily spools a print command from an application according to an embodiment to which the present invention can be applied to a printer control command. 本発明を適用できる実施形態のスプーラにおける印刷データのスプールについて示したフローチャートである。6 is a flowchart illustrating spooling of print data in a spooler according to an embodiment to which the present invention can be applied. 本発明を適用できる実施形態のスプールファイルマネージャにおける印刷制御及び物理ページ番号の決定について示したフローチャートである。6 is a flowchart illustrating print control and determination of a physical page number in a spool file manager according to an embodiment to which the present invention can be applied. 本発明を適用できる実施形態のデスプーラにおける処理を示したフローチャートである。It is the flowchart which showed the process in the despooler of embodiment which can apply this invention. 本発明を適用できる実施形態の印刷設定入力ダイアログの一例を示した図である。It is the figure which showed an example of the print setting input dialog of embodiment which can apply this invention. 本発明を適用できる実施形態の印刷ジョブの出力先についての設定画面の一例を示した図である。FIG. 5 is a diagram illustrating an example of a setting screen for an output destination of a print job according to an embodiment to which the present invention can be applied. 本発明を適用できる実施形態のスプールファイルマネージャからデスプーラに対して物理ページの印刷要求を行う際に渡すデータ形式の一例を示した図である。FIG. 6 is a diagram illustrating an example of a data format that is passed when a spool page manager according to an embodiment to which the present invention is applicable makes a physical page print request to a despooler. 本発明を適用できる実施形態の図9のフィールド1002に図示されたジョブ設定情報の一例である。10 is an example of job setting information illustrated in a field 1002 of FIG. 9 according to an embodiment to which the present invention can be applied. スプールファイルマネージャからデスプーラに対して物理ページの印刷要求を行う際に渡すデータ形式の一例を示した図である。FIG. 5 is a diagram illustrating an example of a data format that is passed when a spool page manager issues a physical page print request to a despooler. 本発明を適用できる実施形態の図11におけるフィールド1202の物理ページ設定情報の例である。12 is an example of physical page setting information in a field 1202 in FIG. 11 according to an embodiment to which the present invention can be applied. 本発明を適用できる実施形態のスプールファイルマネージャからデスプーラに対して物理ページの印刷要求を行う際に渡すデータ形式の一例を示した図である。FIG. 6 is a diagram illustrating an example of a data format that is passed when a spool page manager according to an embodiment to which the present invention is applicable makes a physical page print request to a despooler. 本発明を適用できる実施形態の地紋プリントに関する設定情報を格納するデータ形式の一例である。It is an example of the data format which stores the setting information regarding the copy-forgery-inhibited pattern print of embodiment which can apply this invention. 本発明を適用できる実施形態の地紋プリント機能の設定画面の一例である。It is an example of a setting screen for a tint block print function according to an embodiment to which the present invention can be applied. 本発明を適用できる実施形態の地紋プリントの個々の詳細設定を編集するためのダイアログの一例である。It is an example of the dialog for editing each detailed setting of the copy-forgery-inhibited pattern print of embodiment which can apply this invention. 本発明を適用できる実施形態の図15におけるコントラスト設定ボタンを押下した際に表示されるダイアログの一例である。16 is an example of a dialog displayed when a contrast setting button in FIG. 15 of the embodiment to which the present invention is applicable is pressed. 本発明を適用できる実施形態の地紋パターンの描画処理を示すフローチャートである。It is a flowchart which shows the drawing process of the tint block pattern of embodiment which can apply this invention. 本発明を適用できる実施形態の地紋パターンの描画処理を示すフローチャートである。It is a flowchart which shows the drawing process of the tint block pattern of embodiment which can apply this invention. 本発明を適用できる実施形態の地紋パターンの描画処理を示すフローチャートである。It is a flowchart which shows the drawing process of the tint block pattern of embodiment which can apply this invention. 従来の偽造牽制地紋の画像のふたつの領域を示した図である。It is the figure which showed the two area | regions of the image of the conventional forgery check pattern. 従来の偽造牽制地紋の顕像を示した図である。It is the figure which showed the conventional image of the forgery check ground pattern. 本発明を適用できる実施形態の背景パターンの濃度値決定の処理を示すフローチャートである。It is a flowchart which shows the process of density value determination of the background pattern of embodiment which can apply this invention. 本発明を適用できる実施形態の背景パターン及び前景パターンの濃度値決定の処理を示すフローチャートである。It is a flowchart which shows the density | concentration value determination process of the background pattern and foreground pattern of embodiment which can apply this invention.

符号の説明Explanation of symbols

201 アプリケーション
202 グラフィックエンジン
203 プリンタドライバ
204 システムスプーラ
205 地紋処理部
301 ディスパッチャ
302 スプーラ
303 スプールファイル
304 スプールファイルマネージャ
305 出スプーラ
306 プレビューア
1500 プリンタ
3000 ホストコンピュータ
201 Application 202 Graphic Engine 203 Printer Driver 204 System Spooler 205 Background Pattern Processing Unit 301 Dispatcher 302 Spooler 303 Spool File 304 Spool File Manager 305 Output Spooler 306 Previewer 1500 Printer 3000 Host Computer

Claims (11)

印刷装置と通信可能であり、地紋画像データを生成することが可能な印刷制御装置であって、
前記印刷装置から該印刷装置の出力濃度特性の情報を取得する情報取得手段と、
前記情報取得手段によって取得した前記出力濃度特性の情報に基づいて、前記地紋画像データの濃度値を調整する調整手段と
を備えたことを特徴とする印刷制御装置。
A printing control apparatus capable of communicating with a printing apparatus and generating copy-forgery-inhibited pattern image data,
Information acquisition means for acquiring information of output density characteristics of the printing apparatus from the printing apparatus;
A printing control apparatus comprising: an adjustment unit that adjusts a density value of the copy-forgery-inhibited pattern image data based on the output density characteristic information acquired by the information acquisition unit.
前記情報取得手段は、前記印刷装置の出力濃度特性のうち、前記地紋画像の生成で利用される濃度域における出力濃度特性の情報を取得することを特徴とする請求項1に記載に印刷制御装置。   2. The print control apparatus according to claim 1, wherein the information acquisition unit acquires information on an output density characteristic in a density range used for generation of the copy-forgery-inhibited pattern image among output density characteristics of the printing apparatus. . 前記調整手段は、前記地紋画像データの背景画像の濃度値を調整することを特徴とする請求項1に記載の印刷制御装置。   The print control apparatus according to claim 1, wherein the adjustment unit adjusts a density value of a background image of the copy-forgery-inhibited pattern image data. 前記調整手段は、前記地紋画像データの前景画像の濃度値をさらに調整することを特徴とする請求項2に記載の印刷制御装置。   The print control apparatus according to claim 2, wherein the adjustment unit further adjusts a density value of a foreground image of the copy-forgery-inhibited pattern image data. 前記情報取得手段で取得した出力濃度特性の情報を保持する保持手段と、
前記保持手段に保持された出力濃度特性の情報と、新たに取得した出力濃度特性の情報とを比較し、出力濃度特性の変動状態を判定する比較判定手段と、
前記比較判定手段による判定の結果、前記出力濃度特性の変動状態が所定の変動範囲を超えていると判断した場合、ユーザに対して濃度調整を促す通知を行う制御手段と
をさらに備えたことを特徴とする請求項1乃至4のいずれか1項に記載の印刷制御装置。
Holding means for holding information on the output density characteristic acquired by the information acquisition means;
Comparison determination means for comparing the output density characteristic information held in the holding means with the newly acquired output density characteristic information to determine the fluctuation state of the output density characteristics;
Control means for notifying the user of density adjustment when it is determined that the fluctuation state of the output density characteristic exceeds a predetermined fluctuation range as a result of determination by the comparison determination means. The print control apparatus according to claim 1, wherein the print control apparatus is a print control apparatus.
印刷装置と通信可能であり、地紋画像データを生成することが可能な印刷制御装置の印刷制御方法であって、
前記印刷装置から該印刷装置の出力濃度特性の情報を情報取得手段によって取得する情報取得ステップと、
前記情報取得ステップにおいて取得した前記出力濃度特性の情報に基づいて、調整手段によって前記地紋画像データの濃度値を調整する調整ステップと
を備えることを特徴とする印刷制御方法。
A printing control method of a printing control apparatus capable of communicating with a printing apparatus and generating copy-forgery-inhibited pattern image data,
An information acquisition step of acquiring information on output density characteristics of the printing apparatus from the printing apparatus by an information acquisition means;
An adjustment step of adjusting a density value of the copy-forgery-inhibited pattern image data by an adjustment unit based on the information of the output density characteristic acquired in the information acquisition step.
前記情報取得ステップにおいて、前記印刷装置の出力濃度特性のうち、前記地紋画像の生成で利用される濃度域における出力濃度特性の情報を取得することを特徴とする請求項6に記載に印刷制御方法。   The print control method according to claim 6, wherein, in the information acquisition step, information on an output density characteristic in a density range used for generation of the copy-forgery-inhibited pattern image among output density characteristics of the printing apparatus is acquired. . 前記調整ステップにおいて、前記地紋画像データの背景画像の濃度値を調整することを特徴とする請求項6に記載の印刷制御方法。   The print control method according to claim 6, wherein in the adjustment step, a density value of a background image of the copy-forgery-inhibited pattern image data is adjusted. 前記調整ステップにおいて、前記地紋画像データの前景画像の濃度値をさらに調整することを特徴とする請求項7に記載の印刷制御方法。   The print control method according to claim 7, wherein in the adjustment step, a density value of a foreground image of the copy-forgery-inhibited pattern image data is further adjusted. 前記情報取得ステップにおいて取得した出力濃度特性の情報を保持手段によって保持する保持ステップと、
比較判定手段によって、前記保持ステップにおいて保持された出力濃度特性の情報と、新たに取得した出力濃度特性の情報とを比較し、出力濃度特性の変動状態を判定する比較判定ステップと、
前記比較判定ステップにおける判定の結果、前記出力濃度特性の変動状態が所定の変動範囲を超えていると判断した場合、制御手段によってユーザに対して濃度調整を促す通知を行う制御ステップと
をさらに備えることを特徴とする請求項6乃至9のいずれか1項に記載の印刷制御方法。
A holding step of holding information on the output density characteristic acquired in the information acquiring step by a holding unit;
A comparison determination step for comparing the output density characteristic information held in the holding step with the newly acquired output density characteristic information by the comparison determination means to determine the variation state of the output density characteristic;
A control step for notifying the user of density adjustment by the control means when it is determined that the variation state of the output density characteristic exceeds a predetermined variation range as a result of the determination in the comparison determination step. The printing control method according to claim 6, wherein the printing control method is a printing method.
請求項6乃至10のいずれかに記載の印刷制御装置の制御方法の各ステップをコンピュータに実行させることを特徴とするプログラム。
A program for causing a computer to execute each step of the control method of the print control apparatus according to claim 6.
JP2005026833A 2005-02-02 2005-02-02 Printing control device and printing control method Pending JP2006215745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005026833A JP2006215745A (en) 2005-02-02 2005-02-02 Printing control device and printing control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005026833A JP2006215745A (en) 2005-02-02 2005-02-02 Printing control device and printing control method

Publications (1)

Publication Number Publication Date
JP2006215745A true JP2006215745A (en) 2006-08-17

Family

ID=36978947

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005026833A Pending JP2006215745A (en) 2005-02-02 2005-02-02 Printing control device and printing control method

Country Status (1)

Country Link
JP (1) JP2006215745A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008151920A (en) * 2006-12-15 2008-07-03 Fuji Xerox Co Ltd Image forming apparatus and printed matter
JP2009282853A (en) * 2008-05-23 2009-12-03 Konica Minolta Business Technologies Inc Image processing apparatus, image processing method, and image processing program
JP2012027638A (en) * 2010-07-22 2012-02-09 Sharp Corp Printing system, printer and communication terminal
US11386517B2 (en) 2015-05-29 2022-07-12 Digimarc Corporation Serialized digital watermarking for variable data printing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008151920A (en) * 2006-12-15 2008-07-03 Fuji Xerox Co Ltd Image forming apparatus and printed matter
JP2009282853A (en) * 2008-05-23 2009-12-03 Konica Minolta Business Technologies Inc Image processing apparatus, image processing method, and image processing program
US8861022B2 (en) 2008-05-23 2014-10-14 Konica Minolta Business Technologies, Inc. Image processing apparatus with preview display function, image processing method, and image processing program
JP2012027638A (en) * 2010-07-22 2012-02-09 Sharp Corp Printing system, printer and communication terminal
US11386517B2 (en) 2015-05-29 2022-07-12 Digimarc Corporation Serialized digital watermarking for variable data printing

Similar Documents

Publication Publication Date Title
JP4266766B2 (en) Information processing apparatus and information processing method
JP4290089B2 (en) Information processing apparatus and information processing method
JP4418814B2 (en) Information processing apparatus and information processing method
JP4182046B2 (en) Print processing system and print processing method
JP4574513B2 (en) Information processing apparatus, printing apparatus, information processing method, program, and storage medium
JP2005235181A (en) Information processor and information processing method
JP2005193648A (en) Printing controller, printing control method, and computer program
JP5103659B2 (en) System, print control apparatus, method and program
JP2006345383A (en) Ground tint control unit, arrangement of two-dimensional code, its method, and medium
JP4684857B2 (en) System, image processing apparatus, method of controlling image processing apparatus, program, and storage medium
JP4418797B2 (en) Print control apparatus, print control system, control method for print control apparatus, control method for print control system, and program
JP2006215745A (en) Printing control device and printing control method
JP2007088763A (en) Design print controller, design print control method and program
JP4764513B2 (en) Print processing system and print processing method
JP4993796B2 (en) Processing apparatus and processing method
JP2005115874A (en) Print controller, print control method and computer program
JP4845983B2 (en) Information processing apparatus and information processing method
JP2005107777A (en) Print controller, print control method and medium
JP2005115875A (en) Printing control device and method, and computer program
JP2005115873A (en) Printing control device and method, and computer program
JP2006345387A (en) Printing control device, method and medium