Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4915325B2 - Printer system and computer program - Google Patents
[go: Go Back, main page]

JP4915325B2 - Printer system and computer program - Google Patents

Printer system and computer program Download PDF

Info

Publication number
JP4915325B2
JP4915325B2 JP2007258097A JP2007258097A JP4915325B2 JP 4915325 B2 JP4915325 B2 JP 4915325B2 JP 2007258097 A JP2007258097 A JP 2007258097A JP 2007258097 A JP2007258097 A JP 2007258097A JP 4915325 B2 JP4915325 B2 JP 4915325B2
Authority
JP
Japan
Prior art keywords
printer
print data
predetermined format
deformation
external device
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.)
Expired - Fee Related
Application number
JP2007258097A
Other languages
Japanese (ja)
Other versions
JP2009087167A (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 JP2007258097A priority Critical patent/JP4915325B2/en
Publication of JP2009087167A publication Critical patent/JP2009087167A/en
Application granted granted Critical
Publication of JP4915325B2 publication Critical patent/JP4915325B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimiles In General (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)
  • Control Or Security For Electrophotography (AREA)

Description

本発明は、プリンタとそのプリンタに通信可能に接続される外部装置とを備えるプリンタシステムに関する。特に、DLオブジェクト(外部からダウンロードすることが必要であるオブジェクト)のアドレスを含む印刷データに基づいて印刷するプリンタシステムに関する。   The present invention relates to a printer system that includes a printer and an external device that is communicably connected to the printer. In particular, the present invention relates to a printer system that performs printing based on print data including an address of a DL object (an object that needs to be downloaded from outside).

例えば、下記の特許文献1には、XML形式の印刷データに基づいて印刷するプリンタシステムが開示されている。プリンタは、XML形式の印刷データを受信すると、その印刷データをサーバに送信する。サーバは、印刷データに含まれるURL(Uniform Resorce Locator)にアクセスしてドキュメントデータをダウンロードする。サーバは、ダウンロードされたドキュメントデータが含まれるSVG形式の印刷データを作成する。即ち、サーバは、XML形式の印刷データをSVG形式の印刷データに変換する。サーバは、SVG形式の印刷データをプリンタに送信する。プリンタは、SVG形式の印刷データに基づいて印刷する。   For example, Patent Document 1 below discloses a printer system that performs printing based on XML-format print data. When the printer receives the XML format print data, the printer transmits the print data to the server. The server downloads document data by accessing a URL (Uniform Resource Locator) included in the print data. The server creates print data in SVG format that includes the downloaded document data. That is, the server converts XML format print data into SVG format print data. The server transmits SVG format print data to the printer. The printer prints based on the print data in the SVG format.

特開2002−91726号公報JP 2002-91726 A

外部からDLオブジェクトをダウンロードして印刷する場合、そのDLオブジェクトに対して様々な変形処理を加える必要がある。例えば、印刷可能なサイズにリサイズするリサイズ処理をDLオブジェクトに対して加えなければならないことがある。また、例えば、ダウンロードされた状態から指定された状態まで回転させる回転処理をDLオブジェクトに対して加えなければならないことがある。これらの変形処理を実行するためには多くのメモリ容量を必要とする。プリンタは、パーソナルコンピュータ等と比べると、大容量のメモリを搭載しているわけではない。このために、DLオブジェクトに対する変形処理を実行するのに多くのメモリ容量を消費すると、他の処理を実行するためのメモリ容量を確保することができなくなる可能性がある。   When a DL object is downloaded from outside and printed, it is necessary to apply various transformation processes to the DL object. For example, a resizing process for resizing to a printable size may have to be added to the DL object. Further, for example, a rotation process for rotating from a downloaded state to a specified state may be applied to the DL object. In order to execute these deformation processes, a large memory capacity is required. A printer does not have a large-capacity memory as compared with a personal computer or the like. For this reason, if a large amount of memory capacity is consumed to execute the deformation process for the DL object, it may not be possible to secure a memory capacity for executing other processes.

本発明者は、プリンタが外部装置(例えばパーソナルコンピュータやサーバ)に通信可能に接続されて利用されることが多いことに着目した。DLオブジェクトに対する変形処理を外部装置に実行させれば、プリンタのメモリが大きく消費される事象が発生することを防止することができる。この手法を利用する場合、プリンタが印刷データを外部装置に送信し、外部装置が処理後の印刷データをプリンタに返信する必要がある。上記の引用文献1の技術では、プリンタがXML形式の印刷データを外部装置(サーバ)に送信し、外部装置がSVG形式の印刷データをプリンタに返信する。即ち、プリンタから外部装置に送信されるデータ形式が、外部装置からプリンタに返信されるデータ形式と異なる。例えば、複数のプリンタが外部装置に通信可能に接続されて利用されることがある。この場合、各プリンタが印刷データを外部装置に送信し、外部装置がSVG形式の印刷データを各プリンタに返信することになる。全てのプリンタがSVG形式に対応しているとは限らない。外部装置がSVG形式の印刷データを各プリンタに返信しても、SVG形式に対応していないプリンタは印刷することができない。即ち、外部装置は、プリンタが外部装置から受信した印刷データに基づいて印刷処理を継続可能な形式で、プリンタに印刷データを返信する必要がある。   The present inventor has noted that a printer is often connected to an external device (for example, a personal computer or a server) so as to be communicable. By causing the external device to execute transformation processing on the DL object, it is possible to prevent an event that the printer memory is consumed significantly. When this method is used, the printer needs to send print data to an external device, and the external device needs to send the processed print data back to the printer. In the technique of the above cited reference 1, the printer transmits XML format print data to an external device (server), and the external device returns SVG format print data to the printer. That is, the data format transmitted from the printer to the external device is different from the data format returned from the external device to the printer. For example, a plurality of printers may be used by being connected to an external device so as to be communicable. In this case, each printer transmits print data to an external device, and the external device returns SVG format print data to each printer. Not all printers are compatible with the SVG format. Even if the external device returns print data in the SVG format to each printer, a printer that does not support the SVG format cannot print. That is, the external device needs to return the print data to the printer in a format that allows the printer to continue the print processing based on the print data received from the external device.

本明細書では、DLオブジェクトの変形処理を外部装置が実行するプリンタシステムにおいて、変形処理後の印刷データをプリンタが印刷することができる技術を提供する。   The present specification provides a technique that allows a printer to print print data after deformation processing in a printer system in which an external device executes deformation processing of a DL object.

本明細書によって開示される一つの技術は、プリンタと外部装置とを備えるプリンタシステムである。プリンタは、外部からダウンロードすることが必要であるDLオブジェクトのアドレスを含む所定形式の印刷データに基づいて印刷することが可能である。外部装置は、プリンタに通信可能に接続される。上記の「外部装置」という用語は、最も広義に解釈されるべきものであり、プリンタと別体に構成されているあらゆるデバイスを含む概念である。外部装置の一例として、パーソナルコンピュータ、サーバ、プリンタ、スキャナ、多機能機(複合機)、携帯端末等を挙げることができる。   One technique disclosed in this specification is a printer system including a printer and an external device. The printer can print based on print data in a predetermined format including the address of a DL object that needs to be downloaded from the outside. The external device is communicably connected to the printer. The term “external device” is to be interpreted in the broadest sense, and is a concept that includes all devices configured separately from the printer. Examples of the external device include a personal computer, a server, a printer, a scanner, a multi-function device (multifunction device), and a portable terminal.

プリンタは、プリンタ側第1受信手段とプリンタ側送信手段とプリンタ側第2受信手段と印刷手段とを有する。プリンタ側第1受信手段は、上記の所定形式の印刷データを受信する。プリンタ側送信手段は、プリンタ側第1受信手段によって受信された上記の所定形式の印刷データを外部装置に送信する。プリンタ側第2受信手段は、外部装置から送信された上記の所定形式の変形処理後印刷データを受信する。印刷手段は、プリンタ側第2受信手段によって受信された上記の所定形式の変形処理後印刷データに基づいて印刷する。   The printer includes a printer-side first receiving unit, a printer-side transmitting unit, a printer-side second receiving unit, and a printing unit. The first receiving unit on the printer side receives the print data in the predetermined format. The printer-side transmission unit transmits the print data in the predetermined format received by the printer-side first reception unit to the external device. The printer-side second receiving means receives the post-deformation-processed print data of the predetermined format transmitted from the external device. The printing means prints based on the post-deformation processed print data in the predetermined format received by the printer-side second receiving means.

外部装置は、外部装置側受信手段と変形手段と変形処理後印刷データ作成手段と外部装置側送信手段とを有する。外部装置側受信手段は、プリンタから送信された上記の所定形式の印刷データを受信する。変形手段は、外部装置側受信手段によって受信された上記の所定形式の印刷データに含まれるDLオブジェクトのアドレスに従ってダウンロードされたDLオブジェクトに対して変形処理を加えることによって、変形処理後DLオブジェクトを作成する。なお、DLオブジェクトのダウンロードは、プリンタによって実行されてもよいし、外部装置によって実行されてもよい。前者の場合、上記のプリンタ側送信手段が印刷データとDLオブジェクトの両方を外部装置に送信することになる。変形処理後印刷データ作成手段は、変形手段によって作成された変形処理後DLオブジェクトを上記の所定形式の印刷データに書き込むことによって、上記の所定形式の変形処理後印刷データを作成する。外部装置側送信手段は、変形処理後印刷データ作成手段によって作成された上記の所定形式の変形処理後印刷データをプリンタに送信する。   The external apparatus includes an external apparatus side receiving unit, a deforming unit, a post-deformation print data creating unit, and an external apparatus side transmitting unit. The external device side receiving means receives the print data of the predetermined format transmitted from the printer. The transformation means creates a post-deformation DL object by performing transformation processing on the DL object downloaded according to the DL object address included in the print data in the predetermined format received by the external device side reception means. To do. The download of the DL object may be executed by a printer or an external device. In the former case, the printer-side transmission unit transmits both the print data and the DL object to the external device. The post-deformation print data creation unit creates the post-deformation print data of the predetermined format by writing the post-deformation DL object created by the deformation unit into the print data of the predetermined format. The external device side transmission means transmits the post-deformation print data in the predetermined format created by the post-deformation print data creation means to the printer.

プリンタは、自身が対応していない形式(自身が印刷することができない形式)の印刷データを受信しても、その内容を解釈することができない。プリンタは、内容を解釈することができない印刷データを受信しても、それを外部装置に送信する処理を実行することができない。逆に言うと、プリンタが受信して外部装置に送信した印刷データと同じ形式の印刷データであれば、その内容をプリンタが解釈して印刷することが可能である。上記のプリンタシステムでは、プリンタが受信して外部装置に送信した変形処理前の印刷データの形式と、外部装置によって作成される変形処理後印刷データの形式とが一致している。このために、プリンタは、変形処理後印刷データに基づいて印刷することができる。上記のプリンタシステムによると、外部装置によって作成される変形処理後印刷データに基づいて、プリンタが確実に印刷することができる。   Even if the printer receives print data in a format that it does not support (a format that it cannot print), it cannot interpret the contents. Even if the printer receives print data whose contents cannot be interpreted, it cannot execute a process of transmitting the print data to an external device. In other words, if the print data is in the same format as the print data received by the printer and transmitted to the external device, the printer can interpret the content and print it. In the printer system described above, the format of the print data before the deformation process received by the printer and transmitted to the external device matches the format of the print data after the deformation process created by the external device. For this reason, the printer can print based on the post-deformation print data. According to the above printer system, the printer can surely print based on the post-deformation print data created by the external device.

上述したように、DLオブジェクトのダウンロードは、プリンタによって実行されてもよいし、外部装置によって実行されてもよい。プリンタにおいて大容量のメモリが使用されるのを防止するためには、後者の構成を採用することが好ましい。この構成は、以下のように表現することができる。即ち、外部装置は、外部装置側受信手段によって受信された上記の所定形式の印刷データに含まれるDLオブジェクトのアドレスに従ってDLオブジェクトをダウンロードするダウンロード手段をさらに有していてもよい。この場合、変形手段は、ダウンロード手段によってダウンロードされたDLオブジェクトに対して変形処理を加えることによって、変形処理後DLオブジェクトを作成する。   As described above, the download of the DL object may be executed by a printer or an external device. In order to prevent the use of a large-capacity memory in the printer, it is preferable to adopt the latter configuration. This configuration can be expressed as follows. In other words, the external device may further include a download unit that downloads the DL object in accordance with the address of the DL object included in the print data in the predetermined format received by the external device side receiving unit. In this case, the deformation means creates a post-deformation DL object by performing a deformation process on the DL object downloaded by the download means.

プリンタによって受信された印刷データの中にDLオブジェクトのアドレスが含まれていない場合は、DLオブジェクトに対して変形処理を加える必要がない。この場合、プリンタは、印刷データを外部装置に送信しなくてもよい。この構成によると、プリンタは、外部装置に印刷データを送信してそれが返信されるのを待たなくても、印刷処理を実行することができる。このために、印刷処理を高速で実行することができる。この構成は、以下のように表現することができる。
即ち、プリンタは、プリンタ側第1受信手段によって受信された上記の所定形式の印刷データにDLオブジェクトのアドレスが含まれているのか否かを判断する第1判断手段をさらに有していてもよい。この場合、プリンタ側送信手段は、第1判断手段によって肯定的に判断されたことを条件として、上記の所定形式の印刷データを外部装置に送信してもよい。
If the print data received by the printer does not include the address of the DL object, there is no need to apply transformation processing to the DL object. In this case, the printer does not have to send print data to the external device. According to this configuration, the printer can execute print processing without sending print data to an external device and waiting for it to be returned. For this reason, the printing process can be executed at high speed. This configuration can be expressed as follows.
That is, the printer may further include first determination means for determining whether or not the DL object address is included in the print data of the predetermined format received by the printer-side first reception means. . In this case, the printer-side transmission unit may transmit the print data in the predetermined format to the external device on condition that the first determination unit makes a positive determination.

印刷データの中にDLオブジェクトのアドレスが含まれる場合でも、他の条件が満たされた場合は、プリンタから外部装置に印刷データを送信することを禁止してもよい。これにより、例えば、印刷処理の高速化を実現することができる。例えば、プリンタは、DLオブジェクトに対して変形処理を加える必要があるのか否かを判断する第2判断手段をさらに備えていてもよい。この場合、プリンタ側送信手段は、第2判断手段によって肯定的に判断されたことを条件として、上記の所定形式の印刷データを外部装置に送信してもよい。なお、上記の第2判断手段は、DLオブジェクトに対して回転処理とリサイズ処理の少なくとも一方の処理を加える必要があるのか否かを判断してもよい。   Even when the address of the DL object is included in the print data, the transmission of the print data from the printer to the external device may be prohibited if other conditions are satisfied. Thereby, for example, speeding up of the printing process can be realized. For example, the printer may further include a second determination unit that determines whether it is necessary to apply deformation processing to the DL object. In this case, the printer-side transmission unit may transmit the print data in the predetermined format to the external device on the condition that the determination is positive by the second determination unit. The second determination unit may determine whether it is necessary to add at least one of rotation processing and resizing processing to the DL object.

なお、上記の第2判断手段によって否定的に判断された場合でも、他の条件が満たされた場合は、プリンタから外部装置に印刷データが送信されてもよい。例えば、プリンタは、上記のDLオブジェクトのデータサイズが所定サイズ以上であるのか否かを判断する第3判断手段をさらに有していてもよい。この場合、プリンタ側送信手段は、第2判断手段によって否定的に判断されたこと、及び、第3判断手段によって肯定的に判断されたことを条件として、上記の所定形式の印刷データを外部装置に送信してもよい。この場合、外部装置は、外部装置側受信手段によって受信された上記の所定形式の印刷データに含まれるDLオブジェクトのアドレスに従ってDLオブジェクトをダウンロードするダウンロード手段をさらに有していてもよい。また、外部装置は、ダウンロード手段によってダウンロードされたDLオブジェクトに対して変形処理を加えずに、そのDLオブジェクトを所定形式の印刷データに書き込むことによって、上記の所定形式の書き込み後印刷データを作成する書き込み後印刷データ作成手段をさらに有していてもよい。この場合、外部装置側送信手段は、書き込み後印刷データ作成手段によって作成された上記の所定形式の書き込み後印刷データをプリンタに送信してもよい。プリンタ側第2受信手段は、外部装置から送信された上記の所定形式の書き込み後印刷データを受信してもよい。印刷手段は、プリンタ側第2受信手段によって受信された上記の所定形式の書き込み後印刷データに基づいて印刷してもよい。   Even when a negative determination is made by the second determination unit, the print data may be transmitted from the printer to the external device if other conditions are satisfied. For example, the printer may further include third determination means for determining whether or not the data size of the DL object is equal to or larger than a predetermined size. In this case, the printer-side transmission unit transmits the print data in the predetermined format to the external device on the condition that the determination is negative by the second determination unit and the determination by the third determination unit is affirmative. May be sent to. In this case, the external device may further include a download unit that downloads the DL object in accordance with the address of the DL object included in the print data in the predetermined format received by the external device side receiving unit. Further, the external device creates the post-write print data in the predetermined format by writing the DL object into the print data in the predetermined format without applying any transformation process to the DL object downloaded by the download unit. You may further have an after-printing print data preparation means. In this case, the external apparatus-side transmission unit may transmit the post-write print data in the predetermined format created by the post-write print data creation unit to the printer. The second receiving unit on the printer side may receive the print data after writing in the predetermined format transmitted from the external device. The printing unit may print based on the post-write print data in the predetermined format received by the printer-side second receiving unit.

上記の外部装置を実現するためのコンピュータプログラムも有用である。このコンピュータプログラムは、外部装置に搭載されるコンピュータに、以下の処理を実行させる。
(1)プリンタから送信された所定形式の印刷データに含まれるDLオブジェクトのアドレスに従ってダウンロードされたDLオブジェクトに対して変形処理を加えることによって、変形処理後DLオブジェクトを作成する変形処理。
(2)変形処理で作成された変形処理後DLオブジェクトを上記の所定形式の印刷データに書き込むことによって、上記の所定形式の変形処理後印刷データを作成する変形処理後印刷データ作成処理。
(3)変形処理後印刷データ作成処理で作成された上記の所定形式の変形処理後印刷データをプリンタに送信する送信処理。
このコンピュータプログラムによると、上記のプリンタシステムを構成する外部装置を実現することができる。
A computer program for realizing the above external device is also useful. This computer program causes a computer mounted on an external device to execute the following processing.
(1) Deformation processing for creating a post-deformation DL object by applying a deformation process to the DL object downloaded according to the DL object address included in the print data of a predetermined format transmitted from the printer.
(2) Post-deformation print data creation processing for creating post-deformation print data in the predetermined format by writing the post-deformation DL object created in the deformation processing into the print data in the predetermined format.
(3) Transmission processing for transmitting the post-deformation print data in the predetermined format created in the post-deformation print data creation processing to the printer.
According to this computer program, it is possible to realize an external device that constitutes the printer system.

ここでは、以下の実施例に記載の技術の主要な特徴の一部をまとめておく。
(形態1)変形処理後印刷データ作成手段は、変形手段によって作成されたバイナリ形式の変形処理後DLオブジェクトをテキスト形式のデータに変換し、変換後のデータを上記の所定形式の印刷データに書き込んでもよい。
Here, some of the main features of the techniques described in the following examples are summarized.
(Mode 1) The post-deformation print data creation unit converts the post-deformation post-transformation DL object created by the transformation unit into text format data, and writes the converted data into the predetermined format print data. But you can.

(形態2)第2判断手段は、プリンタ側第1受信手段によって受信された上記の所定形式の印刷データの内容に基づいて、DLオブジェクトに対して変形処理を加える必要があるのか否かを判断してもよい。例えば、第2判断手段は、プリンタ側第1受信手段によって受信された上記の所定形式の印刷データに含まれるDLオブジェクトの回転角度情報に基づいて、DLオブジェクトに対して回転処理を加える必要があるのか否かを判断してもよい。また、例えば、第2判断手段は、プリンタ側第1受信手段によって受信された上記の所定形式の印刷データに含まれるDLオブジェクトの印刷サイズ情報に基づいて、DLオブジェクトに対してリサイズ処理を加える必要があるのか否かを判断してもよい。なお、上記の「DLオブジェクトの印刷サイズ情報」は、DLオブジェクトが印刷媒体に印刷される際のデータサイズ(縦横のサイズ)を意味する。 (Mode 2) The second determining means determines whether or not it is necessary to apply a deformation process to the DL object based on the content of the print data in the predetermined format received by the printer-side first receiving means. May be. For example, the second determination unit needs to apply a rotation process to the DL object based on the rotation angle information of the DL object included in the print data of the predetermined format received by the printer-side first reception unit. It may be determined whether or not. In addition, for example, the second determination unit needs to apply a resizing process to the DL object based on the print size information of the DL object included in the print data in the predetermined format received by the printer-side first receiving unit. It may be determined whether or not there is. The “DL object print size information” means the data size (vertical and horizontal sizes) when the DL object is printed on a print medium.

(形態3)上記の所定形式の印刷データは、DLオブジェクトの回転角度情報を含むファイルのアドレスを含んでいてもよい。プリンタは、上記の所定形式の印刷データに含まれる上記のファイルのアドレスに従って当該ファイルをダウンロードする手段をさらに有していてもよい。この場合、第2判断手段は、ダウンロードされたファイルに含まれるDLオブジェクトの回転角度情報に基づいて、DLオブジェクトに対して回転処理を加える必要があるのか否かを判断してもよい。 (Mode 3) The print data in the predetermined format may include an address of a file including the rotation angle information of the DL object. The printer may further include means for downloading the file in accordance with the address of the file included in the print data of the predetermined format. In this case, the second determination means may determine whether or not it is necessary to apply a rotation process to the DL object based on the rotation angle information of the DL object included in the downloaded file.

(形態4)上記の所定形式の印刷データは、DLオブジェクトの印刷サイズ情報を含むファイルのアドレスを含んでいてもよい。プリンタは、上記の所定形式の印刷データに含まれる上記のファイルのアドレスに従って当該ファイルをダウンロードする手段と、上記の所定形式の印刷データに含まれるDLオブジェクトのアドレスに従ってDLオブジェクトの絶対サイズ情報をダウンロードする手段とをさらに有していてもよい。この場合、第2判断手段は、ダウンロードされたファイルに含まれるDLオブジェクトの印刷サイズ情報と、ダウンロードされたDLオブジェクトの絶対サイズ情報とを比較することによって、DLオブジェクトに対してリサイズ処理を加える必要があるのか否かを判断してもよい。なお、上記の「DLオブジェクトの絶対サイズ情報」は、DLオブジェクトのアドレスに格納されている状態(例えばサーバに格納されている状態)でのDLオブジェクトのデータサイズ(縦横のサイズ)を意味する。 (Mode 4) The print data in the predetermined format may include an address of a file including print size information of the DL object. The printer downloads the file according to the address of the file included in the print data of the predetermined format, and downloads the absolute size information of the DL object according to the address of the DL object included in the print data of the predetermined format. It may further have a means to do. In this case, the second determination means needs to apply a resizing process to the DL object by comparing the print size information of the DL object included in the downloaded file with the absolute size information of the downloaded DL object. It may be determined whether or not there is. Note that the above “absolute size information of DL object” means the data size (vertical and horizontal size) of the DL object in the state stored in the DL object address (for example, stored in the server).

図面を参照して実施例を説明する。図1は、本実施例のプリンタシステム2を示す。プリンタシステム2は、複数のプリンタ10,30,40とサーバ50とPC(パーソナルコンピュータ)70を備える。   Embodiments will be described with reference to the drawings. FIG. 1 shows a printer system 2 of this embodiment. The printer system 2 includes a plurality of printers 10, 30, 40, a server 50, and a PC (personal computer) 70.

(プリンタの構成)
プリンタ10は、操作部12と表示部14と制御部16と印刷部18と記憶部20と入出力ポート22を有する。操作部12は、複数のキーによって構成される。ユーザは、操作部12を操作することによって、様々な情報や指示をプリンタ10に入力することができる。表示部14は、様々な情報を表示することができる。制御部16は、記憶部20に記憶されているプログラムに従って、様々な処理を実行する。制御部16が実行する処理の内容は、後で詳しく説明する。印刷部18は、制御部16の指示に従って様々なデータを印刷することができる。記憶部20は、ROM、EEPROM、RAM等によって構成されている。記憶部20は、制御部16に処理を実行させるためのプログラムを記憶している。また、記憶部20は、入出力ポート22に入力されたデータや制御部16によって生成されたデータを記憶することができる。入出力ポート22は、LAN45に接続されている。プリンタ10は、入出力ポート22及びLAN45を介して、サーバ50やPC70と通信可能である。プリンタ30,40は、プリンタ10と同じ構成を有する。このために、プリンタ30,40についての説明を省略する。
(Printer configuration)
The printer 10 includes an operation unit 12, a display unit 14, a control unit 16, a printing unit 18, a storage unit 20, and an input / output port 22. The operation unit 12 includes a plurality of keys. The user can input various information and instructions to the printer 10 by operating the operation unit 12. The display unit 14 can display various information. The control unit 16 executes various processes according to the program stored in the storage unit 20. Details of processing executed by the control unit 16 will be described in detail later. The printing unit 18 can print various data according to instructions from the control unit 16. The storage unit 20 is configured by a ROM, an EEPROM, a RAM, and the like. The storage unit 20 stores a program for causing the control unit 16 to execute processing. The storage unit 20 can store data input to the input / output port 22 and data generated by the control unit 16. The input / output port 22 is connected to the LAN 45. The printer 10 can communicate with the server 50 and the PC 70 via the input / output port 22 and the LAN 45. The printers 30 and 40 have the same configuration as the printer 10. For this reason, the description of the printers 30 and 40 is omitted.

(サーバの構成)
サーバ50は、操作部52と表示部54と制御部56と記憶部60と入出力ポート62を有する。操作部52は、マウスやキーボードによって構成される。ユーザは、操作部52を操作することによって、様々な情報や指示をサーバ50に入力することができる。表示部54は、様々な情報を表示することができる。制御部56は、記憶部60に記憶されているプログラムに従って、様々な処理を実行する。制御部56が実行する処理の内容は、後で詳しく説明する。記憶部60は、ROM、EEPROM、RAM等によって構成されている。記憶部60は、制御部56に処理を実行させるためのプログラムを記憶している。また、記憶部60は、入出力ポート62に入力されたデータや制御部56によって生成されたデータを記憶することができる。入出力ポート62は、LAN45に接続されている。サーバ50は、入出力ポート62及びLAN45を介して、各プリンタ10,30,40やPC70と通信可能である。
(Server configuration)
The server 50 includes an operation unit 52, a display unit 54, a control unit 56, a storage unit 60, and an input / output port 62. The operation unit 52 includes a mouse and a keyboard. The user can input various information and instructions to the server 50 by operating the operation unit 52. The display unit 54 can display various information. The control unit 56 executes various processes according to the program stored in the storage unit 60. The contents of the processing executed by the control unit 56 will be described in detail later. The storage unit 60 includes a ROM, an EEPROM, a RAM, and the like. The storage unit 60 stores a program for causing the control unit 56 to execute processing. The storage unit 60 can store data input to the input / output port 62 and data generated by the control unit 56. The input / output port 62 is connected to the LAN 45. The server 50 can communicate with the printers 10, 30, 40 and the PC 70 via the input / output port 62 and the LAN 45.

(プリンタの印刷処理)
続いて、プリンタ10が実行する印刷処理の内容について説明する。この処理は、プリンタ10の制御部16によって実行される。なお、他のプリンタ30,40も、プリンタ10と同様に印刷処理を実行することができる。図2は、印刷処理のフローチャートを示す。印刷処理は、PC70から送信された印刷データが受信されたことを契機に開始される。
(Printing process of printer)
Next, the contents of print processing executed by the printer 10 will be described. This process is executed by the control unit 16 of the printer 10. The other printers 30 and 40 can execute the printing process in the same manner as the printer 10. FIG. 2 shows a flowchart of the printing process. The printing process is started when the print data transmitted from the PC 70 is received.

プリンタ10は、PC70からの印刷データを受信する(S10)。プリンタ10は、印刷データの内容を解析することによって、XHTML−Printデータであるのか否かを判断する(S12)。XHTML以外の形式の印刷データである場合(S12でNOの場合)、S32に進む。一方において、XHTML−Printデータである場合(S12でYESの場合)、S14に進む。なお、以下では、XHTML−Printデータのことを簡単に「XHTMLデータ」と呼ぶことがある。   The printer 10 receives print data from the PC 70 (S10). The printer 10 determines whether it is XHTML-Print data by analyzing the contents of the print data (S12). If the print data is in a format other than XHTML (NO in S12), the process proceeds to S32. On the other hand, if the data is XHTML-Print data (YES in S12), the process proceeds to S14. Hereinafter, the XHTML-Print data may be simply referred to as “XHTML data”.

図3は、XHTMLデータの一例を示す。XHTMLデータ80は、スタイルシートファイルのアドレス82と画像オブジェクトファイルのアドレス84を含んでいる。図示省略しているが、XHTMLデータ80は、スタイルシートファイルのベースアドレスも含んでいる。スタイルシートファイルのアドレスは、ベースアドレスとアドレス82の組合せによって特定される。プリンタ10は、S10で受信されたXHTMLデータにスタイルシートファイルのアドレス82が含まれているのか否かを判断する(S14)。ここでYESの場合、プリンタ10は、アドレス82にアクセスし、スタイルシートファイルをダウンロードする(S16)。具体的には、プリンタ10は、ベースアドレス(図示省略)から特定されるデバイスに対して、アドレス82から特定されるスタイルシートファイルを送信するように指示する。これにより、プリンタ10は、スタイルシートファイルを取得することができる。   FIG. 3 shows an example of XHTML data. The XHTML data 80 includes a style sheet file address 82 and an image object file address 84. Although not shown, the XHTML data 80 includes the base address of the style sheet file. The style sheet file address is specified by a combination of a base address and an address 82. The printer 10 determines whether or not the stylesheet file address 82 is included in the XHTML data received in S10 (S14). If YES here, the printer 10 accesses the address 82 and downloads the style sheet file (S16). Specifically, the printer 10 instructs the device specified from the base address (not shown) to transmit the style sheet file specified from the address 82. As a result, the printer 10 can acquire the style sheet file.

図4は、スタイルシートファイルの一例を示す。スタイルシートファイル90は、画像オブジェクトの印刷サイズ情報92と回転角度情報94を含んでいる。印刷サイズ情報92は、画像オブジェクトが印刷媒体に印刷される際のデータサイズ(縦横のサイズ)を意味する。図4の例では、縦20mm及び横20mmのサイズで印刷されることを意味している。回転角度情報94は、画像オブジェクトが印刷媒体に印刷される際の回転角度を意味する。即ち、外部のネットワーク(例えばアドレス84)に格納されている状態から何度回転させて画像オブジェクトが印刷されるのかを意味する。図4の例では、右回りに90度回転させて印刷されることを意味している。   FIG. 4 shows an example of a style sheet file. The style sheet file 90 includes print size information 92 and rotation angle information 94 of the image object. The print size information 92 means a data size (vertical / horizontal size) when an image object is printed on a print medium. In the example of FIG. 4, it means that printing is performed with a size of 20 mm in length and 20 mm in width. The rotation angle information 94 means a rotation angle when the image object is printed on the print medium. That is, it means how many times the image object is printed from the state stored in the external network (for example, address 84). In the example of FIG. 4, it means that printing is performed by rotating 90 degrees clockwise.

図5は、XHTMLデータの別の例を示す。XHTMLデータ100は、スタイルシートファイルのアドレスを含んでいない。この場合、プリンタ10は、S14でNOと判断する。この場合、S16をスキップする。XHTMLデータ100は、印刷サイズ情報102と回転角度情報104を含んでいる。即ち、XHTMLデータ100の中に印刷サイズ情報102と回転角度情報104が記述されている。なお、XHTMLデータ100は、画像オブジェクトファイルのアドレス106を含んでいる。   FIG. 5 shows another example of XHTML data. The XHTML data 100 does not include the address of the style sheet file. In this case, the printer 10 determines NO in S14. In this case, S16 is skipped. The XHTML data 100 includes print size information 102 and rotation angle information 104. That is, the print size information 102 and the rotation angle information 104 are described in the XHTML data 100. The XHTML data 100 includes an address 106 of the image object file.

プリンタ10は、XHTMLデータの中に画像オブジェクトファイルのアドレスが含まれているのか否かを判断する(S18)。例えば、図3のXHTMLデータ80にはアドレス84が含まれている。この場合、S18でYESと判断される。また、図5のXHTMLデータ100にもアドレス106が含まれている。この場合も、S18でYESと判断される。S18でYESと判断された場合、S20に含む。一方において、S18でNOと判断された場合、S32に進む。   The printer 10 determines whether or not the address of the image object file is included in the XHTML data (S18). For example, the XHTML data 80 in FIG. In this case, YES is determined in S18. Also, the XHTML data 100 in FIG. Also in this case, YES is determined in S18. If YES is determined in S18, the process is included in S20. On the other hand, if NO is determined in S18, the process proceeds to S32.

S20では、プリンタ10は、画像オブジェクトに対して回転処理を加える必要があるのか否かを判断する。上述したように、回転角度情報は、スタイルシートファイルの中に記述されることもあれば、XHTMLデータの中に記述されることもある。前者の場合、プリンタ10は、スタイルシートファイル90に含まれる回転角度情報94がゼロであるのか否かを判断する。また、後者の場合、プリンタ10は、XHTMLデータ100に含まれる回転角度情報104がゼロであるのか否かを判断する。回転角度情報がゼロである場合、プリンタ10は、S20でNOと判断する。この場合、S22に進む。回転角度情報がゼロ以外の数値である場合、プリンタ10は、S20でYESと判断する。この場合、S28に進む。   In S20, the printer 10 determines whether or not it is necessary to apply rotation processing to the image object. As described above, the rotation angle information may be described in the style sheet file or may be described in the XHTML data. In the former case, the printer 10 determines whether or not the rotation angle information 94 included in the style sheet file 90 is zero. In the latter case, the printer 10 determines whether the rotation angle information 104 included in the XHTML data 100 is zero. If the rotation angle information is zero, the printer 10 determines NO in S20. In this case, the process proceeds to S22. If the rotation angle information is a numerical value other than zero, the printer 10 determines YES in S20. In this case, the process proceeds to S28.

S22では、プリンタ10は、画像オブジェクトファイルのヘッダ情報をダウンロードする。具体的には、プリンタ10は、画像オブジェクトファイルのアドレス84,106から特定されるデバイスに対して、アドレス84,106から特定される画像オブジェクトファイルのヘッダ情報(先頭から所定バイトまでの情報)を送信するように指示する。これにより、プリンタ10は、画像オブジェクトファイルのヘッダ情報を取得することができる。画像オブジェクトファイルのヘッダ情報には、画像オブジェクトの絶対サイズ情報が含まれている。絶対サイズ情報は、外部のネットワーク(例えばアドレス84又は106)に格納されている状態での画像オブジェクトのデータサイズ(縦横のサイズ)を意味する。S22を終えると、S24に進む。   In S22, the printer 10 downloads the header information of the image object file. Specifically, the printer 10 sends the header information (information from the beginning to a predetermined byte) of the image object file specified from the addresses 84 and 106 to the device specified from the addresses 84 and 106 of the image object file. Instruct to send. Thereby, the printer 10 can acquire the header information of the image object file. The header information of the image object file includes absolute size information of the image object. The absolute size information means the data size (vertical / horizontal size) of the image object stored in an external network (for example, address 84 or 106). When S22 ends, the process proceeds to S24.

S24では、プリンタ10は、画像オブジェクトに対してリサイズ処理を加える必要があるのか否かを判断する。上述したように、印刷サイズ情報は、スタイルシートファイルの中に記述されることもあれば、XHTMLデータの中に記述されることもある。前者の場合、プリンタ10は、スタイルシートファイル90に含まれる印刷サイズ情報92と、S22でダウンロードされた絶対サイズ情報とが一致するのか否かを判断する。また、後者の場合、プリンタ10は、XHTMLデータ100に含まれる印刷サイズ情報102と、S22でダウンロードされた絶対サイズ情報とが一致するのか否かを判断する。印刷サイズ情報と絶対サイズ情報が一致する場合、プリンタ10は、S24でNOと判断する。この場合、S26に進む。印刷サイズ情報と絶対サイズ情報が一致しない場合、プリンタ10は、S24でYESと判断する。この場合、S28に進む。   In S24, the printer 10 determines whether or not it is necessary to apply a resizing process to the image object. As described above, the print size information may be described in the style sheet file or may be described in the XHTML data. In the former case, the printer 10 determines whether the print size information 92 included in the style sheet file 90 matches the absolute size information downloaded in S22. In the latter case, the printer 10 determines whether the print size information 102 included in the XHTML data 100 matches the absolute size information downloaded in S22. If the print size information matches the absolute size information, the printer 10 determines NO in S24. In this case, the process proceeds to S26. If the print size information does not match the absolute size information, the printer 10 determines YES in S24. In this case, the process proceeds to S28.

S26では、プリンタ10は、S22でダウンロードされた絶対サイズ情報が所定バイトより大きいのか否かを判断する。この「所定バイト」としては様々な数値を採用することができる。例えば、予め設定されている値を「所定バイト」として採用してもよい。また、例えば、「所定バイト」は、記憶部20の空き容量に基づいて設定されてもよい。記憶部20の空き容量が大きい場合は「所定バイト」も大きくなり、記憶部20の空き容量が小さい場合は「所定バイト」も小さくなってもよい。プリンタ10は、絶対サイズ情報が所定バイトより大きい場合、プリンタ10は、S26でYESと判断する。この場合、S28に進む。一方において、絶対サイズ情報が所定バイトより小さい場合、プリンタ10は、S26でNOと判断する。この場合、S32に進む。   In S26, the printer 10 determines whether or not the absolute size information downloaded in S22 is larger than a predetermined byte. As this “predetermined byte”, various numerical values can be adopted. For example, a preset value may be adopted as the “predetermined byte”. For example, the “predetermined byte” may be set based on the free capacity of the storage unit 20. When the free space of the storage unit 20 is large, the “predetermined byte” may be large, and when the free space of the storage unit 20 is small, the “predetermined byte” may be small. If the absolute size information is larger than the predetermined byte, the printer 10 determines YES in S26. In this case, the process proceeds to S28. On the other hand, if the absolute size information is smaller than the predetermined byte, the printer 10 determines NO in S26. In this case, the process proceeds to S32.

S28では、プリンタ10は、XHTMLデータ80,100をサーバ50に送信する。S16でスタイルシートファイル90がダウンロードされた場合、プリンタ10は、スタイルシートファイル90もサーバ50に送信する。このS28の処理を実行することによって、後述する処理がサーバ50によって実行されることになる。サーバ50が実行する処理の内容は後で詳しく説明する。サーバ50は、処理後のXHTMLデータ80,100をプリンタ10に送信する。プリンタ10は、処理後のXHTMLデータ80,100を受信する(S30)。   In S <b> 28, the printer 10 transmits the XHTML data 80 and 100 to the server 50. When the style sheet file 90 is downloaded in S <b> 16, the printer 10 also transmits the style sheet file 90 to the server 50. By executing the process of S28, the process described later is executed by the server 50. Details of processing executed by the server 50 will be described later in detail. The server 50 transmits the processed XHTML data 80 and 100 to the printer 10. The printer 10 receives the processed XHTML data 80 and 100 (S30).

最後に、プリンタ10は、印刷処理を実行する(S30)。例えば、S12でNOと判断された場合、プリンタ10は、XHTMLデータ以外の形式の印刷データに基づいてラスタライズ処理を実行してビットマップデータを作成し、そのビットマップデータに基づいて印刷する。また、例えば、S18でNOと判断された場合、プリンタ10は、XHTMLデータに基づいてラスタライズ処理を実行してビットマップデータを作成し、そのビットマップデータに基づいて印刷する。この場合、画像オブジェクトが印刷されることはなく、例えばテキストデータのみが印刷される。画像オブジェクトのアドレスがXHTMLデータに含まれていないからである。また、例えば、S26でNOと判断された場合、プリンタ10は、XHTMLデータに基づいて印刷する。この場合、プリンタ10は、XHTMLデータに含まれるアドレスに従って画像オブジェクトをダウンロードする。プリンタ10は、ダウンロードされた画像オブジェクトに対してラスタライズ処理を実行してビットマップデータを作成し、そのビットマップデータに基づいて印刷する。また、例えば、S30が実行された場合、プリンタ10は、S30で受信されたXHTMLデータに基づいてラスタライズ処理を実行してビットマップデータを作成し、そのビットマップデータに基づいて印刷する。この場合、プリンタ10は、画像オブジェクトをダウンロードする必要がない。後述するように、画像オブジェクトは、サーバ50によってダウンロードされ、XHTMLデータ(S30で受信されるXHTMLデータ)の中に書き込まれているからである。   Finally, the printer 10 executes a printing process (S30). For example, if NO is determined in S12, the printer 10 executes rasterization processing based on print data in a format other than XHTML data to create bitmap data, and prints based on the bitmap data. Further, for example, if NO is determined in S18, the printer 10 executes rasterization processing based on the XHTML data, creates bitmap data, and prints based on the bitmap data. In this case, the image object is not printed, and only text data is printed, for example. This is because the address of the image object is not included in the XHTML data. For example, if NO is determined in S26, the printer 10 performs printing based on the XHTML data. In this case, the printer 10 downloads the image object according to the address included in the XHTML data. The printer 10 performs rasterization processing on the downloaded image object to create bitmap data, and prints based on the bitmap data. For example, when S30 is executed, the printer 10 executes rasterization processing based on the XHTML data received in S30 to create bitmap data, and prints based on the bitmap data. In this case, the printer 10 does not need to download an image object. This is because the image object is downloaded by the server 50 and written in the XHTML data (XHTML data received in S30), as will be described later.

(サーバの処理)
続いて、サーバ50が実行する処理の内容について説明する。この処理は、サーバ50の制御部56によって実行される。図7は、サーバ50が実行する処理のフローチャートを示す。この処理は、プリンタ10,30,40から送信されたXHTMLデータが受信されることを契機に開始される。即ち、プリンタ10等が図2のS28の処理を実行することを契機に開始される。
(Server processing)
Next, the contents of processing executed by the server 50 will be described. This process is executed by the control unit 56 of the server 50. FIG. 7 shows a flowchart of processing executed by the server 50. This process is started when the XHTML data transmitted from the printer 10, 30, 40 is received. That is, the process is started when the printer 10 or the like executes the process of S28 of FIG.

サーバ50は、プリンタ10等からのXHTMLデータを受信する(S40)。次いで、サーバ50は、書き込み処理を実行する(S42)。書き込み処理については、後で詳しく説明する。サーバ50は、S42の書き込み処理後のXHTMLデータをプリンタ10等に返信する。これにより、プリンタ10等は、上記の図2のS30でXHTMLデータを受信し、それに基づいて印刷処理を実行することになる。   The server 50 receives XHTML data from the printer 10 or the like (S40). Next, the server 50 executes a writing process (S42). The writing process will be described in detail later. The server 50 returns the XHTML data after the writing process of S42 to the printer 10 or the like. As a result, the printer 10 or the like receives the XHTML data in S30 of FIG. 2 and executes the printing process based on the received XHTML data.

図8は、書き込み処理のフローチャートを示す。サーバ50は、図7のS40で受信されたXHTMLデータを所定量だけ読み込む(S50)。次いで、サーバ50は、XHTMLデータの最後まで読み込んだのか否かを判断する(S52)。ここでYESの場合、書き込み処理が終了する。一方において、S52でNOの場合、サーバ50は、S50で読み込まれたXHTMLデータの中に画像オブジェクトのアドレスが含まれているのか否かを判断する(S54)。ここでNOの場合、S50に戻って次の所定量のXHTMデータを読み込む。一方において、S54でYESの場合、S56に進む。   FIG. 8 shows a flowchart of the writing process. The server 50 reads the XHTML data received in S40 of FIG. 7 by a predetermined amount (S50). Next, the server 50 determines whether or not the end of the XHTML data has been read (S52). If YES here, the writing process ends. On the other hand, if NO in S52, the server 50 determines whether the XHTML data read in S50 includes the address of the image object (S54). If NO here, the process returns to S50 to read the next predetermined amount of XHTM data. On the other hand, if YES in S54, the process proceeds to S56.

S56では、サーバ50は、画像オブジェクトをダウンロードする。具体的には、プリンタ10は、画像オブジェクトファイルのアドレス(例えば図3の符号84、図5の符号106)から特定されるデバイスに対して、そのアドレスから特定される画像オブジェクトファイルを送信するように指示する。これにより、サーバ50は、画像オブジェクトを取得することができる。この画像オブジェクトは、バイナリデータである。   In S56, the server 50 downloads the image object. Specifically, the printer 10 transmits the image object file specified from the address to the device specified from the address of the image object file (for example, reference numeral 84 in FIG. 3 and reference numeral 106 in FIG. 5). To instruct. Thereby, the server 50 can acquire an image object. This image object is binary data.

次いで、サーバ50は、画像オブジェクトに対してリサイズ処理を実行する(S58)。このS58の処理は、リサイズ処理が必要である場合にのみ実行される。リサイズ処理が必要でない場合、S58の処理はスキップされる。サーバ50は、S56でダウンロードされた画像オブジェクトのヘッダ情報から絶対サイズ情報を読み込む。また、サーバ50は、S40で受信されたXHTMLデータ又はスタイルシートファイルに記述されている印刷サイズ情報を読み込む。サーバ50は、印刷サイズ情報と絶対サイズ情報とを比較することによって、リサイズ処理が必要であるのか否かを判断する。ここで肯定的に判断された場合、サーバ50は、印刷サイズ情報に適合するように画像オブジェクトをリサイズ(例えば縮小)する。リサイズの手法は、公知の手法を利用すればよい。ここでは、リサイズの手法についての説明を省略する。なお、リサイズ処理後の画像オブジェクトもバイナリデータである。   Next, the server 50 executes a resizing process on the image object (S58). The processing of S58 is executed only when resizing processing is necessary. When the resizing process is not necessary, the process of S58 is skipped. The server 50 reads absolute size information from the header information of the image object downloaded in S56. Further, the server 50 reads the print size information described in the XHTML data or the style sheet file received in S40. The server 50 determines whether or not resizing processing is necessary by comparing the print size information and the absolute size information. If the determination is affirmative, the server 50 resizes (for example, reduces) the image object so as to conform to the print size information. A known method may be used as the resizing method. Here, description of the resizing method is omitted. The image object after the resizing process is also binary data.

次いで、サーバ50は、画像オブジェクトに対して回転処理を実行する(S60)。このS60の処理は、回転処理が必要である場合にのみ実行される。回転処理が必要でない場合、S60の処理はスキップされる。サーバ50は、S40で受信されたXHTMLデータ又はスタイルシートファイルに記述されている回転角度情報を読み込む。サーバ50は、回転角度情報がゼロであるのか否かを判断することによって、回転処理が必要であるのか否かを判断する。ここで肯定的に判断された場合、サーバ50は、回転角度情報に適合するように画像オブジェクトを回転させる。回転の手法は、公知の手法を利用すればよい。ここでは、回転の手法についての説明を省略する。なお、回転処理後の画像オブジェクトもバイナリデータである。   Next, the server 50 executes a rotation process on the image object (S60). The process of S60 is executed only when the rotation process is necessary. When the rotation process is not necessary, the process of S60 is skipped. The server 50 reads the rotation angle information described in the XHTML data or the style sheet file received in S40. The server 50 determines whether the rotation process is necessary by determining whether the rotation angle information is zero. If a positive determination is made here, the server 50 rotates the image object so as to match the rotation angle information. A known method may be used as the rotation method. Here, the description of the rotation method is omitted. The image object after the rotation process is also binary data.

上述したように、S56でダウンロードされた画像オブジェクトは、S58及び/又はS60の処理が実行される場合もあれば、実行されない場合もある。以下では、いずれの画像オブジェクトも「処理後の画像オブジェクト」と呼ぶ。サーバ50は、処理後の画像オブジェクトに対応するデータをS40で受信されたXHTMLデータに書き込む(S62)。図6は、S62の処理が実行された後のXHTMLデータの一例を示す。図6のXHTMLデータ110は、図5のXHTMLデータ100に処理後の画像オブジェクトが書き込まれたものである。XHTMLデータ110は、画像オブジェクトに対応するデータ116を含んでいる。上述したように、処理後の画像オブジェクトは、バイナリデータである。XHTMLデータは、テキスト形式で記述されるデータである。サーバ50は、処理後の画像オブジェクトをバイナリデータからテキストデータに変換する。この変換には、ベース64という記述方式が利用される。XHTMLデータ110は、ベース64の記述方式を特定する文字列116aを含んでいる。サーバ50は、バイナリデータの画像オブジェクトをテキスト化することによって、処理後の画像オブジェクト(バイナリデータ)に対応するテキストデータを作成する。図6では、テキストデータ116の一例がよく示されている。S62を終えると、サーバ50は、S50に戻って次の所定量のXHTMLデータを読み込む。   As described above, the image object downloaded in S56 may or may not be executed in S58 and / or S60. Hereinafter, any image object is referred to as a “processed image object”. The server 50 writes the data corresponding to the processed image object in the XHTML data received in S40 (S62). FIG. 6 shows an example of XHTML data after the processing of S62 is executed. The XHTML data 110 in FIG. 6 is obtained by writing the processed image object in the XHTML data 100 in FIG. The XHTML data 110 includes data 116 corresponding to the image object. As described above, the processed image object is binary data. XHTML data is data described in a text format. The server 50 converts the processed image object from binary data to text data. For this conversion, a description method called a base 64 is used. The XHTML data 110 includes a character string 116 a that specifies the description method of the base 64. The server 50 creates text data corresponding to the processed image object (binary data) by converting the image object of binary data into text. FIG. 6 shows an example of text data 116 well. When S62 ends, the server 50 returns to S50 and reads the next predetermined amount of XHTML data.

上述したように、図7のS44において処理後のXHTMLデータ110がプリンタ10等に送信される。プリンタ10等は、XHTMLデータ110の内容を解析することによって、処理後の画像オブジェクトを再現することができる。プリンタ10は、処理後の画像オブジェクトをラスタライズすることによってビットマップデータを作成し、それに基づいて印刷する。   As described above, the processed XHTML data 110 is transmitted to the printer 10 or the like in S44 of FIG. The printer 10 or the like can reproduce the processed image object by analyzing the contents of the XHTML data 110. The printer 10 creates bitmap data by rasterizing the processed image object, and prints based on the bitmap data.

実施例のプリンタシステム2について詳しく説明した。このプリンタシステム2では、プリンタ10等が受信してサーバ50に送信した処理前の印刷データの形式(XHTML形式)と、サーバ50によって作成される処理後の印刷データの形式とが一致している。このために、プリンタ10等は、処理後の印刷データに基づいて印刷することができる。上記のプリンタシステム2によると、サーバ50によって作成される処理後の印刷データに基づいて、プリンタ10等が確実に印刷することができる。   The printer system 2 of the embodiment has been described in detail. In this printer system 2, the format of print data before processing (XHTML format) received by the printer 10 and transmitted to the server 50 matches the format of print data after processing created by the server 50. . For this reason, the printer 10 or the like can perform printing based on the processed print data. According to the printer system 2 described above, the printer 10 and the like can reliably print based on the processed print data created by the server 50.

また、プリンタ10は、画像オブジェクトのアドレスを含んでいないXHTMLデータをサーバ50に送信しない。また、プリンタ10は、画像オブジェクトのアドレスを含んでいるXHTMLデータであっても、回転処理とリサイズ処理を加える必要がなく、かつ、メモリの許容範囲内である場合は、XHTMLデータをサーバ50に送信しない。これらの構成によると、プリンタ10は、サーバ50にXHTMLデータを送信してそれが返信されるのを待たなくても、印刷処理を実行することができる。このために、印刷処理を高速で実行することができる。   In addition, the printer 10 does not transmit XHTML data that does not include the address of the image object to the server 50. Further, even if the XHTML data includes the address of the image object, the printer 10 does not need to perform rotation processing and resizing processing, and if it is within the allowable range of the memory, the printer 10 sends the XHTML data to the server 50. Do not send. According to these configurations, the printer 10 can execute the printing process without sending the XHTML data to the server 50 and waiting for it to be returned. For this reason, the printing process can be executed at high speed.

以上、本発明の具体例を詳細に説明したが、これらは例示にすぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。上記の実施例の変形例を以下に列挙する。   Specific examples of the present invention have been described in detail above, but these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. The modifications of the above embodiment are listed below.

(1)上記の実施例では、画像オブジェクトに対する変形処理の例として、回転処理とリサイズ処理を採用している。しかしながら、画像オブジェクトに対する他の変形処理(グラデーション、塗りつぶし、色の変更、ぼかし、影の付加、上下左右の反転、色や明るさの反転等)を採用してもよい。この場合、これらの変形処理を実行することを指示する情報が、XHTMLデータやスタイルシートファイルに含まれていてもよい。プリンタ10は、これらの変形処理を実行する必要があるのか否かを判断し、必要があればXHTMLデータをサーバ50に送信するようにしてもよい。 (1) In the above embodiment, rotation processing and resizing processing are employed as examples of deformation processing for an image object. However, other deformation processing (gradation, painting, color change, blurring, shadow addition, up / down / left / right reversal, color / brightness reversal, etc.) for the image object may be employed. In this case, information instructing execution of these deformation processes may be included in the XHTML data or the style sheet file. The printer 10 may determine whether or not it is necessary to execute these transformation processes, and may transmit XHTML data to the server 50 if necessary.

(2)画像オブジェクトのダウンロードは、プリンタ10によって実行されてもよい。この場合、プリンタ10は、XHTMLデータと、ダウンロードされた画像オブジェクトとをサーバ50に送信する。この場合、サーバ50は、画像オブジェクトをダウンロードする必要がない。 (2) The download of the image object may be executed by the printer 10. In this case, the printer 10 transmits the XHTML data and the downloaded image object to the server 50. In this case, the server 50 does not need to download the image object.

(3)上記のプリンタ10は、XHTML形式以外の印刷データをサーバ50に送信しない。しかしながら、プリンタ10は、XHTML形式以外の印刷データをサーバ50に送信してもよい。この場合、サーバ50は、プリンタ10から送信されてきたものと同じ形式の印刷データ(処理後の印刷データ)をプリンタ10に返信してもよい。 (3) The printer 10 described above does not transmit print data other than the XHTML format to the server 50. However, the printer 10 may transmit print data other than the XHTML format to the server 50. In this case, the server 50 may return print data (processed print data) in the same format as that transmitted from the printer 10 to the printer 10.

(4)図2のS26の処理は、S18の後であってS20の前に実行されてもよい。この場合、S26の処理で肯定的に判断されると、S28に進むようにしてもよい。S26の処理で否定的に判断されると、S20に進むようにしてもよい。 (4) The process of S26 in FIG. 2 may be executed after S18 and before S20. In this case, if a positive determination is made in the process of S26, the process may proceed to S28. If a negative determination is made in the process of S26, the process may proceed to S20.

また、本明細書または図面に説明した技術要素は、単独であるいは各種の組合せによって技術的有用性を発揮するものであり、出願時請求項記載の組合せに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。   The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.

プリンタシステムの構成を示す。1 shows a configuration of a printer system. プリンタの印刷処理のフローチャートを示す。2 shows a flowchart of printing processing of a printer. XHTML−Printデータの一例を示す。An example of XHTML-Print data is shown. スタイルシートファイルの一例を示す。An example of a style sheet file is shown. XHTML−Printデータの一例を示す。An example of XHTML-Print data is shown. 処理後のXHTML−Printデータの一例を示す。An example of the XHTML-Print data after a process is shown. サーバの処理のフローチャートを示す。The flowchart of a process of a server is shown. 書き込み処理のフローチャートを示す。The flowchart of a writing process is shown.

符号の説明Explanation of symbols

10,30,40:プリンタ
12:操作部
14:表示部
16:制御部
18:印刷部
20:記憶部
22:入出力ポート
50:サーバ
52:操作部
54:表示部
56:制御部
60:記憶部
62:入出力ポート
80,100:XHTML−Printデータ
90:スタイルシートファイル
110:処理後のXHTML−Printデータ
10, 30, 40: printer 12: operation unit 14: display unit 16: control unit 18: printing unit 20: storage unit 22: input / output port 50: server 52: operation unit 54: display unit 56: control unit 60: storage Unit 62: I / O ports 80, 100: XHTML-Print data 90: Style sheet file 110: XHTML-Print data after processing

Claims (7)

外部からダウンロードすることが必要であるDLオブジェクトのアドレスを含む所定形式の印刷データに基づいて印刷することが可能であるプリンタと、そのプリンタに通信可能に接続される外部装置とを備えるプリンタシステムであり、
プリンタは、
前記所定形式の印刷データを受信するプリンタ側第1受信手段と、
プリンタ側第1受信手段によって受信された前記所定形式の印刷データを外部装置に送信するプリンタ側送信手段と、
外部装置から送信された前記所定形式の変形処理後印刷データを受信するプリンタ側第2受信手段と、
プリンタ側第2受信手段によって受信された前記所定形式の変形処理後印刷データに基づいて印刷する印刷手段とを有し、
外部装置は、
プリンタから送信された前記所定形式の印刷データを受信する外部装置側受信手段と、
外部装置側受信手段によって受信された前記所定形式の印刷データに含まれる前記DLオブジェクトのアドレスに従ってダウンロードされた前記DLオブジェクトに対して変形処理を加えることによって、変形処理後DLオブジェクトを作成する変形手段と、
変形手段によって作成された変形処理後DLオブジェクトを前記所定形式の印刷データに書き込むことによって、前記所定形式の変形処理後印刷データを作成する変形処理後印刷データ作成手段と、
変形処理後印刷データ作成手段によって作成された前記所定形式の変形処理後印刷データをプリンタに送信する外部装置側送信手段とを有する
ことを特徴とするプリンタシステム。
A printer system including a printer capable of printing based on print data in a predetermined format including an address of a DL object that needs to be downloaded from the outside, and an external device connected to the printer so as to be communicable Yes,
The printer
Printer-side first receiving means for receiving the print data in the predetermined format;
Printer-side transmission means for transmitting print data of the predetermined format received by the printer-side first reception means to an external device;
Printer-side second receiving means for receiving the post-deformation-processed print data of the predetermined format transmitted from the external device;
Printing means for printing based on the post-deformation processed print data of the predetermined format received by the printer-side second receiving means,
External device
An external device side receiving means for receiving the print data of the predetermined format transmitted from the printer;
Deformation means for creating a post-deformation DL object by applying a deformation process to the DL object downloaded according to the address of the DL object included in the print data of the predetermined format received by the external device side receiving means When,
A post-deformation print data creation unit that creates post-deformation print data of the predetermined format by writing the post-deformation DL object created by the transform unit into the print data of the predetermined format;
A printer system, comprising: an external apparatus side transmission unit configured to transmit the post-deformation processing print data of the predetermined format generated by the post-deformation print data generation unit to a printer.
外部装置は、外部装置側受信手段によって受信された前記所定形式の印刷データに含まれる前記DLオブジェクトのアドレスに従って前記DLオブジェクトをダウンロードするダウンロード手段をさらに有し、
変形手段は、ダウンロード手段によってダウンロードされた前記DLオブジェクトに対して変形処理を加えることによって、変形処理後DLオブジェクトを作成する
ことを特徴とする請求項1に記載のプリンタシステム。
The external device further includes download means for downloading the DL object in accordance with the address of the DL object included in the print data of the predetermined format received by the external device side receiving means,
The printer system according to claim 1, wherein the deformation unit creates a DL object after the deformation process by performing a deformation process on the DL object downloaded by the download unit.
プリンタは、プリンタ側第1受信手段によって受信された前記所定形式の印刷データに前記DLオブジェクトのアドレスが含まれているのか否かを判断する第1判断手段をさらに有し、
プリンタ側送信手段は、第1判断手段によって肯定的に判断されたことを条件として、前記所定形式の印刷データを外部装置に送信する
ことを特徴とする請求項1又は2に記載のプリンタシステム。
The printer further includes first determination means for determining whether or not the DL object address is included in the print data of the predetermined format received by the printer-side first reception means,
3. The printer system according to claim 1, wherein the printer-side transmission unit transmits the print data in the predetermined format to an external device on condition that the first determination unit makes a positive determination. 4.
プリンタは、前記DLオブジェクトに対して変形処理を加える必要があるのか否かを判断する第2判断手段をさらに備え、
プリンタ側送信手段は、第2判断手段によって肯定的に判断されたことを条件として、前記所定形式の印刷データを外部装置に送信する
ことを特徴とする請求項1から3のいずれかに記載のプリンタシステム。
The printer further comprises second determination means for determining whether or not it is necessary to apply deformation processing to the DL object,
4. The printer-side transmission unit transmits the print data in the predetermined format to an external device on condition that the determination by the second determination unit is affirmative. 5. Printer system.
第2判断手段は、前記DLオブジェクトに対して回転処理とリサイズ処理の少なくとも一方の処理を加える必要があるのか否かを判断する
ことを特徴とする請求項4に記載のプリンタシステム。
The printer system according to claim 4, wherein the second determination unit determines whether it is necessary to add at least one of rotation processing and resizing processing to the DL object.
プリンタは、前記DLオブジェクトのデータサイズが所定サイズ以上であるのか否かを判断する第3判断手段をさらに有し、
プリンタ側送信手段は、第2判断手段によって否定的に判断されたこと、及び、第3判断手段によって肯定的に判断されたことを条件として、前記所定形式の印刷データを外部装置に送信し、
外部装置は、外部装置側受信手段によって受信された前記所定形式の印刷データに含まれる前記DLオブジェクトのアドレスに従って前記DLオブジェクトをダウンロードするダウンロード手段と、
ダウンロード手段によってダウンロードされたDLオブジェクトに対して変形処理を加えずに、そのDLオブジェクトを前記所定形式の印刷データに書き込むことによって、前記所定形式の書き込み後印刷データを作成する書き込み後印刷データ作成手段とをさらに有し、
外部装置側送信手段は、書き込み後印刷データ作成手段によって作成された前記所定形式の書き込み後印刷データをプリンタに送信し、
プリンタ側第2受信手段は、外部装置から送信された前記所定形式の書き込み後印刷データを受信し、
印刷手段は、プリンタ側第2受信手段によって受信された前記所定形式の書き込み後印刷データに基づいて印刷する
ことを特徴とする請求項4又は5に記載のプリンタシステム。
The printer further includes third determination means for determining whether the data size of the DL object is equal to or larger than a predetermined size,
The printer-side transmission means transmits the print data in the predetermined format to the external device on condition that the determination is negative by the second determination means and the determination is positive by the third determination means.
An external device, download means for downloading the DL object according to the address of the DL object included in the print data of the predetermined format received by the external device side receiving means;
Write-after-write print data creation means for creating post-write print data in the predetermined format by writing the DL object to the print data in the predetermined format without applying transformation processing to the DL object downloaded by the download means And
The external device side transmission means transmits the print data after writing in the predetermined format created by the print data creation means after writing to the printer,
The printer-side second receiving means receives the print data after writing in the predetermined format transmitted from the external device,
6. The printer system according to claim 4, wherein the printing unit performs printing based on the post-writing print data in the predetermined format received by the printer-side second receiving unit.
外部からダウンロードすることが必要であるDLオブジェクトのアドレスを含む所定形式の印刷データに基づいて印刷することが可能であるプリンタに通信可能に接続される外部装置のためのコンピュータプログラムであり、
そのコンピュータプログラムは、外部装置に搭載されるコンピュータに、以下の処理、即ち、
プリンタから送信された前記所定形式の印刷データに含まれる前記DLオブジェクトのアドレスに従ってダウンロードされた前記DLオブジェクトに対して変形処理を加えることによって、変形処理後DLオブジェクトを作成する変形処理と、
変形処理で作成された変形処理後DLオブジェクトを前記所定形式の印刷データに書き込むことによって、前記所定形式の変形処理後印刷データを作成する変形処理後印刷データ作成処理と、
変形処理後印刷データ作成処理で作成された前記所定形式の変形処理後印刷データをプリンタに送信する送信処理と
を実行させるコンピュータプログラム。
A computer program for an external device communicatively connected to a printer capable of printing based on print data in a predetermined format including an address of a DL object that needs to be downloaded from the outside,
The computer program stores the following processing in a computer mounted on the external device, that is,
A deformation process for creating a DL object after the deformation process by applying a deformation process to the DL object downloaded according to the address of the DL object included in the print data of the predetermined format transmitted from the printer;
A post-deformation print data creation process for creating post-deformation print data in the predetermined format by writing the post-deformation DL object created in the deformation process into the predetermined format print data;
A computer program for executing a transmission process for transmitting post-deformation-processed print data of the predetermined format created in the post-deformation-process print data creation process to a printer.
JP2007258097A 2007-10-01 2007-10-01 Printer system and computer program Expired - Fee Related JP4915325B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007258097A JP4915325B2 (en) 2007-10-01 2007-10-01 Printer system and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007258097A JP4915325B2 (en) 2007-10-01 2007-10-01 Printer system and computer program

Publications (2)

Publication Number Publication Date
JP2009087167A JP2009087167A (en) 2009-04-23
JP4915325B2 true JP4915325B2 (en) 2012-04-11

Family

ID=40660486

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007258097A Expired - Fee Related JP4915325B2 (en) 2007-10-01 2007-10-01 Printer system and computer program

Country Status (1)

Country Link
JP (1) JP4915325B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001228986A (en) * 2000-02-17 2001-08-24 Ricoh Co Ltd Image output device, image output method, and recording medium
JP4590080B2 (en) * 2000-09-12 2010-12-01 キヤノン株式会社 Printer system and control method thereof
JP3848133B2 (en) * 2000-11-17 2006-11-22 キヤノン株式会社 Image forming apparatus and image forming method for processing data described in structured description language
JP2002351632A (en) * 2001-05-25 2002-12-06 Canon Inc Information processing apparatus, print control method, program, and storage medium
JP2003234866A (en) * 2002-02-07 2003-08-22 Fuji Xerox Co Ltd Method and system for transmitting image and image data matching device
JP4368590B2 (en) * 2003-02-06 2009-11-18 コニカミノルタエムジー株式会社 Printing system
JP2005050323A (en) * 2003-07-11 2005-02-24 Seiko Epson Corp Image output system, client terminal device, image output device, and image output method
JP2007025771A (en) * 2005-07-12 2007-02-01 Canon Inc Image forming system and mobile phone device

Also Published As

Publication number Publication date
JP2009087167A (en) 2009-04-23

Similar Documents

Publication Publication Date Title
US6522421B2 (en) Method and apparatus for automatically communicating returning status and information from a printer using electronic mail (email).
US8970883B2 (en) Image forming apparatus and method of file conversion
US8514444B2 (en) Image processing system to adjust image output data
JP2008152545A (en) Print processing system and print method
EP1730664A2 (en) System for transferring documents and resources to a printer
US10783412B1 (en) Smart page encoding system including linearization for viewing and printing
US9639304B2 (en) Data supplying device and image processing system
US8125671B2 (en) Image forming apparatus and PDF document direct printing method thereof
EP2045715A1 (en) Technique for creating print data
CN114450929B (en) Storage medium storing support program, information processing device and printing method
US11087188B2 (en) Smart page decoding system including linearization for viewing and printing
JP2021111229A (en) Information processing device, image data generation method and program
US20080313201A1 (en) System and method for compact representation of multiple markup data pages of electronic document data
US20080239396A1 (en) Method of creating decompressed data
JP4915325B2 (en) Printer system and computer program
US8194269B2 (en) Image forming method and system using XHTML-print data
WO2005103876A1 (en) Method, apparatus and computer program product for printing document data
US20090034853A1 (en) Technique for creating print data
JP4222401B2 (en) Rasterizing apparatus, program and method
JP2009282964A (en) System and method for rendering print data, and computer readable medium
JP4775480B2 (en) PDL data processing apparatus and PDL data processing program
JP5576033B2 (en) Data processing device
US20040019635A1 (en) Using a document identifier for document retrieval and printing
US20090070660A1 (en) System and method for manipulation of document data intercepted through port redirection
JP2006227927A (en) Printing system, printing processing method, storage medium storing computer-readable program, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111018

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120109

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

Free format text: PAYMENT UNTIL: 20150203

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4915325

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees