JP7238482B2 - program - Google Patents

program Download PDF

Info

Publication number
JP7238482B2
JP7238482B2 JP2019039652A JP2019039652A JP7238482B2 JP 7238482 B2 JP7238482 B2 JP 7238482B2 JP 2019039652 A JP2019039652 A JP 2019039652A JP 2019039652 A JP2019039652 A JP 2019039652A JP 7238482 B2 JP7238482 B2 JP 7238482B2
Authority
JP
Japan
Prior art keywords
image data
image
application
correction amount
program
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.)
Active
Application number
JP2019039652A
Other languages
Japanese (ja)
Other versions
JP2020144523A (en
Inventor
亮太 垣鍔
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2019039652A priority Critical patent/JP7238482B2/en
Publication of JP2020144523A publication Critical patent/JP2020144523A/en
Application granted granted Critical
Publication of JP7238482B2 publication Critical patent/JP7238482B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Description

本発明は、印刷データを生成する技術に関する。 The present invention relates to technology for generating print data.

PDL( Page Description Languageの略 )などの印刷データをプリンタに送信してプリンタに印刷を実行させるプログラムであるプリンタドライバが知られている(例えば、特許文献1参照)。 2. Description of the Related Art A printer driver, which is a program that transmits print data such as PDL (abbreviation of Page Description Language) to a printer and causes the printer to execute printing, is known (see, for example, Japanese Unexamined Patent Application Publication No. 2002-200013).

また、プリンタを用いて、荷物に貼付される送り状に、配送先を示す住所やバーコードなどを印刷することがある。送り状は、住所を記入する印刷領域や、バーコードを印刷する印刷領域など、予め定められた複数の印刷領域を有する。送り状は、印刷領域を囲む枠線や、運送事業者名などを、予め印刷されている。 In some cases, a printer is used to print an address indicating a delivery destination, a bar code, and the like on an invoice attached to a package. An invoice has a plurality of predetermined print areas, such as a print area for writing an address and a print area for printing a bar code. The shipping label is pre-printed with a frame line surrounding the printing area, the name of the carrier, and the like.

特開2016-31728号公報Japanese Unexamined Patent Application Publication No. 2016-31728

文字やバーコードなどの印刷位置がずれると、予め印刷された文字や枠線やミシン目などに文字やバーコードなどが重なり、文字が判読できなくなったり、バーコードを読取装置で読み取れなくなったりする。 If the print position of characters or barcodes is misaligned, characters or barcodes may overlap pre-printed characters, frame lines, perforations, etc., making the characters illegible or the barcodes unreadable by the reading device. .

本発明は、文字や図形を適切な印刷位置で印刷する技術を提供することを目的とする。 SUMMARY OF THE INVENTION An object of the present invention is to provide a technique for printing characters and graphics at appropriate print positions.

本明細書では様々な開示を行う。開示例のプログラムは、情報処理装置のコンピュータによって実行される。該プログラムは、アプリケーションが生成した画像データを取得する取得処理と、取得した前記画像データを用いて、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させる。前記生成処理は、前記アプリケーションである第1アプリケーションが生成した前記画像データである第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を補正する補正処理を含む。前記補正処理による前記配置位置の補正量は、前記アプリケーションである第2アプリケーションが生成する前記画像データである第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なる。 Various disclosures are made herein. The program of the disclosed example is executed by the computer of the information processing apparatus. The program causes the computer to execute an acquisition process of acquiring image data generated by an application and a generation process of generating print data that can be printed by a printer using the acquired image data. The generation process includes a correction process of correcting the arrangement position of the image indicated by the first image data in response to acquisition of the first image data, which is the image data generated by the first application. . The correction amount of the arrangement position by the correction process differs by a predetermined amount from the correction amount of the arrangement position of the image indicated by the second image data, which is the image data generated by the second application.

プログラムは、第1画像データを取得したことに応じて、第1画像データが示す画像の配置位置を補正量で補正する。補正量は、第2アプリケーションが生成する第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なる。したがって、アプリケーションが第1アプリケーションであっても、第2アプリケーションであっても、文字や図形を適切な印刷位置で印刷することができる。 The program corrects the arrangement position of the image indicated by the first image data with the correction amount in response to obtaining the first image data. The amount of correction differs by a predetermined amount from the amount of correction of the layout position of the image indicated by the second image data generated by the second application. Therefore, whether the application is the first application or the second application, characters and graphics can be printed at appropriate print positions.

図1は、実施形態に係る情報処理装置10及びサーバ12の機能ブロック図である。FIG. 1 is a functional block diagram of an information processing device 10 and a server 12 according to an embodiment. 図2は、送り状15を示す図である。FIG. 2 is a diagram showing an invoice 15. As shown in FIG. 図3(A)は、第1実施形態に係る補正テーブルを示す図であり、図3(B)は、変形例1に係る補正テーブルを示す図である。3A is a diagram showing a correction table according to the first embodiment, and FIG. 3B is a diagram showing a correction table according to Modification 1. FIG. 図4(A)は、送り状名選択画面を示す図であり、図4(B)は、印刷画面を示す図であり、図4(C)は、補正種別選択画面を示す図である。4A shows an invoice name selection screen, FIG. 4B shows a print screen, and FIG. 4C shows a correction type selection screen. 図5は、第1実施形態に係るスペシャルプリンタドライバ29の処理を示す図である。FIG. 5 is a diagram showing processing of the special printer driver 29 according to the first embodiment. 図6は、第1実施形態に係る印刷データ生成処理のフローチャートである。FIG. 6 is a flowchart of print data generation processing according to the first embodiment. 図7(A)は、第2実施形態に係る適正配置テーブルを示す図であり、図7(B)は、第3実施形態に係る適正配置テーブルを示す図である。FIG. 7A is a diagram showing a proper placement table according to the second embodiment, and FIG. 7B is a diagram showing a proper placement table according to the third embodiment. 図8(A)は、第2実施形態に係る外接矩形を説明する説明図であり、図8(B)、(C)は、変形例3に係る外接矩形を説明する説明図である。FIG. 8A is an explanatory diagram explaining the enclosing rectangle according to the second embodiment, and FIGS. 8B and 8C are explanatory diagrams explaining the enclosing rectangle according to the modification 3. FIG. 図9は、第2実施形態に係る印刷データ生成処理のフローチャートである。FIG. 9 is a flowchart of print data generation processing according to the second embodiment. 図10は、変形例3に係る適正配置テーブルを示す図である。FIG. 10 is a diagram showing a proper placement table according to Modification 3. As shown in FIG.

以下、適宜図面を参照して本発明の実施形態について説明する。なお、以下に説明される実施形態は開示例にすぎず、本発明の要旨を変更しない範囲で適宜変更できることは言うまでもない。例えば、後述する各処理の実行順序は、本発明の要旨を変更しない範囲で、適宜変更することができる。 Hereinafter, embodiments of the present invention will be described with reference to the drawings as appropriate. It goes without saying that the embodiment described below is merely an example of disclosure, and can be modified as appropriate without changing the gist of the present invention. For example, the execution order of each process to be described later can be changed as appropriate without changing the gist of the present invention.

[第1実施形態]
本実施形態では、図1に示される情報処理装置10に実装されたスペシャルプリンタドライバ29について説明する。情報処理装置10は、パーソナルコンピュータやタブレットなどである。
[First embodiment]
In this embodiment, the special printer driver 29 installed in the information processing apparatus 10 shown in FIG. 1 will be described. The information processing device 10 is a personal computer, a tablet, or the like.

情報処理装置10は、有線LANや無線LAN(登録商標)やUSB(登録商標)ケーブルなどの通信回線13によって、プリンタ11と通信可能に接続されている。また、情報処理装置10は、不図示のルータ及びインターネット14を通じて、サーバ12と通信可能に接続されている。 The information processing apparatus 10 is communicably connected to a printer 11 via a communication line 13 such as a wired LAN, wireless LAN (registered trademark), USB (registered trademark) cable, or the like. The information processing device 10 is also communicably connected to a server 12 via a router (not shown) and the Internet 14 .

プリンタ11は、種々の種別のシートを載置可能なトレイと、トレイに載置されたシートを搬送して画像をシートに印刷する印刷エンジンと、コントローラと、を備えている。コントローラは、印刷データの入力を受け付け、受け付けた印刷データに基づいて印刷エンジンを駆動する。駆動された印刷エンジンは、印刷データが示す画像をシートに印刷する。シートの種々の種別は、例えば、無地のA4サイズの普通紙や、無地のA5サイズの普通紙や、図2に示されるA4サイズの送り状15などである。送り状15は、特定シートの一例である。 The printer 11 includes a tray on which various types of sheets can be placed, a print engine that conveys the sheet placed on the tray and prints an image on the sheet, and a controller. The controller receives input of print data and drives the print engine based on the received print data. The driven print engine prints an image indicated by the print data on a sheet. Various types of sheets include, for example, plain A4 size plain paper, plain A5 size plain paper, and A4 size invoice 15 shown in FIG. The invoice 15 is an example of a specific sheet.

送り状15は、「お届け先」や「ご依頼主」や「品名」や「受付日」などの文字61や、罫線62や枠線63を予め印刷されている。そして、送り状15は、プリンタ11によって「電話番号」が印刷される印刷領域64や、「郵便番号」が印刷される印刷領域64や、「宛先住所」が印刷される印刷領域64や、「宛名」が印刷される印刷領域64や、「バーコード」が印刷される印刷領域64や、「QRコード」(登録商標)が印刷される印刷領域64など、複数の印刷領域64を有する。図2において、印刷領域64は、細線かつ破線で示されている。 The invoice 15 is preprinted with characters 61 such as "delivery address", "client", "product name", and "receipt date", ruled lines 62 and frame lines 63. As shown in FIG. The invoice 15 has a print area 64 printed with a "telephone number", a print area 64 printed with a "zip code", a print area 64 printed with a "destination address", and a print area 64 printed with an "address". is printed, a print area 64 is printed with a "barcode", and a print area 64 is printed with a "QR code" (registered trademark). In FIG. 2, the print area 64 is indicated by thin and dashed lines.

各印刷領域64には、プリンタ11によって、「電話番号」等の文字や、「バーコード」や「QRコード」などの図形が印刷される。 Characters such as “telephone number” and figures such as “barcode” and “QR code” are printed in each print area 64 by the printer 11 .

送り状15は、ミシン目66を有している。送り状15は、ミシン目で切り離される。切り離された送り状15は、例えば、荷物に貼り付けられ、或いは、荷物に貼り付けられた袋に収められて使用される。 The invoice 15 has perforations 66 . The invoice 15 is cut off at perforations. The separated invoice 15 is used, for example, attached to a package or placed in a bag attached to the package.

情報処理装置10は、図1に示されるように、コントローラ21と、ディスプレイ41と、ユーザI/F42と、通信I/F43と、を備える。「I/F」は、インタフェースを意味する。 The information processing apparatus 10 includes a controller 21, a display 41, a user I/F 42, and a communication I/F 43, as shown in FIG. "I/F" means an interface.

ユーザI/F42は、キーボードやマウスやマイクロフォンなどである。マイクロフォンは、ユーザの声を音声信号に変換してコントローラ21に入力する。ユーザは、ユーザI/F42を通じて情報処理装置10に指示を入力する。 The user I/F 42 is a keyboard, mouse, microphone, and the like. The microphone converts the user's voice into an audio signal and inputs it to the controller 21 . A user inputs an instruction to the information processing apparatus 10 through the user I/F 42 .

コントローラ21は、CPU22と、メモリ23と、バス24とを備える。CPU22は、後述のOS27や標準プリンタドライバ28やスペシャルプリンタドライバ29などのプログラムに記述された命令を実行することにより、当該プログラムを実行する。CPU22は、コンピュータの一例である。 The controller 21 has a CPU 22 , a memory 23 and a bus 24 . The CPU 22 executes programs such as an OS 27, a standard printer driver 28, and a special printer driver 29, which will be described later, by executing instructions written in the programs. The CPU 22 is an example of a computer.

CPU22、メモリ23、ディスプレイ41、ユーザI/F42、及び通信I/F43は、バス24と接続されている。すなわち、CPU22によって実行されるプログラムは、メモリ23から情報やデータを取得し、メモリ23に情報やデータを記憶させ、ディスプレイ41に画像を表示させ、ユーザI/F42を通じてユーザ入力を受け付け、通信I/F43を通じて情報やデータをプリンタ11やサーバ12に送信或いは受信することができる。 CPU 22 , memory 23 , display 41 , user I/F 42 and communication I/F 43 are connected to bus 24 . That is, the program executed by the CPU 22 acquires information and data from the memory 23, stores the information and data in the memory 23, displays an image on the display 41, accepts user input through the user I/F 42, communicates I Information and data can be sent to or received from the printer 11 or the server 12 through the /F43.

メモリ23は、種々のプログラムを記憶するプログラム記憶領域25と、情報やデータを記憶するデータ記憶領域26と、を有する。メモリ23は、例えば、ROMや、RAMや、HDDや、USBメモリなどの可搬記憶媒体や、EEPROMや、CPU22が備えるバッファ等である。 The memory 23 has a program storage area 25 for storing various programs and a data storage area 26 for storing information and data. The memory 23 is, for example, a ROM, a RAM, an HDD, a portable storage medium such as a USB memory, an EEPROM, a buffer provided in the CPU 22, or the like.

メモリ23は、コンピュータが読み取り可能なストレージ媒体であってもよい。コンピュータが読み取り可能なストレージ媒体とは、non-transitoryな媒体である。non-transitoryな媒体には、上記の例の他に、CD-ROM、DVD-ROM等の記録媒体も含まれる。また、non-transitoryな媒体は、tangibleな媒体でもある。一方、インターネット上のサーバなどからダウンロードされるプログラムを搬送する電気信号は、コンピュータが読み取り可能な媒体の一種であるコンピュータが読み取り可能な信号媒体であるが、non-transitoryなコンピュータが読み取り可能なストレージ媒体には含まれない。 The memory 23 may be a computer-readable storage medium. A computer-readable storage medium is a non-transitory medium. In addition to the above examples, non-transitory media include recording media such as CD-ROMs and DVD-ROMs. A non-transitory medium is also a tangible medium. On the other hand, an electrical signal that carries a program downloaded from a server on the Internet is a computer-readable signal medium, which is a kind of computer-readable medium, but is a non-transitory computer-readable storage. Not included in media.

プログラム記憶領域25は、オペレーティングシステムであるOS27と、標準プリンタドライバ28と、スペシャルプリンタドライバ29と、第1ブラウザ31と、第2ブラウザ32と、アプリケーション33と、を記憶する。スペシャルプリンタドライバ29は、プログラムの一例である。アプリケーション33は、第2アプリケーションの一例である。 The program storage area 25 stores an operating system OS 27 , a standard printer driver 28 , a special printer driver 29 , a first browser 31 , a second browser 32 and an application 33 . Special printer driver 29 is an example of a program. Application 33 is an example of a second application.

標準プリンタドライバ28は、プリンタ11が印刷可能な印刷データを生成するプリンタドライバである。標準プリンタドライバ28は、例えば、印刷設定画面を情報処理装置10のディスプレイ41に表示させる。ユーザは、印刷設定画面において、A4やA5などのシートのサイズや、普通紙や光沢紙などのシートの種別や、カラーやモノクロやなどの色等を選択する。標準プリンタドライバ28は、ユーザの選択に応じた印刷データを生成する。 The standard printer driver 28 is a printer driver that generates print data printable by the printer 11 . The standard printer driver 28 displays, for example, a print setting screen on the display 41 of the information processing device 10 . The user selects a sheet size such as A4 or A5, a sheet type such as plain paper or glossy paper, and a color such as color or monochrome on the print setting screen. The standard printer driver 28 generates print data according to the user's selections.

標準プリンタドライバ28は、プリンタ11の名称を示すプリンタ名を名称としてOS27に登録されている。具体的には、標準プリンタドライバ28は、プリンタ名「MFP-A」を名称として、プリンタ11の種別を示すモデル名、及び、プリンタ11に対してOS27が設定したポートを示すポート名と対応付けてメモリ23に記憶されている。 The standard printer driver 28 is registered in the OS 27 with the printer name indicating the name of the printer 11 as its name. Specifically, the standard printer driver 28 associates the printer name “MFP-A” with the model name indicating the type of the printer 11 and the port name indicating the port set by the OS 27 for the printer 11. are stored in the memory 23.

スペシャルプリンタドライバ29は、プリンタ11が特定種別のシートに印刷可能な印刷データを生成するプリンタドライバである。特定種別のシートは、例えば、送り状15である。ユーザは、送り状15など、特定種別のシートに画像を印刷する場合、標準プリンタドライバ28ではなく、スペシャルプリンタドライバ29を選択する。スペシャルプリンタドライバ29は、特定種別のシートに対応する印刷設定を予め有する。したがって、ユーザは、スペシャルプリンタドライバ29を選択することにより、種々の印刷設定を入力する手間を省くことができる。 The special printer driver 29 is a printer driver that generates print data that can be printed on a specific type of sheet by the printer 11 . The specific type of sheet is, for example, the invoice 15 . The user selects the special printer driver 29 instead of the standard printer driver 28 when printing an image on a specific type of sheet such as the invoice 15 . The special printer driver 29 has in advance print settings corresponding to a specific type of sheet. Therefore, by selecting the special printer driver 29, the user can save the trouble of inputting various print settings.

スペシャルプリンタドライバ29は、プリンタ11の名称を示すプリンタ名及びシートの種別を示す送り状名を名称としてOS27に登録されている。具体的には、スペシャルプリンタドライバ29は、プリンタ名「MFP-A」と、送り状名「第1事業者A4」とを組み合わせた「第1事業者A4MFP-A」を名称として、プリンタ11の種別を示すモデル名、及び、プリンタ11に対してOS27が設定したポートを示すポート名と対応付けてメモリ23に記憶されている。送り状名は、シート種別情報の一例である。モデル名は、プリンタ情報の一例である。 The special printer driver 29 is registered in the OS 27 with a printer name indicating the name of the printer 11 and an invoice name indicating the type of sheet. Specifically, the special printer driver 29 sets the name of "first business operator A4MFP-A", which is a combination of the printer name "MFP-A" and the invoice name "first business operator A4". and the port name indicating the port set by the OS 27 for the printer 11 are stored in the memory 23 in association with each other. The invoice name is an example of sheet type information. A model name is an example of printer information.

詳しく説明すると、スペシャルプリンタドライバ29をOS27に対して登録する不図示のセットアッププログラムは、図4(A)に示される送り状名選択画面をディスプレイ41に表示させる。送り状名選択画面は、送り状名を選択するプルダウンメニューと、「OK」アイコンと、「キャンセル」アイコンと、を有する。ユーザは、プルダウンメニューから一の送り状名を選択した後、「OK」アイコンを選択する。セットアッププログラムは、送り状名選択画面においてユーザが選択した送り状名と、プリンタ名とを組み合わせた「第1事業者A4MFP-A」の名称をポート名と対応付けてメモリ23に記憶させ、スペシャルプリンタドライバ29をOS27に対して登録する。 More specifically, a setup program (not shown) for registering the special printer driver 29 with the OS 27 causes the display 41 to display an invoice name selection screen shown in FIG. 4(A). The invoice name selection screen has a pull-down menu for selecting an invoice name, an "OK" icon, and a "Cancel" icon. The user selects an invoice name from the pull-down menu and then selects the "OK" icon. The setup program associates the name of "first business operator A4MFP-A", which is a combination of the invoice name selected by the user on the invoice name selection screen and the printer name, with the port name and stores the name in the memory 23, and stores the name in the memory 23 as a special printer driver. 29 is registered with OS 27 .

OS27は、後述のアプリケーション33などから印刷指示を受け付けると、プリンタドライバの名称の一覧をディスプレイ41に表示させる。すなわち、ディスプレイ41には、メモリ23に記憶された「第1事業者A4MFP-A」の名称が表示される。ユーザは、プリンタ名「MFP-A」のプリンタ11に対して、「第1事業者A4」の送り状15に画像を印刷させる場合、「第1事業者A4MFP-A」の名称でディスプレイ41に表示されたスペシャルプリンタドライバ29を選択する。 When the OS 27 receives a print instruction from an application 33 (to be described later) or the like, the OS 27 displays a list of printer driver names on the display 41 . That is, the display 41 displays the name of “first operator A4MFP-A” stored in the memory 23 . When the user wants the printer 11 with the printer name "MFP-A" to print an image on the invoice 15 of "first business operator A4", the name "first business operator A4MFP-A" is displayed on the display 41. Select the special printer driver 29 provided.

スペシャルプリンタドライバ29は、画像データから印刷データを生成するプログラムであり、印刷データを生成するための描画プログラムを有する。描画プログラムは、例えば、Canvasである。 The special printer driver 29 is a program for generating print data from image data, and has a drawing program for generating print data. A drawing program is, for example, Canvas.

スペシャルプリンタドライバ29は、画像データから印刷データを生成する際に、印刷される画像の配置位置を補正するため、図3(A)に示される補正テーブルを有する。詳しく説明すると、後述のアプリケーション33やWEBアプリケーション56など、アプリケーションの種別によって、また、WEBアプリケーション56が画像データを生成する際に用いられたブラウザの種類によって、画像データが示す画像の送り状15に対する配置位置が変わることがある。すなわち、アプリケーションの種別やブラウザの種別によって、文字やバーコード等の個別画像65の配置位置が、適正な配置である印刷領域64(図2)から外れることがある。文字やバーコード等の個別画像65の配置位置が印刷領域64から外れると、プリンタ11が印刷する文字やバーコードなどの個別画像65が、送り状15に予め印刷されていた文字61や罫線62や枠線63に重なり、或いは、ミシン目66に重なるおそれが生じる。そうすると、プリンタ11が印刷する文字を判読できなくなるおそれや、バーコードやQRコードを読取装置が読み取れなくなるおそれが生じる。補正テーブルは、文字やバーコードなどの画像の配置位置を、印刷領域64内の適切な配置位置に移動させる補正に用いられる。 The special printer driver 29 has a correction table shown in FIG. 3A in order to correct the placement position of the image to be printed when generating print data from image data. More specifically, the arrangement of the image indicated by the image data on the invoice 15 depends on the type of application, such as the application 33 and the web application 56, which will be described later, and also on the type of browser used when the web application 56 generates the image data. The position may change. That is, depending on the type of application and the type of browser, the layout position of the individual images 65 such as characters and barcodes may deviate from the proper layout of the print area 64 (FIG. 2). When the layout position of the individual images 65 such as characters and barcodes is out of the printing area 64, the individual images 65 such as characters and barcodes printed by the printer 11 are replaced by the characters 61 and the ruled lines 62 previously printed on the invoice 15. There is a risk of overlapping with the frame line 63 or overlapping with the perforations 66 . As a result, the characters printed by the printer 11 may become unreadable, and the reading device may become unable to read barcodes and QR codes. The correction table is used for correction to move the layout positions of images such as characters and barcodes to appropriate layout positions within the print area 64 .

具体的には、補正テーブルは、送り状名、アプリケーション種別、及びブラウザ種別と、補正量及び変更補正量と、を対応付けるテーブルである。送り状名と、アプリケーション種別と、ブラウザ種別と、補正量とは、補正テーブルに予め登録されている。変更補正量は、スペシャルプリンタドライバ29がOS27に登録された後、ユーザI/F42を用いてユーザが情報処理装置10に入力した入力値に応じて、補正テーブルに登録される。なお、補正テーブルは、上述のセットアッププログラムがスペシャルプリンタドライバ29をOS27に登録する際に、当該セットアッププログラムによって、OS27に登録されてもよい。 Specifically, the correction table is a table that associates invoice names, application types, and browser types with correction amounts and change correction amounts. The invoice name, application type, browser type, and correction amount are registered in advance in the correction table. After the special printer driver 29 is registered in the OS 27, the changed correction amount is registered in the correction table according to the input value input to the information processing apparatus 10 by the user using the user I/F 42. FIG. The correction table may be registered in the OS 27 by the setup program when the setup program registers the special printer driver 29 in the OS 27 .

項目「送り状名」は、送り状15の種別を示す。図示例では、項目「送り状名」は、「第1運送事業者A4」、「第1運送事業者A5」、「第2運送事業者A4」、「第2運送事業者A5」である。例えば、「第1運送事業者A4」は、第1運送事業者が提供する送り状15であって、かつ、A4サイズの送り状15を示す。「第1運送事業者A5」、「第2運送事業者A4」、「第2運送事業者A5」についても同様である。補正テーブルにおいて項目「送り状名」が設けられるのは、スペシャルプリンタドライバ29が、上述したように、複数種別の送り状名に対してセットアップ可能であるからである。スペシャルプリンタドライバ29が、特定の一の種別の送り状名に対してのみセットアップされる仕様である場合、項目「送り状名」は、補正テーブルに設けられなくてもよい。 The item “invoice name” indicates the type of invoice 15 . In the illustrated example, the item "invoice name" is "first carrier A4", "first carrier A5", "second carrier A4", and "second carrier A5". For example, "first carrier A4" indicates an invoice 15 provided by the first carrier and of A4 size. The same applies to "first carrier A5", "second carrier A4", and "second carrier A5". The reason why the correction table has the item "invoice name" is that the special printer driver 29 can be set up for multiple types of invoice names as described above. If the special printer driver 29 is set up only for one specific type of invoice name, the item "invoice name" may not be provided in the correction table.

アプリケーション種別は、アプリケーションの種別を示す情報であり、後述するステップS33において、送り状15に印刷される画像を示す画像データを生成したアプリケーションの種別と比較される。図示例では、項目「アプリケーション種別」は、「デスクトップ版」と「WEB版」との2種類である。「デスクトップ版」は、情報処理装置10が実装するアプリケーション33を示す。「WEB版」は、サーバ12が実装するWEBアプリケーション56を示す。「デスクトップ版」は、第2種別の一例である。「WEB版」は、第1種別の一例である。 The application type is information indicating the type of application, and is compared with the type of application that generated the image data indicating the image to be printed on the invoice 15 in step S33 described later. In the illustrated example, the item "application type" has two types, "desktop version" and "WEB version". “Desktop version” indicates the application 33 implemented by the information processing apparatus 10 . “WEB version” indicates the WEB application 56 implemented by the server 12 . "Desktop version" is an example of the second type. "WEB version" is an example of the first type.

ブラウザ種別は、ブラウザの種別を示す情報であり、後述するステップS35において、送り状15に印刷される画像を示す画像データを生成したアプリケーションが利用したブラウザの種別と比較される。図示例では、項目「ブラウザ種別」は、「第1ブラウザ」と「第2ブラウザ」との2種類である。「第1ブラウザ」は、第1ブラウザ31を示す。「第2ブラウザ」は、第2ブラウザ32を示す。 The browser type is information indicating the type of browser, and is compared with the type of browser used by the application that generated the image data representing the image to be printed on the invoice 15 in step S35 described later. In the illustrated example, the item "browser type" includes two types of "first browser" and "second browser". “First browser” indicates the first browser 31 . “Second browser” indicates the second browser 32 .

補正量は、送り状15に印刷される画像の位置の補正に用いられる値である。補正量は、x方向の補正量であるx補正量と、y方向の補正量であるy補正量とを含む。x方向は、送り状15の幅方向であって、図2における左右方向を意味する。y方向は、送り状15の縦方向であって、図2における上下方向を意味する。 The correction amount is a value used for correcting the position of the image printed on the invoice 15 . The correction amount includes an x-correction amount, which is an x-direction correction amount, and a y-correction amount, which is a y-direction correction amount. The x direction is the width direction of the invoice 15 and means the horizontal direction in FIG. The y-direction is the longitudinal direction of the invoice 15 and means the vertical direction in FIG.

変更補正量は、送り状15に印刷される画像の位置の補正の用いられる値である。変更補正量は、補正テーブルに予め登録された補正量では画像が適正な位置に印刷されない場合に、ユーザによって情報処理装置10に入力される。変更補正量は、x方向の変更補正量であるx変更補正量と、y方向の変更補正量であるy変更補正量とを含む。 The change correction amount is the value used to correct the position of the image printed on the invoice 15 . The changed correction amount is input to the information processing apparatus 10 by the user when an image cannot be printed at an appropriate position with the correction amount registered in advance in the correction table. The change correction amount includes an x change correction amount that is a change correction amount in the x direction and a y change correction amount that is a change correction amount in the y direction.

アプリケーション種別が「WEB版」であり、かつ、ブラウザ種別が「第1ブラウザ」である場合の補正量は、第1補正量である。アプリケーション種別が「WEB版」であり、かつ、ブラウザ種別が「第2ブラウザ」である場合の補正量は、第2補正量である。アプリケーション種別が「デスクトップ版」である場合の補正量は、第3補正量である。第1補正量、第2補正量、及び第3補正量は、例えば、画像データが示す画像を送り状15に実際に印刷し、印刷結果に基づいて、スペシャルプリンタドライバ29の開発者によって決定される。 The correction amount when the application type is "WEB version" and the browser type is "first browser" is the first correction amount. The correction amount when the application type is "WEB version" and the browser type is "second browser" is the second correction amount. The correction amount when the application type is "desktop version" is the third correction amount. The first correction amount, the second correction amount, and the third correction amount are determined by the developer of the special printer driver 29, for example, by actually printing the image indicated by the image data on the invoice 15 and based on the printing result. .

スペシャルプリンタドライバ29の開発者は、アプリケーション種別が「デスクトップ版」である場合の画像の配置位置を基準として第1補正量、第2補正量、及び第3補正量を決めている。すなわち、アプリケーション種別が「デスクトップ版」である場合の補正量である第3補正量は、(0,0)である。 The developer of the special printer driver 29 determines the first correction amount, the second correction amount, and the third correction amount based on the placement position of the image when the application type is "desktop version". That is, the third correction amount, which is the correction amount when the application type is "desktop version", is (0, 0).

スペシャルプリンタドライバ29は、補正テーブルにおいて、「送り状名」、「アプリケーション種別」、及び「ブラウザ種別」と対応する補正量或いは変更補正量を選択する。詳しくは後述する。 The special printer driver 29 selects a correction amount or a modified correction amount corresponding to the "invoice name", "application type", and "browser type" in the correction table. Details will be described later.

第1ブラウザ31と、第2ブラウザ32とは、互いに異なる種別のブラウザである。第1ブラウザ31及び第2ブラウザ32は、例えば、Internet Explorer(登録商標)や、Microsoft Edge(登録商標)やGoogle Chrome(登録商標)やSafari(登録商標)やFirefox(登録商標)やOpera(登録商標)などである。 The first browser 31 and the second browser 32 are browsers of different types. The first browser 31 and the second browser 32 are, for example, Internet Explorer (registered trademark), Microsoft Edge (registered trademark), Google Chrome (registered trademark), Safari (registered trademark), Firefox (registered trademark), and Opera (registered trademark). trademark), etc.

