JP2012208765A - Print content change program, print content change method, and host device - Google Patents

Print content change program, print content change method, and host device Download PDF

Info

Publication number
JP2012208765A
JP2012208765A JP2011074371A JP2011074371A JP2012208765A JP 2012208765 A JP2012208765 A JP 2012208765A JP 2011074371 A JP2011074371 A JP 2011074371A JP 2011074371 A JP2011074371 A JP 2011074371A JP 2012208765 A JP2012208765 A JP 2012208765A
Authority
JP
Japan
Prior art keywords
data
print data
communication port
print
application
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
Application number
JP2011074371A
Other languages
Japanese (ja)
Inventor
Hitoshi Oyama
仁 大山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2011074371A priority Critical patent/JP2012208765A/en
Publication of JP2012208765A publication Critical patent/JP2012208765A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a print content change program and the like, the program being a program for changing the content of printed matter using print data output by an existing application and capable of easily realizing various changes in print content without changing an existing program.SOLUTION: A program for causing a computer that is operated by an OS in an OS kernel layer and outputs printed matter from a printer connected to a communication port by an application in an application layer to execute content change processing of the printed matter, causes the computer to execute: a step for, before the communication port receives print data of printed matter output from the application, acquiring it in the OS kernel layer; and a step for, when data of a predetermined image or graphic is included in the acquired print data in the application layer, changing the data according to a conversion rule, and outputting the changed print data to the communication port.

Description

本発明は、既存アプリケーションから出力される印刷データを用いて印刷物の印刷内容を変更するためのプログラム等に関し、特に、既存アプリケーションのプログラムを変更することなしに、多彩な印刷内容の変更を容易に実現することのできる印刷内容変更プログラム等に関する。   The present invention relates to a program for changing the print contents of printed matter using print data output from an existing application, and in particular, various print contents can be easily changed without changing the program of the existing application. The present invention relates to a print content change program that can be realized.

スーパーマーケットなどの小売販売業においては販売管理システムであるPOSシステムが普及しており、当該システムでは、サーバーとネットワークで接続される複数の端末装置(レジ)が当該装置に備えられるアプリケーションに従って動作し各種の処理を実行する。また、通常、当該端末装置には、それぞれ、プリンターが設けられ、上記アプリケーションの指示によりレシートやクーポンの出力を実行する。また、このような出力を伴うPOSシステムと類似した構成のシステムとしては、病院で用いられるシステム、運送会社で用いられるシステムなどがある。   In retail sales businesses such as supermarkets, a POS system, which is a sales management system, has become widespread, and in this system, a plurality of terminal devices (registers) connected to a server via a network operate according to applications provided in the device. Execute the process. Also, normally, each terminal device is provided with a printer, and outputs a receipt or a coupon according to an instruction from the application. In addition, as a system having a configuration similar to the POS system with such output, there are a system used in a hospital, a system used in a transportation company, and the like.

このようなシステムにおいても、導入後の技術向上や業務改善要望に伴って、機能拡張の必要が出てくる。その機能拡張には、プリンターから出力する印刷物の内容を改善したいというものなどがある。かかるシステムは一般に業務の中枢として常時利用されているものであり、また、他のシステムとも複雑に連携している場合も多いため、そのアプリケーションを改変することは通常容易ではない。   Even in such a system, it is necessary to expand functions in accordance with technical improvements and business improvement requests after introduction. The function expansion includes things such as wanting to improve the contents of printed matter output from a printer. Such a system is generally used as a business center at all times, and is often complicatedly linked with other systems. Therefore, it is usually not easy to modify the application.

かかる課題については、出力処理系の機能に関し、従来、以下のような提案がなされている。   As for this problem, the following proposals have conventionally been made regarding the functions of the output processing system.

下記特許文献1では、すでに存在するアプリケーションプログラムを修正する必要なしに、従来のモデムに必要とされていたマイクロプロセッサおよびメモリを除去することが可能なパーソナルコンピュータ中でモデム機能を実行する装置について記載されている。   The following Patent Document 1 describes a device that performs a modem function in a personal computer that can remove the microprocessor and memory required for a conventional modem without having to modify an existing application program. Has been.

また、下記特許文献2には、アプリケーションを変更することなく、1つの通信ポートにアクセスすることにより、他の通信ポートに接続されているプリンターへも同時に印刷を実行させることができ、複製印刷を可能にする装置について記載されている。   Further, in Patent Document 2 below, by accessing one communication port without changing the application, it is possible to cause a printer connected to another communication port to execute printing simultaneously. A device is described that enables it.

特開平8−69427号公報JP-A-8-69427 特開2006−338443号公報JP 2006-338443 A

しかしながら、上記特許文献1及び2に記載の内容では、モデム機能、複製印刷機能など出力系の限られた機能を実現するに留まり、他の要望、例えば、多彩な印刷内容の変更を実現することはできない。また、上記特許文献2では、OSカーネル層での処理であるため、一般に機能構築(プログラム開発等)が容易ではなく機能も限られてしまうという課題がある。   However, in the contents described in Patent Documents 1 and 2, only limited functions of the output system such as a modem function and a duplicate printing function are realized, and other requests such as various changes in printing contents are realized. I can't. Further, since the above-mentioned Patent Document 2 is processing in the OS kernel layer, there is a problem that function construction (program development or the like) is generally not easy and functions are limited.

また、POSアプリケーションから出力される印刷データを用いた処理を行う場合、その印刷データ中に含まれるイメージデータについても変更が可能な、多彩な印刷内容の加
工技術が望まれる。
In addition, when processing using print data output from a POS application is performed, a variety of print content processing techniques that can change image data included in the print data are desired.

そこで、本発明の目的は、既存アプリケーションから出力される印刷データを用いて印刷物の印刷内容を変更するためのプログラムであって、既存アプリケーションのプログラムを変更することなしに、多彩な印刷内容の変更を容易に実現することのできる印刷内容変更プログラム、等を提供することである。   Therefore, an object of the present invention is a program for changing the print contents of a printed matter using print data output from an existing application, and various changes to the print contents can be made without changing the program of the existing application. Is to provide a print content changing program that can easily realize the above.

上記の目的を達成するために、本発明の一つの側面は、OSカーネル層のオペレーティングシステムによって動作し、アプリケーション層のアプリケーションによって通信ポートに接続されるプリンターから印刷物を出力するコンピューターに、前記印刷物の内容を変更する処理を実行させる印刷内容変更プログラムが、前記アプリケーションから前記通信ポートへ出力される印刷物の印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、前記アプリケーション層で、前記取得された印刷データを解析し、当該印刷データに所定のイメージ又はグラフィックスのデータが含まれる場合には、予め定められた変換ルールに従って当該データを変更し、当該変更後の印刷データを前記通信ポートへ出力するデータ変更工程と、を前記コンピューターに実行させる、ことである。   In order to achieve the above object, one aspect of the present invention provides a computer that outputs a printed matter from a printer that is operated by an OS kernel layer operating system and is connected to a communication port by an application layer application. A data acquisition step in which a print content change program for executing a process of changing the content acquires print data of a printed matter output from the application to the communication port at the OS kernel layer before the communication port receives the print data; In the application layer, the acquired print data is analyzed, and when the print data includes predetermined image or graphics data, the data is changed according to a predetermined conversion rule. Print data to the communication port And data changing step of, to the execution in the computer, is that.

