JP2006039898A - Print job processing method - Google Patents

Print job processing method Download PDF

Info

Publication number
JP2006039898A
JP2006039898A JP2004218154A JP2004218154A JP2006039898A JP 2006039898 A JP2006039898 A JP 2006039898A JP 2004218154 A JP2004218154 A JP 2004218154A JP 2004218154 A JP2004218154 A JP 2004218154A JP 2006039898 A JP2006039898 A JP 2006039898A
Authority
JP
Japan
Prior art keywords
print job
data
print
memory
file
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.)
Granted
Application number
JP2004218154A
Other languages
Japanese (ja)
Other versions
JP4441350B2 (en
Inventor
Kenichi Fujioka
健一 藤岡
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.)
Ricoh Printing Systems Ltd
Original Assignee
Ricoh Printing Systems Ltd
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 Ricoh Printing Systems Ltd filed Critical Ricoh Printing Systems Ltd
Priority to JP2004218154A priority Critical patent/JP4441350B2/en
Publication of JP2006039898A publication Critical patent/JP2006039898A/en
Application granted granted Critical
Publication of JP4441350B2 publication Critical patent/JP4441350B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a processing method that prevents memory shortage errors from occurring at a printer when printing is performed as the rearrangement of print pages is designated by means of print job creation software. <P>SOLUTION: Either the work memory of the printer is cleared by combining a usable memory clear mode and a page-based memory clear mode, or a command for clearing the work memory is created when the size of memory in use exceeds a usable memory size in cases where print data are rearranged to create output command data. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は印刷ページの並べ替えを行うための印刷ジョブ処理方法に関するものである。   The present invention relates to a print job processing method for rearranging print pages.

近年、印刷装置にはアプリケーションソフトウェアからの印刷データを並べ替えて印刷する逆順印刷や、中綴じ印刷などの印刷機能を持つものがある。この印刷機能を実現するためには、アプリケーションソフトウェア側で印刷ページを並べ替えたり、印刷ジョブ生成ソフトウェア側で印刷要求された正順の印刷ページを印刷装置へ送信する前に並べ替えて送信したり、或いは印刷装置側で受信した印刷ジョブ、即ち印刷装置にて解読可能なコマンドデータ列を並べ替えたりしていた。しかし、アプリケーションソフトウェア側で逆順印刷や中綴じ印刷のための並べ替えの機能を備えているものはまだ少なくない。また、印刷装置側で並べ替えるには、受信した印刷ジョブをページ単位で格納しておくための記憶装置が必要であるという問題がある。従って、一般的には印刷ジョブ生成ソフトウェア側で印刷装置に送信する前に並べ替えて送信していた。   In recent years, some printing apparatuses have printing functions such as reverse order printing for rearranging print data from application software and saddle stitch printing. In order to realize this printing function, the print pages are rearranged on the application software side, or the normal print pages requested for printing on the print job generation software side are rearranged before being sent to the printing device. Alternatively, a print job received on the printing apparatus side, that is, a command data string that can be decoded by the printing apparatus is rearranged. However, there are still many applications that have a sorting function for reverse printing and saddle stitch printing on the application software side. In addition, rearranging on the printing apparatus side requires a storage device for storing received print jobs in units of pages. Therefore, in general, the print job generation software side rearranges and transmits the data before transmitting it to the printing apparatus.

印刷ジョブ生成ソフトウェア側で並べ替えを行う場合、アプリケーションソフトウェアからの印刷要求により、まず正順で印刷ジョブを生成し、全ての出力コマンドデータ列を印刷ジョブファイルに格納し、印刷ページ毎の開始位置及び終了位置のデータを印刷ページオフセットファイルに格納する。その際オペレーティングシステム上に存在するソフトフォントの印刷要求があった場合は、並べ替えによる印刷不正、つまり文字抜け、文字化け等が発生しないように、印刷装置へダウンロードするソフトフォントデータをソフトフォントファイルに一時ファイルとして格納しておく。   When sorting on the print job generation software side, first according to the print request from the application software, the print job is generated in the normal order, all output command data strings are stored in the print job file, and the start position for each print page And the data of the end position are stored in the print page offset file. At that time, if there is a print request for soft fonts that exist on the operating system, the soft font data to be downloaded to the printing device should be saved to a soft font file so that printing illegality due to rearrangement, that is, missing characters, garbled characters, etc., will not occur. Stored as a temporary file.

アプリケーションソフトウェア上では、文字データに対し印刷装置に内蔵しているプリンタフォント、またはオペレーティングシステム上に存在するソフトフォントを指定することができる。前者の場合はプリンタフォントの属性情報(フォント名、サイズなど)と文字コードを指定するだけで印刷すべき文字を印刷することができるが、後者の場合は上記指定の前に予め印刷装置にソフトフォントデータをダウンロードしておく必要がある。   On the application software, a printer font built in the printing apparatus or a soft font existing on the operating system can be designated for the character data. In the former case, characters to be printed can be printed simply by specifying the printer font attribute information (font name, size, etc.) and the character code. You need to download the font data.

次に、印刷ジョブ生成ソフトウェアで具備するユーザーインターフェイスにてオペレータにより指定されたページ並べ替え指定(例えば、逆順印刷など)に従い、印刷ページの並べ替え順を決定し、ソフトフォントファイルがあれば、そのファイル内のソフトフォントデータ定義コマンド列を印刷装置へ送信した後、並べ替えた順序に従って、該印刷ページに対応する印刷ジョブファイル上の出力コマンドデータ列(印刷ページオフセットファイルに格納された印刷ページに対応する開始位置から終了位置までのデータ列)を印刷ジョブスプーラへ送信する。   Next, according to the page rearrangement designation (for example, reverse order printing) designated by the operator in the user interface provided in the print job generation software, the print page rearrangement order is determined, and if there is a soft font file, After sending the soft font data definition command sequence in the file to the printing device, the output command data sequence on the print job file corresponding to the print page (in the print page stored in the print page offset file) according to the rearranged order. The corresponding data string from the start position to the end position is transmitted to the print job spooler.

従来からソフトフォントデータを使用する場合は、印刷装置の具備するワークメモリの容量不足を回避するため、印刷装置へダウンロードするソフトフォントデータのメモリ消費量を予め算出して、この値を使用メモリとしてカウントし、印刷ジョブ生成ソフトウェア内のユーザーインターフェイス上で指定された印刷装置の利用可能メモリと比較して、これを超えた場合にワークメモリ内のソフトフォントデータをクリアするモード(以下利用可能メモリクリアモードと称する)または印刷ページごとにワークメモリ内のソフトフォントデータをクリアするモード(以下ページ単位メモリクリアモードと称する)をオペレータが排他的に設定して利用していた。   Conventionally, when using soft font data, in order to avoid a shortage of work memory capacity of the printing device, the memory consumption of the soft font data to be downloaded to the printing device is calculated in advance, and this value is used as the used memory. A mode that counts and clears the soft font data in the work memory when it exceeds the available memory of the printing device specified on the user interface in the print job generation software (hereinafter, the available memory clear Mode) or a mode for clearing soft font data in the work memory for each print page (hereinafter referred to as page unit memory clear mode) has been exclusively set by the operator.

上記のワークメモリは、ソフトフォントの格納やプリンタフォントのキャッシュに使用され、容量は印刷装置に実装された物理メモリにより異なる。例えば、物理メモリ128MBの場合、ワークメモリ割合8%を乗じた10MBがワークメモリとなる(ただし、印刷装置起動時)。プリンタフォントは一時的にキャッシュされるが、メモリ使用状況により印刷装置側で自動的に削除される。一方、ソフトフォントはメモリクリアコマンドを出力しなければ削除されない。ただし、揮発性メモリのため、印刷装置の電源を切った場合はフォントの種類に関わらず、メモリ内のデータは消失する。   The work memory is used for storing soft fonts and printer font caches, and the capacity varies depending on the physical memory installed in the printing apparatus. For example, in the case of 128 MB of physical memory, 10 MB multiplied by 8% of the work memory ratio becomes the work memory (however, when the printing apparatus is activated). The printer font is temporarily cached, but is automatically deleted on the printing apparatus side according to the memory usage status. On the other hand, a soft font is not deleted unless a memory clear command is output. However, because of the volatile memory, when the printer is turned off, the data in the memory is lost regardless of the font type.

ワークメモリをクリアする方法として上述の利用可能メモリクリアモードを使用した場合は、印刷ジョブの先頭で、全てのソフトフォントデータをダウンロードしてしまうため、利用可能メモリサイズ及びソフトフォントデータ量により印刷装置のメモリ容量が不足してしまうという問題がある。   When the above-described available memory clear mode is used as a method for clearing the work memory, all the soft font data is downloaded at the head of the print job. Therefore, the printing apparatus depends on the available memory size and soft font data amount. There is a problem that the memory capacity of will be insufficient.