第1ブラウザ31及び第2ブラウザ32は、HTTPなどの通信プロトコルに準拠したHTTPリクエストを通信I/F43を通じてサーバ12に送信し、サーバ12が返信したHTTPレスポンスを通信I/F43を通じて受信する機能を有する。 The first browser 31 and the second browser 32 have a function of transmitting an HTTP request conforming to a communication protocol such as HTTP to the server 12 through the communication I/F 43 and receiving an HTTP response returned by the server 12 through the communication I/F 43. have.

また、第1ブラウザ31及び第2ブラウザ32は、ディスプレイ41に表示させる画像を示す画像データを生成する機能を有する。後述するWEBアプリケーション56のプラグインプログラムは、第1ブラウザ31や第2ブラウザ32の表示用の画像データを生成する機能を用いて、スペシャルプリンタドライバ29に入力する画像データを生成する。WEBアプリケーション56のプラグインプログラムが生成する画像データは、利用するブラウザの種別によって、画像データが示す画像の配置位置が異なることがある。スペシャルプリンタドライバ29は、ブラウザの種別に応じて、送り状15に印刷される画像の配置位置を補正する。詳しくは後述する。なお、以下では、第1ブラウザ31及び第2ブラウザ32を区別しない場合は、単に「ブラウザ」と記載して説明する。 Also, the first browser 31 and the second browser 32 have a function of generating image data representing an image to be displayed on the display 41 . A plug-in program of the WEB application 56 to be described later generates image data to be input to the special printer driver 29 using the function of generating image data for display of the first browser 31 and the second browser 32 . The image data generated by the plug-in program of the web application 56 may differ in the arrangement position of the image indicated by the image data depending on the type of browser used. The special printer driver 29 corrects the layout position of the image printed on the invoice 15 according to the browser type. Details will be described later. In the following description, when the first browser 31 and the second browser 32 are not distinguished from each other, they are simply referred to as "browser."

アプリケーション33は、送り状15に印刷する「宛先住所」や「宛名」や「依頼主名」などを示す文字や、バーコードや、QRコードなどの画像を示す画像データを生成するプログラムである。アプリケーション33は、例えば、送り状15を提供する運送事業者によってユーザに提供される。 The application 33 is a program for generating image data indicating characters such as "destination address", "addressee", and "requester's name" to be printed on the invoice 15, and images such as bar codes and QR codes. Application 33 is provided to the user, for example, by the carrier providing invoice 15 .

アプリケーション33は、例えば、送り状15に印刷する文字等(以下、入力文字等とも記載する)の入力を受け付ける入力画面をディスプレイ41に表示させる。アプリケーション33は、入力された入力文字等を用いて、送り状15に印刷される画像を示す画像データを生成する。アプリケーション33は、生成した画像データが示す画像の印刷をOS27に対して指示する。当該指示を受けたOS27は、登録されたプリンタドライバの名称の一覧をディスプレイ41に表示させ、プリンタドライバの名称の選択を受け付ける。OS27は、ユーザがスペシャルプリンタドライバ29の名称を選択したことに応じて、スペシャルプリンタドライバ29を起動させる。起動されたスペシャルプリンタドライバ29は、アプリケーション33から画像データを取得し、取得した画像データに基づいて、印刷データを生成する。 The application 33 causes the display 41 to display, for example, an input screen for accepting input of characters to be printed on the invoice 15 (hereinafter also referred to as input characters, etc.). The application 33 generates image data representing an image to be printed on the invoice 15 using the input characters and the like. The application 33 instructs the OS 27 to print the image indicated by the generated image data. Upon receiving the instruction, the OS 27 displays a list of registered printer driver names on the display 41 and accepts selection of the printer driver name. The OS 27 activates the special printer driver 29 in response to the user's selection of the name of the special printer driver 29 . The activated special printer driver 29 acquires image data from the application 33 and generates print data based on the acquired image data.

サーバ12は、いわゆるWEBサーバであって、情報処理装置10にWEBページを提供するサーバである。具体的には、サーバ12は、情報処理装置10が送信したHTTPリクエストを受信したことに応じて、HTMLやXHTMLなどで記述されたWEBページを含むHTTPレスポンスを情報処理装置10に返信する。 The server 12 is a so-called WEB server that provides WEB pages to the information processing apparatus 10 . Specifically, in response to receiving the HTTP request transmitted by the information processing apparatus 10 , the server 12 returns an HTTP response including a WEB page written in HTML, XHTML, or the like to the information processing apparatus 10 .

サーバ12は、CPU51、メモリ52、通信I/F53、及びバス54を備える。CPU51、メモリ52、通信I/F53、及びバス54の構成は、情報処理装置10のCPU22、メモリ23、通信I/F43、及びバス24の構成と同じである。 The server 12 has a CPU 51 , a memory 52 , a communication I/F 53 and a bus 54 . Configurations of the CPU 51 , the memory 52 , the communication I/F 53 and the bus 54 are the same as those of the CPU 22 , the memory 23 , the communication I/F 43 and the bus 24 of the information processing apparatus 10 .

メモリ52は、オペレーティングシステムであるOS55と、WEBアプリケーション56と、を記憶する。WEBアプリケーション56は、アプリケーション33と同様に、送り状15に印刷する「宛先住所」や「宛名」や「依頼主名」などを示す文字や、バーコードや、QRコードなどの画像を示す画像データを生成するプログラムである。WEBアプリケーション56は、第1アプリケーションの一例である。 The memory 52 stores an OS 55 that is an operating system and a WEB application 56 . The WEB application 56, like the application 33, prints characters indicating the "destination address", "addressee", and "requester's name" to be printed on the invoice 15, and image data indicating images such as bar codes and QR codes. It is a program that generates The WEB application 56 is an example of a first application.

WEBアプリケーション56について詳しく説明する。ブラウザは、ユーザI/F42を通じて、WEBアプリケーション56を示すURLの入力を受け付けると、受け付けたURLが示す宛先へのHTTPリクエストをインターネット14に対して送信する。送信されたHTTPリクエストは、通信I/F53を通じて、サーバ12のOS55によって受信される。サーバ12のOS55は、受信したHTTPリクエストをWEBアプリケーション56に受け渡す。WEBアプリケーション56は、受け渡されたHTTPリクエストに対する返信データをサーバ12のOS55に受け渡す。サーバ12のOS55は、WEBアプリケーション56から受け渡された返信データを含むHTTPレスポンスを、通信I/F53及びインターネット14を通じて情報処理装置10に返信する。 The web application 56 will be described in detail. Upon receiving an input of the URL indicating the WEB application 56 through the user I/F 42, the browser transmits an HTTP request to the destination indicated by the received URL to the Internet 14. FIG. The sent HTTP request is received by the OS 55 of the server 12 through the communication I/F 53 . The OS 55 of the server 12 passes the received HTTP request to the WEB application 56 . The WEB application 56 passes reply data for the passed HTTP request to the OS 55 of the server 12 . The OS 55 of the server 12 returns an HTTP response including the return data passed from the WEB application 56 to the information processing device 10 via the communication I/F 53 and the Internet 14 .

返信データは、WEBページを示すWEBページデータを含む。返信データを受信した情報処理装置10のブラウザは、返信データに含まれるWEBページデータが示すWEBページをディスプレイ41に表示させる。ユーザは、ディスプレイ41に表示されたウェブページに表示された文字などにしたがって、入力文字等を、ユーザI/F42を用いて入力する。そして、ブラウザは、ユーザの指示にしたがって、入力文字等を含むHTTPリクエストを、通信I/F43及びインターネット14を通じてサーバ12に送信する。WEBアプリケーション56は、上述と同様にして、OS55を通じてHTTPリクエストを取得し、取得したHTTPリクエストに含まれる入力文字等を取得し、取得した入力文字等を用いて、送り状15に印刷される画像を示す画像データ、或いは、当該画像データをブラウザが生成するための元データを生成する。生成する画像データ或いは元データは、HTMLやXHTMLやJPGやPNGやその他のデータ形式で記述される。 The reply data includes web page data indicating a web page. The browser of the information processing apparatus 10 that has received the reply data causes the display 41 to display the WEB page indicated by the WEB page data included in the reply data. The user uses the user I/F 42 to input characters and the like according to the characters and the like displayed on the web page displayed on the display 41 . The browser then transmits an HTTP request including input characters and the like to the server 12 via the communication I/F 43 and the Internet 14 according to the user's instructions. The WEB application 56 acquires the HTTP request through the OS 55 in the same manner as described above, acquires the input characters and the like included in the acquired HTTP request, and uses the acquired input characters and the like to print the image to be printed on the invoice 15. The image data to be displayed or the original data for generating the image data by the browser is generated. The generated image data or original data is described in HTML, XHTML, JPG, PNG, or other data formats.

WEBアプリケーション56は、生成した画像データ或いは元データを含むHTTPレスポンスを情報処理装置10に返信することをOS55に指示する。当該指示を受け付けたOS55は、WEBアプリケーション56から受け渡されたHTTPレスポンスを、通信I/F53及びインターネット14を通じて情報処理装置10に送信する。情報処理装置10のブラウザは、HTTPレスポンスに含まれる画像データ或いは元データを取得する。そして、ブラウザは、ユーザI/F42を用いて入力されたユーザの指示にしたがって、取得した画像データの印刷、或いは、元データから生成した画像データの印刷をOS27に対して指示する。当該指示を受けたOS27は、登録されたプリンタドライバの名称の一覧をディスプレイ41に表示させ、プリンタドライバの名称の選択を受け付ける。OS27は、ユーザがスペシャルプリンタドライバ29の名称を選択したことに応じて、スペシャルプリンタドライバ29を起動させる。起動されたスペシャルプリンタドライバ29は、ブラウザから画像データを取得し、取得した画像データに基づいて、印刷データを生成する。 The WEB application 56 instructs the OS 55 to return an HTTP response including the generated image data or original data to the information processing apparatus 10 . Upon receiving the instruction, the OS 55 transmits the HTTP response passed from the WEB application 56 to the information processing device 10 via the communication I/F 53 and the Internet 14 . The browser of the information processing apparatus 10 acquires image data or original data included in the HTTP response. Then, the browser instructs the OS 27 to print the acquired image data or print the image data generated from the original data according to the user's instruction input using the user I/F 42 . Upon receiving the instruction, the OS 27 displays a list of registered printer driver names on the display 41 and accepts selection of the printer driver name. The OS 27 activates the special printer driver 29 in response to the user's selection of the name of the special printer driver 29 . The activated special printer driver 29 acquires image data from the browser and generates print data based on the acquired image data.

或いは、サーバ12が情報処理装置10に対して返信する上述の返信データは、ブラウザ上で動作するプラグインプログラムを含む。情報処理装置10は、返信データに含まれるプラグインプログラムをメモリ23に記憶させる。メモリ23に記憶されたプラグインプログラムは、入力文字等を入力する入力画面をディスプレイ41に表示させることをブラウザに指示する。そして、プラグインプログラムは、ユーザがユーザI/F42を用いて入力した入力文字等を取得する。プラグインプログラムは、取得した入力文字等を用いて、送り状に印刷される画像を示す画像データを生成することをブラウザに指示する。そして、プラグインプログラムは、生成した画像データの印刷を、ブラウザを通じてOS27に対して指示する。当該指示を受けたOS27は、登録されたプリンタドライバの名称の一覧をディスプレイ41に表示させ、プリンタドライバの名称の選択を受け付ける。OS27は、ユーザがスペシャルプリンタドライバ29の名称を選択したことに応じて、スペシャルプリンタドライバ29を起動させる。起動されたスペシャルプリンタドライバ29は、ブラウザから画像データを取得し、取得した画像データに基づいて、印刷データを生成する。 Alternatively, the above-described reply data sent back from the server 12 to the information processing apparatus 10 includes a plug-in program that operates on the browser. The information processing apparatus 10 causes the memory 23 to store the plug-in program included in the reply data. A plug-in program stored in the memory 23 instructs the browser to display an input screen for inputting input characters and the like on the display 41 . And a plug-in program acquires the input character etc. which the user input using user I/F42. The plug-in program instructs the browser to generate image data representing an image to be printed on the invoice using the acquired input characters. The plug-in program then instructs the OS 27 through the browser to print the generated image data. Upon receiving the instruction, the OS 27 displays a list of registered printer driver names on the display 41 and accepts selection of the printer driver name. The OS 27 activates the special printer driver 29 in response to the user's selection of the name of the special printer driver 29 . The activated special printer driver 29 acquires image data from the browser and generates print data based on the acquired image data.

