JP2013097449A - Information processing device, information processing method, and program - Google Patents

Information processing device, information processing method, and program Download PDF

Info

Publication number
JP2013097449A
JP2013097449A JP2011237524A JP2011237524A JP2013097449A JP 2013097449 A JP2013097449 A JP 2013097449A JP 2011237524 A JP2011237524 A JP 2011237524A JP 2011237524 A JP2011237524 A JP 2011237524A JP 2013097449 A JP2013097449 A JP 2013097449A
Authority
JP
Japan
Prior art keywords
image
page
print
size
mfp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011237524A
Other languages
Japanese (ja)
Inventor
Keiji Kawasaki
敬二 川嵜
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011237524A priority Critical patent/JP2013097449A/en
Publication of JP2013097449A publication Critical patent/JP2013097449A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processing device, an information processing method, and a program for creating a file enabling an image to be appropriately printed.SOLUTION: In order not to provide a margin for an image based on image data to be printed, the page size of a page including the image is determined in accordance with the size of the image. Then, a file for which the determined page size is set and which includes the image provided with no margin in a page with the page size is created.

Description

本発明は、印刷対象の画像を含むファイルを作成する情報処理装置、情報処理方法、およびプログラムに関する。   The present invention relates to an information processing apparatus, an information processing method, and a program for creating a file including an image to be printed.

パーソナルコンピュータ(以下、PCと略す場合がある)やモバイルデバイスが、インターネット上のアプリケーションを利用することで、インターネットを介して印刷装置に画像等を印刷させる印刷サービスが知られている。このようなサービスを提供するための印刷システムでは、上記のアプリケーションが、ユーザが指定した印刷対象の画像や文書を、PDFファイルなどの文書ファイルとして作成する。そして、印刷装置に接続されているサーバが、上記のアプリケーションにより作成されたPDFファイルを、データ形式の変換を行うアプリケーションを用いて、印刷装置が解釈可能な形式に変換する。印刷装置は、そのようにデータ変換が行われたデータを受信し、印刷を行う。   A printing service is known in which a personal computer (hereinafter may be abbreviated as a PC) or a mobile device uses an application on the Internet to cause a printing apparatus to print an image or the like via the Internet. In a printing system for providing such a service, the application creates an image or document to be printed designated by the user as a document file such as a PDF file. Then, the server connected to the printing apparatus converts the PDF file created by the above application into a format that can be interpreted by the printing apparatus using an application that converts the data format. The printing apparatus receives the data that has undergone such data conversion and performs printing.

ただし、このような印刷システムの構成において、アプリケーションが作成した文書のサイズが、印刷装置が画像や文書を印刷する用紙サイズに合わない場合が考えられる。このように、印刷対象の文書のサイズと印刷が行われる用紙サイズが合わない場合に、印刷装置に対して印刷指示された文書を、用紙サイズに変倍してから印刷する技術が知られている(特許文献1参照)。   However, in such a printing system configuration, there may be a case where the size of the document created by the application does not match the paper size on which the printing apparatus prints an image or document. As described above, when the size of a document to be printed and the paper size on which printing is performed do not match, a technique for printing a document instructed to be printed to a printing apparatus after scaling the paper to the paper size is known. (See Patent Document 1).

特開2008−171073号公報JP 2008-171073 A

前述の印刷サービスにおいて種々のサイズの文書を印刷させる場合、アプリケーションが印刷対象の文書を含む文書ファイルを作成する際に、文書ファイルのページの外周に余白を設けるようにしている。しかしながら、このように作成された文書ファイルのページを、特許文献1に記載されているように画像が印刷される用紙サイズに合わせて変倍したとしても、ページ内において文書の外側に存在した余白は残ったままである。従って、このページに対して、例えば不要な余白を設けないように印刷させる所謂フチなし印刷を行わせたとしても、ページ内の余白が残ったまま印刷が行われてしまう場合がある。   When printing documents of various sizes in the above-described print service, when an application creates a document file containing a document to be printed, a margin is provided around the outer periphery of the document file page. However, even if the page of the document file created in this way is scaled according to the paper size on which the image is printed as described in Patent Document 1, the margin that exists outside the document in the page Remains. Therefore, even if, for example, so-called borderless printing is performed on this page so that unnecessary margins are not provided, printing may be performed while the margins in the page remain.

そこで本発明は、画像を適切に印刷させることができるファイルを作成する情報処理装置、情報処理方法、およびプログラムを提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an information processing apparatus, an information processing method, and a program for creating a file capable of appropriately printing an image.

上述のような課題を解決するために本発明の情報処理装置は、印刷対象の画像データを取得する取得手段と、前記取得手段により取得された画像データに基づく画像に対する余白を設けないように、当該画像のサイズに応じて、当該画像が含まれるページのページサイズを決定する決定手段と、前記決定手段により決定されたページサイズが設定されたファイルであって、余白が設けられていない前記画像を当該ページサイズのページに含むファイルを作成する作成手段と、を有することを特徴とする。   In order to solve the above-described problems, the information processing apparatus of the present invention provides an acquisition unit that acquires image data to be printed and a margin for an image based on the image data acquired by the acquisition unit. A determination unit for determining a page size of a page including the image according to the size of the image, and a file in which the page size determined by the determination unit is set, and the image is not provided with a margin. And a creation means for creating a file including the above in a page of the page size.

本発明によれば、画像を適切に印刷させることができるファイルを作成することができる。   According to the present invention, a file capable of appropriately printing an image can be created.

本実施例の印刷システムの一例を示す図である。It is a figure which shows an example of the printing system of a present Example. PC及びMFPのハードウェア構成の一例を表す図である。2 is a diagram illustrating an example of a hardware configuration of a PC and an MFP. FIG. PCのソフトウェア構成の一例を表す図である。It is a figure showing an example of the software configuration of PC. Webブラウザ9の表示画面を示す図である。It is a figure which shows the display screen of the web browser. 印刷ダイアログ142の一例を示す図である。5 is a diagram illustrating an example of a print dialog 142. FIG. 本印刷システム全体の処理の一例を示すフローチャートである。6 is a flowchart illustrating an example of processing of the entire printing system. 本印刷システム全体の処理の一例を示すフローチャートである。6 is a flowchart illustrating an example of processing of the entire printing system. PDFファイルの作成処理の一例を示すフローチャートである。10 is a flowchart illustrating an example of a PDF file creation process. PDFに記述される内容の一例を示す図である。It is a figure which shows an example of the content described in PDF. データ変換処理の一例を示すフローチャートである。It is a flowchart which shows an example of a data conversion process. 印刷対象領域に展開される印刷対象の画像を示す図である。It is a figure which shows the image of the printing object expand | deployed by the printing object area | region.

以下、添付図面を参照して実施の形態を詳しく説明する。尚、以下の実施の形態に限定されるものでなく、また本実施の形態で説明されている特徴の組み合わせの全てが必須のものとは限らない。   Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. It should be noted that the present invention is not limited to the following embodiment, and not all combinations of features described in the present embodiment are essential.

図1は、情報処理装置及び周辺装置を含む本実施例の印刷システムの一例を示す図である。図1において、1、2、7は情報処理装置であり、1は、例えば一般的なパーソナルコンピュータであり、2、7はサーバである。PC1や、サーバ2、サーバ7は、図2(a)で後述するようなハードウェアで構成される。なお、サーバ2、サーバ7は、一般的なパーソナルコンピュータであってもよい。   FIG. 1 is a diagram illustrating an example of a printing system according to the present exemplary embodiment including an information processing apparatus and peripheral devices. In FIG. 1, 1, 2, and 7 are information processing apparatuses, 1 is a general personal computer, for example, and 2 and 7 are servers. The PC 1, the server 2, and the server 7 are configured by hardware as will be described later with reference to FIG. Note that the server 2 and the server 7 may be general personal computers.

PC1にはOperating System(以下、OSと略す場合がある)がインストールされており、サーバ2、サーバ7にはServer用のOSが、それぞれインストールされている。PC1、サーバ2、サーバ7は、それぞれEthernet(登録商標)で構成されるネットワーク4、8、6に接続されていて、インターネット12にも接続されている。   An operating system (hereinafter sometimes abbreviated as OS) is installed on the PC 1, and a server OS is installed on each of the servers 2 and 7. The PC 1, the server 2, and the server 7 are connected to the networks 4, 8, and 6, each of which is composed of Ethernet (registered trademark), and are also connected to the Internet 12.

3、103は、マルチファンクションプリンタ(以下、MFPと略す場合がある)であり、カラーインクジェットプリンタ、カラーファクシミリ、カラースキャナ、フラッシュメモリ用の外部ストレージ等で構成され、周辺装置の一例である。尚、周辺装置としては、プリンタ、複写機、ファクシミリ、スキャナ、デジタルカメラ、及びこれらの複合機能を備える装置等であってもよい。MFP3、MFP103は、図2(b)で後述するようなハードウェアで構成される。MFP3はEthernet(登録商標)で構成されるネットワーク11に接続されていて、インターネット12にも接続されている。MFP103はEthernet(登録商標)で構成されるネットワーク104に接続されていて、インターネット12にも接続されている。   Reference numerals 3 and 103 denote multifunction printers (hereinafter may be abbreviated as MFPs), each of which includes a color inkjet printer, a color facsimile, a color scanner, an external storage for flash memory, and the like, and is an example of a peripheral device. The peripheral device may be a printer, a copier, a facsimile machine, a scanner, a digital camera, and a device having a composite function thereof. The MFP 3 and the MFP 103 are configured by hardware as will be described later with reference to FIG. The MFP 3 is connected to a network 11 composed of Ethernet (registered trademark), and is also connected to the Internet 12. The MFP 103 is connected to a network 104 composed of Ethernet (registered trademark), and is also connected to the Internet 12.

13はWi−Fiの無線LANを備えるブロードバンドルーターであり、インターネット12に接続されている。14はモバイルデバイスであり、例えば携帯電話や携帯情報端末等である。モバイルデバイス14はWi−Fiの無線LANでブロードバンドルーター13と接続されていて、ブロードバンドルーター13を介してインターネット12にも接続されている。PC1、サーバ2、サーバ7、モバイルデバイス14、MFP3、MFP103は、インターネット12を介して、互いに双方向通信が可能である。   A broadband router 13 having a Wi-Fi wireless LAN is connected to the Internet 12. Reference numeral 14 denotes a mobile device, such as a mobile phone or a portable information terminal. The mobile device 14 is connected to the broadband router 13 via a Wi-Fi wireless LAN, and is also connected to the Internet 12 via the broadband router 13. The PC 1, the server 2, the server 7, the mobile device 14, the MFP 3, and the MFP 103 can communicate with each other via the Internet 12.

9、15はWebブラウザであり、それぞれ、PC1、モバイルデバイス14にインストールされている。145はWebサービスを利用した画像管理用のアプリケーションである。146はWebサービスを利用した印刷サービスを提供するアプリケーションである。   Web browsers 9 and 15 are installed in the PC 1 and the mobile device 14, respectively. Reference numeral 145 denotes an image management application using a Web service. Reference numeral 146 denotes an application that provides a print service using a Web service.

この印刷サービスでは、PC1やモバイルデバイス14のユーザは、PC1内のWebブラウザ9やモバイルデバイス14内のWebブラウザ10により、サーバ2、サーバ7にインストールされているアプリケーションを利用することができる。ユーザは、Webブラウザを介して、画像管理アプリケーション145を実行させて、印刷対象の画像を選択し、その画像をMFP3やMFP103で印刷することができる。また、印刷サービスアプリケーション146を実行させて、印刷設定の指定、印刷の指示を行うことができる。この画像管理アプリケーション145、印刷サービスアプリケーション146の実行については、図4、図5を用いて詳細に説明する。   In this print service, a user of the PC 1 or the mobile device 14 can use an application installed in the server 2 or the server 7 by using the Web browser 9 in the PC 1 or the Web browser 10 in the mobile device 14. The user can execute the image management application 145 via the Web browser, select an image to be printed, and print the image on the MFP 3 or the MFP 103. Also, the print service application 146 can be executed to specify print settings and print instructions. The execution of the image management application 145 and the print service application 146 will be described in detail with reference to FIGS.