更に、上記発明において、その好ましい態様は、前記変換ルールは、前記イメージ又はグラフィックスのデータと上記変更後のデータを対応付けた情報である、ことを特徴とする。   Furthermore, in the above invention, a preferable aspect thereof is characterized in that the conversion rule is information in which the image or graphics data is associated with the changed data.

更にまた、上記発明において、その好ましい態様は、前記変換ルールは、前記印刷物毎に用意される、ことを特徴とする。   Furthermore, in the above invention, a preferable aspect thereof is characterized in that the conversion rule is prepared for each printed matter.

更に、上記発明において、好ましい態様は、前記データ変更工程では、更に、前記取得した印刷データに含まれるテキストデータに対する変更及び前記印刷物のレイアウトの変更がなされる、ことを特徴とする。   Further, in the above invention, a preferred aspect is characterized in that, in the data changing step, the text data included in the acquired print data is changed and the layout of the printed matter is changed.

更にまた、上記発明において、一つの態様は、前記コンピューターには複数の前記通信ポートが備えられ、当該通信ポートに複数の前記プリンターが接続され、前記データ変更工程では、前記変更後の印刷データを出力する前記プリンターが決定され、当該プリンターが接続される前記通信ポートに前記変更後の印刷データが出力される、ことを特徴とする。   Furthermore, in the above invention, according to one aspect, the computer includes a plurality of the communication ports, and the plurality of printers are connected to the communication ports. In the data changing step, the changed print data is displayed. The printer to be output is determined, and the changed print data is output to the communication port to which the printer is connected.

上記の目的を達成するために、本発明の別の側面は、OSカーネル層のオペレーティングシステムによって動作し、アプリケーション層のアプリケーションによって通信ポートに接続されるプリンターから印刷物を出力するコンピューターにおける、前記印刷物の内容を変更する印刷内容変更方法が、前記コンピューターが、前記アプリケーションから前記通信ポートへ出力される印刷物の印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、前記コンピューターが、前記アプリケーション層で、前記取得された印刷データを解析し、当該印刷データに所定のイメージ又はグラフィックスのデータが含まれる場合には、予め定められた変換ルールに従って当該データを変更し、当該変更後の印刷データを前記通信ポートへ出力するデータ変更工程と、を有する、ことである。   In order to achieve the above object, another aspect of the present invention provides an operation of the printed material in a computer that is operated by an operating system of the OS kernel layer and outputs the printed material from a printer connected to a communication port by an application layer application. A print content changing method for changing content, wherein the computer acquires print data of a printed matter output from the application to the communication port before the communication port receives the print data in the OS kernel layer; The computer analyzes the acquired print data in the application layer, and when the print data includes data of a predetermined image or graphics, the data is changed according to a predetermined conversion rule. , Printing after the change It has a data change step of outputting over data to the communication port, and is that.

上記の目的を達成するために、本発明の更に別の側面は、OSカーネル層のオペレーティングシステムによって動作し、アプリケーション層のアプリケーションによって通信ポートに接続されるプリンターから印刷物を出力するホスト装置が、前記アプリケーション
から前記通信ポートへ出力される印刷物の印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得する仮想ポート部と、前記アプリケーション層で、前記取得された印刷データを解析し、当該印刷データに所定のイメージ又はグラフィックスのデータが含まれる場合には、予め定められた変換ルールに従って当該データを変更し、当該変更後の印刷データを前記通信ポートへ出力する印刷内容変更部と、を有する、ことである。
In order to achieve the above object, according to still another aspect of the present invention, there is provided a host device that operates by an operating system of an OS kernel layer and outputs a printed matter from a printer connected to a communication port by an application layer application. Before the communication port receives the print data of the printed matter output from the application to the communication port, the virtual port unit acquired by the OS kernel layer and the application layer analyze the acquired print data, A print content changing unit that changes the data according to a predetermined conversion rule and outputs the changed print data to the communication port when the print data includes predetermined image or graphics data; , Have.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   Further objects and features of the present invention will become apparent from the embodiments of the invention described below.

本発明を適用したPOS端末装置の実施の形態例に係る概略構成図である。It is a schematic block diagram which concerns on the embodiment of the POS terminal device to which this invention is applied. POS端末装置の概略機能構成図である。It is a schematic function block diagram of a POS terminal device. イメージ変換ルール212を例示した図である。3 is a diagram illustrating an image conversion rule 212. FIG. 印刷内容の変更処理の処理手順を例示したフローチャートである。6 is a flowchart illustrating an example of a processing procedure of a print content change process. レシートの印刷内容の変更を例示した図である。It is the figure which illustrated change of the printed contents of a receipt. POSシステムの改良を説明するための図である。It is a figure for demonstrating the improvement of a POS system.

以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。   Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar elements are denoted by the same reference numerals or reference symbols.

図1は、本発明を適用したPOS端末装置の実施の形態例に係る概略構成図である。また、図2は、当該POS端末装置の概略機能構成図である。図1及び図2に示すPOS端末装置2が本発明を適用した装置であり、当該装置では、POSアプリケーション201から出力される印刷データをOSカーネル層230の仮想ポート203で取得する。そして、取得したデータはアプリケーション層220に送られ、ポートハンドラー204、データ解析部205、イメージ変換部210、データ加工部206、及びコマンド変換部207の処理により、印刷内容が変更された印刷データとなって、変更後の印刷データに相応しい通信ポート209へ出力される。特に、上記取得した印刷データの中にイメージデータが含まれる場合には、データ解析部205から独立したイメージ変換部210の処理により、当該イメージデータに対する変更後の印刷内容が即座に決定される。本POS端末装置2は、かかる処理を実行することにより、POSアプリケーション201のプログラムを変更することなく、印刷内容の多彩な変更を容易に実現する。   FIG. 1 is a schematic configuration diagram according to an embodiment of a POS terminal device to which the present invention is applied. FIG. 2 is a schematic functional configuration diagram of the POS terminal apparatus. A POS terminal apparatus 2 shown in FIGS. 1 and 2 is an apparatus to which the present invention is applied. In the apparatus, print data output from the POS application 201 is acquired by the virtual port 203 of the OS kernel layer 230. The acquired data is sent to the application layer 220, and the print data whose print content has been changed by the processing of the port handler 204, the data analysis unit 205, the image conversion unit 210, the data processing unit 206, and the command conversion unit 207 Thus, the data is output to the communication port 209 appropriate for the changed print data. In particular, when image data is included in the acquired print data, the print content after the change to the image data is immediately determined by the processing of the image conversion unit 210 independent of the data analysis unit 205. The POS terminal device 2 can easily realize various changes in the print contents without changing the program of the POS application 201 by executing such processing.