なお、WEBアプリケーション56は、HTTPリクエストを生成したブラウザの種別に応じたHTTPレスポンスを生成してもよいし、ブラウザの種別に拘わらずHTTPレスポンスを生成してもよい。例えば、WEBアプリケーション56は、HTTPリクエストを生成したブラウザが第1ブラウザ31であることに応じて、画像データ或いは元データを含むHTTPレスポンスを生成し、HTTPリクエストを生成したブラウザが第2ブラウザ32であることに応じて、プラグインプログラムを含むHTTPレスポンスを生成する。或いは、WEBアプリケーション56は、HTTPリクエストを生成したブラウザの種別に応じた仕様で画像データや元データを生成し、生成した画像データや元データを含むHTTPレスポンスを生成してもよい。さらに或いは、WEBアプリケーション56は、HTTPリクエストを生成したブラウザの種別に応じた仕様のプラグインプログラムを含むHTTPレスポンスを生成してもよい。 Note that the WEB application 56 may generate an HTTP response according to the type of browser that generated the HTTP request, or may generate an HTTP response regardless of the type of browser. For example, the WEB application 56 generates an HTTP response including image data or original data in response to the fact that the browser that generated the HTTP request is the first browser 31, and the browser that generated the HTTP request is the second browser 32. In response, generate an HTTP response containing the plug-in program. Alternatively, the WEB application 56 may generate image data and original data according to specifications according to the type of browser that generated the HTTP request, and generate an HTTP response including the generated image data and original data. Alternatively, the WEB application 56 may generate an HTTP response including a plug-in program with specifications according to the type of browser that generated the HTTP request.

上述のように、送り状15に印刷される画像を示す画像データは、情報処理装置10が実装するアプリケーション33によって生成され、或いは、WEBアプリケーション56によって生成され、或いは、第1ブラウザ31を通じてWEBアプリケーション56によって生成され、さらに或いは、第2ブラウザ32を通じてWEBアプリケーション56によって生成される。画像データが示す画像の配置位置は、画像データがアプリケーション33によって生成されたか、或いは、画像データがWEBアプリケーション56によって生成されたかによって変化する。また、画像データがWEBアプリケーション56によって生成された場合であっても、画像データが示す画像の配置位置は、画像データが第1ブラウザ31を通じて生成されたか、或いは第2ブラウザ32を通じて生成されたかによって変化する。 As described above, the image data representing the image to be printed on the invoice 15 is generated by the application 33 installed in the information processing apparatus 10, generated by the WEB application 56, or generated by the WEB application 56 via the first browser 31. and alternatively by the web application 56 through the second browser 32 . The layout position of the image indicated by the image data changes depending on whether the image data is generated by the application 33 or the WEB application 56 . Even if the image data is generated by the web application 56, the position of the image indicated by the image data depends on whether the image data was generated through the first browser 31 or the second browser 32. Change.

スペシャルプリンタドライバ29は、取得した画像データがどのようにして生成されたかを判断し、判断に応じた補正量で画像データが示す画像の送り状15における配置位置を補正し、補正した配置位置で印刷データを生成する。以下、詳しく説明する。なお、以下では、WEBアプリケーション56がプラグインプログラムを用いて画像データを生成する場合について説明する。 The special printer driver 29 determines how the acquired image data was generated, corrects the arrangement position of the image indicated by the image data on the invoice 15 with the correction amount according to the judgment, and prints at the corrected arrangement position. Generate data. A detailed description will be given below. A case where the web application 56 generates image data using a plug-in program will be described below.

本明細書では、基本的に、プログラムに記述された命令に従ったCPU22の処理を説明する。すなわち、以下の説明における「判断」、「抽出」、「選択」、「算出」、「決定」、「特定」、「取得」、「受付」、「制御」、「設定」等の処理は、CPU22の処理を表している。CPU22による処理は、OS27を介したハードウェア制御も含む。なお、「取得」は要求を必須とはしない概念で用いる。すなわち、CPU22が要求することなくデータを受信するという処理も、「CPU22がデータを取得する」という概念に含まれる。また、本明細書中の「データ」とは、コンピュータに読取可能なビット列で表される。そして、実質的な意味内容が同じでフォーマットが異なるデータは、同一のデータとして扱われるものとする。本明細書中の「情報」についても同様である。「命令」「応答」「要求」等の処理は、「命令」「応答」「要求」等を示す情報を通信することにより行われる。また、「命令」「応答」「要求」等の文言を、「命令」「応答」「要求」等を示す情報そのものという意味で記載してもよい。 In this specification, basically, the processing of the CPU 22 according to the instructions written in the program will be described. That is, the processes such as "judgment", "extraction", "selection", "calculation", "determination", "specification", "acquisition", "acceptance", "control", "setting", etc. in the following description are It represents the processing of the CPU 22 . Processing by the CPU 22 also includes hardware control via the OS 27 . Note that "acquisition" is used as a concept that does not require a request. That is, the process of receiving data without the CPU 22 requesting it is also included in the concept of "the CPU 22 acquires data." Also, "data" in this specification is represented by a computer-readable bit string. Data having substantially the same meaning and content but different formats are treated as the same data. The same applies to "information" in this specification. Processing such as "command", "response", "request", etc. is performed by communicating information indicating "command", "response", "request", etc. Also, words such as "command", "response", "request", etc. may be described in the sense of information itself indicating "command", "response", "request", etc.

また、プログラムに記述された命令に従ったCPU22の処理を、省略した文言で記載することがある。例えば、「CPU22が行う」「コントローラ21が行う」「プログラムが行う」のように記載することがある。 Also, the processing of the CPU 22 in accordance with the instructions written in the program may be described in abbreviated terms. For example, "performed by the CPU 22", "performed by the controller 21", and "performed by the program" may be described.

また、CPU22による、情報Aは事柄Bであることを示しているか否かを判断する処理を、「情報Aから、事柄Bであるか否かを判断する」のように概念的に記載することがある。CPU22による、情報Aが事柄Bであることを示しているか、事柄Cであるかを示しているかを判断する処理を、「情報Aから、事柄Bであるか事柄Cであるかを判断する」のように概念的に記載することがある。 Also, the processing by the CPU 22 to determine whether or not the information A indicates that the matter B is conceptually described as "determine whether or not the information A is the matter B". There is The process by the CPU 22 to determine whether information A indicates matter B or matter C is defined as "judging whether it is matter B or matter C from information A." It may be described conceptually as

また、本明細書中の「データ」と「情報」とは、コンピュータによって取り扱い可能なビット或いはビット列である点において共通する。「データ」とは、各ビットが示す意味内容をコンピュータが考慮することなく取り扱えるものを指す。これに対して、「情報」とは、各ビットが示す意味内容によってコンピュータの動作が分岐するものを指す。さらに、「指示」は、送信先の装置に対して次の動作を促すための制御信号であって、情報を含んでいることもあるし、それ自体が情報としての性質を有していることもある。 Also, "data" and "information" in this specification are common in that they are bits or bit strings that can be handled by a computer. "Data" refers to anything that can be handled by a computer without considering the semantic content indicated by each bit. On the other hand, "information" indicates that the operation of the computer branches depending on the meaning indicated by each bit. Furthermore, the "instruction" is a control signal for prompting the destination device to perform the next operation, and may contain information, and itself has the property of information. There is also

また、「データ」及び「情報」は、形式(例えば、テキスト形式、バイナリ形式、フラグ形式等)がコンピュータ毎に変更されたとしても、同一の意味内容と認識される限り、同一のデータ及び情報として取り扱われる。例えば、「2つ」であることを示す情報が、あるコンピュータではASCIIコードで”0x32”というテキスト形式の情報として保持され、別のコンピュータでは二進数表記で”10”というバイナリ形式の情報として保持されてもよい。 In addition, "data" and "information" are the same data and information as long as they are recognized as having the same meaning and content, even if the format (for example, text format, binary format, flag format, etc.) is changed for each computer. treated as For example, information indicating "two" is stored as text format information "0x32" in ASCII code on one computer, and stored as binary format information "10" in binary notation on another computer. may be

但し、上記の「データ」及び「情報」の区別は厳密なものではなく、例外的な取り扱いも許容される。例えば、データが一時的に情報として扱われてもよいし、情報が一時的にデータとして扱われてもよい。また、ある装置ではデータとして扱われるものが、他の装置では情報として扱われてもよい。さらには、データの中から情報が取り出されてもよいし、情報の中からデータが取り出されてもよい。 However, the above distinction between "data" and "information" is not strict, and exceptional handling is permitted. For example, data may be temporarily treated as information, or information may be temporarily treated as data. Also, what is handled as data in one device may be handled as information in another device. Furthermore, information may be extracted from data, and data may be extracted from information.

また、本明細書中の「に応じて」は、当該文字列の前に記載された条件が満たされた場合に、当該文字列の後に記載された処理が実行されることを示す。なお、処理が実行されるタイミングは、条件が満たされた後であればよく、当該条件が満たされた直後である必要は必ずしもない。 In addition, "depending on" in this specification indicates that the processing described after the character string is executed when the condition described before the character string is satisfied. Note that the timing at which the process is executed may be after the condition is satisfied, and does not necessarily have to be immediately after the condition is satisfied.

図5に示されるように、スペシャルプリンタドライバ29は、WEBアプリケーション56或いはアプリケーション33から、画像データを含む印刷ジョブを取得する(S14、S17)。 As shown in FIG. 5, the special printer driver 29 acquires a print job including image data from the WEB application 56 or application 33 (S14, S17).

まず、スペシャルプリンタドライバ29が、WEBアプリケーション56から印刷ジョブを取得する場合について説明する。WEBアプリケーション56は、プラグインプログラムを含むHTTPレスポンスを通信I/F53を通じて情報処理装置10に返信することをOS55に指示することにより、情報処理装置10にプラグインプログラムを提供する(S11)。プラグインプログラムは、ブラウザ及びユーザI/F42を通じて、上述の入力文字等を受け付ける(S12)。プラグインプログラムは、受け付けた入力文字等を用いて、かつ、ブラウザの機能を用いて、画像データを生成する(S13)。なお、プラグインプログラムが用いたブラウザは、第1ブラウザ31或いは第2ブラウザである。 First, the case where the special printer driver 29 acquires a print job from the web application 56 will be described. The WEB application 56 provides the plug-in program to the information processing apparatus 10 by instructing the OS 55 to return an HTTP response including the plug-in program to the information processing apparatus 10 via the communication I/F 53 (S11). The plug-in program accepts the above input characters and the like through the browser and user I/F 42 (S12). The plug-in program generates image data using the received input characters and the like and using the function of the browser (S13). The browser used by the plug-in program is the first browser 31 or the second browser.

フローチャートには示されていないが、プラグインプログラムは、ユーザI/F42を通じてユーザの印刷指示を受け付けたことに応じて、生成した画像データを印刷することをOS27に指示する。当該指示を受け付けたOS27は、登録されたプリンタドライバの名称の一覧をディスプレイ41に表示させ、プリンタドライバの名称の選択を、ユーザI/F42を通じて受け付ける。OS27は、ユーザがスペシャルプリンタドライバ29の名称を選択したことに応じて、スペシャルプリンタドライバ29を起動させる。 Although not shown in the flowchart, the plug-in program instructs the OS 27 to print the generated image data in response to receiving a print instruction from the user through the user I/F 42 . The OS 27 that has received the instruction displays a list of registered printer driver names on the display 41 and receives the selection of the printer driver name through the user I/F 42 . The OS 27 activates the special printer driver 29 in response to the user's selection of the name of the special printer driver 29 .

起動されたスペシャルプリンタドライバ29は、プラグインプログラムが生成した画像データを含む印刷ジョブを、ブラウザ及びOS27を介して取得する(S14)。ステップS14で取得した印刷ジョブは、ジョブネームを有する。ジョブネームは、アプリケーションの種別及びブラウザの種別を示す文字列を含んでいる。すなわち、ジョブネームは、印刷ジョブに含まれる画像データがWEBアプリケーション56によって生成されたことを示す第1情報、印刷ジョブに含まれる画像データが第1ブラウザ31によって生成されたことを示す第3情報、或いは、印刷ジョブに含まれる画像データが第2ブラウザ32によって生成されたことを示す第4情報を含む。ステップS14の処理は、取得処理の一例である。 The activated special printer driver 29 acquires the print job including the image data generated by the plug-in program via the browser and OS 27 (S14). The print job acquired in step S14 has a job name. The job name includes a character string indicating the type of application and the type of browser. That is, the job name is first information indicating that the image data included in the print job was generated by the web application 56, and third information indicating that the image data included in the print job was generated by the first browser 31. Alternatively, it includes fourth information indicating that the image data included in the print job was generated by the second browser 32 . The processing of step S14 is an example of acquisition processing.

次に、スペシャルプリンタドライバ29が、アプリケーション33から印刷ジョブを取得する場合について説明する。 Next, a case where the special printer driver 29 acquires a print job from the application 33 will be described.

アプリケーション33は、ユーザI/F42を通じて、上述の入力文字等を受け付ける(S15)。アプリケーション33は、受け付けた入力文字等を用いて画像データを生成する(S16)。 The application 33 receives the input characters and the like described above through the user I/F 42 (S15). The application 33 generates image data using the received input characters and the like (S16).

フローチャートには示されていないが、アプリケーション33は、ユーザI/F42を通じてユーザの印刷指示を受け付けたことに応じて、生成した画像データを印刷することをOS27に指示する。当該指示を受け付けたOS27は、登録されたプリンタドライバの名称の一覧をディスプレイ41に表示させ、プリンタドライバの名称の選択を、ユーザI/F42を通じて受け付ける。OS27は、ユーザがスペシャルプリンタドライバ29の名称を選択したことに応じて、スペシャルプリンタドライバ29を起動させる。 Although not shown in the flowchart, the application 33 instructs the OS 27 to print the generated image data in response to receiving a user's print instruction through the user I/F 42 . The OS 27 that has received the instruction displays a list of registered printer driver names on the display 41 and receives the selection of the printer driver name through the user I/F 42 . The OS 27 activates the special printer driver 29 in response to the user's selection of the name of the special printer driver 29 .

起動されたスペシャルプリンタドライバ29は、アプリケーション33が生成した画像データを含む印刷ジョブを、OS27を介して取得する(S17)。ステップS17で取得した印刷ジョブは、ジョブネームを有する。ジョブネームは、印刷ジョブに含まれる画像データがアプリケーション33によって生成されたことを示す文字列を含む。すなわち、ジョブネームは、印刷ジョブに含まれる画像データがアプリケーション33によって生成されたことを示す第2情報を含む。ステップS17の処理は、取得処理の一例である。 The activated special printer driver 29 acquires a print job including image data generated by the application 33 via the OS 27 (S17). The print job acquired in step S17 has a job name. The job name contains a character string indicating that the image data included in the print job was generated by the application 33 . That is, the job name includes second information indicating that the image data included in the print job was generated by the application 33 . The processing of step S17 is an example of acquisition processing.

印刷ジョブを取得したスペシャルプリンタドライバ29は、補正種別を受け付ける(S18)。具体的には、スペシャルプリンタドライバ29は、補正種別の選択を受け付ける補正種別選択画面をディスプレイ41に表示させる。補正種別選択画面は、図4(C)に示すように、「自動調整を行いますか」の文字と、「はい」アイコン及び「いいえ」アイコンと、を有する。スペシャルプリンタドライバ29は、ユーザが「はい」アイコンを選択したことに応じて(S18:自動補正)、ステップS19、S20の処理をスキップしてステップS21の印刷データ生成処理を実行する。なお、ステップS19、S20の処理については、後述する。 The special printer driver 29 that has acquired the print job accepts the correction type (S18). Specifically, the special printer driver 29 causes the display 41 to display a correction type selection screen for accepting selection of a correction type. As shown in FIG. 4(C), the correction type selection screen has characters of "Perform automatic adjustment?" and icons of "Yes" and "No". When the user selects the "yes" icon (S18: automatic correction), the special printer driver 29 skips steps S19 and S20 and executes print data generation processing in step S21. The processing of steps S19 and S20 will be described later.

ステップS21の印刷データ生成処理は、印刷ジョブに含まれる画像データ、及び補正テーブルに登録された補正量に基づいて印刷データを生成する処理である。図6を参照して詳しく説明する。なお、図6において破線で示されたステップS32、S44、S45、S46の処理については、第3実施形態において説明する。 The print data generation process in step S21 is a process of generating print data based on the image data included in the print job and the correction amount registered in the correction table. A detailed description will be given with reference to FIG. The processing of steps S32, S44, S45, and S46 indicated by dashed lines in FIG. 6 will be described in the third embodiment.

スペシャルプリンタドライバ29は、送り状名、アプリケーション種別、及びブラウザ種別を特定する(S31)。具体的には、スペシャルプリンタドライバ29は、自己の名称「第1事業者A4MFP-A」に含まれる送り状名「第1事業者A4」を送り状名として特定する。また、スペシャルプリンタドライバ29は、取得した印刷ジョブに含まれるジョブネームからアプリケーション種別及びブラウザ種別を特定する。 The special printer driver 29 identifies the invoice name, application type, and browser type (S31). Specifically, the special printer driver 29 identifies the invoice name "first business operator A4" contained in its own name "first business operator A4MFP-A" as the invoice name. Also, the special printer driver 29 identifies the application type and browser type from the job name included in the acquired print job.

スペシャルプリンタドライバ29は、特定したアプリケーション種別に基づいて、画像データの種別が、第1画像データであるか、第2画像データであるかを判断する(S33)。第1画像データは、WEBアプリケーション56が生成した画像データを意味する。第2画像データは、アプリケーション33が生成した画像データを意味する。ステップS33の処理は、判断処理の一例である。 The special printer driver 29 determines whether the type of image data is first image data or second image data based on the identified application type (S33). The first image data means image data generated by the web application 56 . The second image data means image data generated by the application 33 . The processing of step S33 is an example of determination processing.

スペシャルプリンタドライバ29は、ステップS33において、画像データの種別が第2画像データであると判断すると(S33:第2画像データ)、補正量を第3補正量(0,0)に決定する(S34)。具体的には、スペシャルプリンタドライバ29は、取得した送り状名及びアプリケーション種別(デスクトップ版)と対応する補正量である第3補正量(0,0)を補正テーブル(図3(A))から選択する。 When the special printer driver 29 determines in step S33 that the type of image data is the second image data (S33: second image data), the special printer driver 29 determines the third correction amount (0, 0) as the correction amount (S34). ). Specifically, the special printer driver 29 selects the third correction amount (0, 0), which is the correction amount corresponding to the acquired invoice name and application type (desktop version), from the correction table (FIG. 3A). do.

一方、スペシャルプリンタドライバ29は、ステップS33において、画像データの種別が第1画像データであると判断すると(S33:第1画像データ)、画像データの生成に用いられたブラウザが第1ブラウザ31であるか第2ブラウザ32であるかを判断する(S35)。具体的には、スペシャルプリンタドライバ29は、ステップS31で特定したブラウザ種別に基づいて、画像データの生成に用いられたブラウザが第1ブラウザ31であるか第2ブラウザ32であるかを判断する。ステップS35の処理は、ブラウザ判断処理の一例である。 On the other hand, when the special printer driver 29 determines in step S33 that the type of image data is the first image data (S33: first image data), the browser used to generate the image data is the first browser 31. or the second browser 32 (S35). Specifically, the special printer driver 29 determines whether the browser used to generate the image data is the first browser 31 or the second browser 32 based on the browser type specified in step S31. The processing of step S35 is an example of browser determination processing.

スペシャルプリンタドライバ29は、画像データの生成に用いられたブラウザが第1ブラウザ31であると判断すると(S35:第1ブラウザ)、対応する変更補正量が補正テーブルに登録されているか否かを判断する(S36)。対応する変更補正量とは、ステップS31で取得した送り状名、アプリケーション種別(WEB版)、及びブラウザ種別(第1ブラウザ)と対応付けられた変更補正量を意味する。 When the special printer driver 29 determines that the browser used to generate the image data is the first browser 31 (S35: first browser), the special printer driver 29 determines whether or not the corresponding changed correction amount is registered in the correction table. (S36). The corresponding change correction amount means the change correction amount associated with the invoice name, application type (WEB version), and browser type (first browser) acquired in step S31.

