JP2006031427A - Printer driver, storage medium, and symbol code printing method - Google Patents
Printer driver, storage medium, and symbol code printing method Download PDFInfo
- Publication number
- JP2006031427A JP2006031427A JP2004209639A JP2004209639A JP2006031427A JP 2006031427 A JP2006031427 A JP 2006031427A JP 2004209639 A JP2004209639 A JP 2004209639A JP 2004209639 A JP2004209639 A JP 2004209639A JP 2006031427 A JP2006031427 A JP 2006031427A
- Authority
- JP
- Japan
- Prior art keywords
- symbol code
- character string
- information
- image data
- printer driver
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
【課題】 バーコード等のシンボルコードの印刷を、プリンタ以外の環境に依存せずにプリンタドライバでの処理だけで高品質に行えるようにする。
【解決手段】 プリンタドライバ22内において、入力される描画データ中にシンボルコード描画の情報として、例えば[使用するシンボルコード名,シンボルコードに変換する文字列]のような特定書式の文字列情報が含まれているか否かを文字処理モジュール33に解析させ、含まれている場合にはその情報に基づきシンボルコード描画モジュール34でプリンタ1に最適化され色補正処理等を受けないシンボルコードのイメージデータを作成してプリンタ1に出力させてシンボルコードを印刷させることで、プリンタ1以外の環境に依存することなく、高品質なシンボルコードの印刷が可能となる。
【選択図】 図3
PROBLEM TO BE SOLVED: To perform printing of a symbol code such as a barcode with high quality only by processing by a printer driver without depending on an environment other than the printer.
In a printer driver 22, character code information in a specific format such as [name of symbol code to be used, character string to be converted to symbol code] is included as symbol code drawing information in input drawing data. Whether or not it is included is analyzed by the character processing module 33. If it is included, the symbol code image data optimized by the symbol code drawing module 34 for the printer 1 and not subjected to color correction processing or the like based on the information. Is generated and output to the printer 1 to print the symbol code, so that high-quality symbol code can be printed without depending on the environment other than the printer 1.
[Selection] Figure 3
Description
本発明は、バーコード等のシンボルコードの印刷に適したプリンタドライバ、記憶媒体及びシンボルコード印刷方法に関する。 The present invention relates to a printer driver, a storage medium, and a symbol code printing method suitable for printing a symbol code such as a barcode.
バーコード等のシンボルコードの印刷をアプリケーションから行なう場合、専用のソフトウエアを利用し、アプリケーション内でバーコードをイメージ化やグラフィック化して印刷させる方法が一般的である。 When printing a symbol code such as a barcode from an application, a general method is to use a dedicated software and print the barcode as an image or a graphic within the application.
この点、バーコードの印刷をより簡単にするため、例えば、特許文献1によれば、文字の外字領域にバーコードを登録し(即ち、フォントとしてバーコードを作成し)、印刷時にフォントを指定することでバーコードを印刷する方法が提案されている。 In this regard, in order to make barcode printing easier, for example, according to Patent Document 1, a barcode is registered in an external character area of a character (that is, a barcode is created as a font), and a font is designated at the time of printing. Thus, a method for printing a barcode has been proposed.
また、特許文献2によれば、印刷するシンボルを所定の範囲内に正確に印刷させるシンボル印刷方法が提案されている。
According to
さらに、印刷要求のコマンドをプリンタが使用できるページ記述言語(PDL)に変換する機能を有するプリンタドライバに関して、プリンタに対してバーコードを描画するためのコマンド(バーコード描画コマンド)を持つことで、プリンタドライバがバーコードフォントで作成した文字列をバーコード描画コマンドに置き換えてプリンタに送信させることによりバーコードの描画印刷を行わせるようにしたものが市販されている。 Furthermore, regarding a printer driver having a function of converting a print request command into a page description language (PDL) that can be used by a printer, by having a command (barcode drawing command) for drawing a barcode on the printer, A printer driver that replaces a character string created with a barcode font with a barcode drawing command and transmits the character string to a printer is commercially available.
ところが、アプリケーションによりイメージデータ又はグラフィックデータとしてバーコードを作成した場合、プリンタドライバやプリンタではバーコードであるとは判断できず、一般の、イメージデータ又はグラフィックデータとして扱われる。このため、プリンタに当該バーコードデータが送信されるまでに、描画サイズや色に対して、OSやアプリケーションによる補正(画像処理)、プリンタドライバによる補正(画像処理)、プリンタによる補正(画像処理)が順次かかって実際の印刷を行うため、必ずしもユーザやアプリケーションが意図した印刷結果とはならず、微妙に異なってしまう場合が多々ある。このような印刷結果となっても、通常のイメージやグラフィックではさほど問題はないが、バーコードは元々バーコードリーダ等の機械で読み取ることを前提としており、各種規格条件が規定されているものであり、描画の過程で各種補正処理を受けることは好ましくないものである。結局、バーコードとしての品質を保障できないケースが多く、バーコード読取り時の精度が低下してしまう懸念がある。 However, when a barcode is created as image data or graphic data by an application, it cannot be determined by the printer driver or printer as a barcode, and is handled as general image data or graphic data. Therefore, before the barcode data is transmitted to the printer, the drawing size and color are corrected by the OS and application (image processing), corrected by the printer driver (image processing), and corrected by the printer (image processing). Since the actual printing is performed sequentially, the printing result is not necessarily intended by the user or the application, and may differ slightly. Even if such a print result is obtained, there is not much problem with normal images and graphics, but barcodes are originally assumed to be read by a machine such as a barcode reader, and various standard conditions are prescribed. Therefore, it is not preferable to receive various correction processes in the drawing process. In the end, there are many cases where the quality of the barcode cannot be guaranteed, and there is a concern that the accuracy at the time of reading the barcode is lowered.
また、特許文献1の場合のように、バーコードをフォントで作成する方式は、一般にも流通しており、例えば“123”と入力すれば、それに対応したバーコードがモニタ上に表示され、プリンタにもTrue Typeフォントとして認識される。この場合、フォントであるので、サイズも任意に設定できる。ところが、全てのサイズに関してバーコードとしての品質は保障できず、アプリケーションがプリンタの解像度に合わせて変倍するので、サイズに誤差が入りやすく、この場合も、バーコード読取り時の精度が低下してしまう懸念がある。つまり、バーコードのピッチやサイズがフォント情報に依存してしまい、誤差が大きく、バーコードとしての認識率が低くなってしまう、という課題がある。フォントであるので、文字用の画像補正を受けた場合も同様である。 Further, as in the case of Patent Document 1, a method for creating a barcode with a font is generally available. For example, if “123” is input, the corresponding barcode is displayed on the monitor, and the printer Also recognized as True Type font. In this case, since the font is used, the size can be arbitrarily set. However, the quality of barcodes for all sizes cannot be guaranteed, and the application scales according to the resolution of the printer, so errors are likely to occur in the size. In this case, the accuracy of barcode reading also decreases. There is a concern. That is, there is a problem that the barcode pitch and size depend on the font information, the error is large, and the recognition rate as a barcode is low. Since it is a font, the same applies to the case where image correction for characters is performed.
さらに、プリンタドライバにバーコード描画コマンドを持たせ、プリンタドライバがプリンタフォントとしてバーコードを印刷させる方式の場合、プリンタ中のプリンタコントローラがバーコード描画コマンドに基づきバーコードを描画できる機能(バーコード専用機能)を有する場合のみ可能で汎用性に欠ける上に、文字列で表現できない制御コードに関するコードはバーコードに変換できない、という不具合がある。 In addition, when the printer driver has a barcode drawing command and the printer driver prints a barcode as a printer font, the printer controller in the printer can draw a barcode based on the barcode drawing command (for barcodes only) This is possible only when it has a function) and lacks versatility. In addition, a code related to a control code that cannot be expressed by a character string cannot be converted into a barcode.
本発明の目的は、バーコード等のシンボルコードの印刷を、プリンタ以外の環境に依存せずに高品質に行えるようにすることである。 An object of the present invention is to enable printing of a symbol code such as a barcode with high quality without depending on an environment other than the printer.
請求項1記載の発明のプリンタドライバは、プリンタに接続されたコンピュータにインストールされ、前記コンピュータに、印刷要求に応じて入力される描画データ中にシンボルコード描画の情報が含まれているか否か当該描画データの内容を判定する機能と、判定の結果、シンボルコード描画の情報が含まれている場合には、当該シンボルコード描画の情報を解析し解析された情報に基づきシンボルコードのイメージデータを作成する機能と、作成されたシンボルコードのイメージデータを前記プリンタに出力させてシンボルコードを印刷させる機能と、を実行させる。 The printer driver according to the first aspect of the present invention is installed in a computer connected to a printer, and whether or not the computer includes symbol code drawing information in drawing data input in response to a print request. A function to determine the contents of drawing data and, if the result of the determination includes symbol code drawing information, analyzes the symbol code drawing information and creates symbol code image data based on the analyzed information And a function for outputting the generated symbol code image data to the printer and printing the symbol code.
本発明及び以下の発明において、「シンボルコード」とは、通常のバーコード(1次元バーコード)に限らず、各種2次元コードを含む意味である。2次元コードには、バーコードを縦に積層させた形のスタック型2次元バーコードや、バーコードとは全く別の発想に基づきマトリクスの交点が黒か白かによってコード化したマトリクス型2次元コード(QRコード)などが含まれる。また、1次元バーコードには、カスタマーコード(郵政用)も含まれるものとする。 In the present invention and the following inventions, the “symbol code” is not limited to a normal bar code (one-dimensional bar code) but includes various two-dimensional codes. Two-dimensional codes include stack-type two-dimensional barcodes in which barcodes are stacked vertically, and matrix-type two-dimensional codes based on whether the intersection of the matrix is black or white based on a completely different concept from barcodes. Code (QR code) and the like are included. The one-dimensional barcode also includes a customer code (for postal service).
請求項2記載の発明は、請求項1記載のプリンタドライバにおいて、前記シンボルコード描画の情報は、予め設定された特定書式の文字列情報であり、前記判定する機能は、入力される前記描画データにおける文字列情報中に当該特定書式の文字列情報が含まれているか否かを判定する。 According to a second aspect of the present invention, in the printer driver according to the first aspect, the symbol code drawing information is character string information in a specific format set in advance, and the determination function is the input drawing data It is determined whether or not character string information in the specific format is included in the character string information in.
請求項3記載の発明は、請求項2記載のプリンタドライバにおいて、前記特定書式の文字列は、[使用するシンボルコード名,シンボルコードに変換する文字列]からなり、前記判定する機能は、前記使用するシンボルコード名が含まれていることによりシンボルコード描画の情報が含まれていると判定し、前記作成する機能は、前記シンボルコードに変換する文字列の情報に基づきシンボルコードのイメージデータを作成する。 According to a third aspect of the present invention, in the printer driver according to the second aspect, the character string in the specific format includes [a symbol code name to be used, a character string to be converted into a symbol code], and the determination function includes the Since the symbol code name to be used is included, it is determined that the symbol code drawing information is included, and the function of creating the symbol code image data based on the information of the character string to be converted into the symbol code. create.
本発明及び以下の発明において、「使用するシンボルコード名」としては、例えばバーコード等のシンボルコードの種類(規格)である「EAN128」「CODE39」「(郵政)カスタマー」「CODE128」「QR」等を例示することができる。 In the present invention and the following invention, the “symbol code name to be used” is, for example, “EAN128”, “CODE39”, “(Postal) customer”, “CODE128”, “QR”, which is the type (standard) of a symbol code such as a barcode. Etc. can be illustrated.
請求項4記載の発明は、請求項2記載のプリンタドライバにおいて、前記特定書式の文字列は、[使用するシンボルコード名,シンボルコードに変換する文字列,シンボルコードのサイズ]からなり、前記判定する機能は、前記使用するシンボルコード名が含まれていることによりシンボルコード描画の情報が含まれていると判定し、前記作成する機能は、前記シンボルコードに変換する文字列の情報に基づき前記シンボルコードのサイズに従うサイズのシンボルコードのイメージデータを作成する。 According to a fourth aspect of the present invention, in the printer driver according to the second aspect, the character string of the specific format includes [a symbol code name to be used, a character string to be converted into a symbol code, a size of the symbol code], and the determination. The function to determine that the symbol code name to be used is included and thereby the symbol code drawing information is included, and the function to be created is based on the information on the character string to be converted to the symbol code. Image data of a symbol code having a size according to the size of the symbol code is created.
請求項5記載の発明は、請求項2記載のプリンタドライバにおいて、前記特定書式の文字列は、使用するシンボルコード名に対応付けて予め設定された特定フォントによるシンボルコードに変換する文字列であり、前記判定する機能は、前記特定フォントの文字列が含まれていることによりシンボルコード描画の情報が含まれていると判定し、前記作成する機能は、前記シンボルコードに変換する文字列の情報に基づきシンボルコードのイメージデータを作成する。 According to a fifth aspect of the present invention, in the printer driver according to the second aspect, the character string in the specific format is a character string that is converted into a symbol code in a specific font set in advance in association with a symbol code name to be used. The determination function determines that symbol code drawing information is included because the character string of the specific font is included, and the function to create is information on a character string to be converted into the symbol code. The image data of the symbol code is created based on the above.
請求項6記載の発明は、請求項5記載のプリンタドライバにおいて、ユーザインターフェースとして前記特定フォントを使用するシンボルコード名に対応付けて予め設定させるシンボルコード置換用フォント設定ダイアログを提供する機能を前記コンピュータに実行させる。 According to a sixth aspect of the present invention, in the printer driver according to the fifth aspect, the computer has a function of providing a symbol code replacement font setting dialog that is set in advance in association with a symbol code name that uses the specific font as a user interface. To run.
請求項7記載の発明は、請求項3ないし6の何れか一記載のプリンタドライバにおいて、文字列で表現できない制御コード部分は、予め設定された文字列を用いて前記シンボルコードに変換する文字列中に指定させる。 According to a seventh aspect of the present invention, in the printer driver according to any one of the third to sixth aspects, a control code portion that cannot be represented by a character string is converted to the symbol code using a preset character string. Let me specify inside.
請求項8記載の発明は、請求項2,3,5,6又は7記載のプリンタドライバにおいて、前記作成する機能は、前記特定書式の文字列情報の文字サイズに応じて作成するシンボルコードのイメージデータのサイズを決定する。 According to an eighth aspect of the present invention, in the printer driver according to the second, third, fifth, sixth, or seventh aspect, the function to be created is an image of a symbol code that is created according to the character size of the character string information in the specific format. Determine the size of the data.
請求項9記載の発明は、請求項2,3,5,6又は7記載のプリンタドライバにおいて、ユーザインターフェースとしてシンボルコードのサイズ設定を含む印刷条件設定印刷ダイアログを提供する機能を前記コンピュータに実行させ、前記作成する機能は、前記印刷条件設定印刷ダイアログを通じて設定されたサイズに応じて作成するシンボルコードのイメージデータのサイズを決定する。 According to a ninth aspect of the invention, in the printer driver according to the second, third, sixth, or seventh aspect, the computer is caused to execute a function of providing a print condition setting print dialog including a symbol code size setting as a user interface. The function to be created determines the size of the image data of the symbol code to be created according to the size set through the print condition setting print dialog.
請求項10記載の発明は、請求項1ないし9の何れか一記載のプリンタドライバにおいて、前記作成する機能は、作成したシンボルコードの背景に空白を付与する機能を前記コンピュータに実行させる。 According to a tenth aspect of the present invention, in the printer driver according to any one of the first to ninth aspects, the function to be created causes the computer to execute a function of adding a blank to the background of the created symbol code.
請求項11記載の発明は、請求項10記載のプリンタドライバにおいて、前記空白を付与する機能は、作成したシンボルコードのサイズに応じて付与する当該空白部分のサイズを決定する。
The invention described in
請求項12記載の発明は、請求項10記載のプリンタドライバにおいて、ユーザインターフェースとして付与する前記空白部分のサイズ設定を含む印刷条件設定印刷ダイアログを提供する機能を前記コンピュータに実行させ、前記空白を付与する機能は、前記印刷条件設定印刷ダイアログを通じて設定されたサイズ分の空白を付与する。 According to a twelfth aspect of the invention, in the printer driver according to the tenth aspect, the computer is caused to execute a function of providing a print condition setting print dialog including a size setting of the blank portion to be given as a user interface, and the blank is given. The function to give a blank for the size set through the print condition setting print dialog.
請求項13記載の発明は、請求項1記載のプリンタドライバにおいて、前記シンボルコード描画の情報は、イメージデータで作成されたシンボルコードであり、前記判定する機能は、入力される前記描画データにおけるイメージデータ中にシンボルコードの情報が含まれているか否かを解析し、判定の結果、イメージデータ中にシンボルコードの情報が含まれている場合には、前記作成する機能は、当該シンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し直す。 According to a thirteenth aspect of the present invention, in the printer driver according to the first aspect, the symbol code drawing information is a symbol code created from image data, and the determination function is an image in the input drawing data. Analyzing whether or not the symbol code information is included in the data, and as a result of the determination, if the symbol data information is included in the image data, the function to create is the content of the symbol code The image data of the symbol code is created again based on the contents.
請求項14記載の発明は、請求項1記載のプリンタドライバにおいて、前記シンボルコード描画の情報は、グラフィックデータで作成されたシンボルコードであり、前記判定する機能は、入力される前記描画データにおけるグラフィックデータ中にシンボルコードの情報が含まれているか否かを解析し、判定の結果、グラフィックデータ中にシンボルコードの情報が含まれている場合には、前記作成する機能は、当該シンボルコードの内容を読取りその内容に基づきシンボルコードのイメージデータを作成する。 According to a fourteenth aspect of the present invention, in the printer driver according to the first aspect, the symbol code drawing information is a symbol code created from graphic data, and the determination function is a graphic in the input drawing data. Analyzing whether or not the symbol code information is included in the data, and as a result of the determination, if the graphic data includes the symbol code information, the function to create is the content of the symbol code The image data of the symbol code is created based on the content of the data.
請求項15記載の発明は、請求項1ないし14の何れか一記載のプリンタドライバにおいて、判定の結果、シンボルコード描画の情報が含まれている場合において当該情報に基づきシンボルコードを作成する上でシンボルコードとしての適合性を判定する機能と、適合しないと判定された場合には、その旨をユーザに知らせる機能と、を前記コンピュータに実行させる。 According to a fifteenth aspect of the present invention, in the printer driver according to any one of the first to fourteenth aspects, when the determination result includes symbol code drawing information, the symbol code is generated based on the information. The computer is caused to execute a function of determining suitability as a symbol code and a function of notifying the user to the effect when it is determined that the symbol code does not match.
請求項16記載の発明は、請求項15記載のプリンタドライバにおいて、前記知らせる機能は、前記作成する機能によりシンボルコードを作成させないことによりその旨をユーザに知らせる。 According to a sixteenth aspect of the present invention, in the printer driver according to the fifteenth aspect, the notifying function notifies the user of the fact by not causing the generating function to generate a symbol code.
請求項17記載の発明は、請求項15記載のプリンタドライバにおいて、前記知らせる機能は、適合しない旨のエラーレポートを前記プリンタに印刷出力させる。 According to a seventeenth aspect of the present invention, in the printer driver according to the fifteenth aspect, an error report indicating that the notification function is not compatible is printed out by the printer.
請求項18記載の発明は、請求項15記載のプリンタドライバにおいて、前記知らせる機能は、適合しない旨をユーザインターフェースとしてエラーダイアログにより表示させる。 According to an eighteenth aspect of the present invention, in the printer driver according to the fifteenth aspect, an error dialog is displayed as a user interface that the notifying function is not compatible.
これらの発明の作用・効果は、請求項19記載の記憶媒体、請求項20ないし37記載のシンボルコード印刷方法によっても実現可能である。 The functions and effects of these inventions can also be realized by the storage medium according to claim 19 and the symbol code printing method according to claims 20 to 37.
請求項1,19,20記載の発明によれば、プリンタドライバにおいて、入力される描画データ中にシンボルコード描画の情報が含まれているか否かを解析させ、含まれている場合にはその情報に基づきシンボルコードのイメージデータを作成してプリンタに出力させてシンボルコードを印刷させるので、プリンタドライバでプリンタに最適化され色補正処理等を受けないシンボルコードのイメージデータを作成し、当該イメージデータに基づきプリンタでシンボルコードを印刷させることができ、プリンタ以外の環境に依存することなく、高品質なシンボルコードの印刷を行わせることができる。 According to the first, nineteenth and twentieth aspects of the present invention, the printer driver analyzes whether or not the input drawing data includes symbol code drawing information. The image data of the symbol code is created and output to the printer based on the image data, and the symbol code is printed. Therefore, the image data of the symbol code that is optimized for the printer and not subjected to color correction processing is created by the printer driver. The symbol code can be printed by the printer based on the above, and the high-quality symbol code can be printed without depending on the environment other than the printer.
請求項2,19,21記載の発明によれば、シンボルコード描画の情報を、予め設定された特定書式の文字列情報とすることにより、シンボルコードの作成に要する専門的な知識や専用のソフトウエアが不要となり、簡単な描画データの入力操作でシンボルコードの印刷を行わせることができる。
According to the invention described in
請求項3,19,22記載の発明によれば、特定書式の文字列を、[使用するシンボルコード名,シンボルコードに変換する文字列]としているので、請求項2,21記載の発明を容易に実現することができる。 According to the third, nineteenth and twenty-second aspects of the invention, the character string in the specific format is [a symbol code name to be used, a character string to be converted into a symbol code]. Can be realized.
請求項4,19,23記載の発明によれば、特定書式の文字列を、[使用するシンボルコード名,シンボルコードに変換する文字列,シンボルコードのサイズ]としているので、請求項2,21記載の発明を容易に実現できる上に、シンボルコードのサイズ指定も簡単に行なうことができる。
According to the inventions of
請求項5,19,24記載の発明によれば、特定書式の文字列を、使用するシンボルコード名に対応付けて予め設定された特定フォントによるシンボルコードに変換する文字列としているので、文字列からシンボルコードへの変換作成をフォントに連動させることにより各種フォントを有する文字列の特徴を活かして請求項2,21記載の発明を容易に実現することができる。
According to the inventions of
請求項6,19,25記載の発明によれば、シンボルコード置換用フォント設定ダイアログを利用して特定フォントを使用するシンボルコード名に対応付けて予め設定させるので、あまり使用しないようなフォントを特定フォントに設定する等、ユーザインターフェースに優れた設定が可能となり、請求項5,24記載の発明を容易に実現することができる。
According to the invention described in
請求項7,19,26記載の発明によれば、文字列で表現できない制御コード部分は、予め設定された文字列を用いてシンボルコードに変換する文字列中に指定させるようにしたので、制御コード部分に関してもシンボルコードに含む印刷が可能となり、融通性の高いシンボルコード印刷を可能にすることができる。 According to the seventh, nineteenth and twenty-sixth aspects of the present invention, the control code portion that cannot be expressed by the character string is specified in the character string to be converted into the symbol code using the preset character string. The code portion can be printed including the symbol code, and the symbol code can be printed with high flexibility.
請求項8,19,27記載の発明によれば、特定書式の文字列情報の文字サイズに応じて作成するシンボルコードのイメージデータのサイズを決定するようにしたので、シンボルコードのサイズ変更及びその指定を文字サイズを利用して簡単かつ判りやすく行なわせることができる。 According to the inventions of claims 8, 19, and 27, since the size of the image data of the symbol code to be created is determined according to the character size of the character string information of the specific format, Specification can be made easily and easily using the character size.
請求項9,19,28記載の発明によれば、シンボルコードのサイズ設定を印刷条件設定印刷ダイアログを利用して行わせるようにしたので、シンボルコードのサイズ変更及びその指定を印刷条件設定印刷ダイアログを利用して簡単かつ任意に行なわせることができる。 According to the ninth, nineteenth, and twenty-eighth aspects, since the symbol code size is set using the print condition setting print dialog, the symbol code size can be changed and designated by the print condition setting print dialog. Can be easily and arbitrarily performed using.
請求項10,19,29記載の発明によれば、作成したシンボルコードの背景に空白を付与するようにしたので、印刷されたシンボルコードの読取り精度を向上させることができる。 According to the tenth, nineteenth and twenty-ninth aspects of the present invention, since the blank is added to the background of the created symbol code, the reading accuracy of the printed symbol code can be improved.
請求項11,19,30記載の発明によれば、作成したシンボルコードのサイズに応じて付与する当該空白部分のサイズを決定するようにしたので、ユーザに負担をかけることなく適正な空白部分を確保して、印刷されたシンボルコードの読取り精度を向上させることができる。
According to the inventions of
請求項12,19,31記載の発明によれば、空白部分のサイズ設定を印刷条件設定印刷ダイアログを利用して行わせるようにしたので、空白部分のサイズ設定をユーザが任意に行なうことができ、汎用性を高め、印刷されたシンボルコードの読取り精度を向上させることができる。
According to the invention described in
請求項13,19,32記載の発明によれば、シンボルコード描画の情報を、イメージデータで作成されたシンボルコードとし、その場合に、当該シンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し直してプリンタに出力させるので、アプリケーションなどのシンボルコード描画に関する既存のリソースを活用しつつ、無用な画像処理等を避け、高品質なシンボルコード印刷を行わせることができる。 According to the thirteenth, nineteenth and thirty-second aspects of the present invention, the symbol code drawing information is a symbol code created from image data. In this case, the content of the symbol code is read and the symbol code is read again based on the content. Since the image data is re-created and output to the printer, it is possible to avoid unnecessary image processing and the like and perform high-quality symbol code printing while utilizing existing resources related to symbol code drawing such as applications.
請求項14,19,33記載の発明によれば、シンボルコード描画の情報を、グラフィックデータで作成されたシンボルコードとし、その場合に、当該シンボルコードの内容を読取りその内容に基づきシンボルコードのイメージデータを作成してプリンタに出力させるので、アプリケーションなどのシンボルコード描画に関する既存のリソースを活用しつつ、無用な画像処理等を避け、高品質なシンボルコード印刷を行わせることができる。 According to the fourteenth, nineteenth and thirty-third aspects of the present invention, the symbol code drawing information is a symbol code created by graphic data, and in this case, the content of the symbol code is read and an image of the symbol code based on the content. Since data is created and output to the printer, it is possible to avoid unnecessary image processing and the like and perform high-quality symbol code printing while utilizing existing resources related to symbol code drawing such as applications.
請求項15,19,34記載の発明によれば、判定の結果、シンボルコード描画の情報が含まれている場合において当該情報に基づきシンボルコードを作成する上でシンボルコードとしての適合性を判定させ、適合しないと判定された場合には、その旨をユーザに知らせるようにしたので、不適なシンボルコード印刷出力を未然に回避することができる。 According to the fifteenth, nineteenth and thirty-fourth aspects of the present invention, when symbol code drawing information is included as a result of the determination, the suitability as the symbol code is determined when the symbol code is created based on the information. If it is determined that the information does not match, the user is notified of this fact, so that inappropriate symbol code printout can be avoided in advance.
請求項16,19,35記載の発明によれば、シンボルコードを作成させないことにより適合しない旨をユーザに知らせるので、無駄となるシンボルコード作成処理をも未然に回避することができる。 According to the sixteenth, nineteenth, and thirty-fifth aspects, the user is informed that the symbol code is not adapted by not creating the symbol code, so that it is possible to avoid unnecessary symbol code creation processing.
請求項17,19,36記載の発明によれば、適合しない旨のエラーレポートをプリンタに印刷出力させることにより、プリンタ資源を活用して確実にユーザに知らせることができる。 According to the inventions of claims 17, 19 and 36, by causing the printer to print out an error report indicating that it does not conform, it is possible to reliably notify the user by utilizing printer resources.
請求項18,19,37記載の発明によれば、適合しない旨をユーザインターフェースとしてエラーダイアログにより表示させることにより、印刷の無駄なく確実にユーザに知らせることができる。
According to the invention described in
本発明を実施するための最良の形態を図面に基づいて説明する。 The best mode for carrying out the present invention will be described with reference to the drawings.
[第一の実施の形態]
本実施の形態の画像処理装置は、図1に示す印刷システムのブロック図のように、プリンタ1がネットワーク2等を介して間接的又は直接的に接続されたホストコンピュータ(パーソナルコンピュータ)3への適用例を示す。プリンタ1の印刷方式は任意であるが、例えば、レーザプリンタが用いられている。
[First embodiment]
As shown in the block diagram of the printing system shown in FIG. 1, the image processing apparatus according to the present embodiment is connected to a host computer (personal computer) 3 to which a printer 1 is connected indirectly or directly via a
このホストコンピュータ3は、コンピュータの主要部であって各部を集中的に制御するCPU(Central Processing Unit)4を備えており、このCPU4には、各種のROM(Read Only Memory)、RAM(Random Access Memory)からなる記憶媒体であるメモリ5と、ネットワーク2と通信を行う所定の通信インターフェイス6と、ユーザから各種の操作を受付ける操作パネル7とが、バス8を介して接続されている。
The
さらには、CRT(Cathode Ray Tube)やLCD(Liquid Crystal Display)等の表示装置であるディスプレイ9と、外部記憶装置であるHDD(Hard Disk Drive)10と、配布されたプログラムであるコンピュータソフトウエアを記憶した記憶媒体11からコンピュータソフトウエアを読み取るための機構であるドライブ12と、を備えており、これらのディスプレイ9、HDD10、ドライブ12も、バス8を介してCPU4に接続されている。
Furthermore, a
このような構成のホストコンピュータ3のメモリ5(のROM)には、制御プログラムの他、アプリケーションプログラムやプリンタドライバなるソフトウエアが記憶されている。
In addition to the control program, the memory 5 (ROM) of the
なお、記憶媒体11としては、CDやDVDなどの各種の光ディスク、各種光磁気ディスク、FDなどの各種磁気ディスク、半導体メモリ等、各種方式のメディアを用いることができる。また、ネットワーク2からプログラムをダウンロードし、メモリ5にインストールするようにしてもよい。なお、プログラムは、所定のOS(Operating System)上で動作するものであってもよいし、その場合に後述の各種処理の一部の実行をOSに肩代わりさせるものであってもよいし、所定のアプリケーションソフトやOSなどを構成する一群のプログラムファイルの一部として含まれているものであってもよい。
As the
図2は、図1に示した印刷システムのソフトウエア構成図を示す。図2に示すように、ホストコンピュータ3内のソフトウエアは、各種描画データ用の複数のアプリケーションプログラム21と、プリンタドライバ22とからなり、プリンタ1はプリンタエンジン23と記憶部24とプリンタコントローラ25とからなる。
FIG. 2 shows a software configuration diagram of the printing system shown in FIG. As shown in FIG. 2, the software in the
ここに、アプリケーションプログラム21上での印刷指示からプリンタ1で通常印刷が行われるまでの基本的な動作について簡単に説明する。ユーザがホストコンピュータ3上で稼動しているアプリケーションプログラム21に対して印刷指示を与えると、アプリケーションプログラム21はそのソフトウエアに依存しない共通の手続きを通じて、そこに保持されている描画データを本文データとしてピクセル毎にプリンタドライバ22に出力する。プリンタドライバ22はアプリケーションプログラム21から入力された指示及び描画データをプリンタ1が理解できるコード形式に変換し、これをプリンタコントローラ25に出力する。プリンタコントローラ25はプリンタドライバ22から入力された描画データを順次解釈し、データに応じたビットマップ画像(イメージデータ)を形成し、プリンタエンジン23に出力することにより印刷動作を行わせる。
Here, a basic operation from a print instruction on the
このような前提の下、特定のオブジェクトをバーコード等のオブジェクトに変換する機能を持たせた本実施の形態のプリンタドライバ22の機能ブロック図を図3に示す。このプリンタドライバ22は、アプリケーションプログラム21からの印刷要求を解析するコマンド処理モジュール31と、ユーザがバーコード等のシンボルコードを作成する上での各種条件を設定するためのユーザインターフェース(UI)処理モジュール32と、アプリケーションプログラム21からの印刷要求のうち、文字に関する部分を処理するための文字処理モジュール33(判定する機能、ステップを実現)と、この文字処理モジュール33による解析処理に基づきバーコード等のシンボルコードのイメージデータを作成するためのシンボルコード描画モジュール34(作成する機能、ステップを実現)と、印刷時にページの配置を決定するページ配置モジュール35(出力させてシンボルコードを印刷させる機能、ステップを実現)等を備えている。なお、ページ配置モジュール35とプリンタ1との間には、ホストコンピュータ3がプリンタ1とデータのやり取りを行なうための入出力ポート36が設けられている。
FIG. 3 shows a functional block diagram of the
ここで、本実施の形態では、シンボルコード描画の情報として、予め設定された特定書式の文字列情報が規定されており、アプリケーションプログラム21から入力される描画データにおける文字列情報中に当該特定書式の文字列情報が含まれている場合には、プリンタドライバ22は、その情報に基づきバーコード等のシンボルコードのイメージデータを作成して、プリンタ1側に送信出力させるように構成されている。特定書式の文字列としては、[使用するシンボルコード名,シンボルコードに変換する文字列]、サイズ指定を伴う場合には、[使用するシンボルコード名,シンボルコードに変換する文字列,シンボルコードのサイズ]からなるものとして予め設定されている。
Here, in the present embodiment, character string information in a specific format set in advance is defined as symbol code drawing information, and the specific format is included in the character string information in the drawing data input from the
このような構成において、或るアプリケーションプログラム21に従い作成された描画データをプリンタ1により印刷出力する際のプリンタドライバ22の動作制御例を図4に示す概略フローチャートを参照して説明する。プリンタドライバ22では、まず、ホストコンピュータ3上で動作するアプリケーションプログラム21からの印刷要求でコマンド処理モジュール31が文字列を含む印刷コマンドを取得すると(ステップS1)、文字処理モジュール33に当該印刷要求を引き渡す。この文字処理モジュール33では、印刷要求された描画データに関して、文字列が含まれている場合には(S2のY)、文字列情報の内容を解析することにより(S3)、シンボルコード描画の情報(シンボルコード描画コマンド)として、予め設定されている特定書式の文字列情報が含まれているか否かを判定する(S4)。判定の結果、特定書式の文字列情報が含まれている場合には(S4のY)、シンボルコード描画モジュール34は、UI処理モジュール32で指定された設定やフォント指定のパラメータ等のシンボルコード描画用パラメータを取得し(S5)、これらのパラメータに従い、特定書式の文字列情報に基づきバーコード等のシンボルコードのイメージデータを作成し(S6)、ページ配置モジュール35に引き渡す。ページ配置モジュール35は印刷用のページメモリ上にシンボルコードのイメージデータを配置し(S7)、入出力ポート36を介してシンボルコードのイメージデータが配置された印刷データをプリンタ1に送信し(S8)、印刷出力させる。なお、文字列が含まれていない場合や(S2のN)、シンボルコード描画コマンドが含まれていない場合には(S4のN)、通常の描画処理を行い(S9)、入出力ポート36を介して印刷データをプリンタ1に送信し(S8)、印刷出力させる。
An example of operation control of the
例えば、図5(a)に示すようなアプリケーションプログラム21により作成されて入力される描画データ41中に、例えば内容が[COD128,12345678]のような特定書式の文字列情報42が含まれている場合、当該特定書式の文字列情報42中の“COD128”なる使用するシンボルコード名に基づき文字処理モジュール33がシンボルコード描画の情報(シンボルコード描画コマンド)が含まれているものと解析し、当該特定書式の文字列情報42中の“12345678”なるシンボルコードに変換する文字列に基づきシンボルコード描画モジュール34がシンボルコード(バーコード)のイメージデータを作成してプリンタ1に出力するので、図5(b)に示すように特定書式の文字列情報42に対応する位置にバーコード(シンボルコード)43が印刷された印刷結果物44が得られることになる。
For example, the drawing
即ち、使用するシンボルコード名をCode128として“0123456”なる文字列をシンボルコード(バーコード)に変換して印刷出力させようとする場合であれば、図6(a)に示すように、[CODE128,0123456]の如く、[使用するシンボルコード名,シンボルコードに変換する文字列]なる特定書式の文字列を描画データ中に含ませておけば、プリンタドライバ22では、[ ]で囲まれた文字列を解析し、シンボルコード名が指定されていれば、それに続く文字列を指定シンボルコード名に従いシンボルコードのイメージデータに変換する。この場合であれば、図7(a)に示すようなCODE128規格のバーコードが印刷出力されることとなる。他の場合も同様であり、使用するシンボルコード名を(郵政)カスタマーとして“2345678”なる文字列をシンボルコード(バーコード)に変換して印刷出力させようとする場合であれば、図6(b)に示すように、[CUSTOMER,2345678]なる特定書式の文字列を描画データ中に含ませておけば、文字列“2345678”が指定シンボルコード名(郵政)カスタマーに従いシンボルコードのイメージデータに変換されるので、図7(b)に示すような(郵政)カスタマー規格のシンボルコードが印刷出力されることとなる。また、使用するシンボルコード名をQR Codeとして“0123456”なる文字列をシンボルコードに変換して印刷出力させようとする場合であれば、図6(c)に示すように、[QR,0123456]なる特定書式の文字列を描画データ中に含ませておけば、文字列“0123456”が指定シンボルコード名QR Codeに従いシンボルコードのイメージデータに変換されるので、図7(c)に示すようなQR Code規格のシンボルコードが印刷出力されることとなる。
That is, if the character code “0123456” is converted into a symbol code (bar code) and printed out with the symbol code name to be used as
よって、本実施の形態によれば、プリンタドライバ22において、入力される描画データ中にシンボルコード描画の情報として、予め設定された特定書式の文字列情報が含まれているか否かを解析させ、含まれている場合にはその情報に基づきシンボルコードのイメージデータをシンボルコード描画モジュール34により作成してプリンタ1に出力させてシンボルコードを印刷させるので、プリンタドライバ22でプリンタ1に最適化され色補正処理等を受けないシンボルコードのイメージデータを作成し、当該イメージデータに基づきプリンタ1でシンボルコードを印刷させることができ、プリンタ1以外の環境に依存することなく、高品質なシンボルコードの印刷を行わせることができる。特に、シンボルコード描画の情報を、予め設定された特定書式の文字列情報としているので、シンボルコードの作成に要する専門的な知識や専用のソフトウエアが不要となり、簡単な描画データの入力操作でシンボルコードの印刷を行わせることができる。また、特定書式の文字列を、[使用するシンボルコード名,シンボルコードに変換する文字列]としているので、容易に実現することができる。
Therefore, according to the present embodiment, the
なお、この場合の特定書式の文字列中には、シンボルコードのサイズ(高さ)に関する情報も含ませることができる。例えば、使用するシンボルコード名をCode128として“0123456”なる文字列を高さ(サイズ)80mmのシンボルコード(バーコード)に変換して印刷出力させようとする場合であれば、図6(d)に示すように、[CODE128,0123456,80]の如く、[使用するシンボルコード名,シンボルコードに変換する文字列,シンボルコードのサイズ]なる特定書式の文字列を描画データ中に含ませておけば、プリンタドライバ22では、[ ]で囲まれた文字列を解析し、シンボルコード名が指定されていれば、それに続く文字列を指定シンボルコード名に従い、かつ、それに続くサイズのシンボルコードのイメージデータに変換する。この場合であれば、図7(d)に示すようなCODE128規格で高さ(サイズ)80mmのバーコードが印刷出力されることとなる。このように、特定書式の文字列を、[使用するシンボルコード名,シンボルコードに変換する文字列,シンボルコードのサイズ]とすることで、シンボルコードのサイズ指定も簡単に行なうことができる。
In this case, information on the size (height) of the symbol code can be included in the character string of the specific format. For example, in the case where a character string “0123456” is converted into a symbol code (bar code) having a height (size) of 80 mm with the symbol code name to be used as
ここで、シンボルコードのサイズ指定に関する別の実施の形態について説明する。シンボルコードのサイズに関しては、特定書式の文字列情報の文字サイズ(フォントサイズ)を変更することで、その文字サイズをシンボルコード描画モジュール34に認識させ、その文字サイズに応じたサイズのシンボルコードを作成させるものである。
Here, another embodiment relating to symbol code size designation will be described. Regarding the size of the symbol code, by changing the character size (font size) of the character string information in a specific format, the symbol
例えば使用するシンボルコード名をCode128として“0123456”なる文字列をシンボルコード(バーコード)に変換して印刷出力させようとする場合において、その特定書式の文字列情報の文字サイズを例えば図8(a)(b)(c)に示す如く8pt,12pt,24ptのように変えて描画データとして入力させれば、文字サイズの認識に基づき、各々の文字サイズ8pt,12pt,24ptに応じたサイズ(バーコード高さ)のバーコードが図9(a)(b)(c)の印刷出力されることとなる。
For example, when a character string “0123456” is converted into a symbol code (bar code) with the symbol code name to be used as
他のシンボルコード名の場合も同様であり、例えば使用するシンボルコード名をカスタマーとして“0123456”なる文字列をシンボルコード(バーコード)に変換して印刷出力させようとする場合において、その特定書式の文字列情報の文字サイズを例えば図8(d)(e)(f)に示す如く8pt,12pt,24ptのように変えて描画データとして入力させれば、文字サイズの認識に基づき、各々の文字サイズ8pt,12pt,24ptに応じたサイズのカスタマー規格のバーコードが図9(d)(e)(f)の印刷出力されることとなる。 The same applies to other symbol code names. For example, when a character string “0123456” is converted into a symbol code (bar code) and printed out with the symbol code name to be used as a customer, the specific format is used. If the character size of the character string information is changed to 8 pt, 12 pt, 24 pt, for example, as shown in FIGS. 8D, 8E, and 8F, and input as drawing data, each character size is recognized based on the recognition of the character size. A customer-standard barcode corresponding to the character size of 8 pt, 12 pt, and 24 pt is printed out as shown in FIGS. 9 (d), (e), and (f).
このように、特定書式の文字列情報の文字サイズに応じて作成するシンボルコードのイメージデータのサイズを決定させることで、シンボルコードのサイズ変更及びその指定を文字サイズを利用して簡単かつ判りやすく行なわせることができる。 In this way, by determining the size of the symbol code image data to be created according to the character size of the character string information in a specific format, the symbol code size can be changed and specified easily and easily using the character size. Can be done.
また、シンボルコードのサイズ指定に関する別の実施の形態について説明する。ここでは、UI処理モジュール32の機能としてアプリケーションプログラム21に従いユーザインターフェースとして提供される図10に示すような印刷条件設定印刷ダイアログ51を利用するようにしたものである。即ち、当該印刷条件設定印刷ダイアログ51のバーコード詳細設定ダイアログ中に例えばシンボルコードのサイズに関する設定欄としてバーコードの高さ設定欄52を用意しておき、当該バーコードの高さ設定欄52を通じてユーザにより設定されたバーコードの高さ情報をUI処理モジュール32で指定された設定情報の一つとしてシンボルコード描画モジュール34に認識させるようにすればよい。
Another embodiment relating to symbol code size designation will be described. Here, as a function of the
このように、シンボルコードのサイズ設定を印刷条件設定印刷ダイアログ51を利用して行わせることで、シンボルコードのサイズ変更及びその指定を印刷条件設定印刷ダイアログ51を利用して簡単かつ任意に行なわせることができる。
In this way, by making the symbol code size setting using the print condition setting
ちなみに、上述の実施の形態の文字サイズを利用してバーコードサイズを決定させる場合には、当該印刷条件設定印刷ダイアログ51のバーコード詳細設定ダイアログ中に用意されている「バーコードのサイズをフォントサイズを基に計算する」欄53にチェックを入れておけばよい。
By the way, when the barcode size is determined using the character size of the above-described embodiment, the “Barcode size is set to font” prepared in the barcode detailed setting dialog of the print condition setting
ところで、前述及び以下の実施の形態において、文字列で表現できないコードも存在し得るが、その場合の設定例について説明する。例えば、バーコードの例を挙げると、通常、バーコードは可読文字に1対1で対応しているので、ASCII文字であればバーコードに変換できるが、CODE128では、FUNC1,FUNC2やBSやESC等の制御コードもバーコードとして使用可能とされているが、これらは文字キャラクタでは表記できないバーコードである。そこで、ここではこのような制御コードの部分も文字列で指定できるようにするものである。 By the way, in the above-mentioned and following embodiments, there may be a code that cannot be expressed by a character string. An example of setting in that case will be described. For example, in the case of barcodes, since barcodes usually correspond to readable characters on a one-to-one basis, ASCII characters can be converted into barcodes, but in CODE128, FUNC1, FUNC2, BS, ESC These control codes can be used as barcodes, but these are barcodes that cannot be represented by character characters. Therefore, here, such a control code portion can also be designated by a character string.
例えば、ASCII文字列だけの場合、[CODE128,1234ABCD]とし、以下の2例を例示する。第1の例として、制御コード(文字列)が“4”と“A”との間に入る場合、[CODE128,1234&ESC&ABCD]の如く予め設定された文字列を用いることで、&で挟まれた部分を制御コードとして解釈させる。第2の例として、制御コード(数値)が“4”と“A”との間に入る場合、[CODE128,1234&1B&ABCD]の如く予め設定された文字列を用いることで、&で挟まれた文字列を16進数の制御コードとして解釈させる。なお、これらの場合で“&”を使用したい場合には&&とすればよい。 For example, in the case of only the ASCII character string, [CODE128, 1234ABCD] is given, and the following two examples are illustrated. As a first example, when the control code (character string) falls between “4” and “A”, it is sandwiched between & by using a preset character string such as [CODE128, 1234 & ESC & ABCD]. The part is interpreted as a control code. As a second example, when the control code (numerical value) is between “4” and “A”, a character string sandwiched between & is used by using a preset character string such as [CODE128, 1234 & 1B & ABCD]. Causes the sequence to be interpreted as a hexadecimal control code. In these cases, “&” may be used when it is desired to use “&”.
このように、文字列で表現できない制御コード部分は、予め設定された文字列を用いてシンボルコードに変換する文字列中に指定させることで、制御コード部分に関してもシンボルコードに含む印刷が可能となり、融通性の高いシンボルコード印刷を可能にすることができる。 In this way, the control code part that cannot be expressed in the character string can be specified in the character string that is converted into the symbol code using a preset character string, so that the control code part can also be printed in the symbol code. Therefore, it is possible to enable highly flexible symbol code printing.
[第二の実施の形態]
本実施の形態では、シンボルコードを変換作成するための特定書式の文字列として、UI処理モジュール32を通じて予め設定された特定フォントによる文字列を利用するようにしたものである。
[Second Embodiment]
In the present embodiment, a character string of a specific font preset through the
そこで、本実施の形態において、或るアプリケーションプログラム21に従い作成された描画データをプリンタ1により印刷出力する際のプリンタドライバ22の動作制御例を図11に示す概略フローチャートを参照して説明する。プリンタドライバ22では、まず、ホストコンピュータ3上で動作するアプリケーションプログラム21からの印刷要求でコマンド処理モジュール31が文字列を含む印刷コマンドを取得すると(S1)、文字処理モジュール33に当該印刷要求を引き渡す。この文字処理モジュール33では、印刷要求された描画データに関して、文字列が含まれている場合には(S2のY)、文字列情報の内容を解析することにより(S3)、シンボルコード描画の情報(シンボルコード描画コマンド)として、予め設定されている特定書式の文字列情報としてシンボルコード印刷を意味する特定フォントによる文字列が含まれているか否かを判定する(S10)。判定の結果、特定フォントによる文字列情報が含まれている場合には(S10のY)、シンボルコード描画モジュール34は、UI処理モジュール32で指定された設定やフォント指定のパラメータ等のシンボルコード描画用パラメータを取得し(S5)、これらのパラメータに従い、特定書式の文字列情報に基づきバーコード等のシンボルコードのイメージデータを作成し(S6)、ページ配置モジュール35に引き渡す(S7)。ページ配置モジュール35は印刷用のページメモリ上にシンボルコードのイメージデータを配置し(S7)、入出力ポート36を介してシンボルコードのイメージデータが配置された印刷データをプリンタ1に送信し(S8)、印刷出力させる。なお、文字列が含まれていない場合や(S2のN)、シンボルコード描画コマンドが含まれていない場合には(S4のN)、通常の描画処理を行い(S9)、入出力ポート36を介して印刷データをプリンタ1に送信し(S8)、印刷出力させる。
Therefore, in the present embodiment, an example of operation control of the
ここに、シンボルコードに置換する特定フォントの設定例を図12を参照して説明する。UI処理モジュール32の機能としてアプリケーションプログラム21に従いユーザインターフェースとして提供される図12に示すようなシンボルコード置換用フォント設定ダイアログ61を利用して、使用するシンボルコード名に対応付けて特定フォントを予め設定させるものである。図12は、“Marlett”というフォントで入力された文字列はCODE39規格のシンボルコードに置換し、“Arial”というフォントで入力された文字列はEAN28規格のシンボルコードに置換し、他のフォントの文字列はシンボルコードには変換しない場合の設定例を例示している。
Here, an example of setting a specific font to be replaced with a symbol code will be described with reference to FIG. Using a symbol code replacement
また、“Arial”なるフォント文字列の場合にEAN128規格のシンボルコードに置換する設定の場合、図13(a)左側に示すように“0123456ABC”なるシンボルコードに変換する文字列を“Arial”なる特定フォント文字列として入力させれば、プリンタドライバ22はEAN128規格のシンボルコードに変換しそのイメージデータを作成するので、図13(a)右側に示すようなEAN128規格のシンボルコードが印刷されることとなる。
Further, in the case of setting to replace the symbol character code “Arial” with the EAN128 standard symbol code, the character string to be converted to the symbol code “0123456ABC” is “Arial” as shown on the left side of FIG. If it is input as a specific font character string, the
同様に、“Century”なるフォント文字列の場合にCODE39規格のシンボルコードに置換する設定の場合、図13(b)左側に示すように“0123456”なるシンボルコードに変換する文字列を“Century”なる特定フォント文字列として入力させれば、プリンタドライバ22はCODE39規格のシンボルコードに変換しそのイメージデータを作成するので、図13(b)右側に示すようなCODE39規格のシンボルコードが印刷されることとなる。さらに、
“Courier New”なるフォント文字列の場合にカスタマー規格のシンボルコードに置換する設定の場合、図13(c)左側に示すように“01234500006”なるシンボルコードに変換する文字列を“Courier New”なる特定フォント文字列として入力させれば、プリンタドライバ22はカスタマー規格のシンボルコードに変換しそのイメージデータを作成するので、図13(c)右側に示すようなカスタマー規格のシンボルコードが印刷されることとなる。
Similarly, when the font character string “Century” is set to be replaced with the CODE39 standard symbol code, the character string to be converted to the symbol code “0123456” is displayed as “Century” as shown on the left side of FIG. If the input is made as a specific font character string, the
When the font character string “Courier New” is set to be replaced with a customer standard symbol code, the character string to be converted to the symbol code “01234500006” is “Courier New” as shown on the left side of FIG. If it is input as a specific font character string, the
このように、本実施の形態によれば、特定書式の文字列を、使用するシンボルコード名に対応付けて予め設定された特定フォントによるシンボルコードに変換する文字列としているので、文字列からシンボルコードへの変換作成をフォントに連動させることにより各種フォントを有する文字列の特徴を活かすことができる。この際、シンボルコード置換用フォント設定ダイアログ61を利用して特定フォントを使用するシンボルコード名に対応付けて予め設定させるので、あまり使用しないようなフォントを特定フォントに設定する等、ユーザインターフェースに優れた設定が可能となる。
As described above, according to the present embodiment, a character string in a specific format is used as a character string that is converted into a symbol code using a specific font set in advance in association with the symbol code name to be used. By linking the creation of the code into the font, the characteristics of the character string having various fonts can be utilized. At this time, since the symbol code replacement
[第三の実施の形態]
本実施の形態では、前述したような特定書式の文字列に基づきシンボルコードのイメージデータを作成する上で、バーコード等のシンボルコードの読取りに必要な空白部分として規定されているクワイエットゾーン(Quiet Zone)を確保するために、当該シンボルコードの背景に空白を付与するようにしたものである。
[Third embodiment]
In this embodiment, a quiet zone (Quiet zone) defined as a blank portion necessary for reading a symbol code such as a barcode is used to create image data of a symbol code based on a character string of a specific format as described above. In order to secure a (Zone), a blank is added to the background of the symbol code.
そこで、本実施の形態において、或るアプリケーションプログラム21に従い作成された描画データをプリンタ1により印刷出力する際のプリンタドライバ22の動作制御例を図14に示す概略フローチャートを参照して説明する。プリンタドライバ22では、まず、ホストコンピュータ3上で動作するアプリケーションプログラム21からの印刷要求でコマンド処理モジュール31が文字列を含む印刷コマンドを取得し(S11)、前述した実施の形態の如く特定書式の文字列に基づきシンボルコードのイメージデータの作成処理を行ない(S12)、シンボルコードの作成に成功した場合(S13のY)、UI処理モジュール32でシンボルコードの背景を白く抜く設定がなされている場合(S14のY)、シンボルコード描画モジュール34はシンボルコードのイメージデータの作成時に当該シンボルコードの印刷サイズと文字サイズやUI処理モジュール32での設定に従って背景の白くなる部分のサイズを自動的に計算し(S15,S16)、計算された空白部分をシンボルコードのイメージデータに付与し(S17)、ページ配置モジュール35に引き渡す。ページ配置モジュール35は印刷用のページメモリ上に空白部分を含むシンボルコードのイメージデータを配置し(S18)、入出力ポート36を介してシンボルコードのイメージデータが配置された印刷データをプリンタ1に送信し(S19)、印刷出力させる。
Therefore, in this embodiment, an example of operation control of the
本実施の形態によれば、作成したシンボルコードの背景に空白を付与するようにしたので、印刷されたシンボルコードの読取り精度を向上させることができる。この際、作成したシンボルコードのサイズに応じて付与する当該空白部分のサイズを決定するようにしたので、ユーザに負担をかけることなく適正な空白部分を確保して、印刷されたシンボルコードの読取り精度を向上させることができる。 According to the present embodiment, since the blank is added to the background of the created symbol code, the reading accuracy of the printed symbol code can be improved. At this time, since the size of the blank portion to be assigned is determined according to the size of the created symbol code, an appropriate blank portion is secured without burdening the user, and the printed symbol code is read. Accuracy can be improved.
空白部分のサイズ設定に関する別の実施の形態について説明する。ここでは、UI処理モジュール32の機能としてアプリケーションプログラム21に従いユーザインターフェースとして提供される前述の図10に示すような印刷条件設定印刷ダイアログ51を利用するようにしたものである。即ち、当該印刷条件設定印刷ダイアログ51のバーコード詳細設定ダイアログ中に例えばクワイエットゾーンの設定について左右(A)設定欄54と上下(B)設定欄55とを使用するシンボルコード設定欄56に対応付けて個別に用意しておき、設定欄54,55を通じてユーザにより設定されたクワイエットゾーン用の空白部分のサイズ情報をUI処理モジュール32で指定された設定情報の一つとしてシンボルコード描画モジュール34に認識させるようにすればよい。
Another embodiment regarding the size setting of the blank portion will be described. Here, as a function of the
このように、空白部分のサイズ設定を印刷条件設定印刷ダイアログ51を利用して行わせることで、空白部分のサイズ設定をユーザが任意に行なうことができ、汎用性を高め、印刷されたシンボルコードの読取り精度を向上させることができる。
In this way, by setting the size of the blank portion using the print condition setting
[第四の実施の形態]
本実施の形態では、シンボルコード描画の情報を、アプリケーションプログラム21を利用してイメージデータにより作成されたシンボルコードとし、アプリケーションプログラム21から入力される描画データのイメージデータ中にシンボルコードの情報が含まれている場合には、プリンタドライバ22は、そのシンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し直して、プリンタ1側に送信出力させるように構成されている。
[Fourth embodiment]
In the present embodiment, the symbol code drawing information is a symbol code created by image data using the
このため、本実施の形態のプリンタドライバ22の機能ブロック図においては、図15に示すように、文字処理モジュール33に代えて、アプリケーションプログラム21からの印刷要求のうち、イメージデータやグラフィックデータといった画像の描画処理に関する部分を処理するための画像処理モジュール37が設けられ、この画像処理モジュール37により処理された描画データのイメージデータ中にシンボルコードの情報が含まれている否かを解析するためのシンボルコード抽出モジュール38が付加されている。
For this reason, in the functional block diagram of the
また、UI処理モジュール32の機能としてアプリケーションプログラム21に従いユーザインターフェースとして提供される図16に示すような印刷条件設定印刷ダイアログ71のバーコード詳細設定ダイアログでは、「イメージ中のバーコードを補正する」欄72にチェックをすると、このシンボルコード抽出モジュール38等の機能を生かすモード設定となる。
Also, in the barcode detailed setting dialog of the print condition setting
このような構成において、或るアプリケーションプログラム21に従い作成された描画データをプリンタ1により印刷出力する際のプリンタドライバ22の動作制御例を図17に示す概略フローチャートを参照して説明する。プリンタドライバ22では、まず、ホストコンピュータ3上で動作するアプリケーションプログラム21からの印刷要求でコマンド処理モジュール31が文字列を含む印刷コマンドを取得すると(S21)、画像処理モジュール37に当該印刷要求を引き渡す。その後、画像処理モジュール37では、イメージデータであれば(S22のY)、シンボルコード抽出モジュール38を用いてイメージデータを解析することにより(S23)、イメージデータ中に特定の規則、特定のデータの並び等からなるシンボルコードの描画データがあるか判定する(S24)。シンボルコードの描画データがあれば、当該シンボルコードの内容を読取るとともにUI処理モジュール32等で設定されている当該シンボルコード描画用パラメータを取得し(S25)、読取ったシンボルコードの内容及びシンボルコード描画用パラメータに従いシンボルコード描画モジュール34によりシンボルコードのイメージデータを作成し直し(S26)、ページ配置モジュール35に引き渡す。ページ配置モジュール35は印刷用のページメモリ上にシンボルコードのイメージデータを配置し(S27)、入出力ポート36を介してシンボルコードのイメージデータが配置された印刷データをプリンタ1に送信し(S28)、印刷出力させる。なお、イメージデータが含まれていない場合や(S22のN)、シンボルコードが含まれていない場合には(S24のN)、通常の描画処理を行い(S29)、入出力ポート36を介して印刷データをプリンタ1に送信し(S28)、印刷出力させる。
An example of operation control of the
例えば、図18(a)に示すようなアプリケーションプログラム21により作成されて入力される描画データ81中に、イメージデータとしてのバーコード(シンボルコード)82の貼付けが含まれている場合、従来であれば、当該バーコード82を通常一般のイメージデータなるオブジェクトとして取り扱うため、図18(b)に示すように画像補正等を受けてバーコードシンボルが滲む等の悪影響を受けた印刷結果となってしまうことがある。これに対して、本実施の形態の場合には、当該バーコード82の部分を通常一般のイメージデータと同一視せずバーコード部分であるとの解析結果に基づき、プリンタドライバ22内でバーコード82のイメージデータを作成し直して(再描画)いるので、無用な画像補正等が払拭され、図18(c)に示すように、バーコード82を規定通りに印刷再現することができる。
For example, when the drawing
なお、例えば図16に示した印刷条件設定印刷ダイアログ71のバーコード詳細設定ダイアログ中で、「補正情報を表示する」欄72にチェックをすると、読取り作成し直したシンボルコードの内容を表示させたり印刷出力させたりすることができる。例えば、「ダイアログ」欄74にチェックすると、シンボルコードの配置処理終了後、ページ配置モジュール35がシンボルコード描画モジュール34からシンボルコード処理内容を取得し、実際の印刷前にUI処理モジュール32を使用してダイアログを作成し(S30)、作成し直されたシンボルコードの内容を当該ダイアログに表示させる(S31)ようにすれば、シンボルコードの変換結果を確認でき、ユーザはシンボルコードの運用に間違いがないか容易にチェックすることができる。
For example, when the “display correction information”
例えば、図19に示すような描画データ中に貼付けられたバーコードのデータが存在する場合において、プリンタドライバ22内で作成し直されたバーコードの内容が図20の如くダイアログ表示される。この場合、図20(b)は例えば、「プリンタドライバ内でCODE39に置換しました」等のレポート付きの例を示している。
For example, when there is barcode data pasted in the drawing data as shown in FIG. 19, the contents of the barcode recreated in the
さらに、「補正情報を表示する」欄72にチェックし、さらに、「用紙に印刷する」欄75にチェックした場合には、シンボルコードの配置処理終了後、ページ配置モジュール35がシンボルコード描画モジュール34からシンボルコード処理内容を取得し、実際の印刷後に、シンボルコードの内容に関するレポートを作成し、入出力ポート36からプリンタ1に対してシンボルコードの印刷に関する詳細レポートを送信出力して印刷させる(S32)ことによっても、シンボルコードの変換結果を確認でき、ユーザはシンボルコードの運用に間違いがないか容易にチェックすることができる。
Further, when the “display correction information”
なお、「本文中に追記する」欄76にチェックすることにより、置換内容をバーコードに影響を与えない部分に表記させたりすることもできる。
It should be noted that by checking the “Append to text”
本実施の形態によれば、シンボルコード描画の情報を、イメージデータで作成されたシンボルコードとし、その場合に、プリンタドライバ22において当該シンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し直してプリンタ1に出力させるので、アプリケーションプログラム21などのシンボルコード描画に関する既存のリソースを活用しつつ、無用な画像処理等を避け、高品質なシンボルコード印刷を行わせることができる。
According to the present embodiment, the symbol code drawing information is the symbol code created from the image data. In this case, the
[第五の実施の形態]
本実施の形態では、シンボルコード描画の情報を、アプリケーションプログラム21を利用して四角や線などのグラフィックデータにより作成されたシンボルコードとし、アプリケーションプログラム21から入力される描画データのグラフィックデータ中にシンボルコードの情報が含まれている場合には、プリンタドライバ22は、そのシンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し、プリンタ1側に送信出力させるように構成されている。
[Fifth embodiment]
In the present embodiment, the symbol code drawing information is a symbol code created from graphic data such as a square or a line using the
このための、本実施の形態のプリンタドライバ22の機能ブロック図は図15の場合と同様であり、シンボルコード抽出モジュール38は画像処理モジュール37により処理された描画データのグラフィックデータ中にシンボルコードの情報が含まれている否かを判定する。
For this purpose, the functional block diagram of the
また、UI処理モジュール32の機能としてアプリケーションプログラム21に従いユーザインターフェースとして提供される図16に示すような印刷条件設定印刷ダイアログ71のバーコード詳細設定ダイアログでは、「グラフィックで描画されたバーコードを補正する」欄77にチェックをすると、このシンボルコード抽出モジュール38等の機能を生かすモード設定となる。
Further, in the detailed bar code setting dialog of the print condition setting /
このような構成において、或るアプリケーションプログラム21に従い作成された描画データをプリンタ1により印刷出力する際のプリンタドライバ22の動作制御例を図21に示す概略フローチャートを参照して説明する。プリンタドライバ22では、まず、ホストコンピュータ3上で動作するアプリケーションプログラム21からの印刷要求でコマンド処理モジュール31が文字列を含む印刷コマンドを取得すると(S41)、画像処理モジュール37に当該印刷要求を引き渡す。その後、画像処理モジュール37では、グラフィックデータであれば(S42のY)、シンボルコード抽出モジュール38を用いてグラフィックデータを解析することにより(S43)、グラフィックデータ中に特定の規則、特定のデータの並び等からなるシンボルコードの描画データがあるか判定する(S44)。シンボルコードの描画データがあれば、当該シンボルコードの内容を読取るとともにUI処理モジュール32等で設定されている当該シンボルコード描画用パラメータを取得し(S45)、読取ったシンボルコードの内容及びシンボルコード描画用パラメータに従いシンボルコード描画モジュール34によりシンボルコードのイメージデータを作成し(S46)、ページ配置モジュール35に引き渡す。ページ配置モジュール35は印刷用のページメモリ上にシンボルコードのイメージデータを配置し(S47)、入出力ポート36を介してシンボルコードのイメージデータが配置された印刷データをプリンタ1に送信し(S48)、印刷出力させる。なお、グラフィックデータが含まれていない場合や(S42のN)、シンボルコードが含まれていない場合には(S44のN)、通常の描画処理を行い(S49)、入出力ポート36を介して印刷データをプリンタ1に送信し(S48)、印刷出力させる。
An example of operation control of the
この場合も例えば、図18を参酌すれば、図18(a)に示すようなアプリケーションプログラム21により作成されて入力される描画データ81中に、グラフィックデータとしてのバーコード(シンボルコード)82の貼付けが含まれている場合、従来であれば、当該バーコード82を通常一般のグラフィックデータなるオブジェクトとして取り扱うため、図18(b)に示すように画像補正等を受けてバーコードシンボルが滲む等の悪影響を受けた印刷結果となってしまうことがある。これに対して、本実施の形態の場合には、当該バーコード82の部分を通常一般のグラフィックデータと同一視せずバーコード部分であるとの解析結果に基づき、プリンタドライバ22内でバーコード82のイメージデータを作成して(再描画)いるので、無用な画像補正等が払拭され、図18(c)に示すように、バーコード82を規定通りに印刷再現することができる。
Also in this case, for example, referring to FIG. 18, a barcode (symbol code) 82 as graphic data is pasted into the drawing
なお、ステップS50,S51並びにステップS52の処理は、図17におけるステップS30,S31並びにステップS32の場合と同様である。 Note that the processes in steps S50, S51 and S52 are the same as those in steps S30, S31 and S32 in FIG.
本実施の形態によれば、シンボルコード描画の情報を、グラフィックデータで作成されたシンボルコードとし、その場合に、プリンタドライバ22内で当該シンボルコードの内容を読取りその内容に基づきシンボルコードのイメージデータを作成してプリンタ1に出力させるので、アプリケーションプログラム21などのシンボルコード描画に関する既存のリソースを活用しつつ、無用な画像処理等を避け、高品質なシンボルコード印刷を行わせることができる。
According to the present embodiment, the symbol code drawing information is a symbol code created by graphic data, and in this case, the content of the symbol code is read in the
[第六の実施の形態]
本実施の形態では、作成されるシンボルコードについての適合性判定機能並びに不適合な場合の報知機能を追加したものである。即ち、シンボルコード、例えばバーコードに変換する文字列の構文がバーコードの仕様に適合していなかったり、イメージ中のバーコードの画像品質が悪くバーコードとして正常に読込めないような場合に、適合しない旨をダイアログを通じてユーザに知らせたり、バーコード等のシンボルコードへの置換処理(作成処理)を行なわなかったり、エラーレポートして印刷出力させるようにしたものである。
[Sixth embodiment]
In the present embodiment, a conformity determination function for a created symbol code and a notification function in the case of nonconformity are added. That is, when the syntax of a symbol code, for example, a character string to be converted to a barcode, does not conform to the barcode specification, or the image quality of the barcode in the image is poor and cannot be read normally as a barcode, The user is informed through the dialog that it does not conform, or is not replaced with a symbol code such as a barcode (creation processing), or an error report is printed out.
そこで、本実施の形態により或るアプリケーションプログラム21に従い作成された描画データをプリンタ1により印刷出力する際のプリンタドライバ22の動作制御例を図22に示す概略フローチャートを参照して説明する。プリンタドライバ22では、まず、ホストコンピュータ3上で動作するアプリケーションプログラム21からの印刷要求でコマンド処理モジュール31が文字列を含む印刷コマンドを取得すると(S61)、画像処理モジュール37に当該印刷要求を引き渡す。その後、前述した実施の形態のようにシンボルコード描画モジュール34によりシンボルコードのイメージデータの作成処理を行なう(S62)。
An example of operation control of the
この一連の処理において、シンボルコードの作成に成功したか否かを判定する(S63)。この判定処理は、文字処理モジュール33や画像処理モジュール37による描画データの判定の結果、シンボルコード描画の情報(特定書式の文字列や、イメージ又はグラフィックによるシンボルコード)が含まれている場合において当該情報に基づきシンボルコードを作成する上でシンボルコードとしての適合性があるか否かを判定させる機能として実行される。例えば、特定書式の文字列をなす構文がシンボルコードの仕様に適合しているか否かを判定したり、イメージ中のシンボルコードをシンボルコードとして正常に読込めたか否かを判定したりすることにより処理される。適合する場合には(S63のY)、前述した実施の形態通り、作成されたシンボルコードのイメージデータを含む印刷データを入出力ポート36を介してプリンタ1に送信することにより(S64)、印刷動作を実行させる。一方、適合しないと判定された場合には(S63のN)、適合しない旨のエラー表示をダイアログを通じて表示させる(S65)。このステップS65の処理が知らせる機能又はステップとして実行される。図23に、エラーダイアログ91の表示例を示す。この例では、例えば特定書式の文字列によりバーコード印刷を指定した場合において、その文字列の構文が適合しない場合のエラーメッセージ例を示している。
In this series of processing, it is determined whether or not the symbol code has been successfully created (S63). This determination processing is performed when symbol code drawing information (a character string of a specific format or a symbol code by an image or graphic) is included as a result of determination of drawing data by the
本実施の形態によれば、判定の結果、シンボルコード描画の情報が含まれている場合において当該情報に基づきシンボルコードを作成する上でシンボルコードとしての適合性を判定させ、適合しないと判定された場合には、その旨をユーザに知らせるようにしたので、不適なシンボルコード印刷出力を未然に回避することができる。この際、適合しない旨をユーザインターフェースとしてエラーダイアログ91により表示させることにより、印刷の無駄なく確実にユーザに知らせることができる。
According to the present embodiment, when the symbol code drawing information is included as a result of the determination, the suitability as the symbol code is determined in creating the symbol code based on the information, and it is determined that the information does not match. In such a case, the user is informed of this fact, so that inappropriate symbol code printout can be avoided in advance. At this time, the fact that it is not compatible is displayed as a user interface by the
なお、シンボルコードとしての適合性判定において、適合しない場合に、ユーザに知らせる態様としては、例えば描画データの解析段階で判定するので、図24の左側に示すような不適合な描画データの場合に、図24の右側に示すようにシンボルコードへの変換処理(シンボルコードを作成する処理ないしは作成し直す処理)を行なわないことにより知らせるようにしてもよい。なお、図24(a)はイメージデータによるバーコードの場合、図24(b)は特定書式の文字列による場合を各々例示している。これによれば、シンボルコードを作成させないことにより適合しない旨をユーザに知らせるので、無駄となるシンボルコード作成処理をも未然に回避することができる。 In addition, in the suitability determination as the symbol code, as an aspect to notify the user when it does not match, for example, since it is determined at the drawing data analysis stage, in the case of incompatible drawing data as shown on the left side of FIG. As shown on the right side of FIG. 24, notification may be performed by not performing conversion processing to symbol code (processing to create or re-create symbol code). FIG. 24A illustrates the case of a barcode using image data, and FIG. 24B illustrates the case of a character string having a specific format. According to this, since the user is notified that the symbol code is not created by not creating the symbol code, it is possible to avoid unnecessary symbol code creation processing.
また、別の態様として、図25の左側に示すような不適合な描画データの場合に、図25の右側に示すようにシンボルコードの印刷出力に代えて、「バーコードとして認識できません」「このバーコードは構文に問題があります」等のエラーメッセージを付記したエラーレポート92,93をプリンタ1から印刷出力させるようにしてもよい。この場合も、図25(a)はイメージデータによるバーコードの場合、図25(b)は特定書式の文字列による場合を各々例示している。これによれば、適合しない旨のエラーレポート92又は93をプリンタ1に印刷出力させることで、プリンタ資源を活用して確実にユーザに知らせることができる。
Further, as another aspect, in the case of non-conforming drawing data as shown on the left side of FIG. 25, “cannot be recognized as a bar code” instead of symbol code printout as shown on the right side of FIG. Error reports 92 and 93 with an error message such as “The code has a syntax problem” may be printed out from the printer 1. Also in this case, FIG. 25A illustrates a case of a bar code based on image data, and FIG. 25B illustrates a case of a character string having a specific format. According to this, by causing the printer 1 to print out the
[従来例との対比]
前述した各実施の形態を踏まえ、本発明と従来技術との違いを図26の略図的な処理遷移図を参照して説明する(シンボルコードは、例えばバーコードの場合とする)。
[Contrast with conventional example]
Based on each of the embodiments described above, the difference between the present invention and the prior art will be described with reference to the schematic process transition diagram of FIG. 26 (the symbol code is, for example, a barcode).
まず、従来方式から説明すると、処理遷移経路Aは、バーコードをアプリケーションプログラムがイメージデータとして作成してプリンタドライバに入力させ、プリンタではイメージデータとして印刷する例を示している。この場合、プリンタドライバやプリンタは、バーコードをバーコードとして判断できず、一般イメージデータと同等に扱うため、この処理遷移経路A上(OSやアプリケーション、プリンタドライバ、或いはプリンタ上)で、一般イメージデータと同等の画像補正処理を受けるため、バーコードとしての品質を保障できない欠点がある。また、アプリケーションプログラムに関しては、バーコード専用の機能が必要となる。 First, from the conventional method, the process transition path A shows an example in which an application program creates a barcode as image data and inputs it to a printer driver, and the printer prints it as image data. In this case, the printer driver or printer cannot determine the barcode as a barcode, and handles it in the same way as general image data. Therefore, on the processing transition path A (OS, application, printer driver, or printer), the general image Since the image correction processing equivalent to the data is performed, there is a drawback that the quality as a barcode cannot be guaranteed. In addition, for the application program, a barcode-dedicated function is required.
処理遷移経路Bは、バーコードをフォントで作成してプリンタドライバに入力させ、プリンタでは文字としてバーコードを印刷する例を示している。バーコードをフォントで作成する方式は、前述したように、一般にも流通しており、例えば“123”と入力すれば、それに対応したバーコードがモニタ上に表示され、プリンタにもTrue Typeフォントとして認識される。この場合、フォントであるので、サイズも任意に設定できる。ところが、全てのサイズに関してバーコードとしての品質は保障できず、アプリケーションがプリンタの解像度に合わせて変倍するので、サイズに誤差が入りやすく、この場合も、バーコード読取り時の精度が低下してしまう懸念がある。つまり、バーコードのピッチやサイズがフォント情報に依存してしまい、誤差が大きく、バーコードとしての認識率が低くなってしまう可能性がある。また、フォントであるので、文字用の画像補正を受けた場合も同様である。 The process transition path B shows an example in which a barcode is created with fonts and input to the printer driver, and the printer prints the barcode as characters. As described above, the method of creating barcodes with fonts is generally available. For example, if “123” is entered, the corresponding barcode is displayed on the monitor, and the printer also uses True Type fonts. Be recognized. In this case, since the font is used, the size can be arbitrarily set. However, the quality of barcodes for all sizes cannot be guaranteed, and the application scales according to the resolution of the printer, so errors are likely to occur in the size. In this case, the accuracy of barcode reading also decreases. There is a concern. That is, the barcode pitch and size depend on the font information, and there is a possibility that the error is large and the recognition rate as a barcode is low. Moreover, since it is a font, it is the same when it receives the image correction for characters.
処理遷移経路Cは、プリンタドライバに特定のフォントを提供するバーコード描画コマンドを持たせ、バーコードフォントで作成した文字列をプリンタドライバに入力させ、特定のフォントが指定された場合にはプリンタドライバがプリンタにバーコード描画コマンドを送信してバーコードを描画させることで印刷する例を示している。しかし、プリンタ中のプリンタコントローラがバーコード描画コマンドに基づきバーコードを描画できる機能(バーコード専用機能)を有する場合のみ可能で汎用性に欠ける上に、文字列で表現できない制御コードに関するコードはバーコードに変換できない、という不具合がある。 The process transition path C allows the printer driver to have a barcode drawing command for providing a specific font, causes the printer driver to input a character string created with the barcode font, and if the specific font is specified, the printer driver Shows an example of printing by sending a barcode drawing command to the printer and drawing the barcode. However, this is possible only when the printer controller in the printer has a function (barcode dedicated function) that can draw barcodes based on barcode drawing commands. There is a bug that cannot be converted to code.
次に、本発明方式を説明する。処理遷移経路Dは、例えば第一ないし第三の実施の形態の如く、アプリケーションプログラム21では特定書式の文字列を含む描画データをプリンタドライバ22に入力させ、当該プリンタドライバ22内で特定書式の文字列を解析しバーコードに変換(バーコードのイメージデータを作成)し、これをプリンタ1に送信することでプリンタ1ではバーコードをイメージデータとして印刷する例を示している。この方式の場合、アプリケーションプログラム21においては、バーコード専用の機能は不要な上に、プリンタドライバ22においては、バーコード部分を認識しているので画像補正等の無用な処理を施すことがなく、プリンタ1に最適化されたバーコードのイメージデータの作成が可能であり、品質が保障されるバーコードの印刷出力が可能となる。また、プリンタ1としてはイメージデータの印刷機能は最低限有しているので、バーコードを描画するためのバーコード専用の機能は不要である。
Next, the method of the present invention will be described. In the process transition path D, for example, as in the first to third embodiments, the
処理遷移経路Eは、例えば第四又は第五の実施の形態の如く、アプリケーションプログラム21によりイメージやグラフィックで描画されたバーコードを含む描画データをプリンタドライバ22に入力させ、プリンタドライバ22内でバーコードを解析することでバーコードであることを認識させ、バーコードと認識された場合には、当該プリンタドライバ22内でバーコードのイメージデータを作成し又は作成し直し、これをプリンタ1に送信することでプリンタ1ではバーコードをイメージデータとして印刷する例を示している。この方式の場合、アプリケーションプログラム21においては、バーコード専用の機能は必要とするものの、プリンタドライバ22においては、バーコード部分を認識しているのでイメージやグラフィックであっても画像補正等の無用な処理を施すことがなく、プリンタ1に最適化されたバーコードのイメージデータの作成又は作成し直しが可能であり、品質が保障されるバーコードの印刷出力が可能となる。また、プリンタ1としてはイメージデータの印刷機能は最低限有しているので、バーコードを描画するためバーコード専用の機能は不要である。
For example, as in the fourth or fifth embodiment, the process transition path E causes the
1 プリンタ
3 コンピュータ
11 記憶媒体
22 プリンタドライバ
33 判定する機能
34 作成する機能
35 印刷させる機能
37,38 判定する機能
41 描画データ
42 特定書式の文字列情報
44 シンボルコード
51 印刷条件設定印刷ダイアログ
61 シンボルコード置換用フォント設定ダイアログ
81 描画データ
82 シンボルコード
91 エラーダイアログ
92,93 エラーレポート
DESCRIPTION OF SYMBOLS 1
Claims (37)
印刷要求に応じて入力される描画データ中にシンボルコード描画の情報が含まれているか否かを判定する機能と、
判定の結果、シンボルコード描画の情報が含まれている場合には、当該シンボルコード描画の情報を解析し解析された情報に基づきシンボルコードのイメージデータを作成する機能と、
作成されたシンボルコードのイメージデータを前記プリンタに出力させてシンボルコードを印刷させる機能と、
を実行させるプリンタドライバ。 Installed on a computer connected to a printer,
A function for determining whether or not symbol code drawing information is included in drawing data input in response to a print request;
As a result of the determination, if symbol code drawing information is included, a function of analyzing the symbol code drawing information and creating image data of the symbol code based on the analyzed information;
A function of outputting the created symbol code image data to the printer and printing the symbol code;
A printer driver that runs
前記判定する機能は、入力される前記描画データにおける文字列情報中に当該特定書式の文字列情報が含まれているか否かを判定する、請求項1記載のプリンタドライバ。 The symbol code drawing information is character string information in a specific format set in advance,
The printer driver according to claim 1, wherein the determination function determines whether or not character string information of the specific format is included in character string information in the input drawing data.
前記判定する機能は、前記使用するシンボルコード名が含まれていることによりシンボルコード描画の情報が含まれていると判定し、
前記作成する機能は、前記シンボルコードに変換する文字列の情報に基づきシンボルコードのイメージデータを作成する、請求項2記載のプリンタドライバ。 The character string in the specific format consists of [name of symbol code to be used, character string to be converted to symbol code],
The determination function determines that the symbol code drawing information is included by including the symbol code name to be used,
The printer driver according to claim 2, wherein the creating function creates image data of a symbol code based on information on a character string to be converted into the symbol code.
前記判定する機能は、前記使用するシンボルコード名が含まれていることによりシンボルコード描画の情報が含まれていると判定し、
前記作成する機能は、前記シンボルコードに変換する文字列の情報に基づき前記シンボルコードのサイズに従うサイズのシンボルコードのイメージデータを作成する、請求項2記載のプリンタドライバ。 The character string of the specific format consists of [symbol code name to be used, character string to be converted to symbol code, symbol code size]
The determination function determines that the symbol code drawing information is included by including the symbol code name to be used,
The printer driver according to claim 2, wherein the creating function creates image data of a symbol code having a size according to a size of the symbol code based on information of a character string to be converted into the symbol code.
前記判定する機能は、前記特定フォントの文字列が含まれていることによりシンボルコード描画の情報が含まれていると判定し、
前記作成する機能は、前記シンボルコードに変換する文字列の情報に基づきシンボルコードのイメージデータを作成する、請求項2記載のプリンタドライバ。 The character string of the specific format is a character string to be converted into a symbol code with a specific font set in advance in association with the symbol code name to be used,
The determination function determines that symbol code drawing information is included by including a character string of the specific font,
The printer driver according to claim 2, wherein the creating function creates image data of a symbol code based on information on a character string to be converted into the symbol code.
前記作成する機能は、前記印刷条件設定印刷ダイアログを通じて設定されたサイズに応じて作成するシンボルコードのイメージデータのサイズを決定する、請求項2,3,5,6又は7記載のプリンタドライバ。 Causing the computer to execute a function of providing a print condition setting print dialog including a symbol code size setting as a user interface;
8. The printer driver according to claim 2, wherein the function to be created determines a size of symbol code image data to be created according to a size set through the print condition setting print dialog.
前記空白を付与する機能は、前記印刷条件設定印刷ダイアログを通じて設定されたサイズ分の空白を付与する、請求項10記載のプリンタドライバ。 Causing the computer to execute a function of providing a print condition setting print dialog including a size setting of the blank portion to be provided as a user interface;
The printer driver according to claim 10, wherein the function of adding a blank adds a blank of a size set through the print condition setting print dialog.
前記判定する機能は、入力される前記描画データにおけるイメージデータ中にシンボルコードの情報が含まれているか否かを解析し、
判定の結果、イメージデータ中にシンボルコードの情報が含まれている場合には、前記作成する機能は、当該シンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し直す、請求項1記載のプリンタドライバ。 The symbol code drawing information is a symbol code created with image data,
The determination function analyzes whether or not symbol code information is included in the image data in the input drawing data,
As a result of the determination, when the symbol data is included in the image data, the creating function reads the content of the symbol code and creates symbol code image data again based on the content. Item 2. The printer driver according to Item 1.
前記判定する機能は、入力される前記描画データにおけるグラフィックデータ中にシンボルコードの情報が含まれているか否かを判定し、
判定の結果、グラフィックデータ中にシンボルコードの情報が含まれている場合には、前記作成する機能は、当該シンボルコードの内容を読取りその内容に基づきシンボルコードのイメージデータを作成する、請求項1記載のプリンタドライバ。 The symbol code drawing information is a symbol code created with graphic data,
The determination function determines whether or not symbol code information is included in graphic data in the input drawing data,
2. As a result of the determination, when the symbol data is included in the graphic data, the creating function reads the content of the symbol code and creates image data of the symbol code based on the content. The printer driver described.
適合しないと判定された場合には、その旨をユーザに知らせる機能と、
を前記コンピュータに実行させる、請求項1ないし14の何れか一記載のプリンタドライバ。 As a result of determination, when symbol code drawing information is included, a function for determining suitability as a symbol code in creating a symbol code based on the information;
A function to notify the user when it is determined to be non-conforming, and
The printer driver according to claim 1, wherein the printer is executed by the computer.
判定の結果、シンボルコード描画の情報が含まれている場合には、前記プリンタドライバにおいて当該シンボルコード描画の情報に基づきシンボルコードのイメージデータを作成するステップと、
作成されたシンボルコードのイメージデータを前記プリンタドライバから前記プリンタに出力させてシンボルコードを印刷させるステップと、
を備えるシンボルコード印刷方法。 Determining whether or not symbol code drawing information is included in drawing data input to the printer driver in response to a print request when a print request from an application is transmitted to the printer;
If the determination result includes symbol code drawing information, the printer driver creates symbol code image data based on the symbol code drawing information;
Outputting image data of the created symbol code from the printer driver to the printer, and printing the symbol code;
A symbol code printing method comprising:
前記判定するステップは、入力される前記描画データにおける文字列情報中に当該特定書式の文字列情報が含まれているか否かを判定する、請求項20記載のシンボルコード印刷方法。 The symbol code drawing information is character string information in a specific format set in advance,
21. The symbol code printing method according to claim 20, wherein the determining step determines whether or not character string information of the specific format is included in character string information in the input drawing data.
前記判定するステップは、前記使用するシンボルコード名が含まれていることによりシンボルコード描画の情報が含まれていると判定し、
前記作成するステップは、前記シンボルコードに変換する文字列の情報に基づきシンボルコードのイメージデータを作成する、請求項21記載のシンボルコード印刷方法。 The character string in the specific format consists of [name of symbol code to be used, character string to be converted to symbol code],
The determining step determines that the symbol code drawing information is included by including the symbol code name to be used,
The symbol code printing method according to claim 21, wherein the creating step creates image data of a symbol code based on information on a character string to be converted into the symbol code.
前記判定するステップは、前記使用するシンボルコード名が含まれていることによりシンボルコード描画の情報が含まれていると判定し、
前記作成するステップは、前記シンボルコードに変換する文字列の情報に基づき前記シンボルコードのサイズに従うサイズのシンボルコードのイメージデータを作成する、請求項2記載のシンボルコード印刷方法。 The character string of the specific format consists of [symbol code name to be used, character string to be converted to symbol code, symbol code size]
The determining step determines that the symbol code drawing information is included by including the symbol code name to be used,
The symbol code printing method according to claim 2, wherein the creating step creates image data of a symbol code having a size according to a size of the symbol code based on information of a character string to be converted into the symbol code.
前記判定するステップは、前記特定フォントの文字列が含まれていることによりシンボルコード描画の情報が含まれていると判定し、
前記作成するステップは、前記シンボルコードに変換する文字列の情報に基づきシンボルコードのイメージデータを作成する、請求項2記載のシンボルコード印刷方法。 The character string of the specific format is a character string to be converted into a symbol code with a specific font set in advance in association with the symbol code name to be used,
The determining step determines that symbol code drawing information is included by including the character string of the specific font;
The symbol code printing method according to claim 2, wherein the creating step creates image data of a symbol code based on information on a character string to be converted into the symbol code.
前記作成するステップは、前記印刷条件設定印刷ダイアログを通じて設定されたサイズに応じて作成するシンボルコードのイメージデータのサイズを決定する、請求項21,22,24,25又は26記載のシンボルコード印刷方法。 Providing a print condition setting print dialog including a symbol code size setting as a user interface,
27. The symbol code printing method according to claim 21, wherein the size of the symbol code image data to be created is determined in accordance with a size set through the print condition setting print dialog. .
前記空白を付与するステップは、前記印刷条件設定印刷ダイアログを通じて設定されたサイズ分の空白を付与する、請求項29記載のシンボルコード印刷方法。 Providing a print condition setting print dialog including a size setting of the blank portion to be provided as a user interface;
30. The symbol code printing method according to claim 29, wherein in the step of assigning a blank, a blank corresponding to a size set through the print condition setting print dialog is given.
前記判定するステップは、入力される前記描画データにおけるイメージデータ中にシンボルコードの情報が含まれているか否かを解析し、
判定の結果、イメージデータ中にシンボルコードの情報が含まれている場合には、前記作成するステップは、当該シンボルコードの内容を読取りその内容に基づき再度シンボルコードのイメージデータを作成し直す、請求項20記載のシンボルコード印刷方法。 The symbol code drawing information is a symbol code created with image data,
The determining step analyzes whether or not symbol code information is included in the image data in the input drawing data;
As a result of the determination, when the symbol data is included in the image data, the creating step reads the content of the symbol code and recreates the symbol code image data again based on the content. Item 20. The symbol code printing method according to Item 20.
前記判定するステップは、入力される前記描画データにおけるグラフィックデータ中にシンボルコードの情報が含まれているか否かを解析し、
判定の結果、グラフィックデータ中にシンボルコードの情報が含まれている場合には、前記作成するステップは、当該シンボルコードの内容を読取りその内容に基づきシンボルコードのイメージデータを作成する、請求項20記載のシンボルコード印刷方法。 The symbol code drawing information is a symbol code created with graphic data,
The determining step analyzes whether or not symbol code information is included in graphic data in the input drawing data;
21. As a result of the determination, if the graphic data includes symbol code information, the creating step reads the content of the symbol code and creates image data of the symbol code based on the content. The described symbol code printing method.
適合しないと判定された場合には、その旨をユーザに知らせるステップと、
を備える、請求項20ないし33の何れか一記載のシンボルコード印刷方法。 As a result of the determination, when symbol code drawing information is included, a step of determining suitability as a symbol code in creating a symbol code based on the information;
If it is determined that it does not fit, informing the user to that effect;
34. The symbol code printing method according to claim 20, further comprising:
35. The symbol code printing method according to claim 34, wherein in the notifying step, an error dialog is displayed as a user interface to the effect that the information is not compatible.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004209639A JP2006031427A (en) | 2004-07-16 | 2004-07-16 | Printer driver, storage medium, and symbol code printing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004209639A JP2006031427A (en) | 2004-07-16 | 2004-07-16 | Printer driver, storage medium, and symbol code printing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006031427A true JP2006031427A (en) | 2006-02-02 |
| JP2006031427A5 JP2006031427A5 (en) | 2007-05-10 |
Family
ID=35897686
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004209639A Pending JP2006031427A (en) | 2004-07-16 | 2004-07-16 | Printer driver, storage medium, and symbol code printing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2006031427A (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007304799A (en) * | 2006-05-10 | 2007-11-22 | Hypergear:Kk | Program for printing |
| JP2008146406A (en) * | 2006-12-11 | 2008-06-26 | Seiko Epson Corp | Printing system and printing control method in printing system |
| US7841013B2 (en) | 2006-02-07 | 2010-11-23 | Murata Kikai Kabushiki Kaisha | Image forming device, computer program, and data file |
| JP2012194688A (en) * | 2011-03-15 | 2012-10-11 | Fujitsu Component Ltd | Print control program |
| US8328319B2 (en) | 2008-10-10 | 2012-12-11 | Seiko Epson Corporation | Print control apparatus, print control method, and storage medium |
| JP2014002697A (en) * | 2012-06-21 | 2014-01-09 | Seiko Epson Corp | Image processing device, image processing system, and printing method |
| CN103516952A (en) * | 2012-06-21 | 2014-01-15 | 精工爱普生株式会社 | Image processing device, image processing system, and printing method |
| JP2014182692A (en) * | 2013-03-21 | 2014-09-29 | Seiko Epson Corp | Print control program, print control device, and print control method |
| JP2015005194A (en) * | 2013-06-21 | 2015-01-08 | 富士通コンポーネント株式会社 | Printer, print control program, and printing system |
| JP2016133979A (en) * | 2015-01-19 | 2016-07-25 | 富士ゼロックス株式会社 | Printing instruction apparatus, printing system, and program |
| US10732914B2 (en) | 2018-06-28 | 2020-08-04 | Ricoh Company, Ltd. | Information processing apparatus configured to determine a character code compatible with an external device, method, and non-transitory recording medium storing instructions for executing an information processing method |
-
2004
- 2004-07-16 JP JP2004209639A patent/JP2006031427A/en active Pending
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7841013B2 (en) | 2006-02-07 | 2010-11-23 | Murata Kikai Kabushiki Kaisha | Image forming device, computer program, and data file |
| JP2007304799A (en) * | 2006-05-10 | 2007-11-22 | Hypergear:Kk | Program for printing |
| JP2008146406A (en) * | 2006-12-11 | 2008-06-26 | Seiko Epson Corp | Printing system and printing control method in printing system |
| US8328319B2 (en) | 2008-10-10 | 2012-12-11 | Seiko Epson Corporation | Print control apparatus, print control method, and storage medium |
| JP2012194688A (en) * | 2011-03-15 | 2012-10-11 | Fujitsu Component Ltd | Print control program |
| CN103516952A (en) * | 2012-06-21 | 2014-01-15 | 精工爱普生株式会社 | Image processing device, image processing system, and printing method |
| JP2014002697A (en) * | 2012-06-21 | 2014-01-09 | Seiko Epson Corp | Image processing device, image processing system, and printing method |
| EP2677418A3 (en) * | 2012-06-21 | 2014-05-21 | Seiko Epson Corporation | Image processing device, image processing system, and printing method |
| US9135534B2 (en) | 2012-06-21 | 2015-09-15 | Seiko Epson Corporation | Image processing device, image processing system, and printing method |
| JP2014182692A (en) * | 2013-03-21 | 2014-09-29 | Seiko Epson Corp | Print control program, print control device, and print control method |
| JP2015005194A (en) * | 2013-06-21 | 2015-01-08 | 富士通コンポーネント株式会社 | Printer, print control program, and printing system |
| JP2016133979A (en) * | 2015-01-19 | 2016-07-25 | 富士ゼロックス株式会社 | Printing instruction apparatus, printing system, and program |
| US10732914B2 (en) | 2018-06-28 | 2020-08-04 | Ricoh Company, Ltd. | Information processing apparatus configured to determine a character code compatible with an external device, method, and non-transitory recording medium storing instructions for executing an information processing method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9753677B2 (en) | Apparatus and methods for image processing optimization for variable data printing | |
| US8614833B2 (en) | Printer, printer driver, printing system, and print controlling method | |
| EP2575024B1 (en) | Print data processing apparatus, a print data processing method, a printing system and program, a page data creating apparatus, and a rasterization processing apparatus | |
| JP2006031427A (en) | Printer driver, storage medium, and symbol code printing method | |
| US6633890B1 (en) | Method for washing of graphic image files | |
| JP2006031427A5 (en) | ||
| JP2005227865A (en) | Print control device, method, and program | |
| US6903839B1 (en) | Apparatus for washing of graphic image files | |
| US20080174824A1 (en) | Print data processing device and print data processing program | |
| JPH11221946A (en) | Printing system and printing method | |
| US20100147960A1 (en) | Methods, devices, and systems for printing bar codes | |
| JP4470828B2 (en) | Printer, printer driver | |
| JPH08160934A (en) | Character information processing device | |
| KR100742332B1 (en) | Print control device and print control method | |
| JP4218517B2 (en) | Color correction device | |
| US8045227B2 (en) | Print controlling device, image forming device, print controlling method, and computer readable recording medium storing control program | |
| EP3346376B1 (en) | Printer script autocorrect | |
| JP6437076B2 (en) | Information processing apparatus, control method therefor, and program | |
| JP4968417B1 (en) | Print data conversion apparatus and program | |
| JP7480612B2 (en) | Image processing device, image forming device and program | |
| US20250292001A1 (en) | Information processing apparatus, information processing method, and storage medium | |
| JP2009187168A (en) | Information processor and information processing program | |
| KR100571788B1 (en) | How to enlarge the designated area of the document | |
| WO2001018690A2 (en) | Method and apparatus for normalization of image files and load balancing of operations | |
| CN118132015A (en) | Page generation method and device and image forming equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20051021 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070209 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070209 |
|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20070208 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090724 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090804 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20091001 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20091201 |