本実施の形態例では、スーパーマーケットなどで用いられるPOSシステムを想定しており、図1に示すように、POSサーバー1にネットワーク4を介して複数のPOS端末装置2が接続される構成をしている。POSサーバー1は、コンピューターシステムで構成され、上記複数のPOS端末装置2の管理とそれらのPOS端末装置2から取得される各種データの集計、管理等の処理を実行する。   In this embodiment, a POS system used in a supermarket or the like is assumed, and a plurality of POS terminal devices 2 are connected to a POS server 1 via a network 4 as shown in FIG. Yes. The POS server 1 is constituted by a computer system, and executes processing such as management of the plurality of POS terminal devices 2 and aggregation and management of various data acquired from the POS terminal devices 2.

POS端末装置2は各レジに設置され、それぞれ、プリンター3と接続される。プリンター3は、POS端末装置2から出力される印刷データに従って、レシートやクーポンを出力する。従って、POS端末装置2はプリンター3のホスト装置と位置づけられる。   The POS terminal device 2 is installed at each cash register and is connected to the printer 3. The printer 3 outputs a receipt or a coupon according to the print data output from the POS terminal device 2. Therefore, the POS terminal device 2 is positioned as the host device of the printer 3.

各POS端末装置2は、図1に示すように、POS端末本体21、ディスプレイ22、キーボード23、バーコードリーダー24、及びカードリーダー25等を備える。ディスプレイ22は、顧客に商品の金額等を表示し、キーボード23は、価格や商品コードなどの商品情報、性別、年代などの顧客情報をオペレーターが入力するために用いられる。ま
た、バーコードリーダー24は、商品に付されたバーコードを読み取って商品情報を取得し、カードリーダー25は、各種カードに記憶された情報を読み取って、清算に必要な情報などを取得する。
As shown in FIG. 1, each POS terminal device 2 includes a POS terminal main body 21, a display 22, a keyboard 23, a barcode reader 24, a card reader 25, and the like. The display 22 displays the price of the product to the customer, and the keyboard 23 is used by the operator to input product information such as price and product code, and customer information such as sex and age. Further, the barcode reader 24 reads the barcode attached to the product to acquire product information, and the card reader 25 reads the information stored in various cards to acquire information necessary for settlement.

POS端末本体21は、上述したキーボード23、バーコードリーダー24、及びカードリーダー25から取得される情報に基づいて、レシートやクーポンに印刷する情報を生成して、プリンター3へ出力する。当該POS端末本体21は、コンピューターで構成され、図示していないが、CPU、RAM、ROM、HDDなどを備えている。後述するPOSアプリケーション201のプログラムや印刷内容変更処理のためのプログラムは、上記HDD等に記憶され、それらのプログラムに従って上記CPUが動作することにより各処理が実行される。   The POS terminal main body 21 generates information to be printed on a receipt or a coupon based on information acquired from the keyboard 23, the barcode reader 24, and the card reader 25 described above, and outputs the information to the printer 3. The POS terminal main body 21 is configured by a computer and includes a CPU, a RAM, a ROM, an HDD and the like (not shown). A program of the POS application 201 described later and a program for changing print contents are stored in the HDD or the like, and each process is executed by the CPU operating in accordance with these programs.

また、POS端末装置2は、図2に示すような機能構成となっている。POSアプリケーション201は、上述したレシートやクーポンに印刷する情報を生成して出力する処理を行うが、ここで生成されるデータは印刷内容の変更前の元データである。また、生成されるデータは、そのままプリンター3Aへ出力できる形式のデータ、あるいは、プリンター3A用ドライバー202に渡す形式のデータである。前者は、テキストだけの印刷など簡単な印刷データの場合に生成される。   Further, the POS terminal device 2 has a functional configuration as shown in FIG. The POS application 201 performs a process of generating and outputting information to be printed on the receipt or coupon described above, and the data generated here is the original data before changing the print contents. The generated data is data in a format that can be output to the printer 3A as it is, or data in a format that is passed to the printer 3A driver 202. The former is generated in the case of simple print data such as printing of text only.

また、プリンター3A用ドライバー202は、プリンター3A用のプリンタードライバーであり、POSアプリケーション201から出力されたデータを、プリンター3Aの機種(デバイス)に依存したコマンドによる、プリンター3Aが受信して印刷可能な印刷データとして出力する。   The printer 3A driver 202 is a printer driver for the printer 3A, and the printer 3A can receive and print data output from the POS application 201 by a command depending on the model (device) of the printer 3A. Output as print data.

なお、POSアプリケーション201とプリンター3A用ドライバー202は、図2に示すように、コンピューターのオペレーティングシステム(OS)に基づきその上でプログラムが各処理を実行するアプリケーション層220に位置する。また、両者は、それぞれの処理内容を指示する上記HDD等に格納されたプログラムと当該プログラムに従って処理を実行する上記CPU等によって構成される。   As shown in FIG. 2, the POS application 201 and the printer 3A driver 202 are located in an application layer 220 on which a program executes each process based on an operating system (OS) of a computer. Both are constituted by a program stored in the HDD or the like for instructing each processing content and the CPU or the like for executing processing according to the program.

次に、仮想ポート203は、POSアプリケーション201又はプリンター3A用ドライバー202から出力された印刷データ(ここでは、元印刷データと呼ぶ)を、通信ポート209が受け取る前に上記オペレーティングシステムが位置するOSカーネル層230で受け取る部分である。そして、仮想ポート203は、取得した元印刷データをポートハンドラー204へ引き渡す。   Next, the virtual port 203 is an OS kernel in which the operating system is located before the communication port 209 receives print data (referred to as original print data here) output from the POS application 201 or the printer 3A driver 202. This is the part received by layer 230. Then, the virtual port 203 delivers the acquired original print data to the port handler 204.