スペシャルプリンタドライバ29は、対応する変更補正量がないと判断すると(S36:No)、補正量を第1補正量に決定する(S37)。具体的には、取得した送り状名が第1事業者A4である場合、スペシャルプリンタドライバ29は、アプリケーション種別(WEB版)及びブラウザ種別(第1ブラウザ)と対応する補正量である第1補正量(a1,b1)を補正テーブル(図3(A))から選択する。 When the special printer driver 29 determines that there is no corresponding changed correction amount (S36: No), it determines the correction amount as the first correction amount (S37). Specifically, when the acquired invoice name is the first business operator A4, the special printer driver 29 outputs the first correction amount, which is the correction amount corresponding to the application type (WEB version) and browser type (first browser). (a1, b1) is selected from the correction table (FIG. 3A).

スペシャルプリンタドライバ29は、ステップS36において、対応する変更補正量があると判断すると(S36:Yes)、補正量を変更第1補正量に決定する(S38)。具体的には、取得した送り状名が第1事業者A5である場合、スペシャルプリンタドライバ29は、アプリケーション種別(WEB版)及びブラウザ種別(第1ブラウザ)と対応する変更補正量である変更第1補正量を補正テーブル(図3(A))から選択する。 When the special printer driver 29 determines in step S36 that there is a corresponding change correction amount (S36: Yes), the correction amount is determined as the change first correction amount (S38). Specifically, when the acquired invoice name is the first business operator A5, the special printer driver 29 sets the change first A correction amount is selected from the correction table (FIG. 3A).

スペシャルプリンタドライバ29は、ステップS35において、画像データの生成に用いられたブラウザが第2ブラウザ32であると判断すると(S35:第2ブラウザ)、上述と同様にして、対応する変更補正量が補正テーブルに登録されているか否かを判断する(S39)。ステップS36、S39の処理は、変更量判断処理の一例である。 When the special printer driver 29 determines in step S35 that the browser used to generate the image data is the second browser 32 (S35: second browser), the corresponding change correction amount is corrected in the same manner as described above. It is determined whether or not it is registered in the table (S39). The processing of steps S36 and S39 is an example of change amount determination processing.

スペシャルプリンタドライバ29は、対応する変更補正量がないと判断すると(S39:No)、補正量を第2補正量に決定する(S40)。具体的には、取得した送り状名が第1事業者A4である場合、スペシャルプリンタドライバ29は、アプリケーション種別(WEB版)及びブラウザ種別(第2ブラウザ)と対応する補正量である第2補正量(a2,b2)を補正テーブル(図3(A))から選択して決定する。 When the special printer driver 29 determines that there is no corresponding changed correction amount (S39: No), it determines the correction amount as the second correction amount (S40). Specifically, when the acquired invoice name is the first business operator A4, the special printer driver 29 sets the second correction amount, which is the correction amount corresponding to the application type (WEB version) and browser type (second browser). (a2, b2) is selected and determined from the correction table (FIG. 3(A)).

スペシャルプリンタドライバ29は、ステップS39において、対応する変更補正量があると判断すると(S39:Yes)、補正量を変更第2補正量に決定する(S41)。具体的には、取得した送り状名が第1事業者A4である場合、スペシャルプリンタドライバ29は、アプリケーション種別(WEB版)及びブラウザ種別(第2ブラウザ)と対応する変更補正量である変更第2補正量(a2a,b2a)を補正テーブル(図3(A))から選択する。 When the special printer driver 29 determines in step S39 that there is a corresponding change correction amount (S39: Yes), the correction amount is determined as the change second correction amount (S41). Specifically, when the acquired invoice name is the first business operator A4, the special printer driver 29 selects the change correction amount corresponding to the application type (WEB version) and browser type (second browser). A correction amount (a2a, b2a) is selected from the correction table (FIG. 3A).

スペシャルプリンタドライバ29は、ステップS34、S37、S38、S40、S41で決定した補正量を反映した印刷データを生成する(S42、S43)。印刷データへの補正量の反映は、以下に説明する種々の方法によって行うことができる。 The special printer driver 29 generates print data reflecting the correction amounts determined in steps S34, S37, S38, S40, and S41 (S42, S43). The correction amount can be reflected in the print data by various methods described below.

まず、スペシャルプリンタドライバ29が取得した画像データがベクタ形式である場合を説明する。ベクタ形式の画像データは、ベクタコマンドを有する。スペシャルプリンタドライバ29は、決定した補正量を反映したコマンドとなるよう、ベクタコマンドを修正する(S42)。例えば、決定した補正量を反映した座標を指定するよう、ベクタコマンドを修正する。そして、スペシャルプリンタドライバ29は、修正したベクタコマンドを有する画像データをラスタ形式に変換する。スペシャルプリンタドライバ29は、変換によって得られたラスタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 First, the case where the image data acquired by the special printer driver 29 is in the vector format will be described. Image data in vector format has vector commands. The special printer driver 29 modifies the vector command so that the command reflects the determined correction amount (S42). For example, the vector command is modified so as to specify coordinates reflecting the determined correction amount. Special printer driver 29 then converts the image data with the modified vector commands to raster format. The special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the raster format image data obtained by the conversion, and generates print data (S43).

或いは、スペシャルプリンタドライバ29は、ベクタ形式の画像データをラスタ形式に変換する際に、決定した補正量を反映してラスタ形式に変換する(S42)。スペシャルプリンタドライバ29は、変換によって得られたラスタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, when the special printer driver 29 converts the vector format image data into the raster format, the special printer driver 29 converts the data into the raster format by reflecting the determined correction amount (S42). The special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the raster format image data obtained by the conversion, and generates print data (S43).

或いは、スペシャルプリンタドライバ29は、ベクタ形式の画像データをラスタ形式に変換し、変換によって得られたラスタ形式の画像データを、決定した補正量を反映して修正する(S42)。そして、スペシャルプリンタドライバ29は、修正したラスタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 converts the vector format image data into raster format, and corrects the raster format image data obtained by the conversion by reflecting the determined correction amount (S42). Then, the special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the corrected raster format image data to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、ベクタ形式の画像データをラスタ形式に変換する。そして、スペシャルプリンタドライバ29は、プリンタ11に入力するコマンドであって、シートに対する印刷位置などを指定するコマンドを、決定した補正量を反映して生成する(S42)。スペシャルプリンタドライバ29は、変換によって得られたラスタ形式の画像データに、補正量を反映して生成したコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 converts vector format image data into raster format. Then, the special printer driver 29 generates a command to be input to the printer 11, which specifies the print position on the sheet, reflecting the determined correction amount (S42). The special printer driver 29 incorporates the command generated by reflecting the correction amount into the raster format image data obtained by the conversion to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、決定した補正量を反映したコマンドとなるよう、ベクタコマンドを修正する(S42)。そして、スペシャルプリンタドライバ29は、修正したベクタコマンドを有するベクタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 modifies the vector command so that the command reflects the determined correction amount (S42). Then, the special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the vector format image data having the corrected vector command to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、決定した補正量を反映したコマンドとなるよう、ベクタコマンドを修正する(S42)。そして、スペシャルプリンタドライバ29は、修正したベクタコマンドを有するベクタ形式の画像データを、他のベクタ形式の画像データに変換する。スペシャルプリンタドライバ29は、変換したベクタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 modifies the vector command so that the command reflects the determined correction amount (S42). The special printer driver 29 then converts the vector format image data with the modified vector command into other vector format image data. The special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the converted vector format image data to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、プリンタ11に入力するコマンドであって、シートに対する印刷位置などを指定するコマンドを、決定した補正量を反映して生成する(S42)。スペシャルプリンタドライバ29は、ベクタ形式の画像データに、補正量を反映して生成したコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 generates a command to be input to the printer 11, which specifies the print position on the sheet, reflecting the determined correction amount (S42). The special printer driver 29 incorporates the command generated by reflecting the correction amount into the vector format image data to generate print data (S43).

或いは、上述した種々の方法を組み合わせて、補正量を反映した印刷データを生成してもよい。例えば、スペシャルプリンタドライバ29は、決定した補正量の一部を反映させてベクタコマンドを修正し、修正したベクタコマンドを有するベクタ形式の画像データをラスタ形式の画像データに変換し、変換によって得られたラスタ形式の画像データを、決定した補正量の残りを反映させて修正する。 Alternatively, the print data reflecting the correction amount may be generated by combining the various methods described above. For example, the special printer driver 29 modifies the vector command by reflecting part of the determined correction amount, converts the vector format image data having the modified vector command into raster format image data, and obtains the The raster format image data obtained is corrected by reflecting the rest of the determined correction amount.

次に、スペシャルプリンタドライバ29が取得した画像データがラスタ形式である場合を説明する。スペシャルプリンタドライバ29は、ラスタ形式の画像データを、決定した補正量を反映して修正する(S42)。そして、スペシャルプリンタドライバ29は、修正したラスタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Next, the case where the image data acquired by the special printer driver 29 is in raster format will be described. The special printer driver 29 corrects the raster format image data by reflecting the determined correction amount (S42). Then, the special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the corrected raster format image data to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、プリンタ11に入力するコマンドであって、シートに対する印刷位置などを指定するコマンドを、決定した補正量を反映して生成する(S42)。スペシャルプリンタドライバ29は、ラスタ形式の画像データに、補正量を反映して生成したコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 generates a command to be input to the printer 11, which specifies the print position on the sheet, reflecting the determined correction amount (S42). The special printer driver 29 incorporates the command generated by reflecting the correction amount into the raster format image data to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、ラスタ形式の画像データを、決定した補正量を反映して修正する(S42)。そして、スペシャルプリンタドライバ29は、修正したラスタ形式の画像データを、他のラスタ形式に変換する。スペシャルプリンタドライバ29は、変換して得られたラスタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 corrects the raster format image data by reflecting the determined correction amount (S42). The special printer driver 29 then converts the corrected raster format image data into another raster format. The special printer driver 29 incorporates a command for instructing the printer 11 to execute printing, etc., into the raster format image data obtained by the conversion to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、ラスタ形式の画像データを、他のラスタ形式の画像データに変換する。そして、スペシャルプリンタドライバ29は、変換した他のラスタ形式の画像データを、決定した補正量を反映して修正する(S42)。スペシャルプリンタドライバ29は、修正したラスタ形式の画像データに、プリンタ11に印刷の実行等を指示するコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 converts raster format image data into other raster format image data. Then, the special printer driver 29 corrects the converted other raster format image data by reflecting the determined correction amount (S42). The special printer driver 29 incorporates a command instructing the printer 11 to execute printing, etc., into the corrected raster format image data to generate print data (S43).

或いは、スペシャルプリンタドライバ29は、プリンタ11に入力するコマンドであって、シートに対する印刷位置などを指定するコマンドを、決定した補正量を反映して生成する(S42)。スペシャルプリンタドライバ29は、ラスタ形式の画像データに、補正量を反映して生成したコマンドを組み込んで、印刷データを生成する(S43)。 Alternatively, the special printer driver 29 generates a command to be input to the printer 11, which specifies the print position on the sheet, reflecting the determined correction amount (S42). The special printer driver 29 incorporates the command generated by reflecting the correction amount into the raster format image data to generate print data (S43).

或いは、上述した種々の方法を組み合わせて、補正量を反映した印刷データを生成してもよい。例えば、スペシャルプリンタドライバ29は、決定した補正量の一部を反映させてラスタ形式の画像データを修正し、修正したラスタ形式の画像データを他のラスタ形式の画像データに変換し、変換によって得られたラスタ形式の画像データを、決定した補正量の残りを反映させて修正する。 Alternatively, the print data reflecting the correction amount may be generated by combining the various methods described above. For example, the special printer driver 29 corrects the raster format image data by reflecting part of the determined correction amount, converts the corrected raster format image data into other raster format image data, and obtains the The obtained raster format image data is corrected by reflecting the rest of the determined correction amount.

ステップS43の処理は、生成処理の一例である。第3補正量を反映して印刷データを生成するステップS43の処理は、第2生成処理の一例である。第1補正量或いは第2補正量を反映して印刷データを生成するステップS43の処理は、第1生成処理の一例である。 The process of step S43 is an example of the generation process. The process of step S43 for generating print data reflecting the third correction amount is an example of the second generation process. The process of step S43 for generating print data reflecting the first correction amount or the second correction amount is an example of the first generation process.

スペシャルプリンタドライバ29は、図5に示されるように、ステップS21の印刷データ生成処理の実行後、図4(B)に示される印刷画面をディスプレイ41に表示させる(S22)。印刷画面は、「プリンタモデル名:MFP-A」の文字と、「送り状名:第1運送事業者A4」の文字と、「印刷」アイコンと、「キャンセル」アイコンと、を有する。 As shown in FIG. 5, the special printer driver 29 causes the display 41 to display the print screen shown in FIG. 4B after executing the print data generation process of step S21 (S22). The print screen has characters "printer model name: MFP-A", characters "invoice name: first carrier A4", a "print" icon, and a "cancel" icon.

スペシャルプリンタドライバ29は、印刷画面において、「印刷」アイコンが選択されたことに応じて、図5に示されるように、生成した印刷データをプリンタ11に送信する指示を、OS27に対して行う。当該指示を受け付けたOS27は、スペシャルプリンタドライバ29が生成した印刷データを、通信I/F43を通じてプリンタ11に送信する(S23)。 When the "print" icon is selected on the print screen, the special printer driver 29 instructs the OS 27 to send the generated print data to the printer 11 as shown in FIG. OS27 which received the said instruction|indication transmits the print data which the special printer driver 29 produced|generated to the printer 11 through communication I/F43 (S23).

プリンタ11は、通信回線13を通じて印刷データを受信する。プリンタ11は、受信した印刷データが示す画像を、トレイに載置された送り状15に印刷する。 The printer 11 receives print data through the communication line 13 . The printer 11 prints the image indicated by the received print data on the invoice 15 placed on the tray.

ユーザは、送り状15に印刷された画像の配置位置を手動で調整したい場合、ステップS18においてスペシャルプリンタドライバ29がディスプレイ41に表示させた補正種別選択画面(図3(C))において、「いいえ」アイコンを選択する。スペシャルプリンタドライバ29は、補正種別選択画面において、「いいえ」アイコンが選択されたことに応じて、変更補正量の入力を受け付ける変更補正量入力画面をディスプレイ41に表示させる。そして、スペシャルプリンタドライバ29は、変更補正量の入力を受け付ける(S19)。スペシャルプリンタドライバ29は、受け付けた変更補正量を補正テーブル(図3(A))に登録する(S20)。そして、スペシャルプリンタドライバ29は、変更補正量を反映して、上述と同様にして印刷データを生成する。ステップS20の処理は、補正量変更処理及び記憶処理の一例である。 If the user wishes to manually adjust the layout position of the image printed on the invoice 15, the user selects "No" on the correction type selection screen (FIG. 3C) displayed on the display 41 by the special printer driver 29 in step S18. Select an icon. The special printer driver 29 causes the display 41 to display a changed correction amount input screen for receiving an input of a changed correction amount in response to the selection of the "No" icon on the correction type selection screen. Then, the special printer driver 29 receives input of the change correction amount (S19). The special printer driver 29 registers the received changed correction amount in the correction table (FIG. 3A) (S20). Then, the special printer driver 29 reflects the changed correction amount and generates print data in the same manner as described above. The processing of step S20 is an example of correction amount change processing and storage processing.

[第1実施形態の作用効果]
スペシャルプリンタドライバ29は、アプリケーション33が生成した画像データを取得したことに応じて、第3補正量(0,0)を補正量に決定し、WEBアプリケーション56が生成した画像データを取得したことに応じて、第1補正量或いは第2補正量を補正量に決定する。第1補正量及び第2補正量は、第3補正量(0,0)を基準にした補正量である。すなわち、第1補正量及び第2補正量は、第3補正量に対して所定の量だけ相違する。そして、第1補正量、第2補正量、及び第3補正量のうちから補正量が決定され、決定された補正量を反映して、画像データが示す画像の配置位置が補正される。したがって、画像データを生成したアプリケーションが、アプリケーション33であっても、WEBアプリケーション56であっても、文字やバーコードなどの個別画像65が、印刷領域64内の適切な配置位置に移動されて印刷される。その結果、スペシャルプリンタドライバ29は、プリンタ11が印刷する文字をユーザに確実に判読させることができ、また、プリンタ11が印刷するバーコードやQRコードを読取装置に確実に読み取らせることができる。
[Action and effect of the first embodiment]
When the special printer driver 29 acquires the image data generated by the application 33, the special printer driver 29 determines the third correction amount (0, 0) as the correction amount, and acquires the image data generated by the web application 56. Accordingly, the first correction amount or the second correction amount is determined as the correction amount. The first correction amount and the second correction amount are correction amounts based on the third correction amount (0, 0). That is, the first correction amount and the second correction amount differ from the third correction amount by a predetermined amount. Then, the correction amount is determined from among the first correction amount, the second correction amount, and the third correction amount, and the layout position of the image indicated by the image data is corrected by reflecting the determined correction amount. Therefore, regardless of whether the application that generated the image data is the application 33 or the web application 56, the individual images 65 such as characters and barcodes are moved to appropriate layout positions within the print area 64 and printed. be done. As a result, the special printer driver 29 can allow the user to reliably read the characters printed by the printer 11, and can allow the reading device to reliably read the barcodes and QR codes printed by the printer 11.例文帳に追加

また、本実施形態では、補正量は、アプリケーションの種別が「デスクトップ版」である場合の画像の配置位置を基準として決められており、第3補正量は、(0,0)である。したがって、アプリケーションの種別がアプリケーション33である場合、画像データが示す画像を移動させる処理が不要となる。その結果、アプリケーションの種別がアプリケーション33である場合において、スペシャルプリンタドライバ29は、印刷データの生成に要する時間を短くすることができる。 Further, in the present embodiment, the correction amount is determined based on the placement position of the image when the application type is "desktop version", and the third correction amount is (0, 0). Therefore, when the application type is the application 33, the process of moving the image indicated by the image data is unnecessary. As a result, when the application type is the application 33, the special printer driver 29 can shorten the time required to generate print data.

また、本実施形態では、スペシャルプリンタドライバ29は、第1ブラウザ31を通じて第1画像データを取得したことに応じて、第1画像データが示す画像の配置位置を、第1補正量を反映して補正し、第2ブラウザ32を通じて第1画像データを取得したことに応じて、第1画像データが示す画像の配置位置を、第2補正量を反映して補正する。したがって、WEBアプリケーション56が画像データを生成する際に使用したブラウザの種類に拘わらず、文字やバーコードなどの画像を適切な配置位置で印刷することができる。 Further, in this embodiment, in response to obtaining the first image data through the first browser 31, the special printer driver 29 changes the arrangement position of the image indicated by the first image data to reflect the first correction amount. After acquiring the first image data through the second browser 32, the arrangement position of the image indicated by the first image data is corrected by reflecting the second correction amount. Therefore, regardless of the type of browser used by the web application 56 to generate image data, images such as characters and barcodes can be printed at appropriate positions.

また、本実施形態では、スペシャルプリンタドライバ29は、補正テーブルに登録された補正量を反映して、画像の配置位置を補正することもできるし、ユーザが入力した補正量である変更補正量を反映して、画像の配置位置を補正することもできる。したがって、スペシャルプリンタドライバ29は、ユーザの選択の幅を広げることができる。 In the present embodiment, the special printer driver 29 can also correct the arrangement position of the image by reflecting the correction amount registered in the correction table. It is also possible to reflect and correct the arrangement position of the image. Therefore, the special printer driver 29 can expand the range of user selection.

また、本実施形態では、スペシャルプリンタドライバ29は、ユーザが入力した変更補正量を補正テーブルに登録し、変更補正量が補正テーブルに登録されていることに応じて、変更補正量を反映して画像の配置位置を補正する。したがって、スペシャルプリンタドライバ29は、印刷のたびに変更補正量を入力するユーザの手間を省くことができる。 Further, in this embodiment, the special printer driver 29 registers the changed correction amount input by the user in the correction table, and reflects the changed correction amount in response to the changed correction amount being registered in the correction table. Correct the placement position of the image. Therefore, the special printer driver 29 can save the user the trouble of inputting the changed correction amount each time printing is performed.

[第2実施形態]
本実施形態では、スペシャルプリンタドライバ29が、図3(A)に示される補正テーブルに代えて、図7(A)に示される適正配置テーブルを有する例を説明する。適正配置テーブルは、画像データが示す画像の送り状15における適正な配置位置を示すテーブルである。スペシャルプリンタドライバ29は、取得した画像データが示す画像の配置位置を特定し、特定した配置位置を、適正配置テーブルに示された適正配置位置に移動させる補正を行って、印刷データを生成する。以下、詳しく説明する。
[Second embodiment]
In this embodiment, an example in which the special printer driver 29 has a proper arrangement table shown in FIG. 7A instead of the correction table shown in FIG. 3A will be described. The proper placement table is a table that indicates the proper placement position of the image indicated by the image data on the invoice 15 . A special printer driver 29 identifies the layout position of the image indicated by the acquired image data, corrects the identified layout position to the proper layout position indicated in the proper layout table, and generates print data. A detailed description will be given below.