画像管理アプリケーション145は、ユーザにより印刷対象の画像が選択されると、その画像の印刷データをPDFファイルとして生成する。なお、画像管理アプリケーション145により生成される印刷データは、その他のマルチページの文書ファイル(XPSファイルや、TIFFファイル等)であっても良い。   When the image to be printed is selected by the user, the image management application 145 generates print data of the image as a PDF file. The print data generated by the image management application 145 may be another multi-page document file (such as an XPS file or a TIFF file).

本実施例においては、画像管理アプリケーション145は、ユーザが印刷対象として選択した画像や文書のサイズを判定し、そのサイズに応じて、画像や文書の大きさにフィットしたページサイズのPDFファイルを作成する。これにより、PDFファイルのページ内において、上記の印刷対象の画像や文書の外側に余白を設けないように、PDFファイルを作成することができる。即ち、PDFファイルのページ内において画像や文書が全面に配置されており、PDFファイルのページと同じサイズである。   In this embodiment, the image management application 145 determines the size of the image or document selected as a print target by the user, and creates a PDF file having a page size that fits the size of the image or document according to the size. To do. Thus, the PDF file can be created so that no margin is provided outside the image or document to be printed in the page of the PDF file. That is, images and documents are arranged on the entire surface in the page of the PDF file, and have the same size as the page of the PDF file.

そして、後述する印刷処理において、ページ内の余白を設けずに作成されたPDFファイルに基づき、PDFファイルのページを印刷対象領域に展開する。このようなページの展開処理により、ページ内の全面に配置された画像や文書が印刷対象領域に展開される。よって、印刷対象領域への展開処理において、ページ内における画像や文書の領域を考慮しなくても、ページを印刷対象領域に展開することで、そのページ内の画像や文書を適切に展開することができる。   Then, in a printing process to be described later, the page of the PDF file is expanded in the print target area based on the PDF file created without providing a margin in the page. By such page expansion processing, images and documents arranged on the entire surface of the page are expanded in the print target area. Therefore, in the expansion process to the print target area, the image or document in the page can be appropriately expanded by expanding the page to the print target area without considering the image or document area in the page. Can do.

そして、印刷サービスアプリケーション146は、画像管理アプリケーション145により生成された印刷データ(PDFファイル)と、ユーザにより選択されている印刷設定から印刷ジョブを生成する。そして、印刷を実行させるプリンタ用のプリントキューにその印刷ジョブを格納して、そのプリンタに対して、印刷ジョブ通知を送信する。   The print service application 146 generates a print job from the print data (PDF file) generated by the image management application 145 and the print settings selected by the user. Then, the print job is stored in the print queue for the printer that executes printing, and a print job notification is transmitted to the printer.

このように、サーバ7が印刷ジョブを生成すると、インターネット12を介して、その印刷ジョブをサーバ2に送信する。そして、サーバ2は、データ変換アプリケーション143を用いて、印刷ジョブに含まれているPDFファイルを、MFP3、MFP103が印刷処理を行うことができる、JPEGファイル等の別のデータ形式に変換する。   As described above, when the server 7 generates a print job, the print job is transmitted to the server 2 via the Internet 12. Then, the server 2 uses the data conversion application 143 to convert the PDF file included in the print job into another data format such as a JPEG file that can be printed by the MFP 3 and the MFP 103.

143は、MFP3、MFP103を印刷サービスアプリケーション146が提供する印刷サービスに対応させる為の、データ変換アプリケーションである。データ変換アプリケーション143はPDFファイルをJPEGファイルに変換すると共に、MFPを管理して、それぞれのMFPを印刷サービスアプリケーション146が提供する印刷サービスに対応させることができる。   Reference numeral 143 denotes a data conversion application for causing the MFP 3 and the MFP 103 to correspond to the print service provided by the print service application 146. The data conversion application 143 can convert a PDF file into a JPEG file and manage MFPs so that each MFP can correspond to a print service provided by the print service application 146.

上記のように、データ変換アプリケーション143により、データ形式の変換を行うのは、プリンタやMFPがPDFファイルをレンダリングする機能を備えていない場合があるからである。従って、このようなプリンタやMFPで前記プリントキューに格納されている印刷ジョブを印刷する場合、PDFファイルの印刷データを、そのプリンタやMFPでレンダリングできるタイプの印刷データ(JPEGファイル等)に変換することが必要となる。ただし、プリンタやMFPがPDFファイルをレンダリングする機能を備えている場合、前記プリントキューに格納されている印刷ジョブを、データ形式の変換を行わずに、そのプリンタやMFPに送信してもよい。   As described above, the data conversion is performed by the data conversion application 143 because the printer or MFP may not have a function for rendering a PDF file. Therefore, when printing a print job stored in the print queue with such a printer or MFP, the print data of the PDF file is converted into print data (JPEG file or the like) that can be rendered by the printer or MFP. It will be necessary. However, if the printer or MFP has a function of rendering a PDF file, the print job stored in the print queue may be transmitted to the printer or MFP without converting the data format.

このように、サーバ2によりデータ形式の変換が行われた印刷データが、サーバ2からMFP3やMFP103に送信されて、MFP3、MFP103において、その印刷データに基づき、画像や文書の印刷が行われる。   In this way, the print data whose data format has been converted by the server 2 is transmitted from the server 2 to the MFP 3 or MFP 103, and the MFP 3 or MFP 103 prints an image or a document based on the print data.

以上のシステム構成により、ユーザがPC1やモバイルデバイス14により選択した画像のPDFファイルが、サーバ7により作成され、その作成されたPDFファイルが、サーバ2により、JPEGファイルに変換される。そして、そのJPEGファイルに基づき、MFP3やMFP103により、画像が印刷される。   With the above system configuration, a PDF file of an image selected by the user with the PC 1 or the mobile device 14 is created by the server 7, and the created PDF file is converted into a JPEG file by the server 2. Then, based on the JPEG file, an image is printed by the MFP 3 or MFP 103.

なお、このシステムにおいては、サーバ7の画像管理アプリケーション145は、最終的に印刷を行うMFP3、103の能力(マージン(余白部分)のサイズ等)や印刷設定(用紙サイズ等)を取得しないものとする。そして、サーバ2のデータ変換アプリケーション143が、上記のような能力、印刷設定を取得して、その取得した情報に応じて、印刷対象の画像を作成するものとする。   Note that in this system, the image management application 145 of the server 7 does not acquire the ability (margin (margin portion) size, etc.) and print settings (paper size, etc.) of the MFPs 3 and 103 that finally perform printing. To do. Then, it is assumed that the data conversion application 143 of the server 2 acquires the above capabilities and print settings, and creates an image to be printed according to the acquired information.

なお、印刷サービスアプリケーション146が提供する印刷サービスを利用する為には、ユーザアカウントとパスワードが必要である。そのため、印刷に使用するプリンタやMFPをこの印刷サービスに登録する際に、前記ユーザアカウントとパスワードを使って、この印刷サービスを利用する際のアクセストークンを取得する。そして、このアクセストークンを利用して、そのユーザアカウントにプリンタやMFPを関連付けて登録する。印刷サービスアプリケーション146は、プリンタやMFPの登録時に、各プリンタやMFPに対して一意の値で表わされるプリンタIDを発行して割り当てる。   In order to use the print service provided by the print service application 146, a user account and a password are required. Therefore, when a printer or MFP used for printing is registered in this print service, an access token for using this print service is acquired using the user account and password. Then, using this access token, a printer or MFP is associated with the user account and registered. When the printer or MFP is registered, the print service application 146 issues and assigns a printer ID represented by a unique value to each printer or MFP.

図2は、PC及びMFPのハードウェア構成の一例を表す図である。PC1、サーバ2、サーバ7は、図2の(a)に示すようなハードウェアで構成されている。図2の(a)ではサーバ2の例で説明する。図2の(a)に示す通り、サーバ2は、ランダムアクセスメモリ部(RAM201)、ハードディスクドライブ部(HDD202)、キーボード部(KBD203)、CPU204、を含む。また、サーバ2は、表示用ディスプレイ(LCD205)、ネットワークボード(NB207)、を含む。また、サーバ2は、以上の構成要素を互いに接続するバス206を有する。   FIG. 2 is a diagram illustrating an example of a hardware configuration of the PC and the MFP. The PC 1, the server 2, and the server 7 are configured by hardware as shown in FIG. An example of the server 2 will be described with reference to FIG. As shown in FIG. 2A, the server 2 includes a random access memory unit (RAM 201), a hard disk drive unit (HDD 202), a keyboard unit (KBD 203), and a CPU 204. The server 2 also includes a display for display (LCD 205) and a network board (NB 207). The server 2 also has a bus 206 that connects the above components to each other.

上述したデータ変換アプリケーション143や図3を用いて後述する各モジュール(ソフトウェア)に対応するプログラムが、HDD202に記憶されている。CPU204は、必要に応じて各種のプログラムをHDD202からRAM201に読み出して実行することにより、サーバ2の各種の制御を行う。これにより、CPU204が、データ変換アプリケーション143や図3に示す各モジュール(ソフトウェア)の機能を実現する。なお、上記の各種のプログラムは、サーバ2に装着される可搬性CD−ROMまたはサーバ2の内部据付のROM等に記憶されていてもよい。   Programs corresponding to the modules (software) described later with reference to the data conversion application 143 and FIG. 3 are stored in the HDD 202. The CPU 204 performs various controls of the server 2 by reading various programs from the HDD 202 to the RAM 201 and executing them as necessary. Thereby, the CPU 204 realizes the functions of the data conversion application 143 and each module (software) shown in FIG. The various programs described above may be stored in a portable CD-ROM mounted on the server 2 or a ROM installed in the server 2.

MFP3は、図2(b)に示すようなハードウェア構成を持つ。図2(b)において、15は、マイクロプロセッサ等から構成されるCPUである。CPU15は、MFP3の中央処理装置として、ROM16に記憶されているプログラムを、RAM17において実行することで、MFP3を制御する。例えば、通信部18、記録部19、操作部20、表示部21、読取り部22、ファクシミリ制御部23、外部ストレージ制御部24は、CPU15により制御される。ROM16にはプリンタドライバ(不図示)の制御に従ってMFP3が記録(印刷)処理や、印刷動作の状態をPCへ通知する処理を行うプログラムが記憶されている。また、ROM16には、FAXドライバ(不図示)の制御に従ってMFP3がファクシミリの送信または受信処理や、ファクシミリの送信または受信の状態をPCへ通知する処理を行うプログラムも記憶されている。更に、ROM16には、WIAドライバ(不図示)やTWAINドライバ(不図示)の制御に従ってMFP3が画像の読取り処理や、読取り動作の状態をPCへ通知する処理を行うプログラムも記憶されている。   The MFP 3 has a hardware configuration as shown in FIG. In FIG. 2B, reference numeral 15 denotes a CPU composed of a microprocessor or the like. As a central processing unit of the MFP 3, the CPU 15 controls the MFP 3 by executing a program stored in the ROM 16 in the RAM 17. For example, the communication unit 18, the recording unit 19, the operation unit 20, the display unit 21, the reading unit 22, the facsimile control unit 23, and the external storage control unit 24 are controlled by the CPU 15. The ROM 16 stores a program for the MFP 3 to perform recording (printing) processing and processing for notifying the PC of the status of the printing operation in accordance with control of a printer driver (not shown). The ROM 16 also stores programs for the MFP 3 to perform facsimile transmission or reception processing and processing for notifying the PC of the facsimile transmission or reception status according to control of a FAX driver (not shown). Further, the ROM 16 also stores a program for the MFP 3 to perform image reading processing and processing for notifying the PC of the state of the reading operation in accordance with control of a WIA driver (not shown) or a TWAIN driver (not shown).