そこで、この問題を回避するため、オペレータにより印刷ページの並べ替え指定があった場合は、印刷ジョブ生成ソフトウェア側で上述のページ単位メモリクリアモードを自動的に有効にし、ページ単位でメモリをクリアしているのが一般的である。   Therefore, to avoid this problem, if the print page rearrangement is specified by the operator, the print job generation software automatically enables the above page unit memory clear mode and clears the memory in page units. It is common.

ここで、従来の印刷の流れを図7〜図10を用いて説明する。図7は従来の並べ替え印刷を説明するためのブロック図であり、1はホストコンピュータ、2はコンピュータ1を動作させるための基本ソフトウェアであるオペレーティングシステム、3はドキュメントを作成し印刷するためのアプリケーションソフトウェア、4はアプリケーションソフトウェア3の印刷指示により印刷ジョブ生成ソフトウェア5に印刷指示を与える印刷インターフェイスである。印刷ジョブ生成ソフトウェア5は、アプリケーションソフトウェア3上で印刷形式を設定するためにオペレータとのインターフェイスを取り持つユーザーインターフェイス部6、印刷ジョブを生成する印刷ジョブ生成処理部7、及び印刷ページを並べ替えるデスプール部9を有する。   Here, the flow of conventional printing will be described with reference to FIGS. FIG. 7 is a block diagram for explaining conventional rearrangement printing, wherein 1 is a host computer, 2 is an operating system that is basic software for operating the computer 1, and 3 is an application for creating and printing a document. Software 4 is a print interface that gives a print instruction to the print job generation software 5 in accordance with a print instruction of the application software 3. The print job generation software 5 includes a user interface unit 6 having an interface with an operator for setting a print format on the application software 3, a print job generation processing unit 7 for generating a print job, and a despooling unit for rearranging print pages 9

オペレータがアプリケーションソフトウェア3上で作成した文字を含む印刷データを逆順指定して印刷した場合、アプリケーションソフトウェア3上の印刷指示により印刷インターフェイス4は印刷ジョブ生成ソフトウェア5に対し印刷指示を与え、それに基づいて印刷ジョブ生成ソフトウェア5における印刷ジョブ生成処理部7が起動する。   When print data including characters created by the operator on the application software 3 is specified and printed in the reverse order, the print interface 4 gives a print instruction to the print job generation software 5 according to the print instruction on the application software 3, and based on that. The print job generation processing unit 7 in the print job generation software 5 is activated.

図8−1は印刷ジョブ生成処理部7の処理フローを示すもので、印刷ジョブ生成処理部7は、まず現在の使用メモリ消費量を算出するための使用メモリサイズカウンタをリセットし、印刷ジョブの初期設定コマンドを印刷ジョブスプーラ10へ送信しておく(ステップ101)。そして、ユーザーインターフェイス部6で指定されるページごとにメモリをクリアするかどうかを判断し(ステップ102)、ページ単位メモリクリアモードを設定する(ステップ103)。逆順印刷指定があった場合、例えば4ページの場合は、4→3→2→1順に並べ替えが必要であるため、印刷ジョブの処理方法としてデスプールモードを設定し、生成するコマンドデータの出力先を一時ファイルに設定して、ページ単位メモリクリアモードを設定する。そして、印刷ジョブを格納する印刷ジョブファイル、及びそのページごとの開始位置(オフセット位置)を保存しておく印刷ページオフセットファイルを作成し、現在のオフセット位置を表す印刷ジョブカウンタをリセットする(ステップ107)。
次に、印刷ページの開始処理として現在の印刷ジョブカウンタを、印刷ページオフセットファイルへ格納し(ステップ108)、文字データの印刷要求の場合は(ステップ109)、ページ単位メモリクリアモードでなければ(ステップ110)ソフトフォントデータファイルを作成し(ステップ111)、文字描画処理部8を起動して(ステップ113)、1ページ出力終了まで処理を続ける。
FIG. 8A shows a processing flow of the print job generation processing unit 7. The print job generation processing unit 7 first resets the used memory size counter for calculating the current used memory consumption, and print job An initial setting command is transmitted to the print job spooler 10 (step 101). Then, it is determined whether to clear the memory for each page specified by the user interface unit 6 (step 102), and the page unit memory clear mode is set (step 103). When reverse order printing is specified, for example, in the case of 4 pages, it is necessary to rearrange in order of 4 → 3 → 2 → 1. Therefore, the despool mode is set as the print job processing method, and the generated command data is output. Set the destination to a temporary file and set the page unit memory clear mode. Then, a print job file for storing the print job and a print page offset file for storing the start position (offset position) for each page are created, and the print job counter indicating the current offset position is reset (step 107). ).
Next, the current print job counter is stored in the print page offset file as a print page start process (step 108). If the print request is for character data (step 109), the page unit memory clear mode is not used (step 109). Step 110) A soft font data file is created (Step 111), the character drawing processing unit 8 is activated (Step 113), and the processing is continued until one page output is completed.

1ページ終了後(ステップ114)は、ページ単位メモリクリアモードの場合は、印刷装置12のワークメモリ(図示せず)をクリアするコマンドデータ列を出力し(ステップ116)、ソフトフォント管理テーブル及び使用メモリサイズカウンタをリセットする。そして、印刷ジョブカウンタに次ページのオフセット位置として、現在の印刷ジョブファイルサイズを設定して(ステップ117)、全ページが出力終了するまで以上の処理を続ける。   After the end of one page (step 114), in the page unit memory clear mode, a command data string for clearing the work memory (not shown) of the printing apparatus 12 is output (step 116), and the soft font management table and use Reset the memory size counter. Then, the current print job file size is set as the offset position of the next page in the print job counter (step 117), and the above processing is continued until all pages are output.

全ページ出力終了後は、デスプールモードであるので印刷ページの並べ替えを行うデスプール部9を起動し(ステップ120)、アプリケーションソフトウェア3から印刷要求のあった全ての印刷ページが、指定の並べ替え順に印刷ジョブスプーラ10へ送信される。受信した印刷ジョブスプーラ10は双方向インターフェイス11を介してその印刷ジョブを印刷装置12へ送信し、印刷装置12にて並べ替えられた印刷ジョブが印刷される。なお、文字データ以外の印刷要求の場合は図形やイメージデータ等を描画する図形描画処理部を起動するが(ステップ112)、ここでは説明を省略する。   After all pages have been output, since the despool mode is selected, the despooling unit 9 for rearranging the print pages is activated (step 120), and all print pages requested by the application software 3 are designated by the specified sort. The print jobs are sequentially transmitted to the print job spooler 10. The received print job spooler 10 transmits the print job to the printing apparatus 12 via the bidirectional interface 11, and the print jobs rearranged by the printing apparatus 12 are printed. In the case of a print request other than character data, a graphic drawing processing unit for drawing a graphic or image data is started (step 112), but the description is omitted here.

図9は文字描画処理部8の処理フローを示す。   FIG. 9 shows a processing flow of the character drawing processing unit 8.

文字描画処理部8では、まず指定された文字データを判別し(ステップ201)、それがソフトフォントデータでダウンロード済みでなく(ステップ202)、且つページ単位メモリクリアモードでなければ(ステップ203)、ユーザーインターフェイス部6上で設定された利用可能メモリと現在の使用メモリとを比較する(ステップ204)。使用メモリが利用可能メモリの範囲内であれば、該ソフトフォントデータのメモリ消費サイズを使用メモリサイズカウンタに加算し(ステップ206)、該ソフトフォントデータ定義コマンド列を出力して(ステップ207)、ダウンロードされたソフトフォントデータを管理するソフトフォント管理テーブル上でダウンロード済みに設定する(ステップ208)。もし利用可能メモリを超えた場合は、印刷装置12の具備するワークメモリ上の、ダウンロードされたソフトフォントデータをクリアするコマンドを出力し、ソフトフォント管理テーブル及び使用メモリサイズカウンタをリセットする(ステップ205)。そして、ソフトフォントデータを描画するコマンドを生成出力し(ステップ209)、全ての文字が描画終了するまで以上の処理を続ける(ステップ211)。   The character drawing processing unit 8 first determines the designated character data (step 201), is not downloaded with soft font data (step 202), and is not in the page unit memory clear mode (step 203), The available memory set on the user interface unit 6 is compared with the currently used memory (step 204). If the used memory is within the range of available memory, the memory consumption size of the soft font data is added to the used memory size counter (step 206), and the soft font data definition command sequence is output (step 207). The downloaded soft font data is set to be already downloaded on the soft font management table for managing (step 208). If the available memory is exceeded, a command for clearing the downloaded soft font data on the work memory of the printing apparatus 12 is output, and the soft font management table and the used memory size counter are reset (step 205). ). Then, a command for drawing soft font data is generated and output (step 209), and the above processing is continued until drawing of all characters is completed (step 211).

図10はデスプール部9の処理フローを示す。   FIG. 10 shows a processing flow of the despooling unit 9.