以下で説明する情報処理装置10、プリンタ11、及びサーバ12の構成は、第1実施形態と同じである。また、アプリケーション33やWEBアプリケーション56の構成も、第1実施形態と同じである。そして、スペシャルプリンタドライバ29の構成は、補正テーブルに代えて適正配置テーブルを有すること以外は、第1実施形態で説明したスペシャルプリンタドライバ29の構成と同じである。 The configurations of the information processing apparatus 10, the printer 11, and the server 12 described below are the same as those of the first embodiment. Also, the configurations of the application 33 and the web application 56 are the same as those of the first embodiment. The configuration of the special printer driver 29 is the same as the configuration of the special printer driver 29 explained in the first embodiment, except that it has an appropriate arrangement table instead of the correction table.

適正配置テーブルは、送り状名、アプリケーション種別、及びブラウザ種別と、適正配置位置及び変更適正配置位置との対応を示すテーブルである。なお、適正配置テーブルに示された項目「適正サイズ」については、変形例5において説明する。 The proper placement table is a table showing the correspondence between invoice names, application types, browser types, and proper placement positions and modified proper placement positions. The item "appropriate size" shown in the appropriate placement table will be described in modification 5. FIG.

送り状名、アプリケーション種別、及びブラウザ種別は、第1実施形態の送り状名、アプリケーション種別、及びブラウザ種別と同じである。 The invoice name, application type, and browser type are the same as the invoice name, application type, and browser type in the first embodiment.

適正配置位置は、画像データが示す画像の適正な配置位置を示す。適正配置位置は、例えば、x方向の座標位置と、y方向の座標位置とで表される。座標位置の原点(0,0)は、例えば、図8(A)に示されるように、送り状15の左上の位置である。 The proper layout position indicates the proper layout position of the image indicated by the image data. The proper arrangement position is represented by, for example, an x-direction coordinate position and a y-direction coordinate position. The origin (0, 0) of the coordinate position is, for example, the upper left position of the invoice 15 as shown in FIG. 8(A).

「デスクトップ版」のアプリケーション種別に対して、「第3適正配置位置」が対応付けられている。また、「WEB版」のアプリケーション種別、かつ「第1ブラウザ」のブラウザ種別に対して、「第1適正配置位置」が対応付けられている。そして、「WEB版」のアプリケーション種別、かつ「第2ブラウザ」のブラウザ種別に対して、「第2適正配置位置」が対応付けられている。アプリケーション種別やブラウザ種別ごとに異なる適正配置位置が設けられるのは、アプリケーション種別やブラウザ種別が相違すると、画像の配置位置だけでなく、フォントや文字サイズなども相違することがあるからである。フォントや文字サイズが変わると、送り状15に対する適正な配置位置も変える必要が生じる。なお、第1適正配置位置と、第2適正配置位置と、第3適正配置位置とのうち、いずれか2つの適正配置位置、或いは全ての適正配置位置が同一の配置位置とされてもよい。 A "third proper layout position" is associated with the "desktop version" application type. Also, the "first proper layout position" is associated with the application type "WEB version" and the browser type "first browser". The "second proper layout position" is associated with the application type "WEB version" and the browser type "second browser". The reason why different appropriate placement positions are provided for each application type and browser type is that if the application type and browser type are different, not only the image placement position but also the font and character size may differ. If the font or character size is changed, it becomes necessary to change the appropriate placement position with respect to the invoice 15 as well. Of the first proper placement position, the second proper placement position, and the third proper placement position, any two proper placement positions or all of the proper placement positions may be the same placement position.

スペシャルプリンタドライバ29は、第1実施形態と同様に、図5に示す処理を実行する。但し、スペシャルプリンタドライバ29は、ステップS21の印刷データ生成処理において、図9に示される印刷データ生成処理を実行する。図9に示される印刷データ生成処理において、図6に示される印刷データ生成処理と同じ処理については、同一の符号を付して説明を省略する。 The special printer driver 29 executes the processing shown in FIG. 5 as in the first embodiment. However, the special printer driver 29 executes the print data generation process shown in FIG. 9 in the print data generation process of step S21. In the print data generation process shown in FIG. 9, the same processes as those in the print data generation process shown in FIG.

まず、スペシャルプリンタドライバ29は、第1実施形態と同様にステップS31の処理を実行し、送り状名、アプリケーション種別、及びブラウザ種別を特定する。そして、スペシャルプリンタドライバ29は、ステップS14或いはステップS17で取得した画像データが、WEBアプリケーション56が生成した第1画像データであるか、アプリケーション33が生成した第2画像であるかを判断する(S33)。 First, the special printer driver 29 executes the process of step S31 as in the first embodiment to specify the invoice name, application type, and browser type. Then, the special printer driver 29 determines whether the image data acquired in step S14 or step S17 is the first image data generated by the web application 56 or the second image generated by the application 33 (S33 ).

スペシャルプリンタドライバ29は、取得した画像データが第2画像データであると判断すると(S33:第2画像データ)、適正配置テーブルに、変更第3適正配置位置が登録されているか否かを判断する(S51)。スペシャルプリンタドライバ29は、変更第3適正配置位置が登録されていると判断すると(S51:Yes)、補正処理に用いる適正配置位置を、適正配置テーブルに登録された変更第3適正配置位置に決定する(S52)。スペシャルプリンタドライバ29は、変更第3適正配置位置が登録されていないと判断すると(S51:No)、補正処理に用いる適正配置位置を、適正配置テーブルに登録された第3適正配置位置に決定する(S53)。 When the special printer driver 29 determines that the acquired image data is the second image data (S33: second image data), the special printer driver 29 determines whether or not the modified third proper layout position is registered in the proper layout table. (S51). When the special printer driver 29 determines that the modified third proper layout position is registered (S51: Yes), it determines the modified third proper layout position registered in the proper layout table as the proper layout position used for the correction process. (S52). When the special printer driver 29 determines that the changed third proper placement position is not registered (S51: No), it determines the third proper placement position registered in the proper placement table as the proper placement position to be used for correction processing. (S53).

スペシャルプリンタドライバ29は、ステップS33において、取得した画像データが第1画像データであると判断すると(S33:第1画像データ)、ブラウザの種類を判断する(S35)。そして、 スペシャルプリンタドライバ29は、ブラウザの種類が第1ブラウザであると判断すると(S35:第1ブラウザ)、適正配置テーブルに、変更第1適正配置位置が登録されているか否かを判断する(S54)。スペシャルプリンタドライバ29は、変更第1適正配置位置が登録されていると判断すると(S54:Yes)、補正処理に用いる適正配置位置を、適正配置テーブルに登録された変更第1適正配置位置に決定する(S55)。スペシャルプリンタドライバ29は、変更第1適正配置位置が登録されていないと判断すると(S54:No)、補正処理に用いる適正配置位置を、適正配置テーブルに登録された第1適正配置位置に決定する(S56)。ステップS33、S35の処理は、取得判断処理の一例である。 When the special printer driver 29 determines in step S33 that the acquired image data is the first image data (S33: first image data), it determines the type of browser (S35). Then, when the special printer driver 29 determines that the browser type is the first browser (S35: first browser), it determines whether or not the changed first proper layout position is registered in the proper layout table ( S54). When the special printer driver 29 determines that the modified first proper layout position is registered (S54: Yes), it determines the modified first proper layout position registered in the proper layout table as the proper layout position to be used for the correction process. (S55). When the special printer driver 29 determines that the changed first proper placement position is not registered (S54: No), it determines the first proper placement position registered in the proper placement table as the proper placement position to be used for correction processing. (S56). The processing of steps S33 and S35 is an example of acquisition determination processing.

スペシャルプリンタドライバ29は、ステップS35において、ブラウザの種類が第2ブラウザであると判断すると(S35:第2ブラウザ)、適正配置テーブルに、変更第2適正配置位置が登録されているか否かを判断する(S57)。スペシャルプリンタドライバ29は、変更第2適正配置位置が登録されていると判断すると(S57:Yes)、補正処理に用いる適正配置位置を、適正配置テーブルに登録された変更第2適正配置位置に決定する(S58)。スペシャルプリンタドライバ29は、変更第2適正配置位置が登録されていないと判断すると(S57:No)、補正処理に用いる適正配置位置を、適正配置テーブルに登録された第2適正配置位置に決定する(S59)。ステップS51、S54、S57の処理は、変更位置判断処理の一例である。 When the special printer driver 29 determines in step S35 that the browser type is the second browser (S35: second browser), it determines whether or not the changed second proper placement position is registered in the proper placement table. (S57). When the special printer driver 29 determines that the modified second proper layout position is registered (S57: Yes), it determines the modified second proper layout position registered in the proper layout table as the proper layout position used for the correction process. (S58). When the special printer driver 29 determines that the changed second proper placement position is not registered (S57: No), it determines the second proper placement position registered in the proper placement table as the proper placement position to be used for the correction process. (S59). The processing of steps S51, S54, and S57 is an example of change position determination processing.

スペシャルプリンタドライバ29は、ステップS52、S53、S55、S56、S58、S59の処理の実行後、取得した画像データが示す画像を、上述の描画プログラムを用いて描画する。そして、スペシャルプリンタドライバ29は、描画した画像の外接矩形を決定する(S60)。図8(A)を参照して外接矩形について説明する。 After executing the processing of steps S52, S53, S55, S56, S58, and S59, the special printer driver 29 draws the image indicated by the acquired image data using the drawing program described above. The special printer driver 29 then determines the bounding rectangle of the drawn image (S60). A circumscribing rectangle will be described with reference to FIG.

外接矩形は、描画プログラムによって描画された画像に外接する矩形である。スペシャルプリンタドライバ29は、描画された画像全体のうち、最も外側に位置する個別画像65に外接する矩形を外接矩形として決定する。図示例では、描画された画像全体のうち、最も外側に位置する個別画像65は、左上の文字「ABC」と、右下の文字「DEF」である。外接矩形は、文字「ABC」及び「DEF」に外接する矩形として決定される。外接矩形で囲まれた領域は、描画領域の一例である。 The bounding rectangle is the rectangle that circumscribes the image drawn by the drawing program. The special printer driver 29 determines, as a circumscribing rectangle, a rectangle circumscribing the outermost individual image 65 among the drawn images. In the illustrated example, the outermost individual images 65 of the entire drawn image are the characters "ABC" on the upper left and the characters "DEF" on the lower right. The bounding rectangle is determined as the rectangle that bounds the characters "ABC" and "DEF". A region surrounded by a circumscribing rectangle is an example of a drawing region.

次に、スペシャルプリンタドライバ29は、外接矩形の配置基準位置を決定する(S61)。配置基準位置は、例えば、決定した外接矩形の左上の座標位置である。外接矩形の配置基準位置は、描画の基準位置の一例である。ステップS61の処理は、決定処理の一例である。 Next, the special printer driver 29 determines the placement reference position of the circumscribing rectangle (S61). The placement reference position is, for example, the upper left coordinate position of the determined circumscribing rectangle. The placement reference position of the circumscribing rectangle is an example of a drawing reference position. The processing of step S61 is an example of determination processing.

スペシャルプリンタドライバ29は、ステップS61で決定した外接矩形の配置基準位置が、ステップS52、S53、S55、S56、S58、S59の処理において決定した適正配置位置或いは変更適正配置位置に一致するように、補正処理及び生成処理を実行する(S62、S63)。具体的には、第1実施形態と同様にして、適正配置位置や変更適正配置位置を反映してベクタコマンドを修正し、或いはラスタ形式の画像データを修正し、或いはプリンタ11に入力するコマンドを生成したりして、印刷データを生成する。 The special printer driver 29 adjusts the layout reference position of the circumscribing rectangle determined in step S61 so that it matches the proper layout position or changed proper layout position determined in steps S52, S53, S55, S56, S58, and S59. Correction processing and generation processing are executed (S62, S63). Specifically, in the same manner as in the first embodiment, the vector command is corrected by reflecting the proper placement position or the changed proper placement position, or the raster format image data is corrected, or the command to be input to the printer 11 is changed. Generate or generate print data.

スペシャルプリンタドライバ29は、図5のステップS18の処理において、補正の種別が「ユーザ指定」であると判断すると(S18:ユーザ指定)、変更補正量の入力を受け付ける(S19)。そして、スペシャルプリンタドライバ29は、ステップS20の処理に代えて、変更適正補配置位置を適正配置テーブルに登録する処理を実行する。具体的には、スペシャルプリンタドライバ29は、入力された変更補正量に基づいて、変更第1適正配置位置、或いは変更第2適正配置位置、或いは変更第3適正配置位置を算出して決定し、決定した変更適正配置位置を適正配置テーブルに登録する。変更適正補配置位置を適正配置テーブルに登録する処理は、変更処理及び記憶処理の一例である。 When the special printer driver 29 determines that the type of correction is "user designation" in the process of step S18 in FIG. 5 (S18: user designation), it accepts input of the changed correction amount (S19). Then, the special printer driver 29 executes a process of registering the modified appropriate complementary placement position in the appropriate placement table instead of the process of step S20. Specifically, the special printer driver 29 calculates and determines a modified first proper layout position, a modified second proper layout position, or a modified third proper layout position based on the input modified correction amount, The determined modified proper placement position is registered in the proper placement table. The process of registering the changed appropriate complementary placement position in the appropriate placement table is an example of the change process and the storage process.

[第2実施形態の作用効果]
スペシャルプリンタドライバ29は、取得した画像データが示す画像の外接矩形の基準配置位置を決定し、決定した基準配置位置が適正配置位置或いは変更適正配置位置に一致するように画像を移動させる。したがって、アプリケーションの種別やブラウザの種別によって生じる画像の適正位置からのずれを低減することができる。
[Action and effect of the second embodiment]
The special printer driver 29 determines the reference layout position of the circumscribing rectangle of the image indicated by the acquired image data, and moves the image so that the determined reference layout position matches the proper layout position or the changed proper layout position. Therefore, it is possible to reduce the deviation of the image from the proper position caused by the type of application or the type of browser.

また、本実施形態では、スペシャルプリンタドライバ29は、適正配置テーブルに登録された適正配置位置を反映して画像の配置位置を補正することもできるし、ユーザが入力した補正量である変更補正量から決定した適正配置位を反映して画像の配置位置を補正することもできる。したがって、スペシャルプリンタドライバ29は、ユーザの選択の幅を広げることができる。 In this embodiment, the special printer driver 29 can also correct the layout position of the image by reflecting the proper layout position registered in the proper layout table, or change the correction amount input by the user. It is also possible to correct the arrangement position of the image by reflecting the proper arrangement position determined from . Therefore, the special printer driver 29 can expand the range of user selection.

また、本実施形態では、スペシャルプリンタドライバ29は、ユーザが入力した変更補正量から決定した変更適正配置位を適正配置テーブルに登録し、変更適正配置位置が適正配置テーブルに登録されていることに応じて、変更適正配置位置を反映して画像の配置位置を補正する。したがって、スペシャルプリンタドライバ29は、印刷のたびに変更補正量を入力するユーザの手間を省くことができる。 In this embodiment, the special printer driver 29 registers the changed proper placement position determined from the change correction amount input by the user in the proper placement table, and confirms that the changed proper placement position is registered in the proper placement table. Accordingly, the arrangement position of the image is corrected by reflecting the changed appropriate arrangement position. Therefore, the special printer driver 29 can save the user the trouble of inputting the changed correction amount each time printing is performed.

[第3実施形態]
本実施形態では、スペシャルプリンタドライバ29は、取得した印刷ジョブに基づいて、画像データを生成したアプリケーションの種別及びブラウザの種別を判断可能な場合に、補正テーブル(図3(A))を用いて画像の配置位置を補正し、画像データを生成したアプリケーションの種別及びブラウザの種別を判断できない場合に、適正配置テーブル(図7(B))を用いて画像の配置位置を補正する。以下、詳しく説明する。
[Third embodiment]
In this embodiment, the special printer driver 29 uses the correction table (FIG. 3A) when it is possible to determine the type of the application that generated the image data and the type of the browser based on the acquired print job. If the image layout position is corrected and the type of the application that generated the image data and the browser type cannot be determined, the proper layout table (FIG. 7B) is used to correct the image layout position. A detailed description will be given below.

以下で説明する情報処理装置10、プリンタ11、及びサーバ12の構成は、第1実施形態と同じである。また、アプリケーション33やWEBアプリケーション56の構成も、第1実施形態と同じである。そして、スペシャルプリンタドライバ29の構成は、第1実施形態で説明した補正テーブルと、図7(B)に示される適正配置テーブルとの両方のテーブルを備える以外は、第1実施形態で説明したスペシャルプリンタドライバ29の構成と同じである。 The configurations of the information processing apparatus 10, the printer 11, and the server 12 described below are the same as those of the first embodiment. Also, the configurations of the application 33 and the web application 56 are the same as those of the first embodiment. The configuration of the special printer driver 29 is the special printer driver described in the first embodiment except that it includes both the correction table described in the first embodiment and the proper arrangement table shown in FIG. The configuration is the same as that of the printer driver 29 .

適正配置テーブルは、送り状名と、適正配置位置及び変更適正配置位置とを対応付けたテーブルである。適正配置テーブルにおいて、第1運送事業者A4と、第4適正配置位置とが対応付けられており、第1運送事業者A5と、第5適正配置位置及び変更適正配置位置とが対応付けられており、第2運送事業者A4と、第6適正配置位置とが対応付けられており、第2運送事業者A5と、第7適正配置位置とが対応付けられている。 The proper placement table is a table in which invoice names are associated with proper placement positions and modified proper placement positions. In the proper placement table, the first carrier A4 is associated with the fourth proper placement position, and the first carrier A5 is associated with the fifth proper placement position and the modified proper placement position. , the second carrier A4 is associated with the sixth proper placement position, and the second carrier A5 is associated with the seventh proper placement position.

スペシャルプリンタドライバ29は、図5に示された処理を実行する。そして、スペシャルプリンタドライバ29は、ステップS21の処理において、図6に示される印刷データ生成処理を実行する。 Special printer driver 29 performs the processing shown in FIG. Then, the special printer driver 29 executes the print data generation process shown in FIG. 6 in the process of step S21.

スペシャルプリンタドライバ29は、図6に示される印刷データ生成処理において、ステップS31の処理の実行後、アプリケーションの種別及びブラウザの種別を特定できたか否かを判断する(S32)。具体的には、スペシャルプリンタドライバ29は、ステップS14、S17(図5)で取得した印刷ジョブにジョブネームが含まれていないことに応じて、アプリケーションの種別及びブラウザの種別を特定できないと判断する。また、スペシャルプリンタドライバ29は、取得した印刷ジョブに含まれるジョブネームが、アプリケーションの種別及びブラウザの種別を特定するための上述の第1情報や第2情報や第3情報や第4情報を有していないことに応じて、アプリケーションの種別及びブラウザの種別を特定できないと判断する。そして、スペシャルプリンタドライバ29は、取得した印刷ジョブに含まれるジョブネームが第1情報や第2情報や第3情報や第4情報を有していることに応じて、アプリケーションの種別及びブラウザの種別を特定できたと判断する。 In the print data generation process shown in FIG. 6, the special printer driver 29 determines whether or not the type of application and the type of browser have been identified after executing the process of step S31 (S32). Specifically, the special printer driver 29 determines that the type of application and the type of browser cannot be specified in response to the fact that the job name is not included in the print job acquired in steps S14 and S17 (FIG. 5). . Also, the special printer driver 29 makes sure that the job name included in the acquired print job has the above-described first information, second information, third information, and fourth information for specifying the type of application and the type of browser. It is determined that the type of application and the type of browser cannot be specified. Then, the special printer driver 29 selects the type of application and the type of browser according to the fact that the job name included in the acquired print job has the first information, second information, third information, or fourth information. is determined to have been identified.

スペシャルプリンタドライバ29は、アプリケーションの種別及びブラウザの種別を特定できたと判断すると(S32:Yes)、第1実施形態と同様にして、ステップS33以降の処理を実行する。スペシャルプリンタドライバ29は、アプリケーションの種別及びブラウザの種別を特定できなかったと判断すると(S32:No)、ステップS31で取得した送り状名と対応付けられた変更適正配置位置が適正配置テーブルに登録されているか否かを判断する(S44)。 When the special printer driver 29 determines that the type of application and the type of browser have been specified (S32: Yes), the processing from step S33 onward is executed in the same manner as in the first embodiment. When the special printer driver 29 determines that the type of application and the type of browser cannot be specified (S32: No), the changed proper placement position associated with the invoice name acquired in step S31 is registered in the proper placement table. It is determined whether or not there is (S44).

スペシャルプリンタドライバ29は、取得した送り状名と対応付けられた変更適正配置位置が適正配置テーブルに登録されていると判断すると(S44:Yes)、当該変更適正配置位置を補正処理(S42)で用いることに決定する(S45)。スペシャルプリンタドライバ29は、取得した送り状名と対応付けられた変更適正配置位置が適正配置テーブルに登録されていないと判断すると(S44:No)、送り状名と対応する適正配置位置を補正処理(S42)で用いることに決定する(S46)。 When the special printer driver 29 determines that the changed proper placement position associated with the acquired invoice name is registered in the proper placement table (S44: Yes), the changed proper placement position is used in the correction process (S42). (S45). When the special printer driver 29 determines that the changed proper placement position associated with the acquired invoice name is not registered in the proper placement table (S44: No), it corrects the proper placement position corresponding to the invoice name (S42). ) (S46).