MFP3は、通信部18を介して、主にPC等の外部装置から送られてくる印刷データを受信し、その受信した印刷データに基づき、記録部19により画像や文書を印刷する。MFP3が受信した印刷データは、RAM17に一時的に記憶される。また、RAM17には、読取り部22で読取られた画像データ、PCから送られてきたファクシミリの送信データ、ファクシミリ制御部で受信されたファクシミリの受信データ等も一時的に記憶される。   The MFP 3 receives print data mainly transmitted from an external device such as a PC via the communication unit 18, and prints an image or document by the recording unit 19 based on the received print data. The print data received by the MFP 3 is temporarily stored in the RAM 17. The RAM 17 also temporarily stores image data read by the reading unit 22, facsimile transmission data sent from the PC, facsimile reception data received by the facsimile control unit, and the like.

通信部18には、ネットワーク11用の接続ポート、アナログ電話回線用の接続ポート等が含まれており、Ethernet(登録商標)、ファクシミリのアナログ通信を制御する。記録部19は、インクジェット方式の記録ヘッド、各カラーインク、キャリッジ、記録紙搬送機構等から構成される記録ユニットと、前記印字データをもとに前記記録ヘッドにて印字用パルスを発生させるためのASIC等から構成される電気回路とから構成される。印刷可能なアプリケーション上での印刷操作、またはファクシミリの送信操作によって、アプリケーションで開かれているファイルの表示内容(画像データ)が、EMFやXPS形式のスプールファイルとしてPCのHDD202に一時的に格納される。そして、スプールファイルは、プリンタドライバ、またはFAXドライバを介してMFP3制御用コマンドを含む印刷データ、またはファクシミリの送信データに変換された後、インターネットを介してMFP3に送られる。   The communication unit 18 includes a connection port for the network 11, a connection port for an analog telephone line, and the like, and controls analog communication of Ethernet (registered trademark) and facsimile. The recording unit 19 includes a recording unit composed of an ink jet recording head, each color ink, a carriage, a recording paper transport mechanism, and the like, and generates a printing pulse by the recording head based on the printing data. It is comprised from the electric circuit comprised from ASIC etc. The display contents (image data) of a file opened in the application by a printing operation on a printable application or a facsimile transmission operation are temporarily stored in the HDD 202 of the PC as an EMF or XPS format spool file. The Then, the spool file is converted into print data including an MFP3 control command or facsimile transmission data via a printer driver or FAX driver, and then sent to the MFP 3 via the Internet.

MFP3にて受信された印刷データは、記録部19で印刷用パルスに変換されて、記録紙上に印刷される。MFP3にて受信されたファクシミリの送信データは、ファクシミリ制御部23でファクシミリの通信プロトコルに変換されて、アナログ電話回線を介して相手先のファクシミリ装置に送信される。20は、操作部であり、電源ボタン、リセットボタン等の各種ボタンから構成される。ユーザは操作部20を操作することにより、MFP3に対して指示を行うことができる。21は、表示部であり、タッチパネルの液晶ディスプレイで構成され、MFP3の状態の表示や、各種設定や電話番号の表示、入力等を行うことができる。22は、読取り部であり、カラーイメージセンサや画像処理用のASIC等から構成される電気回路とから構成され、スキャナ機能を制御する。23は、ファクシミリ制御部であり、ファクシミリ用のモデムやアナログ通信回路等から構成され、ファクシミリの通信プロトコルに従ってファクシミリの送信や受信を制御する。24は、外部ストレージ制御部であり、フラッシュメモリ装着用のスロットやストレージ用のインタフェース回路等から構成され、装着されたフラッシュメモリを制御する。   The print data received by the MFP 3 is converted into a printing pulse by the recording unit 19 and printed on the recording paper. Facsimile transmission data received by the MFP 3 is converted into a facsimile communication protocol by the facsimile control unit 23 and transmitted to the other party's facsimile apparatus via an analog telephone line. An operation unit 20 includes various buttons such as a power button and a reset button. The user can give an instruction to the MFP 3 by operating the operation unit 20. A display unit 21 includes a liquid crystal display of a touch panel, and can display the state of the MFP 3, display various settings, display a telephone number, and input. Reference numeral 22 denotes a reading unit, which includes an electric circuit including a color image sensor, an ASIC for image processing, and the like, and controls the scanner function. A facsimile control unit 23 includes a facsimile modem, an analog communication circuit, and the like, and controls facsimile transmission and reception according to a facsimile communication protocol. Reference numeral 24 denotes an external storage control unit, which includes a flash memory mounting slot, a storage interface circuit, and the like, and controls the mounted flash memory.

図3は、PCのソフトウェア構成の一例を表す図である。図3ではサーバ2の例で説明する。図3において、92は、Ethernet(登録商標)を制御するEthernet(登録商標)制御スタックである。91は、IP Networkを制御するIP Network制御スタックである。90は、Internet Information Servicesを制御するIIS制御部であり、アプリケーション150はこのIIS制御部のWebサーバ機能を利用してWebサービスを提供する。82は、アプリケーション群であり、データ変換アプリケーション143、150等から構成される。   FIG. 3 is a diagram illustrating an example of the software configuration of the PC. An example of the server 2 will be described with reference to FIG. In FIG. 3, reference numeral 92 denotes an Ethernet (registered trademark) control stack for controlling Ethernet (registered trademark). Reference numeral 91 denotes an IP Network control stack that controls the IP Network. Reference numeral 90 denotes an IIS control unit that controls Internet Information Services, and the application 150 provides a Web service by using the Web server function of the IIS control unit. An application group 82 includes data conversion applications 143, 150, and the like.

以下、図1で示したシステムによる印刷処理について説明する。なお、このシステムにおいては、PC1のユーザが、サーバ7が提供するアプリケーションを用いて、印刷対象の画像の選択と印刷指示を行う。そして、サーバ7がその画像のPDFファイル化、印刷ジョブの作成を行って、サーバ2に印刷ジョブを送信する。サーバ2は、PDFファイルのデータ変換を行い、MFP3がデータ変換された印刷データに基づき、画像を用紙に印刷する。なお、ユーザの画像選択と印刷指示は、PC1を用いる場合に限らず、モバイルデバイス14を用いて、ブロードバンドルーター13を介して行ってもよい。   Hereinafter, the printing process by the system shown in FIG. 1 will be described. In this system, the user of the PC 1 selects an image to be printed and issues a print instruction using an application provided by the server 7. Then, the server 7 converts the image into a PDF file and creates a print job, and transmits the print job to the server 2. The server 2 performs data conversion of the PDF file, and the MFP 3 prints an image on a sheet based on the print data subjected to the data conversion. Note that the user's image selection and print instruction are not limited to using the PC 1, and may be performed via the broadband router 13 using the mobile device 14.

図4は、PC1がWebブラウザ9により画像管理アプリケーション145を利用するときの、Webブラウザ9の表示画面を示す図である。同図は、ユーザが既に印刷対象の画像を選択しており、その画像が表示されている状態を表す。図4において、401は印刷メニューであり、ユーザが、印刷を指示する時にこの印刷メニューを押下すると、印刷サービスアプリケーション146が、図5に示す印刷ダイアログ142を表示させる。   FIG. 4 is a diagram showing a display screen of the Web browser 9 when the PC 1 uses the image management application 145 by the Web browser 9. This figure shows a state in which the user has already selected an image to be printed and that image is displayed. In FIG. 4, reference numeral 401 denotes a print menu. When the user presses this print menu when instructing printing, the print service application 146 displays the print dialog 142 shown in FIG.

図5は印刷ダイアログ142の一例を示す図である。図5において、142は印刷ダイアログであり、ユーザに対するMFP3、103用の印刷設定画面として、印刷サービスアプリケーション146がこの画面を表示する。印刷ダイアログ142は、Webブラウザ9や15を利用して、そのWebブラウザ上に表示することができる。535、536、537は、画像や文書を印刷させるプリンタとしてユーザが選択可能な選択肢である。このプリンタの選択肢は、メーカー名とモデル名で示されている。図5の例では、GHI社製のAkbNmb(モデル名)、ABC社製のKmmn(モデル名、図1におけるMFP3であるとする)、DEF社製のXyz(モデル名)に該当する選択肢を表す。同図では、MFP3に対応するプリンタ選択肢536が選択されている状態を表す。530は用紙サイズ選択部であり、次に示す選択肢の中からMFP3、103で印刷する用紙のサイズを選択することができる。同図ではLetterサイズが選択されている状態を表す。なお、用紙サイズの選択肢として、A5、A4、B5、Letterが選択できるものとする。   FIG. 5 is a diagram illustrating an example of the print dialog 142. In FIG. 5, reference numeral 142 denotes a print dialog, which is displayed by the print service application 146 as a print setting screen for the MFPs 3 and 103 for the user. The print dialog 142 can be displayed on the Web browser using the Web browser 9 or 15. Reference numerals 535, 536, and 537 are options that the user can select as a printer for printing an image or a document. The printer options are indicated by the manufacturer name and model name. In the example of FIG. 5, options corresponding to AbbNmb (model name) manufactured by GHI, Kmmn (model name, assumed to be MFP3 in FIG. 1) manufactured by ABC, and Xyz (model name) manufactured by DEF are represented. . In the drawing, the printer option 536 corresponding to the MFP 3 is selected. Reference numeral 530 denotes a paper size selection unit, which can select a paper size to be printed by the MFPs 3 and 103 from the following options. In the figure, the Letter size is selected. Note that A5, A4, B5, and Letter can be selected as options for the paper size.

531は用紙の種類選択部であり、次に示す選択肢の中からMFP3、103で印刷する用紙の種類を選択することができる。同図ではPlain Paperが選択されている状態を表す。なお、用紙の種類の選択肢として、Plain Paper(普通紙)、Photo Paper(写真紙)、Postcardが選択できるものとする。   A paper type selection unit 531 can select the type of paper to be printed by the MFPs 3 and 103 from the following options. In the figure, the Plain Paper is selected. It should be noted that Plain Paper (plain paper), Photo Paper (photo paper), and Postcard can be selected as paper type options.

532は印刷品位選択部であり、次に示す選択肢の中からMFP3、103で印刷する印刷品位を選択することができる。同図ではStandard(標準)が選択されている状態を表す。なお、印刷品位の選択肢として、High(高品質)、Standard(標準)、Fast(高速)が選択できるものとする。   A print quality selection unit 532 can select a print quality to be printed by the MFPs 3 and 103 from the following options. In the drawing, Standard (standard) is selected. It is assumed that High (high quality), Standard (standard), and Fast (high speed) can be selected as print quality options.

533は色/濃度選択部であり、次に示す選択肢の中からMFP3、103で印刷する色や濃度を選択することができる。同図ではAutoが選択されている状態を表す。なお、印刷品位の選択肢として、Auto(自動)、Manual(手動)が選択できるものとする。   A color / density selection unit 533 can select a color or density to be printed by the MFPs 3 and 103 from the following options. The figure shows a state in which Auto is selected. It should be noted that Auto (automatic) and Manual (manual) can be selected as print quality options.

534は印刷開始ボタンであり、ユーザ操作によりこのボタンが押下されると、印刷サービスアプリケーション146がプリンタ選択肢536に関連付けられているMFP3用の印刷ジョブを生成する。538はクローズボタンであり、ユーザ操作によりこのボタンが押下されると、印刷サービスアプリケーション146が印刷ダイアログ142を閉じる。   Reference numeral 534 denotes a print start button. When this button is pressed by a user operation, the print service application 146 generates a print job for the MFP 3 associated with the printer option 536. Reference numeral 538 denotes a close button. When this button is pressed by a user operation, the print service application 146 closes the print dialog 142.

図6、図7は、本印刷システム全体の処理の一例を示すフローチャートである。これらのフローチャートに係るプログラムは、PCまたはMFP内に組み込まれている。PC内で動作するプログラムは、HDD202に記憶されており、RAM201に読み出され、CPU204により実行される。MFP内で動作するプログラムは、ROM16に記憶されており、RAM17に読み出され、CPU15により実行される。これらのフローチャートにおいて、縦の列が処理の実行元を表し、本実施例では同図の左側から、Webブラウザ9、画像管理アプリケーション145、印刷サービスアプリケーション146、データ変換アプリケーション143、MFP3を例として記す。以下では、ユーザがPC1を使い、Webブラウザ9に利用して、画像の印刷を行うケースの例を示す。   6 and 7 are flowcharts showing an example of processing of the entire printing system. The programs according to these flowcharts are incorporated in the PC or MFP. A program operating in the PC is stored in the HDD 202, read into the RAM 201, and executed by the CPU 204. A program operating in the MFP is stored in the ROM 16, read into the RAM 17, and executed by the CPU 15. In these flowcharts, vertical columns represent processing execution sources, and in this embodiment, the Web browser 9, the image management application 145, the print service application 146, the data conversion application 143, and the MFP 3 are described as examples from the left side of FIG. . In the following, an example of a case where the user uses the PC 1 and prints an image using the Web browser 9 will be described.