デスプール部9では、まずコマンドデータ出力先を印刷ジョブスプーラ10へ切り替え、ユーザーインターフェイス部6で指定されたページの並べ替え方法を取得しておき(ステップ301)、ソフトフォントデータファイルが存在する場合は(ステップ302)、ソフトフォントデータファイル内のソフトフォントデータ定義コマンド列を全て出力する(ステップ303)。次に、ページ並べ替え方法に従い、出力する印刷ページを決定し(ステップ304)、該印刷ページに対応する開始位置及び終了位置を印刷ジョブオフセットファイルから取得し(ステップ305)、印刷ジョブファイルからその開始位置及び終了位置間で印刷文字を描画指定するコマンドデータ列を取得して出力する(ステップ306)。以上、全ページが出力終了するまで処理を続け(ステップ307)、全ページ出力終了後は全ての一時ファイルを削除する(ステップ308)。   The despooler 9 first switches the command data output destination to the print job spooler 10, acquires the page rearrangement method specified by the user interface unit 6 (step 301), and if a soft font data file exists. (Step 302), all soft font data definition command strings in the soft font data file are output (step 303). Next, according to the page rearrangement method, the print page to be output is determined (step 304), the start position and end position corresponding to the print page are acquired from the print job offset file (step 305), and the print job file A command data string for designating drawing of print characters between the start position and the end position is acquired and output (step 306). As described above, the processing is continued until the output of all pages is completed (step 307). After the output of all pages is completed, all temporary files are deleted (step 308).

しかし、オペレータにより印刷ページの並べ替え指定があった場合は、ページ単位メモリクリアモードを自動的に有効にしても、指定された利用可能メモリを1ページ内で全て消費するソフトフォントデータの場合には、印刷装置上で必ずメモリ不足エラーが発生し、必ずしも正常印刷できるとはいえなかった。   However, if the print page rearrangement is specified by the operator, even if the page-unit memory clear mode is automatically enabled, the soft memory data that consumes all of the specified available memory within one page. However, a memory shortage error always occurs on the printing apparatus, and it cannot always be said that normal printing is possible.

また、印刷インターフェイスからの印刷指示列をページ単位で中間言語ファイルに保存し、印刷ジョブスプーラが印刷ジョブ生成ソフトウェアで指定されたページ並べ替え方法により、中間言語ファイル上のページ単位の印刷指示列を並べ替え順で印刷インターフェイスへ印刷要求可能な場合(以下、中間言語スプールモード)は、印刷ジョブ生成ソフトウェアは並べ替え不要のため、利用可能メモリごとにメモリをクリアする方法でメモリ不足エラーを発生させることなく、正常印刷させることができるが、中間言語スプールモードではなく、中間言語ファイルを生成せず直接印刷ジョブを生成する場合は印刷ジョブ生成ソフトウェアでページの並べ替えを行うしか方法はなく、常に正常印刷させる仕組みがなかった。   Also, the print instruction sequence from the print interface is saved in the intermediate language file in page units, and the print job spooler generates the page unit print instruction sequence in the intermediate language file by the page sorting method specified in the print job generation software. When print requests can be made to the print interface in the sort order (hereinafter referred to as intermediate language spool mode), the print job generation software does not need to sort, so a memory shortage error is generated by clearing the memory for each available memory. However, if you want to generate a print job directly without generating an intermediate language file, instead of using the intermediate language spool mode, you can only reorder the pages with the print job generation software. There was no mechanism for normal printing.

本発明は前述した点に鑑みてなされたものであり、アプリケーションソフトウェアからソフトフォントデータを含む印刷データを印刷ページの並べ替えを指定して印刷する場合に、印刷ジョブ生成ソフトウェアで印刷ページの並べ替えを行い、印刷装置でメモリ不足エラーを発生させない印刷ジョブ処理方法を提供することを目的とする。   The present invention has been made in view of the above points, and when print data including soft font data is printed from an application software by specifying print page rearrangement, the print job rearrangement is performed by the print job generation software. An object of the present invention is to provide a print job processing method that does not cause a memory shortage error in a printing apparatus.

上記の目的を達成するために本発明は、印刷ページの並べ替えが可能な印刷ジョブ生成ソフトウェアが、印刷装置へ送信する印刷データを印刷ジョブファイルに生成するステップと、前記印刷ジョブファイルに格納された印刷データの各印刷ページの格納位置のデータを印刷ジョブオフセットファイルに生成するステップと、前記印刷ジョブファイル及び印刷ジョブオフセットファイルに格納されたデータを用いてオペレータの並べ替え指定に応じた順に印刷ページを並べ替えた出力コマンドデータを作成するステップとを有し、前記印刷ジョブファイルを生成するときに、前記印刷装置のワークメモリを各印刷ページ毎にクリアするクリアコマンドと、前記ソフトフォントの格納に使用するメモリサイズがワークメモリの利用可能メモリサイズを超えた時に、その都度ワークメモリをクリアするクリアコマンドデータを生成することに一つの特徴がある。   In order to achieve the above object, according to the present invention, there is provided a print job generation software capable of rearranging print pages, generating print data to be transmitted to a printing apparatus in a print job file, and storing the print job file in the print job file. Print data stored in the print job offset file in the print job offset file, and print data in the order according to the operator's rearrangement specification using the data stored in the print job file and the print job offset file. A step of creating output command data in which pages are rearranged, and storing the soft font and the soft font for clearing the work memory of the printing apparatus for each print page when the print job file is generated The memory size used for When exceeded's, there is one of the features to generate clear command data each time to clear the work memory.

本発明の他の特徴は、印刷ページの並べ替えが可能な印刷ジョブ生成ソフトウェアが、印刷装置にダウンロードするソフトフォントデータをフォントファイルに生成するステップと、前記印刷装置へ送信する印刷データを印刷ジョブファイルに生成するステップと、前記印刷装置にダウンロードするソフトフォントデータのソフトフォント定義名、前記ワークメモリの消費量及び前記フォントファイル上の格納位置を示すデータを格納するソフトフォント情報テーブルを生成するステップと、前記印刷データをオペレータの並べ替え指定に応じた順に並べ替えた出力コマンドデータを作成するステップとを有し、並べ替えた出力コマンドデータを作成するときに、前記ソフトフォント情報テーブルを用いて前記ソフトフォントデータを再構築すると共に、該ソフトフォントの格納に使用するメモリサイズがワークメモリの利用可能メモリサイズを超えた時はワークメモリをクリアするクリアコマンドを生成することにある。   Another feature of the present invention is that a print job generation software capable of rearranging print pages generates soft font data to be downloaded to a printing device into a font file, and print data to be transmitted to the printing device is a print job. A step of generating a file, and a step of generating a soft font information table storing data indicating a soft font definition name of soft font data to be downloaded to the printing apparatus, a consumption amount of the work memory, and a storage position on the font file And generating output command data in which the print data is rearranged in the order according to the operator's rearrangement specification, and when generating the rearranged output command data, the soft font information table is used. Reconstruct the soft font data Rutotomoni, when the memory size to be used to store the soft fonts exceeds the available memory size of the work memory is to produce a clear command to clear the work memory.

請求項1の発明によれば、利用可能メモリクリアモードと、ページ単位メモリクリアモードとを組み合わせて使用することにより、印刷装置においてメモリ不足エラーを発生させることなく常に正常印刷が可能になる。   According to the first aspect of the invention, by using the available memory clear mode and the page unit memory clear mode in combination, normal printing can always be performed without causing a memory shortage error in the printing apparatus.

請求項2に記載の発明によれば、印刷データをオペレータの並べ替え指定に応じた出力コマンドデータを作成する際に、ソフトフォントの格納に使用するメモリサイズがワークメモリの利用可能メモリサイズを超えたときにワークメモリをクリアするコマンドを生成するため、印刷装置においてメモリ不足エラーを発生させることなく、常に正常印刷が可能となり、また利用可能メモリごとにソフトフォントデータを印刷装置へダウンロードする方法であるため、印刷ジョブのコードサイズにおける生成効率も良くなる。   According to the second aspect of the present invention, the memory size used for storing the soft font exceeds the available memory size of the work memory when generating the output command data according to the operator's rearrangement designation of the print data. A command to clear the work memory is generated at the time, so normal printing is always possible without causing a memory shortage error in the printing device, and soft font data is downloaded to the printing device for each available memory. Therefore, the generation efficiency in the code size of the print job is also improved.

図1−1は本発明に係る印刷ジョブ処理方法の第1の実施例を示す全体ブロック図で、印刷ジョブ生成ソフトウェア5は、印刷ジョブ生成処理部7、文字描画処理部8A,デスプール部9を有する。   FIG. 1-1 is an overall block diagram showing a first embodiment of a print job processing method according to the present invention. The print job generation software 5 includes a print job generation processing unit 7, a character drawing processing unit 8A, and a despooling unit 9. Have.