そして、スペシャルプリンタドライバ29は、ステップS34、S37、S38、S49、S40、S41、S45、S46で決定した補正量、或いは変更補正量、或いは適正配置位置、或いは変更適正配置位置を用いて、第1実施形態や第2実施形態と同様にして、補正処理及び印刷処理を実行する(S42、S43)。適正配置位置を反映して印刷データを生成するステップS43の処理は、第3生成処理の一例である。 Then, the special printer driver 29 uses the correction amount determined in steps S34, S37, S38, S49, S40, S41, S45, and S46, the changed correction amount, the proper placement position, or the changed proper placement position to print the second Correction processing and printing processing are executed in the same manner as in the first embodiment and the second embodiment (S42, S43). The process of step S43 for generating print data reflecting the proper arrangement position is an example of the third generation process.

[第3実施形態の作用効果]
本実施形態では、スペシャルプリンタドライバ29は、アプリケーションの種別及びブラウザの種別を特定できたと判断すると、補正テーブルを用いて画像の配置位置を補正する。したがって、アプリケーションの種別及びブラウザの種別を特定できる場合、外接矩形を決定する処理(S60)や配置基準位置を決定する処理(S61)が省かれる。したがって、本実施形態では、第2実施形態に比べ、アプリケーションの種別及びブラウザの種別を特定できる場合における印刷データの生成時間を短くすることができる。また、本実施形態では、スペシャルプリンタドライバ29は、アプリケーションの種別及びブラウザの種別を特定できなかったと判断すると、適正配置テーブル(図7(B))を用いて適正配置位置を決定する。したがって、アプリケーションの種別及びブラウザの種別を特定できない場合であっても、画像データが示す文字やバーコードなどが、送り状15に既に印刷されている文字61や罫線62や枠線63やミシン目66と重なることを抑制することができる。その結果、画像データが示す文字をユーザが判読できなくなることや、読取装置がバーコードやQRコードを読み取れなくなることが防止される。
[Action and effect of the third embodiment]
In this embodiment, when the special printer driver 29 determines that the type of application and the type of browser have been identified, it corrects the layout position of the image using the correction table. Therefore, when the type of application and the type of browser can be identified, the process of determining the circumscribing rectangle (S60) and the process of determining the layout reference position (S61) are omitted. Therefore, in the present embodiment, it is possible to shorten the print data generation time when the application type and the browser type can be specified, as compared with the second embodiment. Further, in this embodiment, when the special printer driver 29 determines that the application type and browser type cannot be specified, it determines the proper layout position using the proper layout table (FIG. 7B). Therefore, even if the type of application and the type of browser cannot be specified, the characters, barcodes, etc. indicated by the image data can be reproduced by the characters 61, ruled lines 62, frame lines 63, and perforations 66 already printed on the invoice 15. can be suppressed from overlapping with As a result, it is possible to prevent the user from being unable to read the characters indicated by the image data and the reading device from being unable to read the bar code or QR code.

[変形例1]
上述の第1実施形態では、画像データが示す画像全体が移動される例を説明した。本変形例では、画像データが示す個別画像65が個々に移動される例を説明する。
[Modification 1]
In the first embodiment described above, an example in which the entire image indicated by the image data is moved has been described. In this modified example, an example in which individual images 65 indicated by image data are individually moved will be described.

以下で説明する情報処理装置10、プリンタ11、及びサーバ12の構成は、第1実施形態と同じである。また、アプリケーション33やWEBアプリケーション56の構成も、第1実施形態と同じである。そして、スペシャルプリンタドライバ29の構成は、第1実施形態で説明した補正テーブル(図3(A))に代えて、図3(B)に示される補正テーブルを備える以外は、第1実施形態で説明したスペシャルプリンタドライバ29の構成と同じである。 The configurations of the information processing apparatus 10, the printer 11, and the server 12 described below are the same as those of the first embodiment. Also, the configurations of the application 33 and the web application 56 are the same as those of the first embodiment. The configuration of the special printer driver 29 is similar to that of the first embodiment except that it has a correction table shown in FIG. 3B instead of the correction table shown in FIG. 3A. The configuration is the same as that of the special printer driver 29 described above.

図3(B)に示される補正テーブルは、アプリケーション種別、ブラウザ種別、及び印刷領域種別と、補正量及び変更補正量との対応を示すテーブルである。アプリケーション種別、ブラウザ種別、補正量、及び変更補正量については、第1実施形態で説明したアプリケーション種別、ブラウザ種別、補正量、及び変更補正量と同じである。 The correction table shown in FIG. 3B is a table showing the correspondence between the application type, browser type, print area type, correction amount, and change correction amount. The application type, browser type, correction amount, and change correction amount are the same as the application type, browser type, correction amount, and change correction amount described in the first embodiment.

印刷領域種別は、図2に示す送り状15の各印刷領域64を示す。例えば、項目「印刷領域種別」の第1印刷領域は、宛先住所を示す個別画像65が印刷される印刷領域64を示す。第2印刷領域は、バーコードを示す個別画像65が印刷される印刷領域64を示す。第3印刷領域は、QRコードを示す個別画像65が印刷される印刷領域64を示す。第4印刷領域は、依頼主名を示す個別画像65が印刷される印刷領域64を示す。すなわち、補正テーブルでは、送り状15が有する複数の印刷領域64の個々に対して、補正量がそれぞれ対応付けられている。具体的には、送り状名が「第1運送事業者A4」であって、アプリケーション種別が「WEB版」であって、かつブラウザ種別が「第1ブラウザ」である場合の各印刷領域64と、第1補正量とが対応付けられている。また、送り状名が「第1運送事業者A4」であって、アプリケーション種別が「WEB版」であって、かつブラウザ種別が「第2ブラウザ」である場合の各印刷領域64と、第2補正量とが対応付けられている。 The print area type indicates each print area 64 of the invoice 15 shown in FIG. For example, the first print area of the item "print area type" indicates the print area 64 in which the individual image 65 indicating the destination address is printed. A second print area indicates a print area 64 in which an individual image 65 representing a barcode is printed. A third print area indicates a print area 64 in which an individual image 65 representing a QR code is printed. A fourth print area indicates a print area 64 in which an individual image 65 indicating the client's name is printed. That is, in the correction table, each of the plurality of print areas 64 of the invoice 15 is associated with a correction amount. Specifically, each print area 64 when the invoice name is "first carrier A4", the application type is "WEB version", and the browser type is "first browser", and the first correction amount. In addition, each print area 64 and the second correction associated with the quantity.

なお、送り状15が有する全ての印刷領域64に対して、それぞれ補正量が設定されている。 A correction amount is set for each printing area 64 included in the invoice 15 .

また、第1補正量及び第2補正量は、第3補正量を基準として設定されている。すなわち、WEBアプリケーション56の補正量は、デスクトップ版のアプリケーションであるアプリケーション33を基準として設定されている。 Also, the first correction amount and the second correction amount are set based on the third correction amount. That is, the amount of correction for the web application 56 is set based on the application 33, which is the desktop version of the application.

スペシャルプリンタドライバ29は、図6の印刷データ生成処理において、補正処理及び生成処理(S42、S43)で用いる補正量を第1補正量、第2補正量、第1変更補正量、或いは第2変更補正量に決定した場合、各個別画像65がそれぞれ移動されるように、第1実施形態と同様にして、決定した補正量を反映して印刷データを生成する。すなわち、各個別画像65が、それぞれ異なる補正量で移動される。なお、各印刷領域64にそれぞれ対応付けて設定された各補正量が同一の値にされていてもよい。 The special printer driver 29 selects the correction amount used in the correction process and the generation process (S42, S43) in the print data generation process of FIG. When the correction amount is determined, print data is generated reflecting the determined correction amount in the same manner as in the first embodiment so that each individual image 65 is moved. That is, each individual image 65 is moved by a different amount of correction. Note that each correction amount set in association with each printing area 64 may be set to the same value.

本変形例では、送り状15の各印刷領域64にそれぞれ印刷される個別画像65の配置位置を個々に補正することができる。 In this modified example, it is possible to individually correct the arrangement positions of the individual images 65 to be printed in the respective print areas 64 of the invoice 15 .

[変形例2]
上述の変形例1では、送り状15が有する全ての印刷領域64に対して、それぞれ補正量が設定される例を説明した。本変形例では、送り状15が有する特定の印刷領域64に対してのみ補正量が設定される例を説明する。
[Modification 2]
In the first modified example described above, an example in which the correction amount is set for each of the print areas 64 included in the invoice 15 has been described. In this modified example, an example in which the correction amount is set only for a specific print area 64 of the invoice 15 will be described.

補正量が設定される印刷領域64は、例えば、バーコードやQRコードなど、読取装置に読み取られる個別画像65が印刷される印刷領域64である。或いは、罫線62や枠線63やミシン目66の近傍に位置する印刷領域64である。すなわち、印刷される文字が罫線62や枠線63やミシン目66と重なると判読できなくなるおそれがあるので、罫線62や枠線63やミシン目66の近傍に印刷される個別画像65については、配置位置が補正される。また、印刷されるバーコードやQRコードが罫線62や枠線63やミシン目66と重なると、読取装置で読み取れなくなるおそれがあるので、罫線62や枠線63やミシン目66の近傍に印刷されるバーコード等の個別画像65については、配置位置が補正される。 The print area 64 in which the correction amount is set is, for example, a print area 64 in which an individual image 65 read by a reading device such as a barcode or QR code is printed. Alternatively, it is the print area 64 positioned near the ruled line 62 , the frame line 63 , or the perforation 66 . That is, if the printed characters overlap the ruled lines 62, the frame lines 63, or the perforations 66, they may become illegible. The placement position is corrected. Also, if the printed bar code or QR code overlaps the ruled line 62, the frame line 63, or the perforation 66, it may not be read by the reading device. The layout position of the individual image 65 such as a bar code is corrected.

第1補正量及び第2補正量は、例えば、個別画像が、罫線62や枠線63やミシン目66に重ならないように設定される。 The first correction amount and the second correction amount are set, for example, so that the individual image does not overlap the ruled line 62 , the frame line 63 , or the perforation 66 .

スペシャルプリンタドライバ29は、図6の印刷データ生成処理において、補正処理及び生成処理(S42、S43)で用いる補正量を第1補正量、第2補正量、第1変更補正量、或いは第2変更補正量に決定した場合、第1実施形態と同様にして、決定した補正量を反映して印刷データを生成する。 The special printer driver 29 selects the correction amount used in the correction process and the generation process (S42, S43) in the print data generation process of FIG. When the correction amount is determined, print data is generated reflecting the determined correction amount in the same manner as in the first embodiment.

本変形例では、判読できなくなるおそれのある文字の個別画像65や、読取装置で読み取れないと支障が生じるバーコードやQRコードなどの個別画像65の配置位置が補正される。したがって、全ての個別画像65の配置位置を個々に補正する場合(変形例1)よりも、印刷データの生成に要する時間を短くすることができる。 In this modified example, the arrangement positions of individual images 65 of characters that may become illegible, and individual images 65 such as bar codes and QR codes that are problematic if they cannot be read by a reading device are corrected. Therefore, the time required to generate the print data can be shortened as compared with the case where the arrangement positions of all the individual images 65 are individually corrected (Modification 1).

[変形例3]
上述の第2実施形態では、画像データが示す画像全体が移動される例を説明した。本変形例では、画像データが示す個別画像65が個々に移動される例を説明する。
[Modification 3]
In the second embodiment described above, an example in which the entire image indicated by the image data is moved has been described. In this modified example, an example in which individual images 65 indicated by image data are individually moved will be described.

以下で説明する情報処理装置10、プリンタ11、及びサーバ12の構成は、第1実施形態と同じである。また、アプリケーション33やWEBアプリケーション56の構成も、第1実施形態と同じである。そして、スペシャルプリンタドライバ29の構成は、第2実施形態で説明した適正配置テーブル(図7(A))に代えて、図10に示される適正配置テーブルを備える以外は、第2実施形態で説明したスペシャルプリンタドライバ29の構成と同じである。 The configurations of the information processing apparatus 10, the printer 11, and the server 12 described below are the same as those of the first embodiment. Also, the configurations of the application 33 and the web application 56 are the same as those of the first embodiment. The configuration of the special printer driver 29 will be described in the second embodiment, except that it has a proper layout table shown in FIG. 10 instead of the proper layout table (FIG. 7A) described in the second embodiment. The configuration is the same as that of the special printer driver 29 described above.

図10に示される適正配置テーブルは、アプリケーション種別、ブラウザ種別、及び印刷領域種別と、適正配置位置及び変更適正配置位置との対応を示すテーブルである。アプリケーション種別、ブラウザ種別、補正量、及び変更補正量については、第2実施形態で説明したアプリケーション種別、ブラウザ種別、補正量、及び変更補正量と同じである。 The proper placement table shown in FIG. 10 is a table showing the correspondence between application types, browser types, and print area types, and proper placement positions and modified proper placement positions. The application type, browser type, correction amount, and change correction amount are the same as the application type, browser type, correction amount, and change correction amount described in the second embodiment.

印刷領域種別は、変形例1で説明した印刷領域種別と同じである。すなわち、適正配置テーブルでは、送り状15が有する複数の印刷領域64の個々に対して、適正配置位置がそれぞれ対応付けられている。具体的には、送り状名が「第1運送事業者A4」であって、アプリケーション種別が「WEB版」であって、かつブラウザ種別が「第1ブラウザ」である場合の各印刷領域64と、第1適正配置位置とが対応付けられている。また、送り状名が「第1運送事業者A4」であって、アプリケーション種別が「WEB版」であって、かつブラウザ種別が「第2ブラウザ」である場合の各印刷領域64と、第2適正配置位置とが対応付けられている。また、アプリケーション種別が「デスクトップ版」である場合の各印刷領域64と、第3適正配置位置とが対応付けられている。 The print area type is the same as the print area type described in the first modification. That is, in the proper placement table, each of the plurality of print areas 64 of the invoice 15 is associated with a proper placement position. Specifically, each print area 64 when the invoice name is "first carrier A4", the application type is "WEB version", and the browser type is "first browser", 1st proper arrangement position is matched. In addition, each print area 64 and the second proper Layout positions are associated with each other. Further, each print area 64 when the application type is "desktop version" is associated with the third proper layout position.

なお、送り状15が有する全ての印刷領域64に対して、それぞれ適正配置位置が設定される。 Appropriate layout positions are set for all the print areas 64 of the invoice 15 .

スペシャルプリンタドライバ29は、図9の印刷データ生成処理のステップS60において、個別画像65の外接矩形を決定する。図8(B)、(C)を参照して説明する。図8(B)は、文字「GHI」の個別画像65を示す。図8(C)は、バーコードの個別画像65を示す。スペシャルプリンタドライバ29は、描画プログラムを用いて、画像データが示す画像を描画する。そして、スペシャルプリンタドライバ29は、描画した各個別画像について、外接矩形及び外接矩形の配置基準位置をそれぞれ決定する。 The special printer driver 29 determines the circumscribed rectangle of the individual image 65 in step S60 of the print data generation process of FIG. Description will be made with reference to FIGS. FIG. 8B shows an individual image 65 of the characters "GHI". FIG. 8C shows an individual image 65 of the barcode. The special printer driver 29 uses a drawing program to draw the image indicated by the image data. Then, the special printer driver 29 determines the circumscribing rectangle and the arrangement reference position of the circumscribing rectangle for each drawn individual image.

スペシャルプリンタドライバ29は、図9のステップS62、S63の補正処理及び生成処理において、決定した外接矩形の配置基準位置が、適正配置テーブルから選択した適正配置位置或いは変更適正配置位置に一致するように、第1実施形態と同様にして補正処理及び生成処理を実行して印刷データを生成する。 The special printer driver 29 adjusts the determined placement reference position of the circumscribing rectangle in the correction processing and generation processing of steps S62 and S63 in FIG. , the correction process and the generation process are executed in the same manner as in the first embodiment to generate print data.

本変形例では、送り状15の各印刷領域64にそれぞれ印刷される個別画像65の配置位置を個々に補正することができる。 In this modified example, it is possible to individually correct the arrangement positions of the individual images 65 to be printed in the respective print areas 64 of the invoice 15 .

[変形例4]
上述の変形例3では、送り状15が有する全ての印刷領域64に対して、それぞれ適正配置位置が設定される例を説明した。本変形例では、送り状15が有する特定の印刷領域64に対してのみ適正配置位置が設定される例を説明する。適正配置位置が設定される特定の印刷領域64は、特定印刷領域の一例である。
[Modification 4]
In the third modified example described above, an example was described in which the appropriate arrangement positions are set for all the print areas 64 of the invoice 15 . In this modified example, an example will be described in which the proper layout position is set only for a specific print area 64 of the invoice 15 . The specific print area 64 for which the proper layout position is set is an example of the specific print area.

適正配置位置が設定される印刷領域64は、例えば、バーコードやQRコードなど、読取装置に読み取られる個別画像65が印刷される印刷領域64である。或いは、罫線62や枠線63やミシン目66の近傍に位置する印刷領域64である。すなわち、印刷される文字が罫線62や枠線63やミシン目66と重なると判読できなくなるおそれがあるので、罫線62や枠線63やミシン目66の近傍に印刷される個別画像65については、配置位置が補正される。また、印刷されるバーコードやQRコードが罫線62や枠線63やミシン目66と重なると、読取装置で読み取れなくなるおそれがあるので、罫線62や枠線63やミシン目66の近傍に印刷されるバーコードなどの個別画像65については、配置位置が補正される。 The print area 64 in which the proper arrangement position is set is, for example, the print area 64 in which an individual image 65 read by a reading device, such as a barcode or QR code, is printed. Alternatively, it is the print area 64 positioned near the ruled line 62 , the frame line 63 , or the perforation 66 . That is, if the printed characters overlap the ruled lines 62, the frame lines 63, or the perforations 66, they may become illegible. The placement position is corrected. Also, if the printed bar code or QR code overlaps the ruled line 62, the frame line 63, or the perforation 66, it may not be read by the reading device. The placement position of the individual image 65 such as a bar code is corrected.

第1適正配置位置及び第2適正配置位置は、例えば、個別画像が、罫線62や枠線63やミシン目66に重ならないように設定される。 The first proper placement position and the second proper placement position are set, for example, so that the individual image does not overlap the ruled line 62 , the frame line 63 , or the perforation 66 .

スペシャルプリンタドライバ29は、図9の印刷データ生成処理において、補正処理(S62)で用いる適正配置位置を第1適正配置位置、第2適正配置位置、第1変更適正配置位置、或いは第2変更適正配置位置に決定した場合、決定した適正配置位置で、適正配置位置が設定されている印刷領域64に印刷される個別画像65のみを移動させる。 In the print data generation process of FIG. 9, the special printer driver 29 selects the proper layout position used in the correction process (S62) as the first proper layout position, the second proper layout position, the first modified proper layout position, or the second modified proper layout position. When the layout position is determined, only the individual image 65 to be printed in the printing area 64 for which the proper layout position is set is moved to the determined proper layout position.

本変形例では、判読できなくなるおそれのある文字の個別画像65や、読取装置で読み取れなくなると支障が生じるバーコードやQRコードなどの個別画像65の配置位置が補正される。したがって、全ての個別画像65の配置位置を個々に補正する場合(変形例1)よりも、印刷データの生成に要する時間を短くすることができる。 In this modified example, the arrangement positions of individual images 65 of characters that may become illegible, and individual images 65 such as barcodes and QR codes that may cause problems if they cannot be read by a reading device are corrected. Therefore, the time required to generate the print data can be shortened as compared with the case where the arrangement positions of all the individual images 65 are individually corrected (Modification 1).

なお、補正される印刷領域64は、宛先住所が印刷される印刷領域64のみであってもよい。 The print area 64 to be corrected may be only the print area 64 in which the destination address is printed.

[変形例5]
第2実施形態では、画像データが示す画像の配置位置が適正配置位置に補正される例を説明した。本変形例では、画像データが示す画像の配置位置だけでなく、サイズも補正される例を説明する。
[Modification 5]
In the second embodiment, an example in which the arrangement position of the image indicated by the image data is corrected to the proper arrangement position has been described. In this modified example, an example will be described in which not only the arrangement position of the image indicated by the image data but also the size is corrected.

図7(A)に示される適正配置テーブルは、項目「適正サイズ」を有する。項目「適正サイズ」は、第1運送事業者A4及びデスクトップ版と対応付けられた第3適正サイズと、第1運送事業者A4、WEB版、及び第1ブラウザと対応付けられた第1適正サイズと、第1運送事業者A4、WEB版、及び第2ブラウザと対応付けられた第2適正サイズと、を有する。なお、アプリケーション種別やブラウザ種別に応じて異なる適正サイズが設定されるのは、アプリケーション種別やブラウザ種別に応じて文字のフォントや文字のサイズなどが変わることがあるからである。 The proper placement table shown in FIG. 7A has an item “proper size”. The item "appropriate size" includes the third appropriate size associated with the first carrier A4 and the desktop version, and the first appropriate size associated with the first carrier A4, the WEB version, and the first browser. and a second appropriate size associated with the first carrier A4, the WEB version, and the second browser. The reason why different proper sizes are set according to the application type and browser type is that the character font and character size may change depending on the application type and browser type.