図6において、ステップS601はドキュメントの印刷の開始、即ち本フローチャートの開始を表すものである。例えば、ユーザが、Webブラウザ9を起動して画像管理アプリケーション145のURLにアクセスしてログインすることにより、本フローチャートの処理が開始される。このように、ユーザがサーバ7の画像管理アプリケーション145を利用できる状態になると、例えばサーバ7に格納されている複数の画像が印刷対象の候補として、PC1のWebブラウザ9のウィンドウに表示される。そして、その表示に基づき、ユーザが印刷対象とする画像を選択する。または、ユーザが、PC1に格納されている画像から、印刷対象の画像を選択して、その画像をサーバ7に送信するようにしてもよい。   In FIG. 6, step S601 represents the start of document printing, that is, the start of this flowchart. For example, when the user starts the Web browser 9 and accesses the URL of the image management application 145 to log in, the processing of this flowchart is started. As described above, when the user can use the image management application 145 of the server 7, for example, a plurality of images stored in the server 7 are displayed in the window of the Web browser 9 of the PC 1 as candidates for printing. Then, based on the display, the user selects an image to be printed. Alternatively, the user may select an image to be printed from the images stored in the PC 1 and transmit the image to the server 7.

このように、ユーザが印刷対象の画像を選択すると、Webブラウザ9は、画像管理アプリケーション145に画像の表示を指示する(S602)。この時、Webブラウザ9は、複数の画像を印刷対象として選択できるように構成しても良い。   As described above, when the user selects an image to be printed, the Web browser 9 instructs the image management application 145 to display an image (S602). At this time, the Web browser 9 may be configured to select a plurality of images as print targets.

画像管理アプリケーション145は、画像表示の指示を受けると、サーバ7に格納されていた画像ファイルを開き、画像データをWebブラウザ9に送信して、PC1に画像を表示させる(S603)。すると、図4に示すようにWebブラウザ9上で、画像管理アプリケーション145により画像が表示された状態となる。図4に示したWebブラウザ9のウィンドウにおける印刷メニュー401が、ユーザの指示により選択されると、Webブラウザ9を介して、表示指示が画像管理アプリケーション145に通知される(S604)。画像管理アプリケーション145は、この通知を受け取ると、印刷サービスアプリケーション146に、印刷ダイアログの表示を指示する(S605)。印刷サービスアプリケーション146は、表示指示を受けると、印刷ダイアログ142をWebブラウザ9に表示させる(S606)。すると、Webブラウザ9上に図5に示すような印刷ダイアログ142が表示される。ユーザがプリンタ選択肢535、536、537の中から、印刷を実行させるプリンタ(図5の例ではMFP3に関連付けられているプリンタ選択肢536)を選択する。また、ユーザが各印刷設定の中から希望する設定を選択し、印刷ダイアログ142内の印刷ボタン534を押下する。すると、Webブラウザ9は、印刷開始要求と、ユーザにより選択されたプリンタまた印刷設定を特定するための情報を、画像管理アプリケーション145に通知する(S607)。ユーザが選択した印刷設定は、例えば印刷設定ファイル(XMLファイル)に書き込まれ、その印刷設定ファイルが格納されている所在を示すURLが、印刷設定を特定するための情報として、画像管理アプリケーション145に通知される。画像管理アプリケーション145は、この通知を受け取ると、印刷データをPDFファイルとして生成し、このPDFファイルと印刷設定を特定するための情報等を入力パラメータとして、印刷サービスアプリケーション146に印刷を指示する(S608)。   When receiving the image display instruction, the image management application 145 opens the image file stored in the server 7, transmits the image data to the Web browser 9, and displays the image on the PC 1 (S603). Then, the image is displayed by the image management application 145 on the Web browser 9 as shown in FIG. When the print menu 401 in the window of the Web browser 9 shown in FIG. 4 is selected by a user instruction, a display instruction is notified to the image management application 145 via the Web browser 9 (S604). Upon receiving this notification, the image management application 145 instructs the print service application 146 to display a print dialog (S605). Upon receiving the display instruction, the print service application 146 displays the print dialog 142 on the Web browser 9 (S606). Then, a print dialog 142 as shown in FIG. 5 is displayed on the Web browser 9. A user selects a printer (printer option 536 associated with the MFP 3 in the example of FIG. 5) from among printer options 535, 536, and 537. Further, the user selects a desired setting from among the print settings, and presses the print button 534 in the print dialog 142. Then, the Web browser 9 notifies the image management application 145 of a print start request and information for specifying the printer or print setting selected by the user (S607). The print setting selected by the user is written in, for example, a print setting file (XML file), and the URL indicating the location where the print setting file is stored is used as information for specifying the print setting in the image management application 145. Be notified. Upon receiving this notification, the image management application 145 generates print data as a PDF file, and instructs the print service application 146 to print using the PDF file and information for specifying print settings as input parameters (S608). ).

本実施例においては、S608において画像管理アプリケーション145は、S602において選択された印刷対象の画像のサイズと同じ大きさのページサイズで、PDFファイルを作成する。これにより、サーバ2において画像データの形式を変換するとき、またMFP3で印刷を行うときに、印刷対象の画像がページの大きさと同じであるため、ページ内において画像の外側の余白が無い状態で、印刷処理を行うことができる。従って、例えばMFP3によりフチなし印刷を行う場合に、フチなし印刷用の印刷対象領域に対してページを展開することにより、ページ内の画像を適切に印刷させることができる。このS608において、画像管理アプリケーション145が実行するPDFファイルの生成処理の詳細は、図8のフローチャートで後述する。   In this embodiment, in step S608, the image management application 145 creates a PDF file with a page size that is the same as the size of the image to be printed selected in step S602. Thus, when the image data format is converted in the server 2 or when the MFP 3 performs printing, the image to be printed is the same as the page size, so that there is no margin outside the image in the page. The printing process can be performed. Therefore, for example, when borderless printing is performed by the MFP 3, an image in the page can be appropriately printed by expanding the page with respect to the print target area for borderless printing. Details of the PDF file generation processing executed by the image management application 145 in S608 will be described later with reference to the flowchart of FIG.

印刷サービスアプリケーション146は、画像管理アプリケーション145からの印刷指示を受けると、入力パラメータで指定されたPDFファイルと印刷設定を特定するための情報等をもとに印刷ジョブを生成する。そして、Webブラウザ9から通知された、印刷を行わせるプリンタ(プリンタ選択肢536に関連付けられているMFP3)への印刷ジョブを、サーバ2に送信する(S609)。サーバ2に送信される印刷ジョブには、その印刷ジョブや印刷を行わせるプリンタを特定するID、印刷設定ファイルが格納されている場所を示すURL、印刷対象のPDFファイルが含まれている。   When the print service application 146 receives a print instruction from the image management application 145, the print service application 146 generates a print job based on the PDF file specified by the input parameters, information for specifying print settings, and the like. Then, the print job notified to the printer (MFP 3 associated with the printer option 536) notified from the Web browser 9 is transmitted to the server 2 (S609). The print job transmitted to the server 2 includes an ID for specifying the print job and a printer that performs printing, a URL indicating a location where the print setting file is stored, and a PDF file to be printed.

サーバ2のデータ変換アプリケーション143は、サーバ7から印刷ジョブを受信すると、その印刷ジョブを不図示の印刷ジョブ管理データベースに保存する(S610)。次に、データ変換アプリケーション143は、印刷ジョブの保存とは異なるスレッドで、印刷ジョブに含まれているPDFファイルに対するデータ変換処理を行う(S611)。このデータ変換処理では、印刷ジョブに含まれているURLに従って印刷設定ファイルをダウンロードし、その印刷設定ファイルが示す印刷設定に応じて、PDFファイルをJPEGファイルに変換する。そして、そのJPEGファイルを、外部装置から参照できるように、サーバ2内のメモリに格納する。なお、このとき、サーバ2の外部メモリにJPEGファイルを格納するようにしてもよい。このS611におけるデータ変換処理の詳細は、図10で後述する。   When receiving the print job from the server 7, the data conversion application 143 of the server 2 stores the print job in a print job management database (not shown) (S610). Next, the data conversion application 143 performs data conversion processing on the PDF file included in the print job, using a thread different from that for storing the print job (S611). In this data conversion process, a print setting file is downloaded according to the URL included in the print job, and the PDF file is converted into a JPEG file according to the print setting indicated by the print setting file. Then, the JPEG file is stored in the memory in the server 2 so that it can be referred to from an external device. At this time, the JPEG file may be stored in the external memory of the server 2. Details of the data conversion processing in S611 will be described later with reference to FIG.

データ変換アプリケーション143は、更に、印刷ジョブ管理データベースに、印刷ジョブの準備完了を表わすフラグ、印刷ジョブアクセスURL等を格納し、印刷ジョブ管理データベースを更新する(S612)。この印刷ジョブアクセスURLは、S611でPDFファイルから変換され、メモリに格納されたJPEGファイルの格納先URLであり、例えば上記のメモリの所在情報と、そのメモリ内の上記のJPEGファイルのファイル名により構成される。このS612において印刷ジョブ管理データベースが更新されると、MFP3における印刷待ち状態となる(S613)。   The data conversion application 143 further stores a flag indicating completion of print job preparation, a print job access URL, and the like in the print job management database, and updates the print job management database (S612). This print job access URL is the storage destination URL of the JPEG file converted from the PDF file in S611 and stored in the memory. For example, the print job access URL is based on the location information of the memory and the file name of the JPEG file in the memory. Composed. When the print job management database is updated in S612, the MFP 3 enters a print waiting state (S613).

図7において、ステップS701はMFP3側から見たドキュメントの印刷の開始を表し、即ち本フローチャートの開始を示すステップである。   In FIG. 7, step S701 represents the start of document printing as viewed from the MFP 3 side, that is, a step indicating the start of this flowchart.

MFP3は、データ変換アプリケーション143に、印刷ジョブの有無を問い合わせる(S702)。このとき、MFP3は、入力パラメータとして、印刷サービスアプリケーション146が発行したプリンタID等を、サーバ2のデータ変換アプリケーション143に渡す。データ変換アプリケーション143は、印刷ジョブ管理データベースを参照し、受け取ったプリンタIDに対し、準備が完了した印刷ジョブが存在するか否かを調べ、その結果に応じてレスポンスを返却する(S703)。MFP3は、データ変換アプリケーション143からのレスポンスを受信すると、そのレスポンス内の応答メッセージに含まれている「印刷ジョブ有り応答」、「印刷ジョブ無し応答」を確認する(S704)。ステップS704において、MFP3が「印刷ジョブ有り応答」を受信した場合、ステップS705へ進み、「印刷ジョブ無し応答」を受信した場合、S702へ戻る。この時、MFP3は一定時間(本実施例では1分間)待った後、ステップS702へ戻る。このように、MFP3は、データ変換アプリケーション143に対し、印刷ジョブの有無を一定時間間隔で問い合わせる。   The MFP 3 inquires of the data conversion application 143 whether there is a print job (S702). At this time, the MFP 3 passes the printer ID issued by the print service application 146 as an input parameter to the data conversion application 143 of the server 2. The data conversion application 143 refers to the print job management database, checks whether there is a ready print job for the received printer ID, and returns a response according to the result (S703). Upon receiving the response from the data conversion application 143, the MFP 3 checks the “print job present response” and “print job absent response” included in the response message in the response (S704). If the MFP 3 receives a “print job response” in step S704, the process proceeds to step S705. If the MFP 3 receives a “print job absence response”, the process returns to step S702. At this time, the MFP 3 waits for a certain time (1 minute in this embodiment), and then returns to step S702. As described above, the MFP 3 inquires of the data conversion application 143 whether there is a print job at regular time intervals.