上記印刷ジョブ生成処理部7の処理フローは従来の図8−1と同じであり、デスプール部9の処理フローも従来の図10と同じであるが、文字描画処理部8Aの処理フローは図2−1で示されており、従来の図9とは異なる。即ち図2−1は従来の処理フローを示す図9において、ページ単位メモリクリアモードか否かを判定するステップ203を削除した流れ図になっている。   The processing flow of the print job generation processing unit 7 is the same as that of the conventional FIG. 8-1, the processing flow of the despooling unit 9 is the same as that of the conventional FIG. 10, but the processing flow of the character drawing processing unit 8A is as shown in FIG. -1 and is different from the conventional FIG. That is, FIG. 2A is a flowchart in which step 203 for determining whether or not the page unit memory clear mode is in FIG. 9 showing the conventional processing flow is deleted.

このステップ203を削除すると、ステップ202でソフトフォントデータがダウンロードされていないと判定されたときは常にワークメモリの利用可能メモリ量とダウンロードにより使用するメモリ量とが比較され、利用可能メモリ量が小さいときはワークメモリをクリアするコマンドを出力するようになる。   If step 203 is deleted, when it is determined in step 202 that the soft font data is not downloaded, the available memory amount of the work memory is always compared with the memory amount used by the download, and the available memory amount is small. When it does, it will output a command to clear the work memory.

一方、図8−1の印刷ジョブ生成処理部の処理フローの中にはページ単位メモリクリアモードか否かを判定するステップ115があるから、このモードに設定しておくと、常にページ単位でワークメモリをクリアするコマンドが生成される。   On the other hand, in the processing flow of the print job generation processing unit of FIG. 8A, there is a step 115 for determining whether or not the page unit memory clear mode is set. A command to clear the memory is generated.

即ち本発明は第1の実施例は、ページごとにメモリをクリアするページ単位メモリクリアモードと、利用可能メモリクリアモードとを組み合わせたモードにより印刷装置12のワークメモリをクリアできるようにした点に特徴がある。   That is, according to the first embodiment of the present invention, the work memory of the printing apparatus 12 can be cleared by a mode that combines a page unit memory clear mode for clearing the memory for each page and an available memory clear mode. There are features.

これにより印刷ページ毎に印刷装置12のワークメモリ内のソフトフォントデータをクリアすると共に、印刷装置にダウンロードするソフトフォントデータのメモリ消費量が印刷装置の利用可能メモリを超えた場合にも、ワークメモリのソフトフォントデータをクリアすることができ、1ページ毎に2つのタイミングでワークメモリをクリアすることが可能になる。   As a result, the soft font data in the work memory of the printing apparatus 12 is cleared for each print page, and even when the memory consumption of the soft font data downloaded to the printing apparatus exceeds the available memory of the printing apparatus, the work memory The soft font data can be cleared, and the work memory can be cleared at two timings per page.

次に、アプリケーションソフトウェア3から図5に示すような4ページの印刷データを中綴じ指定で印刷する要求があった場合を例にとって処理の手順を説明する。   Next, the processing procedure will be described by taking as an example a case where there is a request from the application software 3 to print four pages of print data as shown in FIG.

アプリケーションソフトウェア3からの4ページの文字データ印刷要求により、印刷ジョブ生成ソフトウェア5はページ単位で印刷ジョブファイルに出力する。但し、第4ページの“4”で使用メモリサイズが印刷装置12のワークメモリの利用可能メモリサイズを超えたものとする。   In response to a 4-page character data print request from the application software 3, the print job generation software 5 outputs the print job file in units of pages. However, it is assumed that the used memory size exceeds the available memory size of the work memory of the printing apparatus 12 at “4” on the fourth page.

まず、図5に示すように、印刷ジョブファイルの第1ページには“あ”“い”“う”“え”“お”のデータ定義コマンドが生成される(図2−1のステップ207)と共に、出力文字コマンドデータ列が生成される(図2−1のステップ209)。同様に、“P”“.”“1”のデータ定義コマンド、及び出力文字コマンドデータ列が生成される。またその後に図8−1のステップ115及び116によりページ単位のクリアコマンドが格納される。   First, as shown in FIG. 5, data definition commands “A”, “I”, “U”, “E”, and “O” are generated on the first page of the print job file (step 207 in FIG. 2A). At the same time, an output character command data string is generated (step 209 in FIG. 2A). Similarly, a data definition command “P” “.” “1” and an output character command data string are generated. Thereafter, a page-by-page clear command is stored in steps 115 and 116 in FIG.

同様に、第2ページには“か”“き”“く”“け”“こ”のデータ定義コマンド、及び出力文字コマンドデータ列と、“P”“.”“2”のデータ定義、及び出力文字コマンドデータ列が生成され、その後にページ単位のクリアコマンドが生成される。   Similarly, the second page includes data definition commands of “ka” “ki” “ku” “ke” “ko”, an output character command data string, data definitions of “P” “.” “2”, and An output character command data string is generated, and then a page-by-page clear command is generated.

また、第3ページには“あ”“い”“う”“え”“お”のデータ定義コマンド、及び出力文字コマンドデータ列と、“P”“.”“3”のデータ定義、及び出力文字コマンドデータ列が生成され、最後にページ単位のメモリクリアコマンドが格納される。   The third page also includes “A” “I” “U” “E” “O” data definition command and output character command data string, “P” “.” “3” data definition and output A character command data string is generated, and finally a memory clear command for each page is stored.

第4ページは“か”“き”“く”“け”“こ”のデータ定義コマンド、及び出力文字コマンドデータ列と、“P”“.”のデータ定義コマンド、及び出力文字コマンドデータ列が生成される。更に“4”で使用メモリサイズがワークメモリの利用可能メモリサイズを超えるため、図2−1のステップ204,205の処理により、メモリクリアコマンド列が生成される。そしてその後に“4”のデータ定義コード、及び出力文字コマンドデータ列が生成され、最後にページ単位のメモリクリアコマンドが格納されている。   The fourth page contains data definition commands and output character command data strings of “ka” “ki” “ku” “ke” “ko”, data definition commands of “P” “.”, And output character command data strings. Generated. Furthermore, since the used memory size exceeds “4” and the usable memory size of the work memory, a memory clear command sequence is generated by the processing of steps 204 and 205 in FIG. After that, a data definition code “4” and an output character command data string are generated, and finally a memory clear command for each page is stored.

また、印刷ジョブオフセットファイルには印刷ページに対応する印刷ジョブファイル上の出力文字コマンドデータ列の開始位置及び終了位置が格納される(図8−1のステップ108)。この例ではそれぞれ第1ページ〜第4ページの開始位置が0、401、601、801であり、終了位置は400、600、800、1000とされている。   The print job offset file stores the start position and end position of the output character command data string on the print job file corresponding to the print page (step 108 in FIG. 8A). In this example, the first to fourth page start positions are 0, 401, 601, and 801, and the end positions are 400, 600, 800, and 1000, respectively.

次に、図5のステップ2ではページ並べ替え方法は中綴じ指定であるため、1→2→3→4のページ順を1→4→3→2のページ順に並べ替えをする。このためにまず、第1ページの開始位置及び終了位置を印刷ジョブオフセットファイルから取得して、その開始位置から終了位置までに対応する第1ページ上の出力文字コマンドデータ列を出力する。以下同様に第4ページ、第3ページ、第2ページの開始位置及び終了位置を順に印刷ジョブオフセットファイルから取得して、対応する印刷ページの出力文字コマンドデータ列を出力する(図10のステップ301及び304〜306)。   Next, in step 2 of FIG. 5, since the page rearrangement method is the saddle stitching designation, the page order of 1 → 2 → 3 → 4 is rearranged in the order of pages 1 → 4 → 3 → 2. For this purpose, first, the start position and end position of the first page are acquired from the print job offset file, and the output character command data string on the first page corresponding to the start position to the end position is output. Similarly, the start position and the end position of the fourth page, the third page, and the second page are acquired from the print job offset file in order, and the output character command data string of the corresponding print page is output (step 301 in FIG. 10). And 304-306).

上述の手順において、第4ページの“4”の文字を出力した時に、使用メモリサイズが利用可能メモリサイズを超えてしまうが、メモリクリア2によりワークメモリをクリアする処理が行われるため、メモリ不足エラーは発生せず、またその後の処理も印刷ページを並べ替えるだけであるので、メモリ不足エラーは発生しないことになる。   In the above procedure, when the character “4” on the fourth page is output, the used memory size exceeds the available memory size, but the memory clear 2 is used to clear the work memory, so there is not enough memory. An error does not occur, and the subsequent processing only rearranges the print pages, so that a memory shortage error does not occur.