スペシャルプリンタドライバ29は、図9の印刷データ生成処理において、適正配置位置或いは変更適正配置位置とともに、適正配置テーブルから適正サイズを選択する。そして、スペシャルプリンタドライバ29は、ステップS60の実行後であって、ステップS62の補正処理の実行前に、ステップS60で決定した外接矩形のサイズである実サイズを特定する。スペシャルプリンタドライバ29は、特定した実サイズが、適正配置テーブルから選択した適正サイズに一致するように、画像データが示す画像を拡大或いは縮小する。具体的には、第1実施形態と同様にして、選択した適正サイズを用いて、画像のサイズを示すベクタコマンドを修正し、或いはラスタ形式の画像データを修正し、或いはプリンタ11に入力するコマンドを生成したりして、印刷データを生成する。その後、スペシャルプリンタドライバ29は、ステップS62以降の処理を実行する。 The special printer driver 29 selects the proper size from the proper placement table along with the proper placement position or the changed proper placement position in the print data generation process of FIG. Then, the special printer driver 29 specifies the actual size, which is the size of the circumscribing rectangle determined in step S60, after executing step S60 and before executing the correction processing in step S62. The special printer driver 29 enlarges or reduces the image indicated by the image data so that the specified actual size matches the proper size selected from the proper layout table. Specifically, as in the first embodiment, the selected appropriate size is used to correct the vector command indicating the size of the image, or to correct the raster format image data, or to input the command to the printer 11. to generate print data. After that, the special printer driver 29 executes the processes after step S62.

本変形例のスペシャルプリンタドライバ29は、画像データが示す画像の配置位置だけでなく、画像のサイズも適正サイズに補正することができる。 The special printer driver 29 of this modified example can correct not only the layout position of the image indicated by the image data, but also the size of the image to an appropriate size.

[変形例6]
上述の変形例5では、画像データが示す画像全体のサイズが適正サイズに補正される例を説明した。本変形例では、個別画像65のサイズが適正サイズに補正される例を説明する。
[Modification 6]
In the fifth modification described above, an example in which the size of the entire image indicated by the image data is corrected to an appropriate size has been described. In this modified example, an example in which the size of the individual image 65 is corrected to an appropriate size will be described.

本変形例では、変形例4で説明した図10に示される適正位置テーブルにおいて、項目「適正サイズ」が追加される。項目「適正サイズ」は、項目「印刷領域種別」の各印刷領域にそれぞれ対応付けられた複数の適正サイズを有する。 In this modified example, the item "appropriate size" is added to the appropriate position table shown in FIG. 10 described in the fourth modified example. The item "appropriate size" has a plurality of appropriate sizes each associated with each print area of the item "print area type".

スペシャルプリンタドライバ29は、適正配置位置或いは変更適正配置位置とともに、適正サイズを適正配置テーブルから選択する。そして、スペシャルプリンタドライバ29は、図9のステップS60において、個別画像65の外接矩形を決定するとともに、個別画像の外接矩形のサイズである実サイズを特定する。スペシャルプリンタドライバ29は、特定した実サイズが、適正配置テーブルから選択した適正サイズに一致するように、第1実施形態と同様にして印刷データを生成する(S62、S63)。 The special printer driver 29 selects the proper size from the proper placement table along with the proper placement position or modified proper placement position. Then, in step S60 of FIG. 9, the special printer driver 29 determines the circumscribing rectangle of the individual image 65 and specifies the actual size, which is the size of the circumscribing rectangle of the individual image. The special printer driver 29 generates print data in the same manner as in the first embodiment so that the specified actual size matches the proper size selected from the proper placement table (S62, S63).

本変形例のスペシャルプリンタドライバ29は、画像データが示す画像の配置位置だけでなく、個別画像65のサイズもそれぞれ補正することができる。 The special printer driver 29 of this modification can correct not only the position of the image indicated by the image data, but also the size of the individual image 65 .

なお、スペシャルプリンタドライバ29は、罫線62や枠線63やミシン目66などに重なるおそれのある印刷領域64の近傍に位置する特定の印刷領域64に印刷される個別画像65のみ、実サイズを適正サイズに縮小する補正を行ってもよい。 Note that the special printer driver 29 properly adjusts the actual size of only the individual image 65 to be printed in a specific print area 64 located near the print area 64 that may overlap with the ruled lines 62, the frame lines 63, the perforations 66, and the like. Correction may be made to reduce the size.

[その他の変形例]
上述の実施形態第や変形例では、描画プログラムを用いて画像データが示す画像を描画し、描画した画像の外接矩形及び外接矩形の配置基準位置を決定して画像の配置位置を適正配置位置に補正する例を説明した。しかしながら、画像の配置位置を補正可能であれば、他の手法が用いられてもよい。
[Other variations]
In the above-described embodiment and modifications, the drawing program is used to draw the image indicated by the image data, the circumscribing rectangle of the drawn image and the layout reference position of the circumscribing rectangle are determined, and the layout position of the image is adjusted to the proper layout position. An example of correction has been described. However, other techniques may be used as long as the arrangement position of the image can be corrected.

上述の実施形態では、特定シートの一例として送り状15を説明した。しかしながら、特定シートは、葉書やカードなどであってもよい。 In the above-described embodiment, the invoice 15 has been described as an example of the specific sheet. However, the specific sheet may be a postcard, card, or the like.

上述の実施形態では、情報処理装置10に標準プリンタドライバ28及びスペシャルプリンタドライバ29の両方のプリンタドライバが実装される例を説明した。しかしながら、情報処理装置10には、スペシャルプリンタドライバ29のみが実装されていてもよい。 In the above-described embodiment, an example in which both the standard printer driver 28 and the special printer driver 29 are installed in the information processing apparatus 10 has been described. However, only the special printer driver 29 may be installed in the information processing apparatus 10 .

上述の実施形態では、WEBアプリケーション56がプラグインプログラムを用いて画像データを生成する例を説明した。しかしながら、WEBアプリケーション56が情報処理装置10から入力文字等をインターネット14を通じて取得して画像データを生成する場合についても、実施形態と同様にして画像の配置位置が補正されてもよい。その場合、WEBアプリケーション56が画像データをブラウザを用いずに生成する場合の補正量や適正配置位置が補正テーブルや適正配置テーブルに設けられる。 In the above-described embodiment, an example has been described in which the web application 56 generates image data using a plug-in program. However, even when the web application 56 acquires input characters and the like from the information processing apparatus 10 through the Internet 14 and generates image data, the arrangement position of the image may be corrected in the same manner as in the embodiment. In this case, the correction amount and the proper arrangement position for the case where the web application 56 generates the image data without using the browser are provided in the correction table and the proper arrangement table.

上述の実施形態では、補正テーブルや適正配置テーブルにおいて、ブラウザの種類が第1ブラウザ31及び第2ブラウザ32の2種類である例を説明した。しかしながら、補正テーブルや適正配置テーブルにおいて、3種類以上のブラウザに対応つけて補正量や適正配置位置が登録されていてもよい。 In the above-described embodiment, examples were described in which there are two types of browsers, the first browser 31 and the second browser 32, in the correction table and the proper placement table. However, in the correction table and proper placement table, correction amounts and proper placement positions may be registered in association with three or more types of browsers.

上述の実施形態では、第1補正量、第2補正量、及び第3補正量が、アプリケーション種別「デスクトップ版」の場合の画像の配置位置を基準として決められた例が説明された。すなわち、第3補正量が(0,0)となって、画像データを生成したアプリケーションの種別が「デスクトップ版」である場合に、画像データが示す画像を移動させる処理が不要となる例が説明された。しかしながら、第3補正量が(0,0)以外であってもよい。その場合、アプリケーションの種別が「デスクトップ版」である場合にも、画像データが示す画像を移動させる処理を行ってよい。この場合でも、第1補正量、第2補正量はいずれも、第3補正量に対して異なる値であると言える。 In the above-described embodiment, an example has been described in which the first correction amount, the second correction amount, and the third correction amount are determined based on the layout position of the image in the case of the application type "desktop version". That is, when the third correction amount is (0, 0) and the type of the application that generated the image data is the "desktop version", the process of moving the image indicated by the image data is unnecessary. was done. However, the third correction amount may be other than (0, 0). In that case, even if the application type is "desktop version", the process of moving the image indicated by the image data may be performed. Even in this case, it can be said that both the first correction amount and the second correction amount have different values with respect to the third correction amount.

また、第1補正量、第2補正量、及び第3補正量は、アプリケーション種別「WEB版」かつブラウザ種別「第1ブラウザ」の場合の画像の配置位置を基準として決められていてもよい。その場合、第1補正量が(0,0)となる。或いは、第1補正量、第2補正量、及び第3補正量は、アプリケーション種別「WEB版」かつブラウザ種別「第2ブラウザ」の場合の画像の配置位置を基準として決められていてもよい。その場合、第2補正量が(0,0)となる。さらに或いは、第1補正量、第2補正量、及び第3補正量は、仮想的な配置位置を基準として決められていてもよい。その場合、第1補正量、第2補正量、及び第3補正量は、いずれも(0,0)以外の値となる。 Also, the first correction amount, the second correction amount, and the third correction amount may be determined based on the layout position of the image in the case of the application type "WEB version" and the browser type "first browser". In that case, the first correction amount is (0, 0). Alternatively, the first correction amount, the second correction amount, and the third correction amount may be determined based on the layout position of the image in the case of the application type "WEB version" and the browser type "second browser". In that case, the second correction amount is (0, 0). Further alternatively, the first correction amount, the second correction amount, and the third correction amount may be determined based on the virtual arrangement position. In that case, the first correction amount, the second correction amount, and the third correction amount are all values other than (0, 0).

上述の実施形態では、印刷ジョブのジョブネームを用いて、画像データを生成したアプリケーションの種別及びブラウザの種別をスペシャルプリンタドライバ29が判断する例を説明した。しかしながら、画像データを生成したアプリケーションの種別及びブラウザの種別を判断可能であれば、スペシャルプリンタドライバ29は、どのようにしてアプリケーションの種別及びブラウザの種別を判断してもよい。例えば、スペシャルプリンタドライバ29は、外接矩形の基準配置位置の座標位置によって、画像データを生成したアプリケーションの種別及びブラウザの種別を判断してもよい。その場合、スペシャルプリンタドライバ29は、判断基準となる座標位置を予め有している。判断基準となる座標位置は、例えば、種々の種別のアプリケーション及びブラウザを用いて画像データが示す画像をプリンタ11に実際に印刷させることにより、決定される。或いは、スペシャルプリンタドライバ29は、画像データに含まれる描画命令などの所定の命令の種別によって、画像データを生成したアプリケーションの種別及びブラウザの種別を判断してもよい。さらに或いは、スペシャルプリンタドライバ29は、アプリケーションの種別及びブラウザの種別をユーザに入力させる入力画面をディスプレイ41に表示させ、ユーザの入力に基づいて、アプリケーションの種別及びブラウザの種別を判断してもよい。 In the above-described embodiment, an example has been described in which the special printer driver 29 determines the type of application and the type of browser that generated the image data using the job name of the print job. However, if it is possible to determine the type of application and the type of browser that generated the image data, the special printer driver 29 may determine the type of application and the type of browser. For example, the special printer driver 29 may determine the type of application and the type of browser that generated the image data based on the coordinate position of the reference layout position of the circumscribing rectangle. In that case, the special printer driver 29 has in advance the coordinate position that serves as a judgment reference. The coordinate position used as the judgment reference is determined, for example, by causing the printer 11 to actually print the image indicated by the image data using various types of applications and browsers. Alternatively, the special printer driver 29 may determine the type of application and the type of browser that generated the image data based on the type of a predetermined command such as a drawing command included in the image data. Alternatively, the special printer driver 29 may cause the display 41 to display an input screen for allowing the user to input the type of application and the type of browser, and determine the type of application and the type of browser based on the user's input. .

10・・・情報処理装置
11・・・プリンタ
12・・・サーバ
15・・・送り状
22・・・CPU
29・・・スペシャルプリンタドライバ
33・・・アプリケーション
56・・・WEBアプリケーション
10... Information processing apparatus 11... Printer 12... Server 15... Invoice 22... CPU
29 Special printer driver 33 Application 56 WEB application

Claims (32)