次に、ポートハンドラー204、データ解析部205、イメージ変換部210、データ加工部206、コマンド変換部207、印刷変更用DB208、及びイメージ変更用DB211は、元印刷データの印刷内容を変更する部分(印刷内容変更部)であり、これら各部の処理により、上記POSアプリケーション201から出力された印刷データの内容をプリンター3へ出力される前に変更することが可能になる。   Next, the port handler 204, the data analysis unit 205, the image conversion unit 210, the data processing unit 206, the command conversion unit 207, the print change DB 208, and the image change DB 211 are portions for changing the print contents of the original print data ( The content of the print data output from the POS application 201 can be changed before being output to the printer 3 by the processing of these units.

ポートハンドラー204は、上記仮想ポート203から引き渡された元印刷データをデータ解析部205に転送すると共に、内容変更後の印刷データ(ここでは、変更後印刷データと呼ぶ)を受け取って、当該データに対応した通信ポート209へ変更後印刷データを出力する処理を行う。   The port handler 204 transfers the original print data delivered from the virtual port 203 to the data analysis unit 205, and receives the print data after the content change (herein, referred to as post-change print data). A process of outputting the changed print data to the corresponding communication port 209 is performed.

データ解析部205は、元印刷データを解析して処理内容を決定すると共に、変更後印刷データを出力する通信ポート209を決定する部分である。   The data analysis unit 205 is a part that analyzes the original print data to determine the processing contents and determines the communication port 209 that outputs the changed print data.

イメージ変換部210は、元印刷データに含まれるイメージ又はグラフィックスの画像オブジェクトについて変更内容を決定する、データ解析部205とは独立したイメージ処理に特化した部分である。処理後の変更内容はデータ解析部205に通知される。   The image conversion unit 210 is a part specialized in image processing independent of the data analysis unit 205, which determines change contents for an image or graphics image object included in the original print data. The change contents after the processing are notified to the data analysis unit 205.

データ加工部206は、データ解析部205が決定した処理内容に従って、元印刷データを変更後印刷データに加工する部分である。   The data processing unit 206 is a part that processes the original print data into changed print data in accordance with the processing content determined by the data analysis unit 205.

また、コマンド変換部207は、元印刷データで指定されていた通信ポート209に接続されたプリンター3と、変更後印刷データが出力される通信ポート209に接続されたプリンター3とで使用コマンドが異なる場合に、コマンドを変更する処理を行う部分である。   The command conversion unit 207 uses different commands for the printer 3 connected to the communication port 209 specified by the original print data and the printer 3 connected to the communication port 209 from which the changed print data is output. In this case, it is a part for performing processing to change the command.

印刷変更用DB208は、データ解析部205が処理内容を決定するための各種情報を格納するデータベースであり、上記HDDに備えられる。格納される情報には、印刷データからその印刷物を特定するためのルール、印刷データに含まれる所定のテキストオブジェクトに対して変更後の画像データを定めたテキスト変換ルール、変更後の印刷データに使用するイメージデータ等がある。   The print change DB 208 is a database that stores various types of information used by the data analysis unit 205 to determine processing contents, and is provided in the HDD. The stored information includes rules for specifying the printed matter from the print data, text conversion rules that define the changed image data for a predetermined text object included in the print data, and used for the changed print data There is image data to be used.

次に、イメージ変更用DB211は、イメージ変換部210が上述した処理を実行するために参照するイメージ変換ルール212を格納するデータベースであり、上記HDDに備えられる。図3は、イメージ変換ルール212を例示した図である。イメージ変換ルール212は、図3に示すように、変換前イメージと変換後イメージを対応付けたものであり、元印刷データ内に「変換前イメージ」に該当するイメージ又はグラフィックスがあれば、そのデータを「変換後イメージ」のデータに変換すべきことを意味している。   Next, the image change DB 211 is a database that stores image conversion rules 212 that the image conversion unit 210 refers to in order to execute the above-described processing, and is provided in the HDD. FIG. 3 is a diagram illustrating the image conversion rule 212. As shown in FIG. 3, the image conversion rule 212 associates the pre-conversion image with the post-conversion image, and if there is an image or graphics corresponding to the “pre-conversion image” in the original print data, This means that the data should be converted to “image after conversion”.

図3の例では、例えば、ABC社のロゴが、「変換前イメージ」に示すものから「変換後イメージ」に示すものへ変更すべきことを意味している。かかるイメージ変換ルール212は、予めPOS端末装置2のユーザーによって入力されたものであり、ユーザーは、適宜、その内容を編集することができる。また、当該イメージ変換ルール212は、印刷物毎に定めて格納されている。つまり、当該POS端末装置2から複数種類の印刷物を出力する場合には、各印刷物に対してイメージ変換ルール212が記憶される。   In the example of FIG. 3, for example, it means that the logo of ABC Company should be changed from what is shown in “image before conversion” to what is shown in “image after conversion”. The image conversion rule 212 is input in advance by the user of the POS terminal device 2, and the user can edit the contents as appropriate. The image conversion rule 212 is determined and stored for each printed matter. That is, when outputting a plurality of types of printed matter from the POS terminal device 2, the image conversion rule 212 is stored for each printed matter.

以上説明した印刷内容変更部における処理の具体的な手順については後述する。   A specific procedure of processing in the print content changing unit described above will be described later.

なお、仮想ポート203、ポートハンドラー204、データ解析部205、イメージ変換部210、データ加工部206、及び、コマンド変換部207は、それぞれ、各部が行う処理を指示するプログラムと当該プログラムに従って処理を実行する上記CPU等によって構成される。また、これらの部分に係るプログラムが本発明の印刷内容変更プログラムに相当する。   Note that the virtual port 203, the port handler 204, the data analysis unit 205, the image conversion unit 210, the data processing unit 206, and the command conversion unit 207 each execute a process instructing a process performed by each unit and the process. The above-described CPU and the like are configured. The programs related to these portions correspond to the print content change program of the present invention.

次に、POS端末装置2には、物理層240に通信ポート209A及び209Bが備えられ、それぞれ、プリンター3A及び3Bに接続される。ここでは、一例として、通信ポート209Aは、シリアル通信のCOM通信ポートであり、通信ポート209Bは、USB通信を行うUSB通信ポートである。また、プリンター3については、一例として、プリンター3Aがモノクロプリンターであり、プリンター3Bがカラープリンターである。なお、ここでは、2つ通信ポート209が備えられ、2つのプリンター3がPOS端末装置2に接続されるが、接続される通信ポート209及びプリンター3の数はこれに限定されることはなく、1でもよいし3以上でもよい。   Next, the POS terminal device 2 includes communication ports 209A and 209B in the physical layer 240, which are connected to the printers 3A and 3B, respectively. Here, as an example, the communication port 209A is a COM communication port for serial communication, and the communication port 209B is a USB communication port for performing USB communication. For the printer 3, as an example, the printer 3A is a monochrome printer, and the printer 3B is a color printer. Here, two communication ports 209 are provided, and two printers 3 are connected to the POS terminal device 2, but the number of communication ports 209 and printers 3 to be connected is not limited to this, It may be 1 or 3 or more.

以上説明をしたような構成を有する本POS端末装置2では、元印刷データに対する印
刷内容の変更処理に特徴があり、以下、その具体的な処理手順について説明する。図4は、当該印刷内容の変更処理の処理手順を例示したフローチャートである。
The present POS terminal apparatus 2 having the configuration described above is characterized by a process for changing the print contents for the original print data, and the specific processing procedure will be described below. FIG. 4 is a flowchart illustrating the processing procedure of the print content changing process.

まず、前述の通り、POSアプリケーション201から直接、又は、プリンター3A用ドライバー202を介して、元印刷データが出力される(ステップS1)。例えば、当該元印刷データは、プリンター3Aから出力することを想定しているレシートの印刷データであり、従って、出力先の通信ポートには通信ポート209Aが指定され、プリンター3Aに依存したコマンドで表現されている。図5は、レシートの印刷内容の変更を例示した図である。ここでは、例えば、図5の(a)に示すレシートの印刷データが出力される。なお、図5の(a)に示すレシートはモノクロの印刷物である。   First, as described above, the original print data is output directly from the POS application 201 or via the printer 3A driver 202 (step S1). For example, the original print data is print data of a receipt that is assumed to be output from the printer 3A. Therefore, the communication port 209A is designated as the output destination communication port, and is expressed by a command depending on the printer 3A. Has been. FIG. 5 is a diagram illustrating an example of a change in the print contents of a receipt. Here, for example, the print data of the receipt shown in FIG. 5A is output. Note that the receipt shown in FIG. 5A is a monochrome printed matter.

次に、出力された元印刷データは、指定された通信ポートに(ここでは、通信ポート209Aに)届く前に仮想ポート203によって受け取られる(ステップS2)。かかる処理は、いずれの通信ポート209へ向けたデータも、まず、仮想ポート203が受け取るように、レジストリーの(優先度の)設定を変更しておくことで実現され、かかる設定変更はOSの起動時に実行される。その後、受け取られた元印刷データは、仮想ポート203からアプリケーション層220のポートハンドラー204に送付される(ステップS2)。   Next, the output original print data is received by the virtual port 203 before reaching the designated communication port (here, the communication port 209A) (step S2). This processing is realized by changing the (priority) setting of the registry so that the virtual port 203 receives data for any communication port 209, and the setting change is started by the OS. Sometimes executed. Thereafter, the received original print data is sent from the virtual port 203 to the port handler 204 of the application layer 220 (step S2).

次に、ポートハンドラー204は、送付された元印刷データを、データ解析部205に転送する(ステップS3)。   Next, the port handler 204 transfers the sent original print data to the data analysis unit 205 (step S3).

データ解析部205では、転送された元印刷データのコマンドを解釈し、当該データに対する処理内容、すなわち、印刷内容の変更内容を決定する(ステップS4)。具体的には、まず、元印刷データに含まれる所定のキーワード等から印刷物を特定する。例えば、元印刷データに「領収書」というテキストのオブジェクトが検出されれば、当該元印刷データはレシートのデータであると判断する。かかる印刷物の特定には、前述した印刷変更用DB208に格納されるそのためのルールが参照される。   The data analysis unit 205 interprets the command of the transferred original print data, and determines the processing content for the data, that is, the print content change content (step S4). Specifically, first, a printed matter is specified from a predetermined keyword or the like included in the original print data. For example, if a text object “receipt” is detected in the original print data, it is determined that the original print data is receipt data. To specify such a printed matter, the rules for that stored in the print change DB 208 described above are referred to.

次に、データ解析部205は、元印刷データを各オブジェクトに分割し、オブジェクト毎に変更後の内容を決定する。オブジェクト分割は、画像オブジェクトの種別ごとにその一塊を1オブジェクトとして認識することによって行う。   Next, the data analysis unit 205 divides the original print data into each object, and determines the changed contents for each object. The object division is performed by recognizing the lump as one object for each type of image object.

そして、オブジェクトがイメージ又はグラフィックスである場合には、データ解析部205は、そのデータと上記特定した印刷物の情報(例えば、レシートであるとの情報)をイメージ変換部210に渡す。   If the object is an image or a graphic, the data analysis unit 205 passes the data and information of the specified printed matter (for example, information that it is a receipt) to the image conversion unit 210.

イメージ変換部210は、イメージ変換用DB211にアクセスし、受け取った印刷物の情報に基づいてその印刷物の(例えば、レシート用の)上記イメージ変換ルール212を参照し、渡されたイメージ又はグラフィックスのデータと、当該イメージ変換ルール212の「変換前イメージ」を比較する。当該比較処理は、一般的なパターンマッチングの手法によって行われる。   The image conversion unit 210 accesses the image conversion DB 211, refers to the image conversion rule 212 of the printed material (for example, for receipt) based on the received printed material information, and passes the image or graphics data passed And “image before conversion” of the image conversion rule 212 are compared. The comparison process is performed by a general pattern matching method.

比較の結果、「変換前イメージ」に上記受け取ったイメージ又はグラフィックスと一致するイメージがあれば、イメージ変換部210は、イメージ変換ルール212にその「変換前イメージ」に対応して収められている「変換後イメージ」のデータを、データ解析部205に返す。一方、一致するものが無い場合には、イメージ変換部210は、データ解析部205に変換しない(変更しない)旨を通知する。   As a result of the comparison, if there is an image that matches the received image or graphics in the “image before conversion”, the image conversion unit 210 is stored in the image conversion rule 212 corresponding to the “image before conversion”. Data of “image after conversion” is returned to the data analysis unit 205. On the other hand, if there is no match, the image conversion unit 210 notifies the data analysis unit 205 that the data is not converted (not changed).

また、上記分割されたオブジェクトがテキストである場合には、データ解析部205は
、印刷変更用DB208に格納される上記テキスト変換ルールに従って、変更後のデータを決定する。
When the divided object is text, the data analysis unit 205 determines the changed data according to the text conversion rule stored in the print change DB 208.

以上のように、オブジェクト毎の変換後データの決定が全てのオブジェクトに対して実行されると、データ解析部205は、その変換内容と、当該印刷物の印刷内容変更後のレイアウト情報をデータ加工部206に通知し印刷データの加工を指示する。なお、このレイアウト情報は、印刷変更用DB208に印刷物毎に収められており、それを参照することによって得られる。   As described above, when the determination of the converted data for each object is executed for all the objects, the data analysis unit 205 displays the converted content and the layout information after changing the printed content of the printed matter as the data processing unit. 206 is instructed to process the print data. This layout information is stored for each printed matter in the print change DB 208, and can be obtained by referring to it.

図5に示すレシートの例では、図5の(a)が元印刷データによる印刷内容を示し、図5の(b)が変更後の印刷内容を示している。図5の(a)におけるロゴa1は、上述したイメージ変換部210の処理により、図3に例示したイメージ変換ルール212に従って、図5の(b)におけるロゴb1に変換されることが決定される。また、同様に、レシートの下部に付加されたクーポンにおける「SALE!」とのイメージa4は、色の付いたイメージb4に変換されることが決定される。   In the example of the receipt shown in FIG. 5, (a) in FIG. 5 shows the print contents based on the original print data, and (b) in FIG. 5 shows the print contents after the change. The logo a1 in FIG. 5A is determined to be converted into the logo b1 in FIG. 5B according to the image conversion rule 212 illustrated in FIG. 3 by the processing of the image conversion unit 210 described above. . Similarly, it is determined that the image “a4” “SALE!” In the coupon added to the bottom of the receipt is converted to a colored image b4.

また、上述したレイアウト情報に基づき、店舗情報a2を右寄せに変更されたb2に、日時情報a3を配置位置を変更されたb3に、変換することが決定され、さらに、新たなテキストオブジェクトb5が追加されることが決定される。当該レシートの例では、このような印刷内容の変更がデータ加工部206に指示される。   Further, based on the layout information described above, it is decided to convert the store information a2 to b2 that has been changed to the right, and the date / time information a3 to b3 that has been changed in arrangement position, and a new text object b5 has been added. It is decided that In the example of the receipt, the data processing unit 206 is instructed to change such print contents.

このように変更内容の決定及びその指示がなされるとデータ加工部206では、指示された内容に従って、元印刷データを加工し、印刷内容の変更後の印刷データ(変更後印刷データ)を生成する(ステップS5)。図5の例では、図5の(b)に示すレシートの印刷データが生成される。   When the change content is determined and instructed in this way, the data processing unit 206 processes the original print data in accordance with the instructed content, and generates print data after the change of the print content (post-change print data). (Step S5). In the example of FIG. 5, the print data of the receipt shown in FIG. 5B is generated.

また、上記変更内容を決定した段階で、当該印刷物の変更後の印刷内容が決定するので、データ解析部205は、その印刷内容に相応しいプリンター3を決定し、そのプリンター3が接続される通信ポート209をポートハンドラー204に通知する。例えば、元印刷データがモノクロのレシートのものであって、POSアプリケーション201からモノクロプリンター3Aに向けて通信ポート209Aへ出力されたものが、印刷内容の変更後にカラーのレシートになった場合には、カラープリンター3Bが接続される通信ポート209Bに変更後印刷データを出力すべきことが通知される。なお、当該通信ポートの決定及び通知は、印刷物毎に予め出力先通信ポート209が定められている場合には、上述した印刷物の特定後に直ぐに行われても良い。また、接続されるプリンター3が一つである場合には、当該処理は行わなくてもよい。   In addition, since the print content after the change of the printed matter is determined at the stage of determining the change content, the data analysis unit 205 determines a printer 3 suitable for the print content, and a communication port to which the printer 3 is connected. 209 is notified to the port handler 204. For example, when the original print data is a monochrome receipt and the output from the POS application 201 to the communication port 209A toward the monochrome printer 3A becomes a color receipt after the print content is changed, The communication port 209B to which the color printer 3B is connected is notified that the changed print data should be output. Note that the determination and notification of the communication port may be performed immediately after the above-described identification of the printed material when the output destination communication port 209 is determined in advance for each printed material. In addition, when only one printer 3 is connected, this processing need not be performed.

次に、上記生成された変更後印刷データがコマンド変換部207に渡される。そして、変更後印刷データについてコマンドの変更を必要とする場合には、ここでコマンドの変換処理を実行する(ステップS6)。前述のとおり、元印刷データは出力先のプリンター3に依存したコマンドで表現されているので、元印刷データのコマンドと、上記決定された出力先のプリンター3のコマンドが異なる場合には、当該出力先に適したコマンドに変換する。本実施例では、元印刷データがプリンター3A用のコマンドで表現されているので、出力先がプリンター3Bに変更される場合には当該コマンド変換処理を実行する。   Next, the generated changed print data is passed to the command conversion unit 207. If it is necessary to change the command for the print data after change, command conversion processing is executed here (step S6). As described above, since the original print data is expressed by a command depending on the output destination printer 3, if the command of the original print data and the command of the determined output destination printer 3 are different, the output Convert the command to a suitable command first. In this embodiment, since the original print data is expressed by a command for the printer 3A, the command conversion process is executed when the output destination is changed to the printer 3B.

処理後のデータはポートハンドラー204へ引き渡される。なお、コマンド変換を必要としない場合には、データ加工部206から転送された変更後印刷データがポートハンドラー204へ引き渡される。   The processed data is delivered to the port handler 204. When command conversion is not required, the changed print data transferred from the data processing unit 206 is delivered to the port handler 204.

次に、ポートハンドラー204は、引き渡された変更後印刷データを上記通知された通
信ポート209へ出力する(ステップS7)。本実施例では、通信ポート209A又は通信ポート209Bへ出力される。
Next, the port handler 204 outputs the transferred changed print data to the notified communication port 209 (step S7). In this embodiment, the data is output to the communication port 209A or the communication port 209B.

その後、変更後印刷データが通信ポート209から接続されるプリンター3へ送信され、プリンター3において当該印刷データによる印刷が実行され、レシートなどの印刷物が出力される(ステップS8)。例えば、プリンター3Aから出力されればモノクロの印刷物(例えば、レシート)が得られ、プリンター3Bから出力されればカラーの印刷物(例えば、レシート)が得られる。   Thereafter, the changed print data is transmitted from the communication port 209 to the connected printer 3, and printing by the print data is executed in the printer 3, and a printed matter such as a receipt is output (step S8). For example, a monochrome printed material (for example, a receipt) is obtained if output from the printer 3A, and a color printed material (for example, a receipt) is obtained if output from the printer 3B.

以上説明したような手順で、本POS端末装置2における印刷内容の変更処理が実行される。   The print content changing process in the POS terminal apparatus 2 is executed by the procedure described above.

なお、上記イメージ変換部210に、イメージからそのイメージで表現される文字や数字を読み取るいわゆるOCRの機能を備えるようにしても良い。この場合、前述したイメージ変換ルール212の「変換前イメージ」に文字や数字のデータを収め、それらと、上記OCR機能によって、上記データ解析部205より渡されたイメージ又はグラフィックスのデータから読み取った文字又は数字を比較するようにしても良い。そして、一致するものがある場合には、上述の場合と同様に、それに対応する「変換後イメージ」に変換することが決定される。   Note that the image conversion unit 210 may be provided with a so-called OCR function for reading characters and numbers represented by an image from the image. In this case, character and numeric data are stored in the “image before conversion” of the image conversion rule 212 described above, and read from the image or graphics data passed from the data analysis unit 205 by the OCR function. Letters or numbers may be compared. If there is a match, it is determined to convert the image into a corresponding “post-conversion image” in the same manner as described above.

以上説明したように、本実施の形態例に係るPOS端末装置2では、POSアプリケーション201から出力された印刷データの印刷内容を変更することができる。そして、当該印刷内容変更機能を比較的容易な方法で既存のPOSシステムに追加して、本POS端末装置2及びそれを含むPOSシステムに改良することができる。   As described above, in the POS terminal device 2 according to the present embodiment, the print contents of the print data output from the POS application 201 can be changed. The print content changing function can be added to an existing POS system by a relatively easy method to improve the POS terminal device 2 and the POS system including the POS terminal device 2.

図6は、当該改良を説明するための図である。当該図は、図2と同じ機能構成図であり、実線部分が上述した改良前の既存POS端末装置及びPOSシステムを示している。すなわち、改良前のシステムは、POSアプリケーション201から直接又はプリンタードライバー202を介して出力された印刷データが通信ポート209Aで受け取られ、プリンター3Aから出力がなされる構成となっている。そして、このような構成のシステムに対して、点線で示される部分を追加することにより、本POS端末装置2及びそれを含むPOSシステムにすることが可能である。   FIG. 6 is a diagram for explaining the improvement. This figure is the same functional configuration diagram as FIG. 2, and the solid line portion shows the existing POS terminal device and POS system before improvement described above. That is, the system before improvement is configured such that print data output directly from the POS application 201 or via the printer driver 202 is received by the communication port 209A and output from the printer 3A. And it is possible to make this POS terminal device 2 and the POS system containing it by adding the part shown with a dotted line with respect to the system of such a structure.

すなわち、既存のPOSアプリケーション201を変更することなく、上述した印刷内容変更プログラム、各DB208及び211のデータ、及び新たなプリンター3Bを追加することにより、既存のPOSシステムからの印刷物を変更することが可能となる。そして、この改良(追加)は、新たなプリンター3Bの設置と上記プログラムとデータを含む当該プリンタードライバーソフトウェアのインストールという作業で実行され得る。なお、プリンター3の新設を含めずに、上記プログラムとデータを追加する改良も可能である。   That is, without changing the existing POS application 201, it is possible to change the printed matter from the existing POS system by adding the above-described print content change program, the data of each DB 208 and 211, and the new printer 3B. It becomes possible. This improvement (addition) can be executed by the operation of installing a new printer 3B and installing the printer driver software including the program and data. In addition, the improvement which adds the said program and data is also possible without including the new installation of the printer 3. FIG.

このように、本実施の形態例に係る印刷内容変更プログラムを用いることにより、既存のPOSアプリケーションプログラムの変更を伴わない容易な方法で、既存システムから出力される印刷物の内容を、イメージ画像を含めて多彩に変更することができるようになる。   In this way, by using the print content change program according to the present embodiment, the contents of the printed matter output from the existing system can be included in an easy way without changing the existing POS application program. Can be changed in various ways.

また、主な印刷内容の変更処理は、コンピューターのアプリケーション層で行うように構成するので、多彩な処理を実行させるプログラムの開発を容易に行うことができる。   In addition, since the main print content changing process is configured to be performed in the application layer of the computer, it is possible to easily develop a program for executing various processes.

また、イメージ変換ルール212の内容をユーザーが適宜編集することができるので、
イメージやグラフィックスの内容を自在に変更することができる。また、イメージ変換ルール212を印刷物毎に用意することができ、各印刷物に応じた変更を行うことができる。
In addition, since the user can edit the contents of the image conversion rule 212 as appropriate,
The contents of images and graphics can be changed freely. Further, the image conversion rule 212 can be prepared for each printed matter, and a change corresponding to each printed matter can be performed.

なお、本実施の形態例では、POSサーバー1が複数のPOS端末装置2と接続されるシステムであったが、本発明は、当該構成に限らず、POS端末装置とプリンターが接続される環境に対して適用することができる。   In the present embodiment, the POS server 1 is a system connected to a plurality of POS terminal devices 2. However, the present invention is not limited to this configuration, and is in an environment where a POS terminal device and a printer are connected. It can be applied to.

また、本実施の形態例ではPOSシステムの例を示したが、本発明は、POSシステムに限らず、病院や運送会社で使用されるシステムなど、プリンターからの印刷物の出力を含む所定のアプリケーションを備えたシステムに適用可能であり、特に、既存のアプリケーションプログラムの改変が困難である場合に有効である。   In the present embodiment, an example of a POS system is shown. However, the present invention is not limited to a POS system, but a predetermined application including output of printed matter from a printer, such as a system used in a hospital or a transportation company. The present invention can be applied to a provided system, and is particularly effective when it is difficult to modify an existing application program.

本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。   The protection scope of the present invention is not limited to the above-described embodiment, but covers the invention described in the claims and equivalents thereof.

1 POSサーバー、 2 POS端末装置、 3 プリンター、 4 ネットワーク、 21 POS端末本体、 22 ディスプレイ、 23 キーボード、 24 バーコードリーダー、 25 カードリーダー、 201 POSアプリケーション、 202 プリンター3A用ドライバー、 203 仮想ポート、 204 ポートハンドラー、 205 データ解析部、 206 データ加工部、 207 コマンド変換部、 208 印刷変更用DB、 209 通信ポート、 210 イメージ変換部、 211 イメージ変更用DB、 212 イメージ変換ルール、 220 アプリケーション層、
230 OSカーネル層、 240 物理層
1 POS server, 2 POS terminal device, 3 printer, 4 network, 21 POS terminal body, 22 display, 23 keyboard, 24 barcode reader, 25 card reader, 201 POS application, 202 printer 3A driver, 203 virtual port, 204 Port handler, 205 data analysis unit, 206 data processing unit, 207 command conversion unit, 208 print change DB, 209 communication port, 210 image conversion unit, 211 image change DB, 212 image conversion rule, 220 application layer,
230 OS kernel layer, 240 physical layer

Claims (7)

OSカーネル層のオペレーティングシステムによって動作し、アプリケーション層のアプリケーションによって通信ポートに接続されるプリンターから印刷物を出力するコンピューターに、前記印刷物の内容を変更する処理を実行させる印刷内容変更プログラムであって、
前記アプリケーションから前記通信ポートへ出力される印刷物の印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、
前記アプリケーション層で、前記取得された印刷データを解析し、当該印刷データに所定のイメージ又はグラフィックスのデータが含まれる場合には、予め定められた変換ルールに従って当該データを変更し、当該変更後の印刷データを前記通信ポートへ出力するデータ変更工程と、を前記コンピューターに実行させる
ことを特徴とする印刷内容変更プログラム。
A print content changing program that operates by an operating system of an OS kernel layer and causes a computer that outputs a printed material from a printer connected to a communication port by an application layer application to execute a process of changing the content of the printed material,
A data acquisition step of acquiring print data of a printed matter output from the application to the communication port by the OS kernel layer before the communication port receives the print data;
In the application layer, the acquired print data is analyzed, and when the print data includes predetermined image or graphics data, the data is changed according to a predetermined conversion rule. A print content change program that causes the computer to execute a data change step of outputting the print data to the communication port.
請求項1において、
前記変換ルールは、前記イメージ又はグラフィックスのデータと上記変更後のデータを対応付けた情報である
ことを特徴とする印刷内容変更プログラム。
In claim 1,
The conversion rule is information associating the image or graphics data with the changed data.
請求項1あるいは2において、
前記変換ルールは、前記印刷物毎に用意される
ことを特徴とする印刷内容変更プログラム。
In claim 1 or 2,
The conversion rule is prepared for each printed matter.
請求項1乃至3のいずれかにおいて、
前記データ変更工程では、更に、前記取得した印刷データに含まれるテキストデータに対する変更及び前記印刷物のレイアウトの変更がなされる
ことを特徴とする印刷内容変更プログラム。
In any one of Claims 1 thru | or 3,
In the data change step, a change to text data included in the acquired print data and a change in the layout of the printed matter are further performed.
請求項1乃至4のいずれかにおいて、
前記コンピューターには複数の前記通信ポートが備えられ、当該通信ポートに複数の前記プリンターが接続され、
前記データ変更工程では、前記変更後の印刷データを出力する前記プリンターが決定され、当該プリンターが接続される前記通信ポートに前記変更後の印刷データが出力される
ことを特徴とする印刷内容変更プログラム。
In any one of Claims 1 thru | or 4,
The computer includes a plurality of the communication ports, and the plurality of printers are connected to the communication ports.
In the data changing step, the printer that outputs the changed print data is determined, and the changed print data is output to the communication port to which the printer is connected. .
OSカーネル層のオペレーティングシステムによって動作し、アプリケーション層のアプリケーションによって通信ポートに接続されるプリンターから印刷物を出力するコンピューターにおける、前記印刷物の内容を変更する印刷内容変更方法であって、
前記コンピューターが、前記アプリケーションから前記通信ポートへ出力される印刷物の印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得するデータ取得工程と、
前記コンピューターが、前記アプリケーション層で、前記取得された印刷データを解析し、当該印刷データに所定のイメージ又はグラフィックスのデータが含まれる場合には、予め定められた変換ルールに従って当該データを変更し、当該変更後の印刷データを前記通信ポートへ出力するデータ変更工程と、を有する
ことを特徴とする印刷内容変更方法。
A print content changing method for changing the content of a printed matter in a computer that operates by an operating system of an OS kernel layer and outputs a printed matter from a printer connected to a communication port by an application layer application,
A data acquisition step in which the computer acquires print data of a printed matter output from the application to the communication port before the communication port receives the print data in the OS kernel layer;
The computer analyzes the acquired print data in the application layer, and when the print data includes data of a predetermined image or graphics, the data is changed according to a predetermined conversion rule. And a data changing step of outputting the changed print data to the communication port.
OSカーネル層のオペレーティングシステムによって動作し、アプリケーション層のアプリケーションによって通信ポートに接続されるプリンターから印刷物を出力するホスト装置であって、
前記アプリケーションから前記通信ポートへ出力される印刷物の印刷データを、当該通信ポートが受け取る前に、前記OSカーネル層で取得する仮想ポート部と、
前記アプリケーション層で、前記取得された印刷データを解析し、当該印刷データに所定のイメージ又はグラフィックスのデータが含まれる場合には、予め定められた変換ルールに従って当該データを変更し、当該変更後の印刷データを前記通信ポートへ出力する印刷内容変更部と、を有する
ことを特徴とするホスト装置。
A host device that operates by an operating system of an OS kernel layer and outputs a printed matter from a printer connected to a communication port by an application layer application;
A virtual port unit that acquires print data of a printed matter output from the application to the communication port by the OS kernel layer before the communication port receives the print data;
In the application layer, the acquired print data is analyzed, and when the print data includes predetermined image or graphics data, the data is changed according to a predetermined conversion rule. And a print content changing unit that outputs the print data to the communication port.
JP2011074371A 2011-03-30 2011-03-30 Print content change program, print content change method, and host device Withdrawn JP2012208765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011074371A JP2012208765A (en) 2011-03-30 2011-03-30 Print content change program, print content change method, and host device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011074371A JP2012208765A (en) 2011-03-30 2011-03-30 Print content change program, print content change method, and host device

Publications (1)

Publication Number Publication Date
JP2012208765A true JP2012208765A (en) 2012-10-25

Family

ID=47188427

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011074371A Withdrawn JP2012208765A (en) 2011-03-30 2011-03-30 Print content change program, print content change method, and host device

Country Status (1)

Country Link
JP (1) JP2012208765A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10048901B2 (en) 2013-06-21 2018-08-14 Seiko Epson Corporation Control device, control method of a control device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10048901B2 (en) 2013-06-21 2018-08-14 Seiko Epson Corporation Control device, control method of a control device, and storage medium

Similar Documents

Publication Publication Date Title
US9262106B2 (en) Method of adding value to print data, a value-adding device, and a recording medium
KR101364808B1 (en) Function expansion method using print data, function expansion device, and recording medium
US9058139B2 (en) Function expansion method using print data, and function expansion device
JP2012190114A (en) Sales analytical program using print data, sales information acquisition device, and sales information acquisition method
JP5742416B2 (en) Advertising function expansion program, advertising function expansion method, and host device
JP6064715B2 (en) Print control program, print control apparatus, and print control method
JP5708012B2 (en) Printer changing program, printer changing method, and host device
JP5867564B2 (en) Print data processing program for distributing output destinations, print data processing apparatus, and print data processing method
JP5867563B2 (en) Function expansion program, function expansion device, and function expansion method using print data
JP2012058846A (en) Print data processing program for distributing output destination, print data processing device, and print data processing method
JP2012208765A (en) Print content change program, print content change method, and host device
JP2012168758A (en) Printed matter editing program, printed matter editing device and printed matter editing method
JP5736851B2 (en) Sales analysis program using print data, sales information acquisition device, and sales information acquisition method
EP2426594B1 (en) Distribution processing method, distribution processing device, print data processing method, print data processing device, and recording medium
JP2012185635A5 (en)
JP6075427B2 (en) Print control method and printer driver
JP5842971B2 (en) Distributed processing method, distributed processing apparatus, and program
JP5609453B2 (en) Distributed processing method, distributed processing apparatus, and program
JP2015149077A (en) Program for changing printer, method for changing printer, and host device

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: 20140603