S705で、MFP3は、印刷サービスアプリケーション146に対し、印刷ジョブを要求する。データ変換アプリケーション143は、要求を受けると、印刷処理に必要な情報を返却する(S706)。S706においてMFP3に返却される情報には、印刷ジョブアクセスURL(印刷データ(JPEGファイル)の格納先のURL)、印刷データ(JPEGファイル)の総ページ数等が含まれる。MFP3は、S706において返却された情報を基に、各ページの印刷データ(JPEGファイル)を取得する為の印刷データ取得要求をデータ変換アプリケーション143に送信する(S707)。データ変換アプリケーション143は、MFP3からの印刷データ取得要求を受信すると、指定されたページの印刷データ(JPEGファイル)をMFP3に送信する(S708)。   In step S <b> 705, the MFP 3 requests the print service application 146 for a print job. Upon receiving the request, the data conversion application 143 returns information necessary for the printing process (S706). The information returned to the MFP 3 in S706 includes the print job access URL (URL of the storage location of the print data (JPEG file)), the total number of pages of the print data (JPEG file), and the like. Based on the information returned in S706, the MFP 3 transmits a print data acquisition request for acquiring the print data (JPEG file) of each page to the data conversion application 143 (S707). When receiving the print data acquisition request from the MFP 3, the data conversion application 143 transmits the print data (JPEG file) of the designated page to the MFP 3 (S708).

MFP3は、データ変換アプリケーション143から送信された印刷データを受信すると、その印刷データを印刷する(S709)。MFP3は、前記印刷データ(JPEGファイル)の総ページ数をもとに、次ページの有無を確認する。次ページが有る場合、ステップS707に戻り、そのページの印刷データを取得する為の印刷データ取得要求をデータ変換アプリケーション143に送信し、次ページが無い場合、ステップS711へ進む(S710)。   Upon receiving the print data transmitted from the data conversion application 143, the MFP 3 prints the print data (S709). The MFP 3 confirms the presence or absence of the next page based on the total number of pages of the print data (JPEG file). If there is a next page, the process returns to step S707, and a print data acquisition request for acquiring the print data of that page is transmitted to the data conversion application 143. If there is no next page, the process proceeds to step S711 (S710).

S711において、MFP3は、サーバ2のデータ変換アプリケーション143に印刷処理の終了を通知する。データ変換アプリケーション143は、通知を受けると、この印刷ジョブ対応する印刷データ(JPEGファイル)を削除する(S712)。データ変換アプリケーション143は、印刷ジョブ管理データベースからこの印刷ジョブに関する情報を削除して、印刷ジョブ管理データベースを更新し(S713)、ドキュメントの印刷処理を終了する(S714)。   In step S <b> 711, the MFP 3 notifies the data conversion application 143 of the server 2 of the end of the printing process. Upon receiving the notification, the data conversion application 143 deletes the print data (JPEG file) corresponding to this print job (S712). The data conversion application 143 deletes information related to the print job from the print job management database, updates the print job management database (S713), and ends the document printing process (S714).

図7のフローチャートに関し、以上の説明では、MFP3がS702における印刷ジョブの有無の問合せを、定期的に行う例を示した。ただし、サーバ2が、印刷ジョブに含まれているMFP3のプリンタIDに従って、印刷ジョブが格納されたことをMFP3に通知し、その通知をMFP3が受け取ったことに応じて印刷ジョブを取得してもよい。また、サーバ2からMFP3に、直接印刷データを送信するようにしてもよい。   Regarding the flowchart of FIG. 7, the above description has shown an example in which the MFP 3 periodically inquires whether there is a print job in S <b> 702. However, even if the server 2 notifies the MFP 3 that the print job has been stored in accordance with the printer ID of the MFP 3 included in the print job, and acquires the print job in response to the MFP 3 receiving the notification. Good. Further, the print data may be directly transmitted from the server 2 to the MFP 3.

図8は、画像管理アプリケーション145がステップS608で行う、PDFファイルの作成処理の一例を示すフローチャートである。このフローチャートに係るプログラムは、サーバ7のHDD202に記憶されており、RAM201に読み出され、CPU204により実行される。   FIG. 8 is a flowchart illustrating an example of a PDF file creation process performed by the image management application 145 in step S608. The program according to this flowchart is stored in the HDD 202 of the server 7, read out to the RAM 201, and executed by the CPU 204.

ステップS801において、画像管理アプリケーション145は、新規のPDFファイルを作成し、その印刷データにPDFのヘッダ部を記述する。図9は、PDFに記述される内容の一例を示し、図9(a)は、PDFファイルのヘッダ部や先頭部分に位置するオブジェクト群の一例である。図9(a)のオブジェクト群には、ファイルがPDFファイルであることを示す文字列やバージョン番号、PDFファイルの中身にアクセスするためのアドレス情報、各ページオブジェクトに対する参照情報などが含まれる。   In step S801, the image management application 145 creates a new PDF file, and describes the header portion of the PDF in the print data. FIG. 9 shows an example of the contents described in the PDF, and FIG. 9A shows an example of an object group located at the header part or the head part of the PDF file. The object group in FIG. 9A includes a character string and version number indicating that the file is a PDF file, address information for accessing the contents of the PDF file, reference information for each page object, and the like.

画像管理アプリケーション145は、ヘッダ部を記述後、ステップS602で選択された画像をメモリから読み出して取得する(S802)。この画像の幅をIx(単位はPixel)、高さをIy(単位はPixel)とし、一例として、画素数Ixは2400、画素数Iyは3600であるとする。次に、画像管理アプリケーション145は、この画像の便宜上の解像度(Riとする)(単位はdot/inch:dpi)を決定する(S803)。画像管理アプリケーション145は、Riを固定値、あるいは後述する方法により決定する。ここでは、一例として、Riを600であるとする。   After describing the header part, the image management application 145 reads out and acquires the image selected in step S602 from the memory (S802). Assume that the width of this image is Ix (unit is Pixel) and the height is Iy (unit is Pixel). As an example, the number of pixels Ix is 2400 and the number of pixels Iy is 3600. Next, the image management application 145 determines a convenient resolution (Ri) for this image (unit: dot / inch: dpi) (S803). The image management application 145 determines Ri by a fixed value or a method described later. Here, Ri is 600 as an example.

次に、画像管理アプリケーション145は、PDFファイルのページ部を記述する(S804)。図9(b)は、PDFファイルのページ部の一例である。PDFファイルのページ部には、PDFファイルの各ページのサイズ等の情報や、各リソースオブジェクトに対する参照情報等が含まれる。図9(b)の例には、次のようなページサイズ情報901が含まれている。/MediaBox[0 0 288 432]。このページサイズ情報は、印刷対象の画像としてPDFファイルに含ませる画像の画素数に合わせて決定される。このページサイズ情報の決定処理について説明する。   Next, the image management application 145 describes the page portion of the PDF file (S804). FIG. 9B is an example of the page portion of the PDF file. The page portion of the PDF file includes information such as the size of each page of the PDF file, reference information for each resource object, and the like. The example of FIG. 9B includes the following page size information 901. / MediaBox [0 0 288 432]. This page size information is determined according to the number of pixels of the image to be included in the PDF file as the image to be printed. The page size information determination process will be described.

PDFファイルのページ記述における座標系の単位はPointであり、1/72inchを1とする単位である。上記のページサイズ情報901は、S804において、PDFファイルに記述される画像の幅と高さの画素数Ix、Iyを、画像の解像度を元にした座標系から、PDFにおけるPointの座標系に変換する。   The unit of the coordinate system in the page description of the PDF file is Point, and is a unit in which 1/72 inch is 1. In step S804, the page size information 901 converts the number of pixels Ix and Iy of the image width and height described in the PDF file from the coordinate system based on the image resolution to the Point coordinate system in the PDF. To do.

本実施例においては、PDFファイルのページ内において画像に対する余白を設けないように、画像とページとをフィットさせる必要がある。そのため、ページサイズ情報901を、印刷対象の画像としてPDFファイルに含ませる画像の画素数に合わせて決定する。具体的には、ページサイズ情報に含ませるページの幅(Px、上記の記述における288)は、以下の計算式により求められる。   In this embodiment, it is necessary to fit the image and the page so as not to provide a margin for the image in the page of the PDF file. Therefore, the page size information 901 is determined according to the number of pixels of the image to be included in the PDF file as the image to be printed. Specifically, the page width (Px, 288 in the above description) included in the page size information is obtained by the following calculation formula.

Px[Point]=Ix[dot]*72[1/inch]/Ri[dpi] ・・・式(1)
また、ページの高さ(Pyとする)(上記の記述における432)は、以下の計算式により求められる。
Px [Point] = Ix [dot] * 72 [1 / inch] / Ri [dpi] (1)
Further, the page height (Py) (432 in the above description) is obtained by the following calculation formula.

Py[Point]=Iy[dot]*72[1/inch]/Ri[dpi] ・・・式(2)
前述の式(1)、(2)に、Ix=2400、Iy=3600、Ri=600を代入することで、それぞれ、288[Point]、432[Point]が求められる。
Py [Point] = Iy [dot] * 72 [1 / inch] / Ri [dpi] (2)
By substituting Ix = 2400, Iy = 3600, and Ri = 600 into the above equations (1) and (2), 288 [Point] and 432 [Point] are obtained, respectively.

このようにして決定されるページサイズは、画像の解像度をRiとしたときに、印刷対象の画像全体が丁度収まる大きさである。即ち、このページサイズに印刷対象の画像を含ませた場合に、印刷対象の画像の外側に余白がない状態となる。   The page size determined in this way is such a size that the entire image to be printed fits exactly when the resolution of the image is Ri. That is, when an image to be printed is included in this page size, there is no margin outside the image to be printed.

このように、画像管理アプリケーション145は、印刷対象の画像と同一アスペクト比のページのPDFファイルを作成することを目的としている。これは、後述するデータ変換アプリケーション143が、PDFファイルのページを用紙サイズにフィットさせたときに、同時にそのページ内の印刷対象の画像がその用紙サイズにフィットするようにするためである。   As described above, the image management application 145 is intended to create a PDF file of a page having the same aspect ratio as the image to be printed. This is because when the data conversion application 143, which will be described later, fits the page of the PDF file to the paper size, the image to be printed on the page simultaneously fits the paper size.

なお、PDFファイルでは、上記のようにページサイズ(Point数)が設定されると、そのページに含まれる画像がそのページの全面に配置される。そのため、印刷対象の画像とページサイズとをフィットさせるためには、ページのアスペクト比と画像のアスペクト比を一致させることが重要であり、PDFファイルのページの実際のサイズ(Point数)はどのようなものであっても良い。そして、データ変換アプリケーション143が、印刷対象の用紙サイズに合わせてPDFファイルのページを変倍して画像化することにより、その用紙サイズに合った画像を取得することができる。   In the PDF file, when the page size (number of points) is set as described above, an image included in the page is arranged on the entire surface of the page. Therefore, in order to fit the image to be printed and the page size, it is important to match the aspect ratio of the page with the aspect ratio of the image, and what is the actual size (number of points) of the PDF file page? It may be anything. Then, the data conversion application 143 can acquire an image that matches the paper size by scaling the PDF file page to an image according to the paper size to be printed.

また、このように、PDFファイル内のページサイズは、アスペクト比が重要であり、サイズ自体は任意であるため、そのサイズを決定するための解像度もまた任意である。従って、上記のように600dpiという固定値であってもよい。   As described above, since the aspect ratio is important for the page size in the PDF file and the size itself is arbitrary, the resolution for determining the size is also arbitrary. Therefore, it may be a fixed value of 600 dpi as described above.