情報処理装置のコンピュータによって実行されるプログラムであって、
アプリケーションが生成した画像データを取得する取得処理と、
取得した前記画像データを用いて、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、
前記生成処理は、前記アプリケーションである第1アプリケーションが生成した前記画像データである第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を補正する補正処理を含み、前記補正処理による前記配置位置の補正量は、前記アプリケーションである第2アプリケーションが生成する前記画像データである第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なり、
取得した前記画像データが前記第1画像データであるか前記第2画像データであるかを判断する判断処理を前記コンピュータにさらに実行させ、
取得した前記画像データが前記第1画像データであると判断したことに応じて、前記補正処理を前記コンピュータに実行させるプログラム。
A program executed by a computer of an information processing device,
Acquisition processing for acquiring image data generated by an application;
causing the computer to execute a generation process of generating print data that can be printed by a printer using the acquired image data;
The generating process includes a correction process of correcting an arrangement position of the image indicated by the first image data in response to acquisition of the first image data, which is the image data generated by the first application. and the correction amount of the arrangement position by the correction process differs by a predetermined amount from the correction amount of the arrangement position of the image indicated by the second image data which is the image data generated by the second application which is the application. ,
causing the computer to further execute determination processing for determining whether the acquired image data is the first image data or the second image data;
A program for causing the computer to execute the correction process in response to determining that the acquired image data is the first image data.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データを用いて、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to execute a generation process of generating print data that can be printed by a printer using the acquired image data;
前記生成処理は、前記アプリケーションである第1アプリケーションが生成した前記画像データである第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を補正する補正処理を含み、前記補正処理による前記配置位置の補正量は、前記アプリケーションである第2アプリケーションが生成する前記画像データである第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なり、The generating process includes a correction process of correcting an arrangement position of the image indicated by the first image data in response to acquisition of the first image data, which is the image data generated by the first application. , the correction amount of the arrangement position by the correction process differs by a predetermined amount from the correction amount of the arrangement position of the image indicated by the second image data which is the image data generated by the second application which is the application;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
前記特定シートは、前記印刷領域を区画する枠線とミシン目との少なくとも一方を有しており、The specific sheet has at least one of a frame line and a perforation that divide the printing area,
前記画像は、読取装置によって読み取られるコードを示すコード画像を含み、the image includes a code image representing a code to be read by a reading device;
前記補正処理において、前記コード画像の配置位置が前記枠線上或いは前記ミシン目上とならないように前記第1画像データが示す画像の配置位置を補正するプログラム。A program for correcting the arrangement position of the image indicated by the first image data so that the arrangement position of the code image is not on the frame line or the perforation in the correction process.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データを用いて、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to execute a generation process of generating print data that can be printed by a printer using the acquired image data;
前記生成処理は、前記アプリケーションである第1アプリケーションが生成した前記画像データである第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を補正する補正処理を含み、前記補正処理による前記配置位置の補正量は、前記アプリケーションである第2アプリケーションが生成する前記画像データである第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なり、The generating process includes a correction process of correcting an arrangement position of the image indicated by the first image data in response to acquisition of the first image data, which is the image data generated by the first application. , the correction amount of the arrangement position by the correction process differs by a predetermined amount from the correction amount of the arrangement position of the image indicated by the second image data which is the image data generated by the second application which is the application;
前記第2アプリケーションは、情報処理装置に実装されて当該情報処理装置のコンピュータによって実行されるアプリケーションであり、the second application is an application installed in an information processing device and executed by a computer of the information processing device;
前記第1アプリケーションは、情報処理装置とインターネットを通じて通信可能なサーバに実装されて当該サーバのコンピュータによって実行されるアプリケーションであり、The first application is an application that is installed in a server that can communicate with the information processing device via the Internet and that is executed by a computer of the server,
前記補正処理において、前記第1アプリケーションが生成した前記第1画像データが示す画像の配置位置を、前記補正量で補正するプログラム。A program for correcting an arrangement position of an image indicated by the first image data generated by the first application with the correction amount in the correction process.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データを用いて、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to execute a generation process of generating print data that can be printed by a printer using the acquired image data;
前記生成処理は、前記アプリケーションである第1アプリケーションが生成した前記画像データである第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を補正する補正処理を含み、前記補正処理による前記配置位置の補正量は、前記アプリケーションである第2アプリケーションが生成する前記画像データである第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なり、The generating process includes a correction process of correcting an arrangement position of the image indicated by the first image data in response to acquisition of the first image data, which is the image data generated by the first application. , the correction amount of the arrangement position by the correction process differs by a predetermined amount from the correction amount of the arrangement position of the image indicated by the second image data which is the image data generated by the second application which is the application;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
前記特定シートは、少なくとも送り先の住所を示す前記画像が印刷される前記印刷領域を有する送り状であり、The specific sheet is an invoice having at least the printing area on which the image indicating the address of the destination is printed,
前記補正処理において、前記住所を示す前記画像の配置位置を、前記補正量で補正するプログラム。A program for correcting, in the correction process, the arrangement position of the image showing the address with the correction amount.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データを用いて、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to execute a generation process of generating print data that can be printed by a printer using the acquired image data;
前記生成処理は、前記アプリケーションである第1アプリケーションが生成した前記画像データである第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を補正する補正処理を含み、前記補正処理による前記配置位置の補正量は、前記アプリケーションである第2アプリケーションが生成する前記画像データである第2画像データが示す画像の配置位置の補正量に対し、所定の量だけ異なり、The generating process includes a correction process of correcting an arrangement position of the image indicated by the first image data in response to acquisition of the first image data, which is the image data generated by the first application. , the correction amount of the arrangement position by the correction process differs by a predetermined amount from the correction amount of the arrangement position of the image indicated by the second image data which is the image data generated by the second application which is the application;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
該プログラムは、前記特定シートの種別を示すシート種別情報及びプリンタを示すプリンタ情報と対応付けて前記情報処理装置のOSに登録されており、The program is registered in the OS of the information processing apparatus in association with sheet type information indicating the type of the specific sheet and printer information indicating the printer,
前記生成処理において、前記OSに登録された前記シート種別情報が示す種別の前記特定シートに対する前記印刷データを生成し、generating the print data for the specific sheet of the type indicated by the sheet type information registered in the OS in the generation process;
該プログラムは、前記アプリケーションが、前記OSに登録された前記プリンタ情報及び前記シート種別情報を指定したことに応じて起動されるプログラム。The program is started in response to the application specifying the printer information and the sheet type information registered in the OS.
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、
前記特定シートは、前記印刷領域を区画する枠線とミシン目との少なくとも一方を有しており、
前記画像は、読取装置によって読み取られるコードを示すコード画像を含み、
前記補正処理において、前記コード画像の配置位置が前記枠線上或いは前記ミシン目上とならないように前記第1画像データが示す画像の配置位置を補正する請求項1に記載のプログラム。
The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
The specific sheet has at least one of a frame line and a perforation that divide the printing area,
the image includes a code image representing a code to be read by a reading device;
2. The program according to claim 1 , wherein in said correction processing, the arrangement position of the image indicated by said first image data is corrected so that said code image is not arranged on said frame line or said perforation.
前記判断処理において、
前記取得処理で取得したデータに前記画像データとともに第1情報が含まれることに応じて、取得した前記画像データが前記第1画像データであると判断し、
前記取得処理で取得したデータに前記画像データとともに前記第1情報と異なる第2情報が含まれることに応じて、取得した前記画像データが前記第2画像データであると判断する請求項に記載のプログラム。
In the judgment process,
determining that the acquired image data is the first image data in response to the fact that the data acquired in the acquisition process includes the first information together with the image data;
2. The method according to claim 1 , wherein the obtained image data is determined to be the second image data in response to the fact that the data obtained by the obtaining process includes second information different from the first information together with the image data. program.
前記取得処理において、ジョブネーム及び前記画像データを含むデータを取得し、
前記判断処理において、
取得した前記ジョブネームに前記第1情報が含まれることに応じて、取得した前記画像データが前記第1画像データであると判断し、
取得した前記ジョブネームに前記第2情報が含まれることに応じて、取得した前記画像データが前記第2画像データであると判断する請求項に記載のプログラム。
obtaining data including a job name and the image data in the obtaining process;
In the judgment process,
determining that the acquired image data is the first image data in response to the fact that the acquired job name includes the first information;
8. The program according to claim 7 , wherein the acquired image data is determined to be the second image data according to the fact that the acquired job name includes the second information.
前記第2アプリケーションは、情報処理装置に実装されて当該情報処理装置のコンピュータによって実行されるアプリケーションであり、
前記第1アプリケーションは、情報処理装置とインターネットを通じて通信可能なサーバに実装されて当該サーバのコンピュータによって実行されるアプリケーションであり、
前記補正処理において、前記第1アプリケーションが生成した前記第1画像データが示す画像の配置位置を、前記補正量で補正する請求項1、2、および6から8のいずれかに記載のプログラム。
the second application is an application installed in an information processing device and executed by a computer of the information processing device;
The first application is an application that is installed in a server that can communicate with the information processing device via the Internet and that is executed by a computer of the server,
9. The program according to any one of claims 1 , 2, and 6 to 8, wherein, in said correction processing, an arrangement position of an image indicated by said first image data generated by said first application is corrected with said correction amount.
取得した前記画像データが前記第1画像データであることに応じて、前記第1画像データを第1ブラウザを通じて取得したか、前記第1ブラウザとは異なる第2ブラウザを通じて取得したかを判断するブラウザ判断処理を前記コンピュータにさらに実行させ、
該プログラムは、前記補正処理において、
前記第1ブラウザを通じて前記第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を、前記補正量であって、前記第1ブラウザに対応する第1補正量で補正し、
前記第2ブラウザを通じて前記第1画像データを取得したことに応じて、前記第1画像データが示す画像の配置位置を、前記補正量であって、前記第2ブラウザに対応する第2補正量で補正する請求項3または9に記載のプログラム。
A browser that determines whether the first image data is acquired through a first browser or through a second browser different from the first browser, depending on whether the acquired image data is the first image data. cause the computer to further execute a judgment process;
The program, in the correction process,
In response to obtaining the first image data through the first browser, the arrangement position of the image indicated by the first image data is changed by the correction amount, which is the first correction amount corresponding to the first browser. correct,
In response to obtaining the first image data through the second browser, the arrangement position of the image indicated by the first image data is changed by the correction amount, which is a second correction amount corresponding to the second browser. 10. The program according to claim 3 or 9 , which corrects.
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、
前記特定シートは、少なくとも送り先の住所を示す前記画像が印刷される前記印刷領域を有する送り状であり、
前記補正処理において、前記住所を示す前記画像の配置位置を、前記補正量で補正する請求項1から3、および6から10のいずれかに記載のプログラム。
The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
The specific sheet is an invoice having at least the printing area on which the image indicating the address of the destination is printed,
11. The program according to any one of claims 1 to 3 and 6 to 10 , wherein in said correction processing, the arrangement position of said image showing said address is corrected by said correction amount.
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、
該プログラムは、前記特定シートの種別を示すシート種別情報及びプリンタを示すプリンタ情報と対応付けて前記情報処理装置のOSに登録されており、
前記生成処理において、前記OSに登録された前記シート種別情報が示す種別の前記特定シートに対する前記印刷データを生成し、
該プログラムは、前記アプリケーションが、前記OSに登録された前記プリンタ情報及び前記シート種別情報を指定したことに応じて起動される請求項1から4、および6から11のいずれかに記載のプログラム。
The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
The program is registered in the OS of the information processing apparatus in association with sheet type information indicating the type of the specific sheet and printer information indicating the printer,
generating the print data for the specific sheet of the type indicated by the sheet type information registered in the OS in the generation process;
12. The program according to any one of claims 1 to 4 and 6 to 11, wherein the program is started in response to the application specifying the printer information and the sheet type information registered in the OS.
前記情報処理装置は、前記シート種別情報と対応付けられた前記補正量を記憶するメモリを備えており、
該プログラムは、前記補正処理において、前記第1画像データが示す画像の配置位置を、前記OSに登録された前記シート種別情報と対応する前記補正量で補正する請求項5または12に記載のプログラム。
The information processing device includes a memory that stores the correction amount associated with the sheet type information,
13. The program according to claim 5, wherein in the correction process, the program corrects the arrangement position of the image indicated by the first image data with the correction amount corresponding to the sheet type information registered in the OS. .
前記補正量を変更する指示を取得し、当該指示が示す値に当該補正量を変更する補正量変更処理をさらに前記コンピュータに実行させる請求項1に記載のプログラム。 14. The program according to claim 13 , which acquires an instruction to change the correction amount and causes the computer to further execute a correction amount change process of changing the correction amount to a value indicated by the instruction. 前記補正量変更処理で変更された前記補正量である変更補正量を前記メモリに記憶する記憶処理と、
前記変更補正量が前記メモリに記憶されているか否かを判断する変更量判断処理と、を前記コンピュータにさらに実行させ、
前記補正処理において、前記変更補正量が前記メモリに記憶されていることに応じて、前記補正量に代えて前記変更補正量を用いて前記配置位置を補正する請求項1に記載のプログラム。
a storage process for storing the changed correction amount, which is the correction amount changed in the correction amount change process, in the memory;
causing the computer to further execute a change amount determination process for determining whether or not the change correction amount is stored in the memory;
15. The program according to claim 14 , wherein, in said correction processing, said arrangement position is corrected using said changed correction amount in place of said correction amount in accordance with said changed correction amount being stored in said memory.
情報処理装置のコンピュータによって実行されるプログラムであって、
アプリケーションが生成した画像データを取得する取得処理と、
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、
決定した前記配置位置を、適正配置位置に補正する補正処理と、
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、
前記決定処理において、前記画像データが示す画像全体の前記配置位置を決定するプログラム。
A program executed by a computer of an information processing device,
Acquisition processing for acquiring image data generated by an application;
a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
a correction process for correcting the determined placement position to a proper placement position;
causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position ;
The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
A program for determining the arrangement position of the entire image indicated by the image data in the determination processing .
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
前記決定処理において、前記印刷領域にそれぞれ印刷される前記画像ごとに前記配置位置をそれぞれ決定し、In the determination process, determining the placement position for each of the images to be printed in the print area;
前記適正配置位置は、前記印刷領域と対応付けられており、The proper arrangement position is associated with the printing area,
前記補正処理において、前記印刷領域ごとに前記配置位置を前記適正配置位置に補正するプログラム。A program for correcting the arrangement position to the proper arrangement position for each printing area in the correction process.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
前記適正配置位置は、複数の前記印刷領域のうち、特定の前記印刷領域である特定印刷領域と対応付けられており、The proper arrangement position is associated with a specific print area, which is the specific print area, among the plurality of print areas,
前記決定処理において、前記特定印刷領域に印刷される前記画像について前記配置位置を決定し、determining the placement position of the image to be printed in the specific print area in the determination process;
前記補正処理において、前記特定印刷領域に印刷される前記画像の前記配置位置を前記適正配置位置に補正するプログラム。A program for correcting the layout position of the image to be printed in the specific print area to the proper layout position in the correction process.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記決定処理において、前記画像データから描画領域及び描画の基準位置を算出し、算出した前記描画領域及び前記基準位置から前記配置位置を決定し、或いは、前記画像データから画像を描画して前記配置位置を決定するプログラム。In the determining process, a drawing area and a drawing reference position are calculated from the image data, and the arrangement position is decided from the calculated drawing area and the reference position, or an image is drawn from the image data and the arrangement is performed. A program that determines the position.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記決定処理において、前記配置位置に加え、前記画像が占める領域の大きさを示す画像サイズを決定し、In the determination process, in addition to the placement position, an image size indicating the size of the area occupied by the image is determined;
前記補正処理において、前記配置位置に加え、前記画像サイズを適正サイズに補正するプログラム。A program for correcting the image size to an appropriate size in addition to the arrangement position in the correction processing.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記画像データを第1ブラウザを通じて取得したか、当該第1ブラウザとは異なる第2ブラウザを通じて取得したか、ブラウザを経ず取得したかを判断する取得判断処理を前記コンピュータにさらに実行させ、causing the computer to further execute acquisition determination processing for determining whether the image data has been acquired through a first browser, through a second browser different from the first browser, or through a browser;
該プログラムは、前記補正処理において、The program, in the correction process,
前記第1ブラウザを通じて前記画像データを取得したことに応じて、前記適正配置位置である第1適正配置位置を用いて、前記画像データが示す画像の配置位置を補正し、correcting the layout position of the image indicated by the image data using the first proper layout position, which is the proper layout position, in response to obtaining the image data through the first browser;
前記第2ブラウザを通じて前記画像データを取得したことに応じて、前記適正配置位置である第2適正配置位置を用いて、前記画像データが示す画像の配置位置を補正し、correcting the layout position of the image indicated by the image data using the second proper layout position, which is the proper layout position, in response to obtaining the image data through the second browser;
ブラウザを経ず前記アプリケーションから前記画像データを取得したことに応じて、前記適正配置位置である第3適正配置位置を用いて、前記画像データが示す画像の配置位置を補正するプログラム。A program for correcting the layout position of the image indicated by the image data using the third proper layout position, which is the proper layout position, in response to obtaining the image data from the application without going through the browser.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining the layout position of the image indicated by the acquired image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
前記特定シートは、少なくとも送り先の住所を示す前記画像が印刷される前記印刷領域を有する送り状であり、The specific sheet is an invoice having at least the printing area on which the image indicating the address of the destination is printed,
前記補正処理において、前記住所を示す前記画像の配置位置を前記適正配置位置に補正するプログラム。A program for correcting an arrangement position of the image indicating the address to the proper arrangement position in the correction process.
情報処理装置のコンピュータによって実行されるプログラムであって、A program executed by a computer of an information processing device,
アプリケーションが生成した画像データを取得する取得処理と、Acquisition processing for acquiring image data generated by an application;
取得した前記画像データが示す画像の配置位置を、当該画像データに基づいて決定する決定処理と、a determination process of determining a layout position of the image indicated by the obtained image data based on the image data;
決定した前記配置位置を、適正配置位置に補正する補正処理と、a correction process for correcting the determined placement position to a proper placement position;
取得した前記画像データに基づいて、かつ、補正された前記配置位置で、プリンタが印刷を実行可能な印刷データを生成する生成処理と、を前記コンピュータに実行させ、causing the computer to generate print data that can be printed by a printer based on the acquired image data and at the corrected arrangement position;
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
該プログラムは、前記特定シートの種別を示すシート種別情報及びプリンタを示すプリンタ情報と対応付けて前記情報処理装置のOSに登録されており、The program is registered in the OS of the information processing apparatus in association with sheet type information indicating the type of the specific sheet and printer information indicating the printer,
前記生成処理において、前記OSに登録された前記シート種別情報が示す種別の前記特定シートに対する前記印刷データを生成し、generating the print data for the specific sheet of the type indicated by the sheet type information registered in the OS in the generation process;
該プログラムは、前記アプリケーションが、前記プリンタ情報及び前記シート種別情報を指定したことに応じて起動されるプログラム。The program is started in response to the application specifying the printer information and the sheet type information.
前記決定処理において、前記画像データから描画領域及び描画の基準位置を算出し、算出した前記描画領域及び前記基準位置から前記配置位置を決定し、或いは、前記画像データから画像を描画して前記配置位置を決定する請求項1から1のいずれかに記載のプログラム。 In the determining process, a drawing area and a drawing reference position are calculated from the image data, and the arrangement position is decided from the calculated drawing area and the reference position, or an image is drawn from the image data and the arrangement is performed. 19. A program according to any one of claims 16 to 18 , for determining a position. 前記決定処理において、前記配置位置に加え、前記画像が占める領域の大きさを示す画像サイズを決定し、
前記補正処理において、前記配置位置に加え、前記画像サイズを適正サイズに補正する請求項1から19、および24のいずれかに記載のプログラム。
In the determination process, in addition to the placement position, an image size indicating the size of the area occupied by the image is determined;
25. The program according to any one of claims 16 to 19 and 24, wherein in said correction processing, said image size is corrected to an appropriate size in addition to said arrangement position.
前記画像データを第1ブラウザを通じて取得したか、当該第1ブラウザとは異なる第2ブラウザを通じて取得したか、ブラウザを経ず取得したかを判断する取得判断処理を前記コンピュータにさらに実行させ、
該プログラムは、前記補正処理において、
前記第1ブラウザを通じて前記画像データを取得したことに応じて、前記適正配置位置である第1適正配置位置を用いて、前記画像データが示す画像の配置位置を補正し、
前記第2ブラウザを通じて前記画像データを取得したことに応じて、前記適正配置位置である第2適正配置位置を用いて、前記画像データが示す画像の配置位置を補正し、
ブラウザを経ず前記アプリケーションから前記画像データを取得したことに応じて、前記適正配置位置である第3適正配置位置を用いて、前記画像データが示す画像の配置位置を補正する請求項1から20、24、および25のいずれかに記載のプログラム。
causing the computer to further execute acquisition determination processing for determining whether the image data has been acquired through a first browser, through a second browser different from the first browser, or through a browser;
The program, in the correction process,
correcting the layout position of the image indicated by the image data using the first proper layout position, which is the proper layout position, in response to obtaining the image data through the first browser;
correcting the layout position of the image indicated by the image data using the second proper layout position, which is the proper layout position, in response to obtaining the image data through the second browser;
from claim 16 , in response to obtaining the image data from the application without going through a browser, correcting the layout position of the image indicated by the image data using the third proper layout position, which is the proper layout position. 26. The program of any of 20, 24 and 25 .
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、
前記特定シートは、少なくとも送り先の住所を示す前記画像が印刷される前記印刷領域を有する送り状であり、
前記補正処理において、前記住所を示す前記画像の配置位置を前記適正配置位置に補正する請求項1から21、および24から26のいずれかに記載のプログラム。
The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
The specific sheet is an invoice having at least the printing area on which the image indicating the address of the destination is printed,
27. The program according to any one of claims 16 to 21 and 24 to 26, wherein in said correction processing, the arrangement position of said image showing said address is corrected to said proper arrangement position.
前記画像データは、予め定められた複数の印刷領域を有する特定シートの当該印刷領域に印刷される画像を示し、
該プログラムは、前記特定シートの種別を示すシート種別情報及びプリンタを示すプリンタ情報と対応付けて前記情報処理装置のOSに登録されており、
前記生成処理において、前記OSに登録された前記シート種別情報が示す種別の前記特定シートに対する前記印刷データを生成し、
該プログラムは、前記アプリケーションが、前記プリンタ情報及び前記シート種別情報を指定したことに応じて起動される請求項1から22、および24から27のいずれかに記載のプログラム。
The image data indicates an image to be printed in a predetermined print area of a specific sheet having a plurality of print areas,
The program is registered in the OS of the information processing apparatus in association with sheet type information indicating the type of the specific sheet and printer information indicating the printer,
generating the print data for the specific sheet of the type indicated by the sheet type information registered in the OS in the generation process;
28. The program according to any one of claims 16 to 22 and 24 to 27, wherein the program is activated in response to the application specifying the printer information and the sheet type information.
前記情報処理装置は、前記シート種別情報と対応付けられた前記適正配置位置を記憶するメモリを備えており、
該プログラムは、前記補正処理において、決定した前記配置位置を、前記OSに登録された前記シート種別情報と対応する前記適正配置位置に補正する請求項23または28に記載のプログラム。
The information processing device includes a memory that stores the proper arrangement position associated with the sheet type information,
29. The program according to claim 23 or 28, wherein in the correction process, the program corrects the determined arrangement position to the proper arrangement position corresponding to the sheet type information registered in the OS.
前記適正配置位置を変更する指示を取得し、当該指示が示す値に当該適正配置位置を変更する変更処理をさらに前記コンピュータに実行させる請求項2に記載のプログラム。 30. The program according to claim 29 , which acquires an instruction to change the proper placement position, and causes the computer to further execute change processing for changing the proper placement position to a value indicated by the instruction. 前記変更処理で変更された前記適正配置位置である変更適正配置位置を前記メモリに記憶する記憶処理と、
前記変更適正配置位置が前記メモリに記憶されているか否かを判断する変更位置判断処理と、を前記コンピュータにさらに実行させ、
前記補正処理において、前記変更適正配置位置が前記メモリに記憶されていることに応じて、前記適正配置位置に代えて前記変更適正配置位置を用いて前記配置位置を補正する請求項30に記載のプログラム。
a storage process of storing the changed proper placement position, which is the proper placement position changed in the changing process, in the memory;
causing the computer to further execute a change position determination process of determining whether or not the change proper arrangement position is stored in the memory;
31. The method according to claim 30 , wherein, in said correction processing, said arrangement position is corrected using said changed proper arrangement position instead of said proper arrangement position in accordance with said changed proper arrangement position being stored in said memory. program.
情報処理装置のコンピュータによって実行されるプログラムであって、
アプリケーションが生成した画像データを取得する取得処理と、
取得した前記画像データを生成した前記アプリケーションの種別を判断する判断処理と、
前記アプリケーションの種別が第1種別であると判断したことに応じて、前記第1種別の前記アプリケーションが生成した前記画像データである第1画像データが示す画像の配置位置を第1補正量で補正し、補正した前記第1画像データに基づいて、プリンタが印刷を実行可能な印刷データを生成する第1生成処理と、
前記アプリケーションの種別が、前記第1種別とは異なる第2種別であると判断したことに応じて、前記第2種別の前記アプリケーションが生成した前記画像データである第2画像データに基づいて、プリンタが印刷を実行可能な印刷データを生成する第2生成処理と、
前記アプリケーションの種別を判断できないと判断したことに応じて、取得した前記画像データが示す前記画像の配置位置を前記画像データに基づいて決定し、決定した前記配置位置を適正配置位置に補正し、補正した前記配置位置に基づいて、前記印刷データを生成する第3生成処理と、を前記コンピュータに実行させるプログラム。
A program executed by a computer of an information processing device,
Acquisition processing for acquiring image data generated by an application;
a determination process of determining the type of the application that generated the acquired image data;
In response to determining that the type of the application is the first type, the arrangement position of the image indicated by the first image data, which is the image data generated by the application of the first type, is corrected by a first correction amount. a first generation process for generating print data that can be printed by a printer based on the corrected first image data;
In response to determining that the type of the application is the second type different from the first type, the printer generates the second image data, which is the image data generated by the application of the second type. a second generation process for generating print data that can be printed by
determining the layout position of the image indicated by the acquired image data based on the image data, correcting the determined layout position to an appropriate layout position in response to determining that the type of the application cannot be determined; A program for causing the computer to execute a third generation process of generating the print data based on the corrected arrangement position.
JP2019039652A 2019-03-05 2019-03-05 program Active JP7238482B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019039652A JP7238482B2 (en) 2019-03-05 2019-03-05 program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019039652A JP7238482B2 (en) 2019-03-05 2019-03-05 program

Publications (2)

Publication Number Publication Date
JP2020144523A JP2020144523A (en) 2020-09-10
JP7238482B2 true JP7238482B2 (en) 2023-03-14

Family

ID=72354168

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019039652A Active JP7238482B2 (en) 2019-03-05 2019-03-05 program

Country Status (1)

Country Link
JP (1) JP7238482B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023017209A (en) * 2021-07-26 2023-02-07 セイコーエプソン株式会社 Print control apparatus, print control method, and print control program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000011062A (en) 1998-06-17 2000-01-14 Toshiba Tec Corp Slip issuing machine having printing position correcting function and recording medium
JP2003084950A (en) 2001-09-13 2003-03-20 Seiko Epson Corp Printing data editing system, editing method thereof, and recording medium thereof
JP2008080713A (en) 2006-09-28 2008-04-10 Fujitsu Ltd Printer
JP2009169824A (en) 2008-01-18 2009-07-30 Kyocera Mita Corp Printer driver program and image forming apparatus
JP2015162210A (en) 2014-02-28 2015-09-07 東芝テック株式会社 Information processing device and information processing program
JP2018073347A (en) 2016-11-04 2018-05-10 コニカミノルタ株式会社 Image formation device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000011062A (en) 1998-06-17 2000-01-14 Toshiba Tec Corp Slip issuing machine having printing position correcting function and recording medium
JP2003084950A (en) 2001-09-13 2003-03-20 Seiko Epson Corp Printing data editing system, editing method thereof, and recording medium thereof
JP2008080713A (en) 2006-09-28 2008-04-10 Fujitsu Ltd Printer
JP2009169824A (en) 2008-01-18 2009-07-30 Kyocera Mita Corp Printer driver program and image forming apparatus
JP2015162210A (en) 2014-02-28 2015-09-07 東芝テック株式会社 Information processing device and information processing program
JP2018073347A (en) 2016-11-04 2018-05-10 コニカミノルタ株式会社 Image formation device

Also Published As

Publication number Publication date
JP2020144523A (en) 2020-09-10

Similar Documents

Publication Publication Date Title
WO2010143621A1 (en) Image processing apparatus, image processing method and storage medium
JP7405217B2 (en) Support programs, information processing devices, and printing methods
US20060184877A1 (en) Post-printing process support system, post-printing process support program, and post-printing process support method
US10795617B2 (en) Information processing apparatus and control method
JP7238482B2 (en) program
US11609727B2 (en) Non-transitory computer-readable recording medium, information processing apparatus and printing method
JP7119490B2 (en) application program
JP2019040564A (en) Printer driver, and information processing device
JP2007148486A (en) Method for supporting document browsing, system for the same, document processor, and program
US8856637B2 (en) Applying borders to each page in N-up printing
JP2020166696A (en) Information processing apparatus, and program
US6594405B1 (en) Method and apparatus for preprinted forms completion
US8456703B2 (en) Information processing apparatus for printing print job information
JP7298241B2 (en) Support program, information processing device, and printing method
KR20050106559A (en) Method for outputting document form sheet
JP2023080474A (en) Program set and program
JP5084363B2 (en) Information processing apparatus, print control method, and computer program
JP2009056631A (en) Printing apparatus
US11825027B2 (en) Computer-readable storage medium and method for displaying information about sheet characteristics
US11875074B2 (en) Computer-readable storage medium and method for displaying information about whether print settings are configurable
JP5171400B2 (en) Image forming apparatus and image forming program
JP6939303B2 (en) Control program
JP2017124572A (en) Printer and control method for the same
JP2024013275A (en) Terminal device, program, and printing system
JP2003132042A (en) Table of contents generation device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221101

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221223

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230131

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230213

R150 Certificate of patent or registration of utility model

Ref document number: 7238482

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150