以上説明したように、第1の実施例によれば、ページ単位メモリクリアモードと利用可能メモリクリアモードを組み合わせて使用することにより、アプリケーションソフトウェアからソフトフォントデータを含む印刷データを印刷ページの並べ替えを指定して印刷する場合に、印刷装置においてメモリ不足エラーを発生させることなく、常に正常印刷が可能となる。   As described above, according to the first embodiment, print data including soft font data is rearranged from application software by using a combination of the page unit memory clear mode and the available memory clear mode. When printing is specified, normal printing can always be performed without causing a memory shortage error in the printing apparatus.

図1−2は本発明に係る印刷ジョブ処理方法の第2の実施例を示す全体ブロック図であり、印刷ジョブ生成ソフトウェア5は印刷ジョブ生成処理部7、文字描画処理部8、デスプール部9、ソフトフォント再構築部13を有する。   FIG. 1-2 is an overall block diagram showing a second embodiment of the print job processing method according to the present invention. The print job generation software 5 includes a print job generation processing unit 7, a character drawing processing unit 8, a despooling unit 9, A soft font reconstruction unit 13 is included.

上記印刷ジョブ生成処理部7の処理フローは図8−2に示され、文字描画処理部8の処理フローは図2−2に示され、デスプール部9の処理フローは図3に示され、ソフトフォント再構築部13の処理フローは図4に示されている。   The processing flow of the print job generation processing unit 7 is shown in FIG. 8-2, the processing flow of the character drawing processing unit 8 is shown in FIG. 2-2, the processing flow of the despooling unit 9 is shown in FIG. The processing flow of the font reconstruction unit 13 is shown in FIG.

第2の実施例では従来例に比べデスプール部9にソフトフォント再構築部13が追加され、文字描画処理部8の処理フローにステップ220が追加され、デスプール部の処理フローにはステップ310,311が追加され、また印刷ジョブ生成処理部の処理フローではステップ106が削除されている。   In the second embodiment, the soft font reconstruction unit 13 is added to the despooling unit 9 as compared with the conventional example, step 220 is added to the processing flow of the character drawing processing unit 8, and the processing flow of the despooling unit includes steps 310 and 311. Is added, and step 106 is deleted in the processing flow of the print job generation processing unit.

即ち、本実施例の印刷ジョブ生成処理部の処理フローでは第1の実施例とは異なり、ワークメモリクリア方法として利用可能メモリごとにクリアする利用可能メモリクリアモードを使用するため、印刷ページの並べ替え時にページ単位メモリクリアモードは設定しないように変更している。   That is, in the processing flow of the print job generation processing unit of this embodiment, unlike the first embodiment, the available memory clear mode for clearing each available memory is used as the work memory clear method, so that the print pages are arranged. The page unit memory clear mode is not set when changing.

次に、文字描画処理部8の処理フローを、図2−2を用いて説明する。本処理フローでは、後述するソフトフォント再構成部13で利用するソフトフォント情報テーブル(以下、フォント情報テーブル)を該ソフトフォントデータ出力時に作成している。   Next, the processing flow of the character drawing processing unit 8 will be described with reference to FIG. In this processing flow, a soft font information table (hereinafter referred to as “font information table”) used by the soft font reconstruction unit 13 described later is created when the soft font data is output.

まずステップ201において指定された文字データがプリンタフォント指定のものかどうか判定し、肯定(以下YES)の場合はステップ210に進み、プリンタフォント用描画コマンドを生成し、出力する。一方、ステップ201の判定が否定(以下NO)の場合はステップ202に進み、文字データがソフトフォントデータでダウンロード済みか否かが判定される。判定がYESであればステップ209に進み、ソフトフォントデータ用描画コマンドを生成し、出力する。一方、ステップ202の判定がNOであり、ソフトフォントデータでダウンロード済みでなければ、ステップ203でページごとにメモリをクリアするモードかどうか判断し、ステップ203の判定がNOの場合は、ユーザーインターフェイス6部上で設定された利用可能メモリと現在の使用メモリとを比較する(ステップ204)。ステップ204の判定の結果、使用メモリが利用可能メモリの範囲内であれば、ステップ206において該ソフトフォントデータのメモリ消費サイズを使用メモリサイズカウンタに加算し、更にステップ220で、フォント情報テーブル上で、該ソフトフォントデータのヘッダコマンド(1文字ごとのソフトフォントデータ定義コマンド前に、これからダウンロードするソフトフォントデータ種類を指定するもの)、データ定義名、及び該ソフトフォントデータごとのメモリ消費サイズ、ソフトフォントデータファイル(以下、フォントファイル)上の格納位置を示す開始位置及び終了位置を設定する。もしステップ204の判定で利用可能メモリを超えた場合は、印刷装置12が有するワークメモリ上の、ダウンロードされたソフトフォントをクリアするコマンドを出力し、ソフトフォント管理テーブル及び使用メモリサイズカウンタをリセットする(ステップ205)。次に、ステップ208においてソフトフォント管理テーブル上で該ソフトフォントデータをダウンロード済みに設定し、ステップ221で該ソフトフォントデータ定義コマンド列をフォントファイルに出力し、また、ステップ209において該ソフトフォントデータの文字を描画するコマンド列を生成して印刷ジョブファイルに出力する。そしてステップ211では、印刷要求された全ての文字が描画終了したか否かが判定され、NOの場合はステップ201に戻り、上述の処理が繰返される。   First, it is determined whether or not the character data designated in step 201 is a printer font designation. If the result is affirmative (hereinafter YES), the process proceeds to step 210 to generate and output a printer font drawing command. On the other hand, if the determination in step 201 is negative (hereinafter referred to as NO), the process proceeds to step 202, where it is determined whether or not the character data is already downloaded as soft font data. If the determination is YES, the process proceeds to step 209 to generate and output a soft font data drawing command. On the other hand, if the determination in step 202 is NO and the software font data has not been downloaded, it is determined in step 203 whether the mode is to clear the memory for each page. If the determination in step 203 is NO, the user interface 6 is determined. The available memory set on the department is compared with the currently used memory (step 204). As a result of the determination in step 204, if the used memory is within the available memory range, the memory consumption size of the soft font data is added to the used memory size counter in step 206, and further in step 220 on the font information table. , Header command of the soft font data (specifying the type of soft font data to be downloaded before each soft font data definition command), data definition name, memory consumption size for each soft font data, software A start position and an end position indicating a storage position on a font data file (hereinafter referred to as a font file) are set. If the available memory is exceeded in the determination in step 204, a command for clearing the downloaded soft font on the work memory of the printing apparatus 12 is output, and the soft font management table and the used memory size counter are reset. (Step 205). Next, in step 208, the soft font data is set to have been downloaded on the soft font management table, and in step 221 the soft font data definition command string is output to a font file. In step 209, the soft font data Generates a command sequence for drawing characters and outputs it to a print job file. In step 211, it is determined whether or not all characters requested for printing have been drawn. If NO, the process returns to step 201 and the above-described processing is repeated.

次に、デスプール部9の処理フローを図3を用いて説明する。本処理フローでは、ページ単位メモリクリアモード判定を追加し、ページ単位メモリクリアモードでない場合は後述するソフトフォント再構成部13を実行している点に特徴がある。   Next, the processing flow of the despooling unit 9 will be described with reference to FIG. This processing flow is characterized in that a page-unit memory clear mode determination is added, and when not in the page-unit memory clear mode, a soft font reconstruction unit 13 described later is executed.

まず、ステップ301においてコマンドデータ出力先を印刷ジョブスプーラ10へ切り替え、ユーザーインターフェイス部6で指定されたページの並べ替え方法を取得した後、ステップ310においてページ単位メモリクリアモードかどうか判断する。判定の結果、ページ単位メモリクリアモードでなければ、ステップ311のソフトフォント再構成部を実行し、印刷ページの並べ替え時、作成済みのフォントファイルからワークメモリ消費量を考慮してソフトフォントデータを再構成する。一方、ステップ310の判定の結果、ページ単位メモリクリアモードであれば、従来と同様に、ステップ302においてソフトフォントデータファイルがあるか否か判定し、フォントファイルが存在する場合は、ステップ303においてフォントファイル内のソフトフォントデータ定義コマンド列を全て出力し、次に、ステップ304においてページ並べ替え方法に従い、出力する印刷ページを決定し、ステップ305において該印刷ページに対応する開始位置及び終了位置を印刷ジョブオフセットファイルから取得し、またステップ306において印刷文字を描画指定するコマンドデータ列を、その開始位置及び終了位置間で印刷ジョブファイルから取得して出力する。以上の処理を全ページ出力終了するまで続ける(ステップ307)。   First, in step 301, the command data output destination is switched to the print job spooler 10 and the page rearrangement method designated by the user interface unit 6 is acquired. In step 310, it is determined whether or not the page unit memory clear mode is set. As a result of the determination, if it is not the page unit memory clear mode, the soft font reconstruction unit in step 311 is executed, and when the print page is rearranged, soft font data is taken into consideration from the created font file in consideration of the work memory consumption. Reconfigure. On the other hand, if the result of determination in step 310 is the page unit memory clear mode, it is determined whether there is a soft font data file in step 302 as in the prior art. All the soft font data definition command strings in the file are output. Next, in step 304, a print page to be output is determined according to the page rearrangement method, and in step 305, the start position and end position corresponding to the print page are printed. In step 306, a command data string for drawing and designating print characters is acquired from the print job file between the start position and the end position and output. The above processing is continued until all pages are output (step 307).