但し、データ変換アプリケーション143の構成によっては、PDFファイル内のデータを、印刷を行うときの用紙サイズにフィットさせずに等倍で画像化する場合がある。この場合、等倍で画像化された印刷対象を用紙サイズに展開させたときに、画像の幅方向、高さ方向の両方に不要な余白が生じてしまうことがある。例えば図9(b)に示したページ記述情報のページは、幅4インチ、高さ6インチのページサイズであるが、このPDFファイルをA4サイズに等倍で展開した場合、多くの余白が発生する。そこで、画像管理アプリケーション145は、印刷設定として指定されている出力用紙サイズの大きさに基づいてRiを決定することで、前述のようなケースでも印刷結果中の余白を最小限にとどめることができる。   However, depending on the configuration of the data conversion application 143, the data in the PDF file may be imaged at the same magnification without being fitted to the paper size used for printing. In this case, when a print target that has been imaged at the same magnification is expanded to a paper size, an unnecessary margin may occur in both the width direction and the height direction of the image. For example, the page description information page shown in FIG. 9B has a page size of 4 inches wide and 6 inches high, but if this PDF file is expanded to A4 size at a same size, a lot of margins are generated. To do. Therefore, the image management application 145 determines Ri based on the size of the output paper size specified as the print setting, so that the margin in the print result can be minimized even in the above-described case. .

具体的には、出力用紙サイズの用紙の幅をOx(単位はinch)、用紙の高さをOy(単位はinch)としたときに、Riを以下のように決定する。   Specifically, Ri is determined as follows when the paper width of the output paper size is Ox (unit is inch) and the paper height is Oy (unit is inch).

Ri=max(Ix/Ox、Iy/Oy) ・・・式(3)
ここで、max(A、B)は、AかBのうち値の大きい方を意味する。このようにして決定されるRiを元に式(1)、式(2)で求められるPDFファイルのページサイズは、出力用紙サイズに内接するような大きさになる。また、データ変換アプリケーション143は、画像に含まれるタグ情報に記載の解像度をRiとして決定しても良い。
Ri = max (Ix / Ox, Iy / Oy) (3)
Here, max (A, B) means the larger one of A or B. The page size of the PDF file obtained by the equations (1) and (2) based on Ri determined in this way becomes a size inscribed in the output paper size. Further, the data conversion application 143 may determine the resolution described in the tag information included in the image as Ri.

Riを決定後、画像管理アプリケーション145は、PDFファイルに対し、画像データを記述する(S805)。図9(c)は、画像オブジェクト、及びそれを配置するためのオペレータの一例を示す。記述902の「Width 2400/Height 3600」は、画像の画素数(画像の幅方向の画素数Ixが2400Pixel、画像の高さ方向の画素数Iyが3600Pixel)を示す。特に、図9の例の場合、画像が当該解像度(600dpi)において、元のサイズのままPDFファイルに格納されていることを示している。   After determining Ri, the image management application 145 describes the image data for the PDF file (S805). FIG. 9C shows an example of an image object and an operator for arranging the image object. “Width 2400 / Height 3600” in the description 902 indicates the number of pixels of the image (the number of pixels Ix in the width direction of the image is 2400 Pixel, and the number of pixels Iy in the height direction of the image is 3600 Pixel). In particular, the example of FIG. 9 indicates that the image is stored in the PDF file with the original size at the resolution (600 dpi).

記述903は、行列変換を指示するためのオペレータであり、以下の形式で表現される。
「Sx 0 0 Sy Tx Ty cm」
ここで、Sx、SyはPDFファイルの座標系における画像のサイズであり、Tx、TyはPDFファイルの座標系の原点からの移動距離である。PDFファイル内のデータを画像化(レンダリング)するときには、この記述903に従って、画像をページ内でレイアウトすることができる。ただし、本実施例においては、画像のサイズと、ページサイズとをフィットさせているため、レンダリング時に画像を原点から移動させてレイアウトする必要はない。よって、それぞれの値は以下の計算式で決定する。
A description 903 is an operator for instructing matrix transformation, and is expressed in the following format.
Sx 0 0 Sy Tx Ty cm”
Here, Sx and Sy are image sizes in the coordinate system of the PDF file, and Tx and Ty are moving distances from the origin of the coordinate system of the PDF file. When the data in the PDF file is imaged (rendered), the image can be laid out in the page according to the description 903. However, in this embodiment, since the image size and the page size are fitted, it is not necessary to lay out the image by moving it from the origin at the time of rendering. Therefore, each value is determined by the following calculation formula.

Sx=Px
Sy=Py ・・・式(4)
Tx=Ty=0
このように座標系を変換後、画像オブジェクトを配置することで、PDFファイルのページサイズ全体に画像を配置する。
Sx = Px
Sy = Py Formula (4)
Tx = Ty = 0
Thus, after converting the coordinate system, the image object is arranged to arrange the image over the entire page size of the PDF file.

ステップS806で、画像管理アプリケーション145は、印刷指定された画像が残っているか判断する。印刷指定された画像が残っていない場合、画像管理アプリケーション145は、PDFファイルに対し図9(d)に示すようなPDFのフッタ部を記述し(S807)、PDFファイルの作成処理を終了する。   In step S806, the image management application 145 determines whether there is an image for which printing has been designated. If no print-designated image remains, the image management application 145 describes a PDF footer as shown in FIG. 9D for the PDF file (S807), and ends the PDF file creation processing.

印刷指定された画像が残っている場合、データ変換アプリケーション143は、ステップS802からステップS805の処理を、それぞれの画像に対して繰り返す。なお、PDFファイルでは、各ページに対して異なるページサイズを設定することができる。よって、複数の画像をそれぞれPDFファイルの各ページに配置するときに、画像のサイズがそれぞれ異なる場合には、生成されるPDFファイルにおける各ページのサイズは、画像のサイズに応じて異なることになる。   If there is an image for which printing is designated, the data conversion application 143 repeats the processing from step S802 to step S805 for each image. In the PDF file, different page sizes can be set for each page. Therefore, when a plurality of images are arranged on each page of the PDF file, if the image sizes are different, the size of each page in the generated PDF file differs depending on the size of the image. .

本実施例においては、画像管理アプリケーション145は、印刷設定を参照することはできるが、MFP3の能力(マージンのサイズ等)を取得することができない。従って、画像管理アプリケーション145は、例えばMFP3のマージンサイズを除いた印刷対象領域を把握した上で、その領域に合わせてページデータを生成することはできない。そこで、本実施例では、画像管理アプリケーション145は、前述の処理により、印刷対象の画像の元のサイズを変更することなく、その画像と同一アスペクト比を持つページ全体に画像が配置されるようにPDFファイルを生成する。これにより、サーバ2のデータ変換アプリケーション143が、PDFファイルのページ全体をJPEGファイルに変換することにより、元の印刷対象の画像に対して余白の無いJPEG画像を取得することができる。   In this embodiment, the image management application 145 can refer to the print settings, but cannot acquire the capability (margin size, etc.) of the MFP 3. Therefore, for example, the image management application 145 cannot recognize the print target area excluding the margin size of the MFP 3 and generate page data in accordance with the area. Therefore, in this embodiment, the image management application 145 arranges the image on the entire page having the same aspect ratio as the image without changing the original size of the image to be printed by the above-described processing. Create a PDF file. Thereby, the data conversion application 143 of the server 2 can acquire a JPEG image having no margin with respect to the original print target image by converting the entire page of the PDF file into a JPEG file.

図10は、データ変換アプリケーション143がステップS611で行うデータ変換処理の一例を示すフローチャートである。このフローチャートに係るプログラムは、サーバ2に組み込まれ、HDD202に記憶されており、RAM201に読み出され、CPU204により実行される。   FIG. 10 is a flowchart illustrating an example of the data conversion process performed by the data conversion application 143 in step S611. The program according to this flowchart is incorporated in the server 2, stored in the HDD 202, read out to the RAM 201, and executed by the CPU 204.

ステップS1001において、サーバ2のデータ変換アプリケーション143は、入力パラメータとしてサーバ7から受け取ったPDFファイルや印刷設定ファイルの格納先URLを参照し、PDFファイルと印刷設定ファイルをダウンロードする。データ変換アプリケーション143は、ダウンロードしたPDFファイルのヘッダ部を読み出す(S1002)。次にデータ変換アプリケーション143は、ダウンロードした印刷設定ファイルを解析し(S1003)、出力解像度設定、出力用紙サイズ設定、フチなし印刷設定の有無を判断する。なお、データ変換アプリケーション143は、割り付け印刷設定等のその他の印刷設定を判断し、それに従った変換処理を実行することができる。ただし、本実施例においては、出力解像度設定、出力用紙サイズ設定、フチなし印刷設定に従った変換処理について言及する。   In step S1001, the data conversion application 143 of the server 2 refers to the storage location URL of the PDF file or print setting file received from the server 7 as an input parameter, and downloads the PDF file and the print setting file. The data conversion application 143 reads the header part of the downloaded PDF file (S1002). Next, the data conversion application 143 analyzes the downloaded print setting file (S1003), and determines whether or not there is an output resolution setting, an output paper size setting, and a borderless print setting. Note that the data conversion application 143 can determine other print settings such as layout print settings and execute conversion processing according to the print settings. However, in this embodiment, reference is made to conversion processing according to output resolution setting, output paper size setting, and borderless print setting.

データ変換アプリケーション143は、出力解像度設定と出力用紙サイズ設定とフチなし印刷設定に従って、印刷対象領域を決定する(S1004)。印刷対象領域は、MFP3が画像を展開し、印刷することのできる領域を意味し、単位はPixelである。データ変換アプリケーション143は、MFP3の能力であるマージン情報やフチなし印刷時のはみ出し量を予め保持しており、このマージン情報やはみ出し量に従って、印刷対象領域を決定する。なお、フチなし印刷時のはみ出し量とは、MFP3において、用紙サイズを超えて印刷処理が行われるサイズを示す。フチなし印刷が指示されている場合には、出力用紙サイズにはみ出し量を加えたサイズに対し、出力解像度を掛け合わせた画素数を、印刷対象領域とする。一方、フチなし印刷が指示されていない場合、出力用紙サイズからマージン情報が示すマージンを除いたサイズに、出力解像度を掛け合わせた画素数を、印刷対象領域とする。   The data conversion application 143 determines a print target area according to the output resolution setting, the output paper size setting, and the borderless print setting (S1004). The print target area means an area where the MFP 3 can develop and print an image, and the unit is Pixel. The data conversion application 143 holds in advance margin information that is the capability of the MFP 3 and the amount of protrusion at the time of borderless printing, and determines a print target area according to the margin information and the amount of protrusion. Note that the amount of protrusion during borderless printing indicates the size at which the MFP 3 performs printing processing exceeding the paper size. If borderless printing is instructed, the number of pixels obtained by multiplying the output paper size by adding the amount of protrusion to the output resolution is set as the print target area. On the other hand, if no borderless printing is instructed, the number of pixels obtained by multiplying the output paper size by the output resolution and the size excluding the margin indicated by the margin information is set as the print target area.

図11は、印刷対象領域に展開される印刷対象の画像を示す図であり、図11(a)は、MFP3により画像が印刷される用紙1101に対し、マージンを除いた印刷対象領域1102を示している。フチなし印刷が指示されている場合、印刷対象領域は、出力用紙サイズにフチなし印刷時のはみ出し量を足し合わせ、さらに出力解像度を掛け合わせることで算出される。図11(b)は、用紙1111に対し、フチなし印刷時のはみ出し量を足し合わせた印刷対象領域1112を示している。   FIG. 11 is a diagram showing an image to be printed developed in the print target area. FIG. 11A shows a print target area 1102 excluding a margin for the paper 1101 on which the image is printed by the MFP 3. ing. When borderless printing is instructed, the print target area is calculated by adding the amount of protrusion at the time of borderless printing to the output paper size and further multiplying the output resolution. FIG. 11B shows a print target area 1112 in which the amount of protrusion at the time of borderless printing is added to the paper 1111.

データ変換アプリケーション143は、図9(b)で例示されるPDFファイルのページ記述部を読み出す(S1005)。データ変換アプリケーション143は、フチなし印刷設定において、フチなし印刷が指示されているか否かを判断する(S1006)。   The data conversion application 143 reads the page description part of the PDF file exemplified in FIG. 9B (S1005). The data conversion application 143 determines whether borderless printing is instructed in the borderless print setting (S1006).

