JP2013041472A - Information processor, driver program and recording medium - Google Patents
Information processor, driver program and recording medium Download PDFInfo
- Publication number
- JP2013041472A JP2013041472A JP2011178597A JP2011178597A JP2013041472A JP 2013041472 A JP2013041472 A JP 2013041472A JP 2011178597 A JP2011178597 A JP 2011178597A JP 2011178597 A JP2011178597 A JP 2011178597A JP 2013041472 A JP2013041472 A JP 2013041472A
- Authority
- JP
- Japan
- Prior art keywords
- post
- processing unit
- unit
- print command
- command
- 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.)
- Withdrawn
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
Description
本発明は、情報処理装置、ドライバプログラム及び記憶媒体に関する。 The present invention relates to an information processing apparatus, a driver program, and a storage medium.
従来から、複数種類の描画コマンドを生成可能であり、印刷命令から接続先の画像形成装置が対応している描画コマンドを生成し、当該画像形成装置に出力するプリンタドライバ(情報処理装置)が知られている(例えば、特許文献1参照)。 Conventionally, a printer driver (information processing apparatus) that can generate a plurality of types of drawing commands, generates a drawing command supported by the image forming apparatus to be connected from a print command, and outputs the drawing command to the image forming apparatus is known. (For example, refer to Patent Document 1).
しかしながら、上述したような従来技術では、新たな種類の描画コマンドを生成可能とさせることが困難であった。 However, with the conventional technology as described above, it has been difficult to generate a new type of drawing command.
本発明は、上記事情に鑑みてなされたものであり、新たな種類の描画コマンドを生成可能とすることができる情報処理装置、ドライバプログラム及び記憶媒体を提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object thereof is to provide an information processing apparatus, a driver program, and a storage medium that can generate a new type of drawing command.
上述した課題を解決し、目的を達成するために、本発明の一態様にかかる情報処理装置は、前処理部と後処理部とを有する第1描画部と、後処理部の種別を示す種別情報と印刷命令の変換方法を示す変換方法情報とを対応付けた印刷命令変換テーブルを記憶する記憶部と、前記第1描画部に新たな後処理部を追加するとともに、追加した当該後処理部の種別情報及び変換方法情報を対応付けて前記印刷命令変換テーブルに追加する追加部と、を備え、前記前処理部は、印刷命令を受け付けると、当該印刷命令に含まれる種別情報が示す後処理部を選択し、前記印刷命令変換テーブルを参照して、当該種別情報に対応する変換方法情報が示す変換方法で当該印刷命令を変換し、選択した前記後処理部に出力し、選択された前記後処理部は、前記前処理部から変換後の前記印刷命令が出力されると、当該印刷命令から当該後処理部に応じた描画コマンドを生成し、画像形成装置に出力することを特徴とする。 In order to solve the above-described problems and achieve the object, an information processing apparatus according to an aspect of the present invention includes a first drawing unit having a pre-processing unit and a post-processing unit, and a type indicating a type of the post-processing unit. A storage unit for storing a print command conversion table in which information and a conversion method information indicating a conversion method of a print command are associated; a new post-processing unit added to the first drawing unit; and the added post-processing unit An adding unit that associates the type information and the conversion method information with each other and adds them to the print command conversion table, and when the preprocessing unit receives the print command, post-processing indicated by the type information included in the print command Select the copy unit, refer to the print command conversion table, convert the print command by the conversion method indicated by the conversion method information corresponding to the type information, and output the selected print processing unit to the selected post-processing unit. The post-processing unit When the print instruction after conversion from the processing unit is outputted, it generates a drawing command corresponding to the post-processing unit from the print instruction, and outputs to the image forming apparatus.
また、本発明の別の態様にかかるドライバプログラムは、前処理部と後処理部とを有する第1描画部としてコンピュータを機能させ、前記前処理部は、後処理部の種別を示す種別情報を含む印刷命令を受け付けると、前記第1描画部に追加された新たな後処理部を含む複数種類の後処理部の中から、当該種別情報が示す後処理部を選択し、記憶部から、前記複数種類の後処理部の種別情報と印刷命令の変換方法を示す変換方法情報とを対応付けた印刷命令変換テーブルを参照して、前記印刷命令に含まれる前記種別情報に対応する変換方法情報が示す変換方法で前記印刷命令を変換し、選択した前記後処理部に出力し、選択された前記後処理部は、前記前処理部から変換後の前記印刷命令が出力されると、当該印刷命令から当該後処理部に応じた描画コマンドを生成し、画像形成装置に出力することを特徴とするものである。 A driver program according to another aspect of the present invention causes a computer to function as a first drawing unit having a pre-processing unit and a post-processing unit, and the pre-processing unit stores type information indicating a type of the post-processing unit. When receiving a print command including, from among a plurality of types of post-processing units including a new post-processing unit added to the first drawing unit, select a post-processing unit indicated by the type information, from the storage unit, The conversion method information corresponding to the type information included in the print command is obtained by referring to the print command conversion table in which the type information of the plurality of types of post-processing units is associated with the conversion method information indicating the conversion method of the print command. The print command is converted by the conversion method shown and output to the selected post-processing unit. When the converted print command is output from the pre-processing unit, the selected post-processing unit outputs the print command. To the post-processing department Generating the drawing command, and is characterized in that the output to the image forming apparatus.
また、本発明の別の態様にかかる記憶媒体は、上記ドライバプログラムを記憶したコンピュータ読み取り可能なものである。 A storage medium according to another aspect of the present invention is a computer-readable medium storing the driver program.
本発明によれば、新たな種類の描画コマンドを生成可能とすることができるという効果を奏する。 According to the present invention, it is possible to generate a new type of drawing command.
以下、添付図面を参照しながら、本発明にかかる情報処理装置、ドライバプログラム及び記憶媒体の実施形態を詳細に説明する。 Hereinafter, embodiments of an information processing apparatus, a driver program, and a storage medium according to the present invention will be described in detail with reference to the accompanying drawings.
なお本実施形態では、情報処理装置としてPC(Personal Computer)を例にとり説明するが、これに限定されるものではない。同様に、画像形成装置として印刷装置を例に取り説明するが、これに限定されるものではなく、複写機や複合機などであってもよい。なお、複合機とは、印刷機能、複写機能、スキャナ機能、及びファクシミリ機能のうち少なくとも2つの機能を有する装置である。 In the present embodiment, a PC (Personal Computer) is described as an example of the information processing apparatus, but the present invention is not limited to this. Similarly, a printing apparatus will be described as an example of the image forming apparatus. However, the present invention is not limited to this, and may be a copier or a multifunction machine. Note that a multifunction peripheral is a device having at least two functions among a printing function, a copying function, a scanner function, and a facsimile function.
まず、本実施形態のPCを含む印刷システムの構成について説明する。 First, the configuration of a printing system including a PC according to the present embodiment will be described.
図1は、本実施形態の印刷システム1の構成の一例を示すブロック図である。図1に示すように、印刷システム1は、印刷要求元のPC10と、PC10からの印刷要求に従って印刷を行う印刷装置20とを、備える。なお、印刷システム1は、PC10を複数備えるようにしてもよいし、印刷装置20を複数備えるようにしてもよい。
FIG. 1 is a block diagram illustrating an example of a configuration of a printing system 1 according to the present embodiment. As illustrated in FIG. 1, the printing system 1 includes a
PC10及び印刷装置20は、ネットワーク5を介して接続されている。ネットワーク5は、例えば、LAN(Local Area Network)などにより実現できる。なお、PC10と印刷装置20とをUSB(Universal Serial Bus)などのシリアルポート(serial port)で直接接続するようにしてもよい。
The PC 10 and the
図2は、本実施形態のPC10の構成の一例を示すブロック図である。図2に示すように、PC10は、通信部110と、操作部120と、表示部130と、記憶部140と、制御部150とを、備える。
FIG. 2 is a block diagram illustrating an example of the configuration of the
通信部110は、ネットワーク5を介して、印刷装置20などの外部装置と通信するものであり、通信インターフェースなどの既存の通信装置により実現できる。
The
操作部120は、各種操作の入力を行うものであり、キーボード、マウス、タッチパッド、及びタッチパネルなどの既存の入力装置の少なくともいずれかにより実現できる。
The
表示部130は、各種画面を表示するものであり、液晶ディスプレイやタッチパネル式ディスプレイなどの既存の表示装置により実現できる。
The
記憶部140は、PC10で実行される各種プログラム及びライブラリやPC10で行われる各種処理に使用されるデータなどを記憶する。例えば、記憶部140は、印刷命令変換テーブルを記憶する。なお、印刷命令変換テーブルの詳細については後述する。 The storage unit 140 stores various programs and libraries executed by the PC 10, data used for various processes performed by the PC 10, and the like. For example, the storage unit 140 stores a print command conversion table. Details of the print command conversion table will be described later.
記憶部140は、例えば、HDD(Hard Disk Drive)、SSD(Solid State Drive)、メモリカード、光ディスク、ROM(Read Only Memory)、及びRAM(Random Access Memory)などの磁気的、光学的、又は電気的に記憶可能な既存の記憶装置の少なくともいずれかにより実現できる。 The storage unit 140 is, for example, a magnetic, optical, or electrical device such as a hard disk drive (HDD), a solid state drive (SSD), a memory card, an optical disk, a read only memory (ROM), and a random access memory (RAM). This can be realized by at least one of existing storage devices that can be stored.
制御部150は、PC10の全体を制御するものであり、CPU(Central Processing Unit)などの既存の制御装置により実現できる。制御部150は、OS152と、アプリケーション154と、変更部156と、プリンタドライバ160と、プリンタドライバ170と、を含む。なお制御部150は、記憶部140に記憶されている各プログラム(ライブラリ含む)を起動(実行)することにより、制御部150の各部を実現する。
The
OS152は、PC10の各部(詳細には、PC10のハードウェア及びソフトウェア)を制御するものであり、基本ソフトウェアにより実現される。本実施形態では、OS152は、Windows(登録商標)により実現されるものとするが、これに限定されるものではなく、例えば、UNIX(登録商標)により実現されてもよい。 The OS 152 controls each part of the PC 10 (specifically, hardware and software of the PC 10), and is realized by basic software. In the present embodiment, the OS 152 is realized by Windows (registered trademark), but is not limited to this, and may be realized by, for example, UNIX (registered trademark).
アプリケーション154は、文書の作成、文書の閲覧、又は数値計算など所定の作業をPC10で行うためのものであり、例えば、基本ソフトウェア上で動作する文書作成ソフトウェア、閲覧ソフトウェア、又は表計算ソフトウェアなどにより実現できる。
The
アプリケーション154は、操作部120から印刷設定画面の表示を指示する操作入力を受け付けると、OS152を介して、プリンタドライバ160及びプリンタドライバ170のうち選択しているプリンタドライバにその旨を通知する。
When the
またアプリケーション154は、操作部120から印刷を指示する操作入力を受け付けると、OS152と協同して印刷設定を含む印刷命令を生成し、プリンタドライバ160及びプリンタドライバ170のうち選択しているプリンタドライバに通知する。
When the
プリンタドライバ160、170は、PC10から印刷装置20を動作させるためのものであり、OS152と印刷装置20との差分を吸収するためのソフトウェアにより実現できる。プリンタドライバ160は、描画部162(第1描画部の一例)と印刷設定部164とを備え、プリンタドライバ170は、描画部172(第2描画部の一例)と印刷設定部174とを備える。
The
描画部162は、OS152から印刷命令を受け付けると、当該印刷命令から印刷装置20が解釈可能な描画コマンド及びジョブコマンドを生成し、通信部110を介して印刷装置20に送信する。
When the
描画コマンドとは、描画内容が記述されたコマンドである。描画部162は、PDL(Page Description Language)を用いて描画コマンドを生成(記述)する。PDLの一例には、PCL(Printer Control Language)やPostScriptなどがある。印刷装置20は、描画コマンドに従って、画像、文字、及び図形などを記録紙に印字する。
The drawing command is a command in which drawing contents are described. The
ジョブコマンドとは、印刷ジョブ全体に適用される印刷設定が記述されたコマンドである。描画部162は、例えば、PJL(Printer Job Language)やJDF(Job Definition Format)を用いてジョブコマンドを生成(記述)する。印刷装置20は、ジョブコマンドに従って、両面印刷を行ったり、ステープル処理やパンチ処理などを記録紙に施したりする。
A job command is a command that describes print settings that apply to the entire print job. The
なお、描画部162では、自身が予め対応している種類の描画コマンドを生成するだけでなく、新たな種類の描画コマンドを生成可能とすることもできる。
Note that the
図3は、本実施形態の描画部162の構成の一例を示すブロック図である。図3に示すように、描画部162は、前処理部180と、後処理部190−1〜190−2と、を有する。但し、後処理部の数は、これに限定されるものではなく、いくつであってもよい。なお、以下では、後処理部を各々区別する必要がない場合は、単に後処理部190と称する場合がある。
FIG. 3 is a block diagram illustrating an example of the configuration of the
本実施形態では、前処理部180及び後処理部190はそれぞれ独立したモジュールにより実現される。本実施形態では、モジュールは、DLL(Dynamic Link Library)とするが、これに限定されるものではない。本実施形態では、後処理部190−1は、PDLとしてPCL6を用いて描画コマンドを生成し、後処理部190−2は、PDLとしてPostScriptを用いて描画コマンドを生成するものとする。
In this embodiment, the
ここで、印刷命令変換テーブル及び変更部156について説明する。
Here, the print command conversion table and
印刷命令変換テーブルは、後処理部の種別を示す種別情報と印刷命令の変換方法を示す変換方法情報とを対応付ける。また、印刷命令変換テーブルは、描画部162が有する後処理部以外を示す種別情報と変換方法情報とを対応付ける。
The print command conversion table associates type information indicating the type of the post-processing unit with conversion method information indicating the conversion method of the print command. Also, the print command conversion table associates type information indicating conversion units other than the post-processing unit included in the
本実施形態では、変換方法情報が示す変換方法は、ファイルで定義されているものとするが、これに限定されるものではない。なお、印刷命令変換テーブルと変換方法が定義されたファイルとは、例えば、ファイルの識別子などを用いて対応付ければよい。 In the present embodiment, the conversion method indicated by the conversion method information is defined in the file, but is not limited to this. The print command conversion table and the file in which the conversion method is defined may be associated using, for example, a file identifier.
図4は、本実施形態の印刷命令変換テーブルの一例を示す図である。図4に示す例では、種別情報として後処理部で用いるPDL名が用いられている。 FIG. 4 is a diagram illustrating an example of the print command conversion table of the present embodiment. In the example shown in FIG. 4, the PDL name used in the post-processing unit is used as the type information.
「PCL6」には、印刷命令の変換が不要なことを示す変換不要が対応付けられている。 “PCL6” is associated with conversion unnecessary indicating that conversion of a print command is not required.
また、「PostScript」には、印刷命令の変換が必要なことを示す変換要が対応付けられている。この場合の印刷命令の変換方法は、設定ファイルやスクリプトファイルなどの外部ファイルで定義されており、ここでは、「PDL名の削除」、「部数をCopiesに変更」が定義されているものとする。 Also, “PostScript” is associated with a conversion requirement indicating that conversion of a print command is necessary. In this case, the print command conversion method is defined in an external file such as a setting file or a script file. Here, “deletion of PDL name” and “change the number of copies to“ Copies ”are defined. .
また、「上記以外」は、描画部162が有する後処理部以外を示しており、例えば、描画部172の識別子などであればよく、変換方法情報としてPT/PC or DEVMODEが対応付けられている。これは、PrintTicket/PrintCapabilitiesやDEVMODEなどのOS152がサポートする印刷命令の変換方法を用いることを示している。
Further, “other than the above” indicates other than the post-processing unit of the
変更部156(追加部の一例)は、描画部162に新たな後処理部を追加するとともに、追加した当該後処理部の種別情報及び変換方法情報を対応付けて印刷命令変換テーブルに追加する。
The changing unit 156 (an example of an adding unit) adds a new post-processing unit to the
図5は、本実施形態において後処理部追加後の描画部162の構成の一例を示すブロック図であり、図6は、本実施形態において後処理部追加後の印刷命令変換テーブルの一例を示す図である。
FIG. 5 is a block diagram illustrating an example of the configuration of the
図5及び図6に示す例では、変更部156は、PDLとしてXPS(XML Paper Specification)を用いて描画コマンドを生成する新たな後処理部190−3を描画部162に追加している。具体的には、変更部156は、後処理部190−3に対応するDLLを記憶部140に追加することにより、後処理部190−3を描画部162に追加している。
In the example illustrated in FIGS. 5 and 6, the changing
また変更部156は、「XPS」と変換不要とを対応付けて印刷命令変換テーブルに追加している。
The changing
なお、詳細な説明は省略するが、変更部156は、描画部162への新たな後処理部の追加だけでなく、描画部162から既存の後処理部を削除したり、変更したりもする。この際、変更部156は、削除した後処理部の種別情報及び変換方法情報を印刷命令変換テーブルから削除したり、変更したりもする。
Although detailed description is omitted, the changing
前処理部180は、プリンタドライバ160が自身の起動時に前処理部180に対応するDLLを記憶部140から読み出すことにより、プリンタドライバ160上に実現される。本実施形態では、プリンタドライバ160が起動している間、前処理部180もプリンタドライバ160上に実現されているものとする。
The
前処理部180は、OS152から印刷命令を受け付け、受け付けた印刷命令を出力する後処理部190又は描画部172を後処理部190−1〜190−3及び描画部172の中から選択し、必要に応じて印刷命令を変換し、選択した後処理部190又は描画部172に出力する。前処理部180は、選択部181と、印刷命令変換部183とを、有する。
The
選択部181は、印刷命令に含まれる種別情報が示す後処理部190を後処理部190−1〜190−3の中から選択する。そして選択部181は、当該後処理部190の選択を印刷が完了するまで継続する。
The
具体的には、選択部181は、後処理部190−1〜190−3のうち印刷命令に含まれる種別情報が示す後処理部190に対応するDLLを記憶部140から読み出すことにより、読み出したDLLに対応する後処理部190をプリンタドライバ160上に実現する。選択部181は、印刷が完了するまで当該DLLを読み出しておくことで、印刷が完了するまで当該後処理部190をプリンタドライバ160上に実現させておく。
Specifically, the
なお選択部181は、印刷命令に含まれる種別情報が示す後処理部190が描画部162に存在しない場合、描画部172を選択する。
The
印刷命令変換部183は、印刷命令変換テーブルを参照して、印刷命令に含まれる種別情報に対応する変換方法情報が示す変換方法で当該印刷命令を変換し、選択部181により選択された後処理部190又は描画部172に出力する。これにより、選択部181により選択された後処理部190又は描画部172において、印刷命令が解釈可能となる。
The print
なお印刷命令変換部183は、印刷命令に含まれる種別情報に対応する変換方法情報が示す変換方法が変換無を示す場合、選択部181により選択された後処理部190又は描画部172に印刷命令をそのまま出力する。これは、選択部181により選択された後処理部190又は描画部172が印刷命令を変換しなくても解釈可能なためである。
Note that when the conversion method indicated by the conversion method information corresponding to the type information included in the print command indicates no conversion, the print
選択部181により選択された後処理部190は、前処理部180から変換後の印刷命令が出力されたり、前処理部180から印刷命令がそのまま出力されたりすると、当該印刷命令から当該後処理部に応じた描画コマンドを生成し、印刷装置20に出力する。
When the post-conversion unit 190 selected by the
具体的には、選択部181により選択された後処理部190は、印刷命令を解釈し、例えば、描画オブジェクトに対して、拡大縮小・回転・減色などの処理を施す。そして、当該後処理部190は、ジョブコマンド及び描画コマンドを生成する。
Specifically, the post-processing unit 190 selected by the
なお、後処理部190−1は、PCL6を用いて描画コマンドを生成し、後処理部190−2は、PostScriptを用いて描画コマンドを生成し、後処理部190−3は、XPSを用いて描画コマンドを生成する。 The post-processing unit 190-1 generates a drawing command using PCL6, the post-processing unit 190-2 generates a drawing command using PostScript, and the post-processing unit 190-3 uses XPS. Generate drawing commands.
印刷設定部164は、アプリケーション154からOS152を介して印刷設定画面の表示指示を受け付けると、描画部162が有する後処理部190−1〜190−3のうち印刷に使用する後処理部190に対する印刷設定を行わせる印刷設定画面を表示部130に表示させる。表示部130に印刷設定画面が表示されると、ユーザは、印刷設定を確認したり、変更したりする。
When the
描画部172は、OS152から印刷命令を受け付けると、当該印刷命令から印刷装置20が解釈可能な描画コマンド及びジョブコマンドを生成し、通信部110を介して印刷装置20に送信する。また描画部172は、前処理部180から変換後の印刷命令が出力されたり、前処理部180から印刷命令がそのまま出力されたりすると、当該印刷命令から描画部172に応じた描画コマンドを生成し、印刷装置20に出力する。
When the
なお、描画部172では、自身が予め対応している種類の描画コマンドを生成できるが、新たな種類の描画コマンドを生成可能とすることはできない。
The
印刷設定部174は、アプリケーション154からOS152を介して印刷設定画面の表示指示を受け付けると、描画部172の印刷設定画面を表示部130に表示させる。表示部130に印刷設定画面が表示されると、ユーザは、印刷設定を確認したり、変更したりする。
Upon receiving a print setting screen display instruction from the
次に、本実施形態の描画部162の動作について説明する。
Next, the operation of the
図7は、本実施形態の描画部162で行われる処理の手順の流れの一例を示すフローチャートである。
FIG. 7 is a flowchart illustrating an example of a procedure flow of processing performed by the
まず、前処理部180はOS152から印刷命令を受け付ける(ステップS100)。
First, the
続いて、選択部181は、印刷命令に含まれる種別情報が示す後処理部190又は描画部172を後処理部190−1〜190−3及び描画部172の中から選択する(ステップS102)。そして選択部181は、当該後処理部190の選択を印刷が完了するまで継続する。
Subsequently, the
続いて、印刷命令変換部183は、印刷命令変換テーブルを参照して、印刷命令の変換が必要か否かを確認する(ステップS104)。印刷命令の変換が不要な場合(ステップS104でNo)、ステップS112へ進む。
Subsequently, the print
一方、印刷命令の変換が必要な場合(ステップS104でYes)、印刷命令変換部183は、印刷命令変換テーブルを参照して、印刷命令を直接変換できるか否かを確認する(ステップS106)。
On the other hand, if conversion of the print command is necessary (Yes in step S104), the print
印刷命令を直接変換できる場合(ステップS106でYes)、即ち、印刷命令に含まれる種別情報に対応する変換方法情報が示す変換方法が変換要である場合、印刷命令変換部183は、当該変換方法で印刷命令を変換する(ステップS108)。
If the print command can be directly converted (Yes in step S106), that is, if the conversion method indicated by the conversion method information corresponding to the type information included in the print command requires conversion, the print
一方、印刷命令を直接変換できない場合(ステップS106でNo)、即ち、印刷命令に含まれる種別情報に対応する変換方法情報が示す変換方法がPT/PC or DEVMODEである場合、印刷命令変換部183は、PrintCapabilitiesやDEVMODEなどのOS152がサポートする印刷命令の変換方法を用いて、印刷命令を変換する(ステップS110)。
On the other hand, if the print command cannot be directly converted (No in step S106), that is, if the conversion method indicated by the conversion method information corresponding to the type information included in the print command is PT / PC or DEVMODE, the print
続いて、選択部181により選択された後処理部190又は描画部172は、前処理部180から変換後の印刷命令が出力されたり、前処理部180から印刷命令がそのまま出力されたりすると、当該印刷命令から当該後処理部に応じた描画コマンドを生成し、印刷装置20に出力する(ステップS112)。
Subsequently, when the post-conversion unit 190 or the
次に、本実施形態の描画部162の動作の具体例について説明する。
Next, a specific example of the operation of the
本実施形態のように、OS152をWindowsで実現している場合(通常のWindows Printingシナリオでは)、アプリケーション154及びOS152が協同して印刷設定を含む印刷命令を生成する際、印刷設定画面で設定されている印刷設定をDEVMODE構造体で保持する。
When the
DEVMODE構造体には、一般的な印刷設定メンバを保持するためのPublic領域と、プリンタドライバを作成したベンダ独自の印刷設定メンバを保持するためのPrivate領域とが存在する。Public領域の印刷設定メンバは、ユーザが直接変更できるが、Private領域の印刷設定メンバは、アクセス方法を知っているプリンタドライバを作成したベンダのみが変更できる。 The DEVMODE structure includes a public area for holding a general print setting member and a private area for holding a print setting member unique to the vendor that created the printer driver. The print setting member in the Public area can be directly changed by the user, but the print setting member in the Private area can be changed only by the vendor who created the printer driver who knows the access method.
図8は、本実施形態の後処理部190−1を用いる場合の描画動作の一例の説明図である。ここでは、前処理部180と後処理部190−1とを作成したベンダが同一であり、OS152から通知された印刷命令を後処理部190−1がそのまま解釈できるものとする。
FIG. 8 is an explanatory diagram illustrating an example of a drawing operation when the post-processing unit 190-1 of the present embodiment is used. Here, it is assumed that the vendors that created the
まず、前処理部180はOS152から印刷命令201を受け付ける。印刷命令211では、「PDL名がPCL6」、「部数が5」となっている。
First, the
続いて、選択部181は、印刷命令201に含まれるPDL名がPCL6を示しているので、後処理部190−1に対応するDLLを記憶部140から読み出すことにより、後処理部190−1を描画部162上に実現する。なお、選択部181は、印刷が完了するまで当該DLLを読み出しておくことで、印刷が完了するまで後処理部190−1を描画部162上に実現させておく。
Subsequently, since the PDL name included in the
続いて、印刷命令変換部183は、印刷命令変換テーブルを参照して、PCL6に対応する変換方法情報が示す変換方法が変換無であることを確認する。この場合、印刷命令変換部183は、選択部181により選択された後処理部190−1に印刷命令201をそのまま出力する。
Subsequently, the print
続いて、後処理部190−1は、前処理部180から印刷命令201がそのまま出力されると、PCL6を用いて印刷命令201から描画コマンドを生成し、印刷装置20に出力する。
Subsequently, when the
図9は、本実施形態の後処理部190−2を用いる場合の描画動作の一例の説明図である。ここでは、前処理部180と後処理部190−1とを作成したベンダが同一であり、OS152から通知された印刷命令を前処理部180はそのまま解釈できるが、後処理部190−1はそのまま解釈できないものとする。
FIG. 9 is an explanatory diagram illustrating an example of a drawing operation when the post-processing unit 190-2 of the present embodiment is used. Here, the vendor that created the
まず、前処理部180はOS152から印刷命令211を受け付ける。印刷命令201では、「PDL名がPCL6」、「部数が5」となっている。
First, the
続いて、選択部181は、印刷命令211に含まれるPDL名がPostScriptを示しているので、後処理部190−2に対応するDLLを記憶部140から読み出すことにより、後処理部190−2を描画部162上に実現する。なお、選択部181は、印刷が完了するまで当該DLLを読み出しておくことで、印刷が完了するまで後処理部190−2を描画部162上に実現させておく。
Subsequently, since the PDL name included in the
続いて、印刷命令変換部183は、印刷命令変換テーブルを参照して、PostScriptに対応する変換方法情報が示す変換方法が変換用であることを確認する。この場合、印刷命令変換部183は、当該変換方法で印刷命令211を印刷命令212に変換し、選択部181により選択された後処理部190−2に印刷命令212を出力する。印刷命令212では、「Copiesが5」となっている。
Subsequently, the print
続いて、後処理部190−2は、前処理部180から印刷命令212が出力されると、PostScriptを用いて印刷命令212から描画コマンドを生成し、印刷装置20に出力する。
Subsequently, when the
図10は、本実施形態の描画部172を用いる場合の描画動作の一例の説明図である。ここでは、前処理部180と描画部172とを作成したベンダが異なり、OS152から通知された印刷命令を前処理部180はそのまま解釈できるが、描画部172はそのまま解釈できないものとする。
FIG. 10 is an explanatory diagram illustrating an example of a drawing operation when the
まず、前処理部180はOS152から印刷命令221を受け付ける。印刷命令221では、「PDL名がUnknow」、「部数が5」となっている。
First, the
続いて、選択部181は、印刷命令221に含まれるPDL名がUnknowを示しているので、描画部172を選択する。
Subsequently, since the PDL name included in the
続いて、印刷命令変換部183は、印刷命令変換テーブルを参照して、Unknow(上記以外)に対応する変換方法情報が示す変換方法がPT/PC or DEVMODEであることを確認する。
Subsequently, the print
この場合、印刷命令変換部183は、OS152と協同し、PrintTicket/PrintCapabilitiesやDEVMODEなどのOS152がサポートする印刷命令の変換方法を用いて、印刷命令221を印刷命令222に変換し、選択部181により選択された描画部172に印刷命令222を出力する。
In this case, the print
図10に示す例のように、前処理部180と描画部172とを作成したベンダが異なる場合には、前処理部180は描画部172で使用する印刷設定の構造を理解できないため、上記のような方法で印刷命令を変換する。但し、印刷命令の変換方法は、これに限定されるものではなく、例えば、DEVMODE構造体のPublic領域の印刷設定メンバのみを反映するなどであってもよい。
As in the example illustrated in FIG. 10, when the vendors that created the
続いて、描画部172は、前処理部180から印刷命令222が出力されると、印刷命令222から描画部172に応じた描画コマンドを生成し、印刷装置20に出力する。
Subsequently, when the
以上のように本実施形態によれば、描画部に新たな後処理部を追加できるので、新たな種類の描画コマンドを生成可能とさせることができる。特に本実施形態では、前処理部及び後処理部をそれぞれ独立したモジュールで実現でき、印刷命令の変換方法をファイルで定義しているため、描画部に新たな後処理部を容易に追加でき、新たな種類の描画コマンドを容易に生成可能とさせることができる。 As described above, according to the present embodiment, since a new post-processing unit can be added to the drawing unit, a new type of drawing command can be generated. In particular, in this embodiment, the pre-processing unit and the post-processing unit can be realized by independent modules, and the conversion method of the print command is defined in the file. Therefore, a new post-processing unit can be easily added to the drawing unit, It is possible to easily generate a new type of drawing command.
また本実施形態によれば、上記と同様の理由で、描画部から既存の後処理部を容易に削除したり、容易に変更したりできるので、必要な描画コマンドを生成可能とさせることをフレキシブルに対応できる。 Further, according to the present embodiment, for the same reason as described above, the existing post-processing unit can be easily deleted from the drawing unit or can be easily changed, so that it is possible to generate a necessary drawing command. It can correspond to.
また本実施形態によれば、印刷が完了するまで後処理部は選択されており、印刷が完了するまで繰り返し選択する必要がないので、効率性が高まる。 Further, according to the present embodiment, the post-processing unit is selected until the printing is completed, and it is not necessary to repeatedly select until the printing is completed.
また本実施形態によれば、他のプリンタドライバの描画部を流用することもできるので、印刷を実行できないという事態の発生を抑制することができる。 In addition, according to the present embodiment, since the drawing unit of another printer driver can be used, the occurrence of a situation where printing cannot be performed can be suppressed.
(変形例)
なお、本発明は、上記実施形態に限定されるものではなく、種々の変形が可能である。例えば、上記実施形態において、前処理部180は、印刷命令に含まれる種別情報に加え、印刷装置20で対応可能な描画コマンドを考慮して、後処理部190を選択するようにしてもよい。
(Modification)
In addition, this invention is not limited to the said embodiment, A various deformation | transformation is possible. For example, in the above embodiment, the
この場合、記憶部140には、印刷装置毎に対応可能な描画コマンドを対応付けたテーブルを記憶しておく。このテーブルは、設定ファイルやスクリプトファイルなどの外部ファイルで定義されていてもよい。 In this case, the storage unit 140 stores a table in which drawing commands that can be handled for each printing apparatus are associated. This table may be defined in an external file such as a setting file or a script file.
選択部181は、記憶部140に記憶されている上記テーブルを参照し、種別情報が示す後処理部190又は描画部172において生成される描画コマンドが出力先の印刷装置20で対応しているか否かを確認する。そして選択部181は、生成される描画コマンドが出力先の印刷装置20で対応していない場合には、出力先の印刷装置20で対応している描画コマンドを生成可能な後処理部190又は描画部172を選択するようにしてもよい。
The
このようにすれば、印刷を実行できないという事態の発生を抑制することができる。 In this way, it is possible to suppress the occurrence of a situation where printing cannot be performed.
(ハードウェア構成)
上記実施形態及び上記変形例のPCは、CPU(Central Processing Unit)などの制御装置と、ROMやRAMなどの記憶装置と、HDDやSSDなどの外部記憶装置と、ディスプレイなどの表示装置と、マウスやキーボードなどの入力装置と、通信I/Fなどの通信装置とを備えており、通常のコンピュータを利用したハードウェア構成となっている。
(Hardware configuration)
The PC according to the embodiment and the modified example includes a control device such as a CPU (Central Processing Unit), a storage device such as a ROM and a RAM, an external storage device such as an HDD and an SSD, a display device such as a display, and a mouse. And a communication device such as a communication I / F, and has a hardware configuration using a normal computer.
上記実施形態及び上記変形例のPCで実行されるドライバプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、CD−R、メモリカード、DVD、フレキシブルディスク(FD)等のコンピュータで読み取り可能な記憶媒体に記憶されて提供される。 The driver program executed on the PC according to the above-described embodiment and the above-described modification is a file in an installable format or an executable format, and is a computer such as a CD-ROM, a CD-R, a memory card, a DVD, and a flexible disk (FD). And stored in a readable storage medium.
また、上記実施形態及び上記変形例のPCで実行されるドライバプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するようにしてもよい。また、上記実施形態及び上記変形例のPCで実行されるドライバプログラムを、インターネット等のネットワーク経由で提供または配布するようにしてもよい。また、上記実施形態及び上記変形例のPCで実行されるドライバプログラムを、ROM等に予め組み込んで提供するようにしてもよい。 In addition, the driver program executed on the PC according to the embodiment and the modification may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. In addition, the driver program executed on the PC according to the embodiment and the modification may be provided or distributed via a network such as the Internet. In addition, the driver program executed on the PC according to the embodiment and the modified example may be provided by being incorporated in advance in a ROM or the like.
上記実施形態及び上記変形例のPCで実行されるドライバプログラムは、上述した各部をコンピュータ上で実現させるためのモジュール構成となっている。実際のハードウェアとしては、例えば、CPUがHDDからプログラムをRAM上に読み出して実行することにより、上記各部がコンピュータ上で実現されるようになっている。 The driver program executed by the PC according to the embodiment and the modification has a module configuration for realizing the above-described units on a computer. As actual hardware, for example, the CPU reads out a program from the HDD to the RAM and executes it, so that the above-described units are realized on the computer.
1 印刷システム
5 ネットワーク
10 PC
20 印刷装置
110 通信部
120 操作部
130 表示部
140 記憶部
150 制御部
152 OS
154 アプリケーション
156 変更部
160 プリンタドライバ
162 描画部
164 印刷設定部
170 プリンタドライバ
172 描画部
174 印刷設定部
180 前処理部
190−1〜190−3 後処理部
1
20
154
Claims (10)
後処理部の種別を示す種別情報と印刷命令の変換方法を示す変換方法情報とを対応付けた印刷命令変換テーブルを記憶する記憶部と、
前記第1描画部に新たな後処理部を追加するとともに、追加した当該後処理部の種別情報及び変換方法情報を対応付けて前記印刷命令変換テーブルに追加する追加部と、を備え、
前記前処理部は、印刷命令を受け付けると、当該印刷命令に含まれる種別情報が示す後処理部を選択し、前記印刷命令変換テーブルを参照して、当該種別情報に対応する変換方法情報が示す変換方法で当該印刷命令を変換し、選択した前記後処理部に出力し、
選択された前記後処理部は、前記前処理部から変換後の前記印刷命令が出力されると、当該印刷命令から当該後処理部に応じた描画コマンドを生成し、画像形成装置に出力することを特徴とする情報処理装置。 A first drawing unit having a pre-processing unit and a post-processing unit;
A storage unit for storing a print command conversion table in which type information indicating the type of the post-processing unit and conversion method information indicating a conversion method of the print command are associated;
An additional unit that adds a new post-processing unit to the first drawing unit and adds the type information and conversion method information of the added post-processing unit to the print command conversion table in association with each other.
When receiving the print command, the pre-processing unit selects a post-processing unit indicated by the type information included in the print command, refers to the print command conversion table, and indicates the conversion method information corresponding to the type information. The print command is converted by the conversion method and output to the selected post-processing unit,
When the converted print command is output from the pre-processing unit, the selected post-processing unit generates a drawing command corresponding to the post-processing unit from the print command and outputs the drawing command to the image forming apparatus. An information processing apparatus characterized by the above.
前記印刷命令変換テーブルは、更に、前記第1描画部が有する後処理部以外を示す種別情報と変換方法情報とを対応付け、
前記前処理部は、前記印刷命令に含まれる前記種別情報が示す後処理部が前記第1描画部に存在しない場合、前記第2描画部を選択し、前記印刷命令変換テーブルを参照して、当該種別情報に対応する前記変換方法情報が示す変換方法で前記印刷命令を変換し、選択した前記第2描画部に出力し、
前記第2描画部は、前記前処理部から変換後の前記印刷命令が出力されると、当該印刷命令から当該第2描画部に応じた描画コマンドを生成し、前記画像形成装置に出力することを特徴とする請求項1に記載の情報処理装置。 A second drawing unit;
The print command conversion table further associates type information and conversion method information indicating other than the post-processing unit included in the first drawing unit,
The pre-processing unit selects the second drawing unit when the post-processing unit indicated by the type information included in the print command does not exist in the first drawing unit, and refers to the print command conversion table, The print command is converted by the conversion method indicated by the conversion method information corresponding to the type information, and is output to the selected second drawing unit.
When the converted print command is output from the preprocessing unit, the second drawing unit generates a drawing command corresponding to the second drawing unit from the print command and outputs the drawing command to the image forming apparatus. The information processing apparatus according to claim 1.
前記前処理部は、後処理部の種別を示す種別情報を含む印刷命令を受け付けると、前記第1描画部に追加された新たな後処理部を含む複数種類の後処理部の中から、当該種別情報が示す後処理部を選択し、記憶部から、前記複数種類の後処理部の種別情報と印刷命令の変換方法を示す変換方法情報とを対応付けた印刷命令変換テーブルを参照して、前記印刷命令に含まれる前記種別情報に対応する変換方法情報が示す変換方法で前記印刷命令を変換し、選択した前記後処理部に出力し、
選択された前記後処理部は、前記前処理部から変換後の前記印刷命令が出力されると、当該印刷命令から当該後処理部に応じた描画コマンドを生成し、画像形成装置に出力することを特徴とするドライバプログラム。 Causing the computer to function as a first drawing unit having a pre-processing unit and a post-processing unit;
When the pre-processing unit receives a print command including type information indicating the type of the post-processing unit, the pre-processing unit includes a plurality of types of post-processing units including a new post-processing unit added to the first drawing unit. Select the post-processing unit indicated by the type information, and refer to the print command conversion table in which the type information of the plurality of types of post-processing units and the conversion method information indicating the conversion method of the print command are associated from the storage unit, The print command is converted by the conversion method indicated by the conversion method information corresponding to the type information included in the print command, and output to the selected post-processing unit,
When the converted print command is output from the pre-processing unit, the selected post-processing unit generates a drawing command corresponding to the post-processing unit from the print command and outputs the drawing command to the image forming apparatus. A driver program characterized by
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011178597A JP2013041472A (en) | 2011-08-17 | 2011-08-17 | Information processor, driver program and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011178597A JP2013041472A (en) | 2011-08-17 | 2011-08-17 | Information processor, driver program and recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2013041472A true JP2013041472A (en) | 2013-02-28 |
Family
ID=47889792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011178597A Withdrawn JP2013041472A (en) | 2011-08-17 | 2011-08-17 | Information processor, driver program and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2013041472A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020126681A (en) * | 2019-10-08 | 2020-08-20 | キヤノン株式会社 | Application and information processing apparatus |
-
2011
- 2011-08-17 JP JP2011178597A patent/JP2013041472A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2020126681A (en) * | 2019-10-08 | 2020-08-20 | キヤノン株式会社 | Application and information processing apparatus |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11989462B2 (en) | Information processing apparatus, method, and a non-transitory storage medium, receives first print settings information supports the internet printing protocol (IPP) and further receives second print settings that does not support the internet printing protocol (IPP) from printer | |
JP6454213B2 (en) | Image output system, image processing apparatus, image output apparatus, method and program therefor | |
US20200004473A1 (en) | Information apparatus, controlling method for information apparatus, and storage medium | |
US9361056B2 (en) | Information processing apparatus and method for generating a conflict confirmation print job | |
US9830544B2 (en) | Image processing apparatus, control method, and storage medium for executing print processing using a password including selecting a personal identification code type that indicates a purpose for using the password | |
US9507544B2 (en) | Information processing apparatus, recording medium, and control method to process print data using filters | |
US20180253561A1 (en) | Information processing apparatus, storage medium, and control method therefor | |
US8446620B2 (en) | Data processing apparatus and data processing method | |
JP2011242950A (en) | Information processor, control method and program | |
US20230086590A1 (en) | Information processing apparatus, method for controlling information processing apparatus, and storage medium | |
JP2017068339A (en) | Print setting support apparatus and program | |
US20230102837A1 (en) | Non-transitory computer-readable medium storing support program | |
JP2009053789A (en) | Information processor, program, and computer-readable recording medium | |
JP2013196304A (en) | Program and information processor | |
JP2013041472A (en) | Information processor, driver program and recording medium | |
US9588942B2 (en) | Information processing apparatus and information processing method | |
US8854671B2 (en) | Method and apparatus for setting printing option | |
US11899988B2 (en) | Information processing apparatus, control method thereof, and storage medium | |
JP6007015B2 (en) | Image forming apparatus and image forming program | |
JP7171227B2 (en) | Information processing device, its control method and application | |
JP6186926B2 (en) | Program and information processing apparatus | |
JP2018045436A (en) | Information processing apparatus, program, and system | |
JP2009252116A (en) | Information processor, information processing method, and program | |
JP2014191634A (en) | Program and information processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20141104 |