次に、ソフトフォント再構成部13の処理を図4を用いて説明する。本処理は前記文字描画処理部8で作成された印刷ジョブファイル、印刷ジョブオフセットファイル、フォントファイル、及びフォント情報テーブルより、描画すべきソフトフォントの文字列をソフトフォント再構成用ソフトフォントデータ出力テーブル(以下、フォント出力テーブル)に登録し、描画すべき文字列に対応するソフトフォントデータ定義コマンド列を出力後、描画すべき文字列を出力している。   Next, the processing of the soft font reconstruction unit 13 will be described with reference to FIG. In this process, a character string of a soft font to be drawn is converted from a print job file, a print job offset file, a font file, and a font information table created by the character drawing processing unit 8 into a soft font reconstruction software font data output table. (Hereinafter referred to as a font output table), and after outputting a soft font data definition command sequence corresponding to the character string to be rendered, the character string to be rendered is output.

まずステップ401において、指定されたページの並べ替え方法に従い、出力する印刷ページを決定し、次いでステップ402において、作成済みの印刷ジョブファイルにおける格納位置が保存されている印刷ジョブオフセットファイルから、該印刷ページに対応する開始位置及び終了位置を取得設定する。そして、ステップ403で前記印刷ジョブファイルにおいて、前記開始位置及び終了位置間でソフトフォントデータ定義名を検索し、対応する出力文字列をグループ化し、フォント出力テーブルに登録する。但し、このとき出力文字列に未ダウンロードのソフトフォントデータを含む場合のみ登録するものとする。   First, in step 401, a print page to be output is determined according to the specified page rearrangement method, and then in step 402, the print job offset file storing the storage position in the created print job file is used to print the print page. A start position and an end position corresponding to the page are acquired and set. In step 403, a soft font data definition name is searched between the start position and end position in the print job file, and the corresponding output character strings are grouped and registered in the font output table. At this time, however, registration is performed only when the output character string includes undownloaded soft font data.

次に、ステップ404において1グループに存在する出力文字のメモリ消費量(以下、グループメモリサイズと称する)を算出し、ステップ405において、現在の使用メモリサイズにグループメモリサイズを加えた値が利用可能メモリサイズの範囲内であるか否か判定され、判定の結果、範囲内であればステップ406に進み、該ソフトフォントデータに対応するヘッダコマンド列をフォント情報ファイルより取得し出力する。そしてステップ408において、フォントファイルより該ソフトフォントデータ定義コマンド列を取得して出力し、ステップ409においてフォント出力テーブル上で該ソフトフォントデータをダウンロード済みに設定する。上記の処理をグループに存在する全てのソフトフォントデータに対して行い(ステップ410)、終了後はステップ411で、グループメモリサイズを現在の使用メモリサイズに加算し、フォント出力ファイル上の現在のグループに対応する出力文字コマンド最後部の格納終了位置を現在の終了位置へ設定する。そしてステップ416において、該印刷ページに対応するコマンドデータ列を印刷ジョブファイルの開始位置及び終了位置(印刷ジョブオフセットファイル上の終了位置)間で取得して出力し、該印刷ページが終了するまで以上の処理を続ける(ステップ417)。但し、このとき印刷ジョブファイル内にメモリクリアコマンドデータ列が存在すれば、それらは出力しないようにする。   Next, in step 404, the memory consumption of the output characters existing in one group (hereinafter referred to as group memory size) is calculated, and in step 405, a value obtained by adding the group memory size to the currently used memory size can be used. It is determined whether or not the size is within the range of the memory size. If the result of the determination is within the range, the process proceeds to step 406, where a header command string corresponding to the soft font data is acquired from the font information file and output. In step 408, the soft font data definition command sequence is acquired from the font file and output. In step 409, the soft font data is set to be downloaded on the font output table. The above processing is performed on all the soft font data existing in the group (step 410), and after completion, in step 411, the group memory size is added to the current used memory size, and the current group on the font output file is displayed. The storage end position of the last part of the output character command corresponding to is set to the current end position. In step 416, the command data string corresponding to the print page is acquired and output between the start position and end position (end position on the print job offset file) of the print job file, and until the print page ends. The process is continued (step 417). However, if memory clear command data strings exist in the print job file at this time, they are not output.

ステップ405の判定において、現在の使用メモリサイズにグループメモリサイズを加えた値が利用可能メモリサイズを超えていれば、ステップ412に進み、現時点までの該印刷ページに対応するコマンドデータ列を印刷ジョブファイルの開始位置及び終了位置間で取得して出力し、更にステップ413で現在の終了位置を現在の開始位置へ、印刷ジョブオフセットファイル上の該印刷ページの終了位置を現在の終了位置へ再設定する。そしてステップ414において、現時点までにダウンロードしたソフトフォントデータをクリアするコマンド列を出力して印刷装置12上のワークメモリ内全てのソフトフォントデータをクリアし、フォント出力テーブル及び使用メモリサイズカウンタをリセットする。   If it is determined in step 405 that the value obtained by adding the group memory size to the currently used memory size exceeds the available memory size, the process proceeds to step 412 to display a command data string corresponding to the print page up to the present time as a print job. In step 413, the current end position is set to the current start position, and the print page end position on the print job offset file is reset to the current end position. To do. In step 414, a command sequence for clearing the soft font data downloaded up to the present time is output to clear all soft font data in the work memory on the printer 12, and the font output table and the used memory size counter are reset. .

上記の処理は、全ての印刷ページが終了するまで同様な処理を行う(ステップ415)。   The above process is performed until all print pages are completed (step 415).

次に、一例として、アプリケーションソフトウェアから図6に示すような4ページの印刷データを中綴じ指定で印刷した場合を説明する。   Next, as an example, a case will be described in which four pages of print data as shown in FIG.

アプリケーションソフトウェア3からの4ページの文字データ印刷要求により、印刷ジョブ生成ソフトウェア5は、フォントファイルにソフトフォントデータ#1として“あいうえおかきくけこ”の各定義コマンド列、ソフトフォントデータ#2として“P.1234”の各定義コマンド列を生成する(図2−2のステップ221及び図8−2のステップ111)。そして印刷ジョブファイルにそれらのソフトフォントに対応する出力文字コマンドデータ列を格納する(図2−2のステップ209)。更に印刷ジョブオフセットファイルには該印刷ページの出力文字コマンドデータ列の開始位置及び終了位置を表のように格納する(図8−2のステップ108)。また、そのときソフトフォントデータ#1と#2に対し、ヘッダコマンド、データ名、及びソフトフォントデータごとのメモリ消費サイズ、格納されているフォントファイル上の開始位置及び終了位置をセットにして、表のようなフォント情報テーブルを作成する(図2−2のステップ220)。   In response to a 4-page character data print request from the application software 3, the print job generation software 5 sets each definition command sequence of “Aiue Okeki Keko” as soft font data # 1 and “P” as soft font data # 2 in the font file. .1234 ″ (step 221 in FIG. 2-2 and step 111 in FIG. 8-2). Then, output character command data strings corresponding to those soft fonts are stored in the print job file (step 209 in FIG. 2-2). Further, the print job offset file stores the start position and end position of the output character command data string of the print page as shown in the table (step 108 in FIG. 8-2). At that time, for the soft font data # 1 and # 2, the header command, the data name, the memory consumption size for each soft font data, the start position and the end position on the stored font file are set and displayed. Is created (step 220 in FIG. 2-2).

フォント情報テーブルの#1、#2はソフトフォントデータの種類、例えばMS明朝などを示しているヘッダコマンド#1は、#1用のソフトフォントデータのヘッダコマンド定義列、データ#1は#1用のソフトフォントデータ名称を示す。また“あ”/200/31/130は、“あ”のフォントデータのメモリ消費量は200バイトであり、31はソフトフォントデータファイル上の先頭からの開始位置オフセット、130は同様に終了位置オフセットを示す。図6は、第2ページの“P.”で利用可能メモリサイズが一杯になり、次の“2”でこのサイズを超える例を示している。   In the font information table, # 1 and # 2 are the types of soft font data, for example, the header command # 1 indicating the MS Mincho etc., the header command definition sequence of the soft font data for # 1, and the data # 1 is # 1 Indicates the soft font data name. “A” / 200/31/130 has a memory consumption of 200 bytes for “A” font data, 31 is a start position offset from the top of the soft font data file, and 130 is also an end position offset. Indicates. FIG. 6 shows an example in which the available memory size becomes full at “P.” of the second page and exceeds this size at the next “2”.

次に、ページ並べ替え方法は中綴じ指定であるため、1→2→3→4のページ順を1→4→3→2のページ順に並べ替えを決定し、第1ページの開始位置及び終了位置を印刷ジョブオフセットファイルから取得する(図4のステップ402)。印刷ジョブファイル上の開始位置及び終了位置間で、ソフトフォントデータ名#1またはソフトフォントデータ名#2で検索し、最初に#1、“あいうえお”が見つかるので、グループG1としてデータ名#1と“あ”“い”“う”“え”“お”をセットにし、且つ出力文字コマンドデータ最後部の格納終了位置を設定する(図4のステップ403)。   Next, since the page rearrangement method is saddle stitching, the page order of 1 → 2 → 3 → 4 is determined to be rearranged in the order of 1 → 4 → 3 → 2 and the start position and end of the first page The position is acquired from the print job offset file (step 402 in FIG. 4). A search is performed with the soft font data name # 1 or the soft font data name # 2 between the start position and the end position on the print job file. First, # 1, “Aiueo” is found, so the data name # 1 is set as the group G1. “A”, “I”, “U”, “E”, “O” are set, and the storage end position of the last part of the output character command data is set (step 403 in FIG. 4).

そして、グループG1における全てのメモリ消費サイズを算出する。この例では表より“あ”の消費サイズは200、“い”は170、“う”は170、“え”は180、“お”は190であるので合計は910バイトになる。利用可能メモリサイズを2000バイトとすると、利用可能メモリサイズ>使用メモリ+グループメモリサイズ(=0+910)であるため、まずグループG1が存在するフォント情報テーブル上のヘッダコマンド#1を出力後、“あ”(31−130)、“い”(131−220)、“う”(221−300)、“え”(301−390)、“お”(391−490)の順にフォントファイル上のデータ定義コマンド列を出力し(図4のステップ408)、使用メモリサイズカウンタにグループメモリサイズを加算する(図4のステップ411)。なお、括弧内はフォント情報ファイル上の開始位置と終了位置を表す。また、メモリクリア発生時に直前の出力文字コマンドデータ列を出力するため、グループG1の出力文字コマンドデータ最後部の格納終了位置(=350)を現在の終了位置に設定しておく。   Then, all memory consumption sizes in the group G1 are calculated. In this example, the consumption size of “A” is 200, “I” is 170, “U” is 170, “E” is 180, and “O” is 190, so the total is 910 bytes. If the available memory size is 2000 bytes, the available memory size> the used memory + the group memory size (= 0 + 910). Therefore, after outputting the header command # 1 on the font information table in which the group G1 exists, “(31-130)”, “I” (131-220), “U” (221-300), “E” (301-390), “O” (391-490) A command string is output (step 408 in FIG. 4), and the group memory size is added to the used memory size counter (step 411 in FIG. 4). The parentheses indicate the start position and end position on the font information file. Further, in order to output the immediately preceding output character command data string when the memory clear occurs, the storage end position (= 350) at the end of the output character command data of the group G1 is set to the current end position.