次に、データ変換アプリケーション143は、S1007もしくはS1008において、PDFファイルのページの座標系から、印刷対象領域の座標系に変換する処理を行う。   Next, in S1007 or S1008, the data conversion application 143 performs processing for converting from the page coordinate system of the PDF file to the coordinate system of the print target area.

フチなし印刷設定においてフチなし印刷が指示されていない場合、データ変換アプリケーション143は、レンダリング時の変換行列を決定する(S1007)。この変換行列を「(Ux、0、0、Uy、Vx、Vy)」と表す。なお、この変換行列の書式は一般的に知られるものと等価であり、UxとUyは拡大率を、VxとVyは移動量を示す。後述するS1009のレンダリングの際には、この変換行列に従ってレンダリングが行われる。   If no borderless printing is instructed in the borderless print setting, the data conversion application 143 determines a conversion matrix at the time of rendering (S1007). This transformation matrix is expressed as “(Ux, 0, 0, Uy, Vx, Vy)”. The format of this transformation matrix is equivalent to that generally known, Ux and Uy indicate the enlargement ratio, and Vx and Vy indicate the movement amount. When rendering in S1009 described later, rendering is performed according to this conversion matrix.

S1007において、フチなし印刷が指示されていない場合の変換行列は、以下の式(5)により求められる。   In step S1007, the conversion matrix when the borderless printing is not instructed is obtained by the following equation (5).

Ux=Uy=min(Ax/Px、Ay/Py)
Vx=(Ax−Px*Ux)/2 ・・・式(5)
Vy=(Ay−Py*Uy)/2
ここで、PxとPyは、上述のようにPDFファイルのページ記述部のMediaBoxのサイズであり、単位はPDFファイルにおける座標系の単位であるPointである。なお、本実施例においてはこのMediaBoxのサイズは、印刷対象の画像のサイズでもある。またAxとAyは、印刷対象領域のサイズ(単位はPixel)である。min(A、B)は、AかBのうち値の小さい方を意味する。このようにして決定される変換行列をPDFファイルのページのレンダリング時に適用した場合、PDFファイルのMediaBoxに規定されているサイズのページが、印刷対象領域に対して内接するよう変倍される。即ち、印刷対象の画像を、印刷対象領域の幅、高さに対して少なくとも一方がフィットするように展開することができる。
Ux = Uy = min (Ax / Px, Ay / Py)
Vx = (Ax−Px * Ux) / 2 Formula (5)
Vy = (Ay−Py * Uy) / 2
Here, Px and Py are the size of the MediaBox in the page description part of the PDF file as described above, and the unit is Point, which is the unit of the coordinate system in the PDF file. In this embodiment, the size of the MediaBox is also the size of the image to be printed. Ax and Ay are the sizes (units: Pixel) of the print target area. min (A, B) means the smaller one of A or B. When the conversion matrix determined in this way is applied at the time of rendering the page of the PDF file, the page having the size defined in the MediaBox of the PDF file is scaled so as to be inscribed in the print target area. That is, the image to be printed can be developed so that at least one fits the width and height of the print target area.

さらに上記の式(5)のVx、Vyは、印刷対象の画像の、印刷対象領域に対する移動量を示す。そして、上記の式(5)は、印刷対象の画像と印刷対象領域とのサイズの違いの半分を、移動量としており、印刷対象の画像を印刷対象領域の中央に配置することができる。   Furthermore, Vx and Vy in the above equation (5) indicate the movement amount of the image to be printed with respect to the print target area. In the above equation (5), half of the difference in size between the image to be printed and the print target area is set as the movement amount, and the image to be printed can be arranged at the center of the print target area.

図11は、印刷対象領域に対する画像の展開を示す図であり、図11(a)は、フチなし印刷が指定されていない場合に、S1007において決定された変換行列に従って、画像が展開された例を示す。図11(a)では、PDFファイルのページ1103(本実施例では印刷対象の画像と等価)が、印刷対象領域1102のサイズに内接するように変倍された上で、その印刷対象領域1102に配置されている。このように、データ変換アプリケーション143は、フチあり印刷時には、PDFファイルのページデータが欠落しないよう、変換行列を決定する。   FIG. 11 is a diagram illustrating the development of an image with respect to a print target area. FIG. 11A illustrates an example in which an image is developed according to the transformation matrix determined in S1007 when borderless printing is not designated. Indicates. In FIG. 11A, a PDF file page 1103 (equivalent to an image to be printed in this embodiment) is scaled so as to be inscribed in the size of the print target area 1102, and is then displayed in the print target area 1102. Has been placed. Thus, the data conversion application 143 determines the conversion matrix so that the page data of the PDF file is not lost during printing with a border.

ステップS1006で、フチなし印刷設定においてフチなし印刷が指示されていると判断した場合、データ変換アプリケーション143は、レンダリング時の変換行列(Ux、0、0、Uy、Vx、Vy)を以下のように決定する(S1008)。   If it is determined in step S1006 that borderless printing is instructed in the borderless print setting, the data conversion application 143 uses the conversion matrix (Ux, 0, 0, Uy, Vx, Vy) at the time of rendering as follows. (S1008).

Ux=Uy=max(Ax/Px、Ay/Py)
Vx=(Px*Ux−Ax)/2 ・・・式(6)
Vy=(Py*Uy−Ay)/2
max(A、B)は、AかBのうち値の大きい方を意味する。このようにして決定される変換行列をPDFファイルのページのレンダリング時に適用した場合、PDFファイルのMediaBoxは、印刷対象領域に対して外接するよう変倍され、さらに印刷対象領域に対して中央に配置される。
Ux = Uy = max (Ax / Px, Ay / Py)
Vx = (Px * Ux−Ax) / 2 (6)
Vy = (Py * Uy-Ay) / 2
max (A, B) means the larger one of A or B. When the transformation matrix determined in this way is applied at the time of rendering a page of the PDF file, the MediaBox of the PDF file is scaled so as to circumscribe the print target area, and further arranged in the center with respect to the print target area. Is done.

図11(b)は、印刷対象領域1112に対して、変倍した上で配置されるPDFファイルのページ(1113)を示している。このように、データ変換アプリケーション143は、フチなし印刷時には、全てのフチ上にPDFファイルのページデータが存在するよう、変換行列を決定する。変換行列を決定すると、データ変換アプリケーション143は、その変換行列を用いて、PDFファイルのページを印刷対象領域のサイズにレンダリングする(S1009)。   FIG. 11B shows a page (1113) of the PDF file that is arranged after scaling the print target area 1112. As described above, the data conversion application 143 determines the conversion matrix so that the page data of the PDF file exists on all the edges during borderless printing. When the conversion matrix is determined, the data conversion application 143 renders the page of the PDF file to the size of the print target area using the conversion matrix (S1009).

レンダリング後、データ変換アプリケーション143は、レンダリングにより得られた画像をJPEGにエンコードし、外部から参照可能な形で格納する(S1010)。ステップS1011で、データ変換アプリケーション143は、PDFファイルに後続のページが存在するか否かを判定する。PDFファイルに後続のページが存在しないと判断した場合、データ変換アプリケーション143は処理を終了する。PDFファイルに後続のページが存在すると判断した場合、データ変換アプリケーション143は後続のページに対して、ステップS1002からステップS1009までの処理を繰り返す。   After rendering, the data conversion application 143 encodes the image obtained by rendering into JPEG and stores it in a form that can be referred to from the outside (S1010). In step S1011, the data conversion application 143 determines whether there is a subsequent page in the PDF file. If it is determined that the subsequent page does not exist in the PDF file, the data conversion application 143 ends the process. If it is determined that the subsequent page exists in the PDF file, the data conversion application 143 repeats the processing from step S1002 to step S1009 for the subsequent page.

MFP3が、このようにして生成されたJPEGファイルを、ステップS709で変倍せずに印刷することで、ユーザは好ましい印刷結果を得る事ができる。フチあり設定の印刷であれば、ユーザは、図11の(a)のように、用紙1101内の印刷対象領域1102内に画像が配置された印刷結果を得る事ができる。一方、フチなし設定の印刷であれば、図11の(b)のように、フチなし印刷に必要な印刷対象領域1112の全面に画像が配置される。よって、用紙に余白ができることを防ぐことができる。   The MFP 3 prints the JPEG file generated in this way without scaling in step S709, so that the user can obtain a preferable print result. If printing is performed with bordering, the user can obtain a printing result in which an image is arranged in the print target area 1102 in the paper 1101 as shown in FIG. On the other hand, in the case of borderless printing, as shown in FIG. 11B, an image is arranged on the entire print target area 1112 necessary for borderless printing. Therefore, it is possible to prevent a margin from being formed on the paper.

上記のように、本実施例では、画像管理アプリケーション145が印刷対象の画像を含むPDFファイルを作成するときに、その印刷対象の画像が、印刷対象の画像と同一のアスペクト比のページの全体に配置されるように、PDFファイルを作成する。   As described above, in this embodiment, when the image management application 145 creates a PDF file that includes an image to be printed, the image to be printed is displayed on the entire page having the same aspect ratio as the image to be printed. Create a PDF file to be placed.

そして、データ変換アプリケーション143は、そのようにして生成されたPDFファイルのページを、印刷設定により指定されている用紙サイズに従ったサイズに変倍する。これにより、ページに含まれている印刷対象の画像を、用紙サイズにフィットさせることができる。即ち、印刷対象の画像がPDFファイルのページの全面に配置されているため、ページを印刷対象領域に展開すれば、ページ内における印刷対象の画像の領域を考慮しなくても、そのページと同サイズの画像を展開したことになる。よって、例えばPDFファイルのページに含まれている印刷対象の画像の抽出といった処理を行わなくても、印刷対象の画像を印刷対象領域に合わせて適切にレイアウトすることができる。また上記の印刷設定には、用紙サイズに加えてふちなし設定などが含まれており、それらの印刷設定により決定された印刷対象領域に応じた印刷対象の画像を、簡単かつ適切に生成することができる。   Then, the data conversion application 143 scales the page of the PDF file generated in this way to a size according to the paper size specified by the print settings. As a result, the image to be printed included in the page can be fitted to the paper size. That is, since the image to be printed is arranged on the entire page of the PDF file, if the page is expanded into the print target area, the same image as that page can be obtained without considering the area of the image to be printed in the page. The image of the size is developed. Therefore, for example, the image to be printed can be appropriately laid out in accordance with the print target area without performing processing such as extraction of the image to be printed included in the page of the PDF file. The above print settings include borderless settings in addition to the paper size, and it is possible to easily and appropriately generate a print target image corresponding to the print target area determined by the print settings. Can do.

また、上記の印刷システムにおいては、サーバ2のデータ変換アプリケーション143において印刷設定が反映される。そのため、画像管理アプリケーション145は、印刷設定やMFP3の能力に依らず、印刷対象の画像に合わせてPDFファイルを作成すれば良い。つまり、画像管理アプリケーション145は、印刷設定やMFP3の能力を取得する必要がない。このことは、画像管理アプリケーション145や関連するアプリケーションの処理を簡略化すると共に、画像管理アプリケーション145がMFP3の能力を知り得ない場合には特に効果的である。   In the above printing system, the print setting is reflected in the data conversion application 143 of the server 2. Therefore, the image management application 145 may create a PDF file in accordance with the image to be printed regardless of the print setting and the capability of the MFP 3. That is, the image management application 145 does not need to acquire print settings or the capability of the MFP 3. This simplifies the processing of the image management application 145 and related applications, and is particularly effective when the image management application 145 cannot know the capability of the MFP 3.

さらに、画像管理アプリケーション145は、印刷対象の画像の変倍をせずに、元のサイズのままPDFファイルに格納する。このことは、不必要な変倍による画質の劣化の防止に有効である。   Further, the image management application 145 stores the original size in the PDF file without scaling the image to be printed. This is effective in preventing deterioration of image quality due to unnecessary scaling.

なお、本実施例においては、データ変換アプリケーション143はJPEG画像を生成するが、その他のフォーマットの画像であっても良い。さらに、MFP3がなんらかのページ記述言語を解釈できる場合、データ変換アプリケーション143は、印刷データをそのページ記述言語のフォーマットに従って生成するよう構成しても良い。この場合、PDFファイル中のある画像をレンダリングする際の解像度は、必ずしも出力解像度である必要は無く、元の解像度のままでも、出力解像度の半分など任意のサイズであっても良い。   In this embodiment, the data conversion application 143 generates a JPEG image, but an image in another format may be used. Further, when the MFP 3 can interpret any page description language, the data conversion application 143 may be configured to generate print data according to the format of the page description language. In this case, the resolution at the time of rendering an image in the PDF file does not necessarily need to be the output resolution, and may be the original resolution or an arbitrary size such as half of the output resolution.

さらに、以上の実施例では、PDFファイルに印刷対象の画像を含ませる例を示したが、これに限らず、表示対象の画像を含ませるようにしてもよい。この場合でも、PDFファイルのページサイズと、表示対象の画像のサイズとをフィットさせてPDFファイルを作成することで、表示のためのレンダリングが容易になる。例えば、表示画面上の所定の表示対象領域に、PDFファイル内の画像を表示させる場合に、ページをその表示領域に合わせるように変倍を行うことにより、表示対象の画像を表示領域にフィットさせて表示させることができる。従って、本実施例は、PDFファイルのページに含まれているデータに基づく文書や画像を、出力対象領域に対して各種の出力処理をする場合に適用できるものである。   Furthermore, in the above embodiment, an example in which an image to be printed is included in the PDF file has been shown. However, the present invention is not limited to this, and an image to be displayed may be included. Even in this case, rendering for display is facilitated by creating a PDF file by fitting the page size of the PDF file and the size of the image to be displayed. For example, when an image in a PDF file is displayed in a predetermined display target area on the display screen, the display target image is fitted to the display area by scaling so that the page fits the display area. Can be displayed. Therefore, the present embodiment can be applied to a case where various output processing is performed on an output target area for a document or an image based on data included in a PDF file page.

なお、このように画像を表示させる場合には、印刷を行わせる場合と同様に、データ変換アプリケーション143が、表示画面における表示領域の大きさを示す情報を取得して、その情報が示す大きさに応じて、PDFファイルのページを変倍させる。これにより、ページ内の表示対象の画像を、表示領域にフィットさせることができる。   When displaying an image in this way, the data conversion application 143 acquires information indicating the size of the display area on the display screen, and the size indicated by the information, as in the case of performing printing. In response to this, the page of the PDF file is scaled. Thereby, the display target image in the page can be fitted to the display area.

また、以上の実施例では、PDFファイルに含ませるデータを画像データとしたが、これに限らず、例えばテキストデータなど、各種のデータをファイルに含ませる場合に適用できるものである。   In the above embodiment, the data included in the PDF file is the image data. However, the present invention is not limited to this. For example, the present invention can be applied to the case where various data such as text data is included in the file.

また、以上の実施例は、以下の処理を実行することによっても実現される。即ち、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワークまたは各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。   The above embodiment can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

また、上述した実施例では、情報処理装置としてパーソナルコンピュータを想定した。しかし、この例に限られることなく、例えばDVDプレーヤー、ゲーム、セットトップボックス、インターネット家電等、同様な使用方法が可能な任意の情報処理装置(端末)に対して実現することができ、有効である。   In the above-described embodiments, a personal computer is assumed as the information processing apparatus. However, the present invention is not limited to this example, and can be realized for any information processing apparatus (terminal) that can be used in a similar manner, such as a DVD player, a game, a set-top box, and an Internet home appliance. is there.

また、上述した実施例では、周辺装置としてMFPを例示した。しかし、周辺装置として他に、複写機、ファクシミリ、スキャナ、デジタルカメラ、及びこれらの複合機能を備える装置等の何れかであってもよい。   In the above-described embodiments, the MFP is exemplified as the peripheral device. However, the peripheral device may be any one of a copying machine, a facsimile, a scanner, a digital camera, and a device having a composite function thereof.

さらに、上述した実施例では、ネットワーク4の構成例としてEthernet(登録商標)を用いたが、この例に限られることなく、他の任意のネットワーク構成であってもよい。   Furthermore, in the above-described embodiment, Ethernet (registered trademark) is used as a configuration example of the network 4, but the configuration is not limited to this example, and any other network configuration may be used.

また、上述した実施例では、PC1、サーバ2、サーバ7とMFP3、MFP103との間のインタフェースとして、Ethernet(登録商標)を用いた。しかしながら、このインタフェースに限られることなく、例えば、無線LAN、IEEE1394、Bluetooth(登録商標)、USB等の任意のインタフェースを用いるようにしてもよい。   In the above-described embodiment, Ethernet (registered trademark) is used as an interface between the PC 1, the server 2, and the server 7 and the MFP 3 and the MFP 103. However, the present invention is not limited to this interface, and any interface such as a wireless LAN, IEEE 1394, Bluetooth (registered trademark), USB, or the like may be used.

3 MFP
9 ブラウザ
143 データ変換アプリケーション
145 画像管理アプリケーション
146 印刷サービスアプリケーション
3 MFP
9 Browser 143 Data conversion application 145 Image management application 146 Print service application

Claims (8)

印刷対象の画像データを取得する取得手段と、
前記取得手段により取得された画像データに基づく画像に対する余白を設けないように、当該画像のサイズに応じて、当該画像が含まれるページのページサイズを決定する決定手段と、
前記決定手段により決定されたページサイズが設定されたファイルであって、余白が設けられていない前記画像を当該ページサイズのページに含むファイルを作成する作成手段と、
を有することを特徴とする情報処理装置。
Acquisition means for acquiring image data to be printed;
A determining unit that determines a page size of a page including the image according to the size of the image so as not to provide a margin for the image based on the image data acquired by the acquiring unit;
A creation unit that creates a file in which the page size determined by the determination unit is set and includes the image without a margin in the page of the page size;
An information processing apparatus comprising:
前記作成手段により複数の画像を複数のページに含むファイルが作成される場合に、前記決定手段は、当該複数の画像のそれぞれのサイズに応じて、当該複数のページのそれぞれのページサイズを決定することを特徴とする請求項1に記載の情報処理装置。   When the creation unit creates a file including a plurality of images in a plurality of pages, the determination unit determines each page size of the plurality of pages according to each size of the plurality of images. The information processing apparatus according to claim 1. 前記決定手段は、前記画像が印刷装置により印刷されるときに当該画像が展開される印刷対象領域の大きさを特定し、特定された当該印刷対象領域の大きさに応じて、前記画像を含むページのページサイズを決定することを特徴とする請求項1または2に記載の情報処理装置。   The determination unit specifies a size of a print target area where the image is developed when the image is printed by a printing apparatus, and includes the image according to the specified size of the print target area. The information processing apparatus according to claim 1, wherein a page size of the page is determined. 前記決定手段は、前記印刷装置により前記画像のフチなし印刷が実行されるか否かに応じて、当該画像が展開される印刷対象領域の大きさを特定することを特徴とする請求項3に記載の情報処理装置。   The determination unit specifies a size of a print target area in which the image is expanded according to whether or not the printing apparatus executes borderless printing of the image. The information processing apparatus described. 前記決定手段は、ページのページサイズを、当該ページに含まれる画像の幅方向の画素数と高さ方向の画素数とに基づき決定することを特徴とする請求項1乃至4のいずれか1項に記載の情報処理装置。   5. The determination unit according to claim 1, wherein the determining unit determines the page size of the page based on the number of pixels in the width direction and the number of pixels in the height direction of the image included in the page. The information processing apparatus described in 1. 前記決定手段は、前記画像が印刷装置により印刷されるときの解像度を取得し、ページのページサイズを、当該ページに含まれる画像の幅方向の画素数と高さ方向の画素数と、さらに、取得された当該解像度とに応じて決定することを特徴とする請求項5に記載の情報処理装置。   The determining unit obtains a resolution when the image is printed by a printing apparatus, and determines the page size of the page, the number of pixels in the width direction and the number of pixels in the height direction of the image included in the page, and The information processing apparatus according to claim 5, wherein the information processing apparatus is determined according to the acquired resolution. 印刷対象の画像データを取得する取得工程と、
前記取得工程において取得された画像データに基づく画像に対する余白を設けないように、当該画像のサイズに応じて、当該画像が含まれるページのページサイズを決定する決定工程と、
前記決定工程において決定されたページサイズが設定されたファイルであって、余白が設けられていない前記画像を当該ページサイズのページに含むファイルを作成する作成工程と、
を有することを特徴とする情報処理方法。
An acquisition step of acquiring image data to be printed;
A determination step of determining a page size of a page including the image according to the size of the image so as not to provide a margin for the image based on the image data acquired in the acquisition step;
A creation step for creating a file in which the page size determined in the determination step is set and including the image without a margin in the page of the page size;
An information processing method characterized by comprising:
請求項7に記載の情報処理方法をコンピュータに実行させることを特徴とするプログラム。
A program for causing a computer to execute the information processing method according to claim 7.
JP2011237524A 2011-10-28 2011-10-28 Information processing device, information processing method, and program Pending JP2013097449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011237524A JP2013097449A (en) 2011-10-28 2011-10-28 Information processing device, information processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011237524A JP2013097449A (en) 2011-10-28 2011-10-28 Information processing device, information processing method, and program

Publications (1)

Publication Number Publication Date
JP2013097449A true JP2013097449A (en) 2013-05-20

Family

ID=48619357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011237524A Pending JP2013097449A (en) 2011-10-28 2011-10-28 Information processing device, information processing method, and program

Country Status (1)

Country Link
JP (1) JP2013097449A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019009746A (en) * 2017-06-28 2019-01-17 キヤノン株式会社 Image processing apparatus, image processing system, image processing method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019009746A (en) * 2017-06-28 2019-01-17 キヤノン株式会社 Image processing apparatus, image processing system, image processing method, and program
US10715697B2 (en) 2017-06-28 2020-07-14 Canon Kabushiki Kaisha Image processing method that determines a number of blocks for embedding information based on a size of an image to be printed, image processing apparatus, and storage medium

Similar Documents

Publication Publication Date Title
US12149664B2 (en) Printing apparatus for displaying predetermined display screen for requesting printing to the printing apparatus and control method thereof, and non-transitory computer-readable medium
JP5565346B2 (en) Printer
US9092703B2 (en) Determining route and of print data and if conversion of print data is necessary
JP5100488B2 (en) Information processing apparatus, information processing method, and program
JP6192624B2 (en) Image forming system and information processing terminal
JP2018129714A (en) Program and information processing apparatus
US10129420B2 (en) Image processing apparatus, control method, and storage medium thereof
JP2005218036A (en) Network server
JP2017201491A (en) Printing system, printing management server, communication relay device, and program
JP6417134B2 (en) Image reading apparatus, program, image reading method, image reading system, and server system
JP2006163794A (en) Document processing system
JP2006134043A (en) Printing system and control method thereof
JP2007200235A (en) Removable media device, removable media device control program, and network device control program
JP2012034277A (en) Image processing system, control method thereof, and program
JP2011013964A (en) Apparatus and method for processing information, and program
JP2010221422A (en) Printing apparatus and program
JP4865590B2 (en) Composite image processing apparatus and control method of composite image processing apparatus
US20060268334A1 (en) Data processing apparatus connectable to network, and control method therefor
JP2015036859A (en) Information processing apparatus, information processing method, processing apparatus, processing method, and program
JP2013097449A (en) Information processing device, information processing method, and program
US20130107302A1 (en) Image processing apparatus, image processing method and memory medium
JP5686063B2 (en) Network system, image forming apparatus, and program
US9883059B2 (en) Image forming apparatus and terminal apparatus using short-range communication for retrieving image data from a network apparatus, displaying the image data on the terminal apparatus and printing the image data on the image forming apparatus
JP2014029633A (en) Information processing device and printing system
JP2014179015A (en) Image processing system, information processing terminal, control program, and control method