グループG2(#2、“P.1”)に対しても同様の処理を行った後、第1ページのソフトフォントデータ定義コマンド列が全て出力できたため、第1ページに対する出力文字コマンドデータ列を印刷ジョブファイル上の開始位置及び終了位置間で取得し出力する(図4のステップ416)。   After performing the same processing for the group G2 (# 2, “P.1”), all the soft font data definition command strings for the first page could be output, so the output character command data string for the first page Acquired and output between the start position and end position on the print job file (step 416 in FIG. 4).

図6のフォント出力テーブルにおいて、G1,G2は印刷ジョブファイルデータごとの文字列をグループ化したものを示し、データ名#1は#1用のソフトフォントデータ名称を示す。また“あ”“い”“う”“え”“お”はグループG1における各文字コード、350は印刷ジョブファイル上のG1の出力文字コマンド最後部の格納位置オフセットを示す。   In the font output table of FIG. 6, G1 and G2 indicate character strings for each print job file data, and data name # 1 indicates a soft font data name for # 1. “A”, “I”, “U”, “E”, “O” indicate character codes in the group G1, and 350 indicates the storage position offset of the last part of the output character command of G1 on the print job file.

これはページ内に存在する出力すべき文字を、ソフトフォントデータ単位で順番にグループ登録してコマンドデータ出力時に使用する。   In this method, characters to be output existing in the page are group-registered sequentially in units of soft font data and used when command data is output.

第4ページの場合、第4ページの開始位置及び終了位置を印刷ジョブオフセットファイルから取得して、第4ページに対するフォント出力テーブルを作成すると、表の上段のようにG3、G4がグループとして作成される(図4のステップ403)。しかし、利用可能メモリサイズ(=2000)<使用メモリ+グループメモリサイズ(=1980+90)であるため、ここでメモリクリア処理を行う(図4のステップ412,413及び414)。この処理によりG3の“かきくけこ”の次にメモリクリアコマンドが生成される。   In the case of the fourth page, when the start position and end position of the fourth page are obtained from the print job offset file and the font output table for the fourth page is created, G3 and G4 are created as a group as shown in the upper part of the table. (Step 403 in FIG. 4). However, since available memory size (= 2000) <used memory + group memory size (= 1980 + 90), memory clear processing is performed here (steps 412, 413 and 414 in FIG. 4). As a result of this processing, a memory clear command is generated next to “Kakikakeko” in G3.

出力文字コマンドデータ列を出力する前にメモリクリアを実行してしまうと、文字抜けが発生してしまうため、まず第4ページにおける印刷ジョブファイル上の開始位置(=301)から終了位置(=950)間の出力文字コマンドデータ列を出力する。次の格納位置設定のため、現在の開始位置へ終了位置+1(=951)、終了位置へ第4ページ終了位置(=1000)をそれぞれ設定し、ソフトフォントデータ#1と#2に対するメモリクリアコマンドを出力して、フォント出力テーブル及び使用メモリサイズカウンタをリセットする。そして、印刷ジョブファイルの開始位置(=951)から終了位置(=1000)で検索し、再度フォント出力テーブルを登録し(表の下段のように、未ダウンロードの#2、“P”“.”“4”がグループG1として登録される)、グループG1(#2、“P.4”)のソフトフォントに対するヘッダコマンド及びデータ定義コマンド列を出力し、第4ページにおける現在の開始位置及び終了位置間の出力文字コマンドデータ列を出力する。以降、第3、2ページに対しても行い、表のようなコマンドデータ順で出力する(ステップ2)。   If the memory clear is executed before the output character command data string is output, character omission occurs. First, the start position (= 301) to the end position (= 950) on the print job file on the fourth page. ) Output character command data string is output. To set the next storage position, the end position + 1 (= 951) is set to the current start position, the fourth page end position (= 1000) is set to the end position, and the memory clear command for the soft font data # 1 and # 2 is set. To reset the font output table and the used memory size counter. Then, the search is performed from the start position (= 951) to the end position (= 1000) of the print job file, and the font output table is registered again (as shown in the lower part of the table, undownloaded # 2, “P”, “.”). "4" is registered as group G1), header commands and data definition command strings for group G1 (# 2, "P.4") soft fonts are output, and the current start position and end position on the fourth page Output character command data string between. Thereafter, the process is performed for the third and second pages, and is output in the order of command data as shown in the table (step 2).

図6のステップ1とステップ2では、表のようにメモリクリアタイミングが異なるが、印刷ページの並べ替え時利用可能メモリクリア方法でも、ソフトフォント再構成により、ソフトフォントを含む印刷データに対してメモリ不足エラーを発生させることなく、正常印刷できる。また、第1の実施例と比較すると、必要なソフトフォントデータのみダウンロードするため、コードサイズにおいて生成効率が良い方法となる。   In step 1 and step 2 of FIG. 6, the memory clear timing is different as shown in the table, but even in the memory clear method that can be used at the time of print page rearrangement, memory for print data including soft fonts is obtained by soft font reconstruction. Normal printing is possible without causing a shortage error. Further, compared with the first embodiment, only necessary soft font data is downloaded, so that the generation efficiency is improved in the code size.

本発明に係る印刷ジョブ処理方法の第1の実施例を示す全体ブロック図である。1 is an overall block diagram illustrating a first embodiment of a print job processing method according to the present invention. FIG. 本発明に係る印刷ジョブ処理方法の第2の実施例を示す全体ブロック図である。FIG. 6 is an overall block diagram illustrating a second embodiment of a print job processing method according to the present invention. 本発明の第1の実施例における文字描画処理部のフローチャートである。It is a flowchart of the character drawing process part in 1st Example of this invention. 本発明の第2の実施例における文字描画処理部のフローチャートである。It is a flowchart of the character drawing process part in 2nd Example of this invention. 本発明の第2の実施例におけるデスプール部のフローチャートである。It is a flowchart of the despooler in the 2nd Example of this invention. 本発明の第2の実施例におけるソフトフォント再構成部のフローチャートである。It is a flowchart of the soft font reconstruction part in 2nd Example of this invention. 本発明処理方法による中綴じの一例を説明する説明図である。It is explanatory drawing explaining an example of the saddle stitching by this invention processing method. 本発明処理方法による中綴じの一例を説明する説明図である。It is explanatory drawing explaining an example of the saddle stitching by this invention processing method. 従来の並べ替え印刷に関する全体ブロック図である。It is a whole block diagram regarding the conventional rearrangement printing. 従来の印刷ジョブ生成処理部のフローチャートである。10 is a flowchart of a conventional print job generation processing unit. 本発明の第2の実施例における印刷ジョブ生成処理部のフローチャートである。10 is a flowchart of a print job generation processing unit according to the second embodiment of the present invention. 従来の文字描画処理部のフローチャートである。It is a flowchart of the conventional character drawing process part. 従来のデスプール部のフローチャートである。It is a flowchart of the conventional despooling part.

符号の説明Explanation of symbols

1はホストコンピュータ、2はオペレーティングシステム、3はアプリケーションソフトウェア、4は印刷インターフェイス、5は印刷ジョブ生成ソフトウェア、6はユーザーインターフェイス部、7は印刷ジョブ生成処理部、8は文字描画処理部、9はデスプール部、10は印刷ジョブスプーラ、11は双方向インターフェイス、12は印刷装置、13はソフトフォント再構成部である。
1 is a host computer, 2 is an operating system, 3 is application software, 4 is a print interface, 5 is print job generation software, 6 is a user interface unit, 7 is a print job generation processing unit, 8 is a character drawing processing unit, and 9 is A despooling unit, 10 is a print job spooler, 11 is a bidirectional interface, 12 is a printing apparatus, and 13 is a soft font reconstruction unit.

Claims (3)

アプリケーションソフトウェアと、印刷ページの並べ替えが可能な印刷ジョブ生成ソフトウェアを有するホストコンピュータと、所定サイズのワークメモリを有する印刷装置とを備えたシステムにおける印刷ジョブ処理方法であって、前記印刷ジョブ生成ソフトウェアは、前記印刷装置へ送信する印刷データを印刷ジョブファイルに生成するステップと、前記印刷ジョブファイルに格納された印刷データの各印刷ページの格納位置を示すデータを印刷ジョブオフセットファイルに生成するステップと、前記印刷ジョブファイル及び印刷ジョブオフセットファイルに生成されたデータを用いてオペレータの並べ替え指定に応じた順に印刷ページを並べ替えた出力コマンドデータを作成するステップとを有し、前記印刷ジョブファイルを作成するときに、前記印刷装置のワークメモリを各ページ毎にクリアするクリアコマンドと、前記印刷装置にダウンロードするソフトフォントの格納に使用するメモリサイズがワークメモリの利用可能メモリサイズを超えた時は、その都度ワークメモリをクリアするクリアコマンドを生成するステップを備えたことを特徴とする印刷ジョブ処理方法。   A print job processing method in a system including application software, a host computer having print job generation software capable of rearranging print pages, and a printing apparatus having a work memory of a predetermined size, the print job generation software Generating print data to be transmitted to the printing apparatus in a print job file; generating data indicating a storage position of each print page of the print data stored in the print job file in a print job offset file; Generating output command data in which print pages are rearranged in the order according to the operator's rearrangement specification using the data generated in the print job file and the print job offset file. create When the memory size used to store the working font of the printing device for each page and the storage size of the soft font downloaded to the printing device exceeds the available memory size of the working memory, A print job processing method comprising a step of generating a clear command for clearing a work memory each time. アプリケーションソフトウェアと、印刷ページの並べ替えが可能な印刷ジョブ生成ソフトウェアを有するホストコンピュータと、所定サイズのワークメモリを有する印刷装置とを備えたシステムにおける印刷ジョブ処理方法であって、前記印刷ジョブ生成ソフトウェアは、前記印刷装置にダウンロードするソフトフォントデータをフォントファイルに生成するステップと、前記印刷装置へ送信する印刷データを印刷ジョブファイルに生成するステップと、前記印刷装置にダウンロードするソフトフォントデータのソフトフォント定義名、前記ワークメモリの消費量及び前記フォントファイル上の格納位置を示すデータを格納するソフトフォント情報テーブルを生成するステップと、前記印刷データをオペレータの並べ替え指定に応じた順に並べ替えた出力コマンドデータを作成するステップとを有し、前記並べ替えた出力コマンドデータを作成する際に、前記ソフトフォント情報テーブルを用いて前記ソフトフォントデータを再構築すると共に、該ソフトフォントの格納に使用するメモリサイズがワークメモリの利用可能メモリサイズを超えた時はワークメモリをクリアするクリアコマンドを生成することを特徴とする印刷ジョブ処理方法。   A print job processing method in a system including application software, a host computer having print job generation software capable of rearranging print pages, and a printing apparatus having a work memory of a predetermined size, the print job generation software A step of generating a soft font data to be downloaded to the printing device into a font file, a step of generating print data to be transmitted to the printing device into a print job file, and a soft font of the soft font data to be downloaded to the printing device Generating a soft font information table for storing data indicating a definition name, consumption of the work memory, and a storage position on the font file; and arranging the print data in an order according to an operator's rearrangement designation. Creating the replaced output command data, and reconstructing the soft font data using the soft font information table when storing the rearranged output command data, and storing the soft font A print job processing method, comprising: generating a clear command for clearing a work memory when a memory size used in the process exceeds an available memory size of the work memory. 請求項2において、ソフトフォントデータは、ソフトフォントデータの種類単位でグループ化されるように再構築することを特徴とする印刷ジョブ処理方法。
3. The print job processing method according to claim 2, wherein the soft font data is reconstructed so as to be grouped in units of types of the soft font data.
JP2004218154A 2004-07-27 2004-07-27 Print job processing method Expired - Fee Related JP4441350B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004218154A JP4441350B2 (en) 2004-07-27 2004-07-27 Print job processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004218154A JP4441350B2 (en) 2004-07-27 2004-07-27 Print job processing method

Publications (2)

Publication Number Publication Date
JP2006039898A true JP2006039898A (en) 2006-02-09
JP4441350B2 JP4441350B2 (en) 2010-03-31

Family

ID=35904840

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004218154A Expired - Fee Related JP4441350B2 (en) 2004-07-27 2004-07-27 Print job processing method

Country Status (1)

Country Link
JP (1) JP4441350B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011243009A (en) * 2010-05-18 2011-12-01 Kyocera Mita Corp Image forming system, image forming apparatus, and driver program
CN118312115A (en) * 2024-06-07 2024-07-09 浙江口碑网络技术有限公司 Information processing method, printing processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011243009A (en) * 2010-05-18 2011-12-01 Kyocera Mita Corp Image forming system, image forming apparatus, and driver program
CN118312115A (en) * 2024-06-07 2024-07-09 浙江口碑网络技术有限公司 Information processing method, printing processing method and device

Also Published As

Publication number Publication date
JP4441350B2 (en) 2010-03-31

Similar Documents

Publication Publication Date Title
JP3873427B2 (en) Intermediate file processing apparatus in printer control system and recording medium recorded with control program thereof
JP5238526B2 (en) System and method for print resource management
KR100661173B1 (en) Print having a direct printing function and printing method thereof
US6992785B1 (en) Method, data structure and apparatus for identifying resources prior to printing
JP2003200622A (en) Banded composing machine for variable data
JP2008090377A (en) Rasterizing device, program and method
JP4441350B2 (en) Print job processing method
JP2004090612A (en) Printing method, data structure and printing system
JP2010105388A (en) Image forming device
JP2001105671A (en) Image processor, image processing method, imaging apparatus
WO2015032125A1 (en) Raster processing method and apparatus of transparent form
JPH06106810A (en) Method for forming image and its device
JP3854790B2 (en) Image processing apparatus and method, and storage medium
JP4775480B2 (en) PDL data processing apparatus and PDL data processing program
JP2007249403A (en) Image data processing system and method for it
JP3927691B2 (en) Image forming system, information processing apparatus, transmission method, and recording medium
JPH0816802A (en) Picture processing method, picture processor and picture processing system
JPH08300743A (en) Printing processing system
JP2006236006A (en) Printer, program and recording medium
JP2001113764A (en) Printer and image processing system equipped therewith
KR100528863B1 (en) Printer capable of extracting text data, and method for extracting text data thereof
JP2002120418A (en) Printer device and image processing device comprising the printer device
KR100644666B1 (en) Method and apparatus for outputting of printer
JP2004017659A (en) Method and device for improving information accumulation using compressed format and non-compressed format
JP2000330746A (en) Method and device for data caching, storage medium and digital printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070605

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20081202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091009

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091019

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20091221

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100108

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

Free format text: PAYMENT UNTIL: 20130115

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130115

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140115

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees