JP5361937B2 - Print control device - Google Patents
Print control device Download PDFInfo
- Publication number
- JP5361937B2 JP5361937B2 JP2011098370A JP2011098370A JP5361937B2 JP 5361937 B2 JP5361937 B2 JP 5361937B2 JP 2011098370 A JP2011098370 A JP 2011098370A JP 2011098370 A JP2011098370 A JP 2011098370A JP 5361937 B2 JP5361937 B2 JP 5361937B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- size
- size information
- image data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Record Information Processing For Printing (AREA)
Abstract
Description
本発明は、電子文書のダイレクトプリントを制御するための印刷制御装置に関する。 The present invention relates to a print control apparatus for controlling direct printing of an electronic document.
パーソナルコンピュータ等の上位装置と、該上位装置に接続するプリンタ等の印刷装置とからなる印刷処理システムが知られている。このような印刷処理システムでは、上位装置において、アプリケーションが作成したPDF(Portable Document Format)ファイル等の電子文書を、印刷装置により印刷させるために、通常、プリンタドライバが使用される。 2. Description of the Related Art A print processing system that includes a host device such as a personal computer and a printing device such as a printer connected to the host device is known. In such a print processing system, a printer driver is usually used in order to cause an electronic document such as a PDF (Portable Document Format) file created by an application to be printed by the printing apparatus in the host apparatus.
プリンタドライバは、印刷対象の電子文書を、印刷装置が解釈可能なページ記述言語(Page Description Language;PDL)に変換するために、上位装置上で動作するソフトウェアである。上位装置において、印刷が指示されると、プリンタドライバは、印刷に用いる記録媒体の媒体サイズや、画像の拡大/縮小倍率等を設定して、電子文書をPDLデータに変換し、該PDLデータを印刷装置へ送信する。 The printer driver is software that operates on a higher-level device in order to convert an electronic document to be printed into a page description language (PDL) that can be interpreted by the printing device. When printing is instructed in the host device, the printer driver sets the medium size of the recording medium used for printing, the enlargement / reduction ratio of the image, etc., converts the electronic document into PDL data, and converts the PDL data into Send to the printing device.
そして、印刷装置が、受信したPDLデータを解釈して印刷イメージデータへ展開した後、設定された媒体サイズの記録媒体を用いて、ページ毎に印刷を行う。印刷装置は、各記録媒体の印刷領域内に、それぞれの印刷イメージを形成して、印刷処理を実行する。 The printing apparatus interprets the received PDL data and expands it into print image data, and then prints page by page using a recording medium having a set medium size. The printing apparatus forms a print image in the print area of each recording medium and executes print processing.
ところで、上記したプリンタドライバを用いる印刷処理の方法では、上位装置において電子文書をPDLデータに変換しなければならず、時間や手間がかかるという問題があった。 By the way, in the printing method using the printer driver described above, there is a problem that it takes time and effort because an electronic document must be converted into PDL data in the host device.
このような問題を解決するため、下記特許文献1には、上位装置から電子文書をそのままの形式で受信して印刷する印刷装置のダイレクトプリント機能に関する技術が開示されている。この種の印刷装置は、印刷制御装置としてのコントローラ部及び印刷部からなる。
コントローラ部は、上位装置から受信した電子文書を編集して、印刷イメージデータに展開すると共に、上位装置のアプリケーションにより指定された媒体サイズに基づき、記録媒体を選択する。そして、印刷部が、選択された記録媒体の印刷領域内に、印刷イメージを形成する。これにより、電子文書のダイレクトプリントが実行される。
In order to solve such a problem, the following
The controller unit edits the electronic document received from the host device, develops it into print image data, and selects a recording medium based on the medium size specified by the application of the host device. Then, the printing unit forms a print image in the print area of the selected recording medium. Thereby, direct printing of the electronic document is executed.
しかしながら、上記した印刷装置によるダイレクトプリントでは、従来、電子文書の画像は、各ページのページサイズ(媒体サイズ領域)が記録媒体の印刷領域の領域サイズとなるべくサイズ調整される。したがって、電子文書のページサイズ(指定媒体サイズ)と同一サイズの記録媒体が使用される場合、電子文書の画像が、印刷領域の領域サイズに合わせて縮小されてしまうという問題があった。 However, in direct printing by the above-described printing apparatus, conventionally, an image of an electronic document is adjusted so that the page size (medium size area) of each page becomes the area size of the printing area of the recording medium. Therefore, when a recording medium having the same size as the page size (specified medium size) of the electronic document is used, there is a problem that the image of the electronic document is reduced in accordance with the area size of the print area.
したがって、電子文書の画像を最適なサイズに調整可能な印刷制御装置が望まれていた。 Therefore, a print control apparatus that can adjust an image of an electronic document to an optimum size has been desired.
本発明は、以上の点を解決するために、次の構成を採用する。 The present invention adopts the following configuration in order to solve the above points.
本発明に係る印刷制御装置は、画像データを含む電子文書を受信し、該電子文書を記録媒体の印刷可能領域に印刷するためのダイレクトプリント機能を備えた印刷制御装置であって、受信した電子文書のページサイズを示すページサイズ情報を取得する第1取得部と、記録媒体の媒体サイズを示す媒体サイズ情報を取得する第2取得部と、取得されたページサイズ情報及び媒体サイズ情報を比較して、一致するか否かを判断する比較判断部と、一致すると判断されると、受信した画像データの記録媒体の印刷可能領域に対応する領域内画像データから、該印刷可能領域に対応する領域内印刷データを生成する制御部と、を有することを特徴とする。 Print control apparatus according to the present invention receives an electronic document including image data, a print control apparatus including a direct print function for printing the electronic document to a print area of the recording medium, the received electronic The first acquisition unit that acquires page size information indicating the page size of the document, the second acquisition unit that acquires medium size information indicating the medium size of the recording medium, and the acquired page size information and medium size information are compared. Te, a comparative determination unit for determining whether matching, it is determined that matching, from a region in the image data corresponding to the printable area of the recording medium of the image data received, corresponding to the printable area region And a control unit that generates internal print data.
[発明の効果]
本発明に係る印刷制御装置によれば、電子文書のページサイズ(指定媒体サイズ)と記録媒体の媒体サイズとが一致する場合、電子文書の画像データの記録媒体の印刷可能領域に対応する領域内画像データから、前記印刷可能領域に対応する領域内印刷データを生成する。したがって、電子文書の不要な縮小が防止され、所望のサイズに印刷可能となるので、利便性が向上される。
[Effect of the invention]
According to the printing control apparatus according to the present invention, when the medium size of the page size (designation medium size) and the recording medium of the electronic document to match the region corresponding to the printable area of the recording medium of the image data of the electronic document from the image data, it generates the print data inside of region corresponding to the printable area. Therefore, unnecessary reduction of the electronic document is prevented and printing can be performed in a desired size, so that convenience is improved.
以下、本発明の実施形態を、図を用いて詳細に説明する。ここでは、本発明に係る印刷制御装置を、ダイレクトプリント機能が搭載されたプリンタのコントローラ部に適用した場合を例に、説明を行う。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Here, a case where the print control apparatus according to the present invention is applied to a controller unit of a printer equipped with a direct print function will be described as an example.
図1は、本発明の実施例1に係るコントローラ部を含むプリンタの構成を示すブロック図である。
本実施例のプリンタ10は、ホストコンピュータ11に接続され、該ホストコンピュータ11からPDF(Portable Document Format)ファイルを受信して、印刷処理を実行する。
FIG. 1 is a block diagram illustrating a configuration of a printer including a controller unit according to the first embodiment of the present invention.
The
ホストコンピュータ11は、上位装置として、図1に示されるように、プリンタ10に接続している。このホストコンピュータ11は、アプリケーションを動作させて、電子文書としてのPDFファイルを作成する機能を有する。
The
図2は、PDFファイルの一例を示す図である。
PDFファイルには、少なくとも1ページ分の画像データと、該画像データの画面表示や印刷の際のページ設定に関する情報とが含まれる。例えば、図2に示されるPDFファイルには、ページ情報として4つの数値x1、y1、x2、y2が、文字列「/MediaBox」に続いて、数値ボックス「[x1 y1 x2 y2]」の形式で埋め込まれている。
FIG. 2 is a diagram illustrating an example of a PDF file.
The PDF file includes image data for at least one page, and information related to page settings for screen display and printing of the image data. For example, the PDF file shown in FIG. 2 includes four numerical values x1, y1, x2, and y2 as page information in the form of a numerical box “[x1 y1 x2 y2]” following a character string “/ MediaBox”. Embedded.
図3は、PDFファイルに基づくページ画像の表示例を示す図である。
図3において、ページ画像30は、PDFファイルに含まれる画像データに基づいて、例えば、ホストコンピュータ11の画面上に表示される。
このページ画像30は、図3に示されるように、4つの頂点30A、30B、30C、30Dを有する矩形領域からなる。ページ画像30において、例えば、左下の頂点30C及び右下の頂点30Dを結ぶ直線をx座標軸とし、頂点30C及び左上の頂点30Aを結ぶ直線y座標軸とすると、頂点30Cの座標は、(x1,y1)=(0,0)と表され、頂点30Bの座標を(x2,y2)と表される。即ち、ページ画像30において、左下の頂点30Cの座標値と、右上の頂点30Bの座標値とが、ページ情報として取得され、PDFファイル内に埋め込まれることとなる。
FIG. 3 is a diagram illustrating a display example of a page image based on a PDF file.
In FIG. 3, the
As shown in FIG. 3, the
これらのページ情報x1、y1、x2及びy2は、各ページのページサイズを示すページサイズ情報の算出に使用される数値である。ページサイズ情報は、横方向のページサイズを示すページ横サイズ情報xと、縦方向のページサイズを示すページ縦サイズ情報yとからなる。ページ横サイズ情報x及びページ縦サイズ情報yは、それぞれ、計算式x=x2−x1とy=y2−y1とに基づき算出される。図2に示されるPDFファイルには、ページ情報x1=0.0、y1=0.0、x2=595.44、y2=841.68が埋め込まれており、これらに基づいて算出されるページサイズ情報は、ページ横サイズ情報x=595.44及びページ縦サイズ情報y=841.68となる。
なお、本実施例では、各ページ情報及びページサイズ情報の数値単位は、何れもポイントであり、図2に示されるPDFファイルのページサイズは、A4サイズに対応している。
These page information x1, y1, x2, and y2 are numerical values used for calculating page size information indicating the page size of each page. The page size information includes page horizontal size information x indicating the page size in the horizontal direction and page vertical size information y indicating the page size in the vertical direction. The page horizontal size information x and the page vertical size information y are calculated based on the calculation formulas x = x2-x1 and y = y2-y1, respectively. The page information x1 = 0.0, y1 = 0.0, x2 = 595.44, y2 = 841.68 is embedded in the PDF file shown in FIG. 2, and the page size calculated based on these is embedded. The information is page horizontal size information x = 595.44 and page vertical size information y = 841.68.
In this embodiment, the numerical unit of each page information and page size information is a point, and the page size of the PDF file shown in FIG. 2 corresponds to the A4 size.
また、ホストコンピュータ11は、図示しない入力部からの入力に基づき、印刷処理の際のページ設定を実施可能である。ここで、ホストコンピュータ11において実施されるページ設定とは、印刷処理に用いる用紙の用紙サイズの設定や、印刷領域の設定等を含む。例えば、図3に示されるページ画像30において、4つの頂点30A、30B、30C、30Dを有する矩形領域は、上記したように、ページサイズを規定している。更に、図3では、4つの頂点31a、31b、31c、31dを有する矩形領域が、設定領域31として設定されている。ホストコンピュータ11において、設定領域31が印刷領域として設定された場合、プリンタは、印刷処理に際して、プリンタは、ページ画像30における設定領域31内の画像を、印刷領域内に形成して、印刷処理を実行する。
In addition, the
このようなページ設定を実施する場合、ホストコンピュータ11は、印刷領域を設定する設定領域情報として、設定領域31の左下頂点31cの座標(x3,y3)と、右上頂点31bの座標(x4,y4)とを入力する。これらの設定領域情報は、図2に示されるPDFファイルにおいて、文字列「/CropBox」に続いて、数値ボックス「[x3 y3 x4 y4]」の形式で埋め込まれる。なお、ホストコンピュータ11において、ページ設定が実施されなかった場合、文字列「/CropBox」の後に続く数値ボックスには、図2に示されるように、4つのページ情報x1、y1、x2、y2が埋め込まれる。
本実施例では、設定領域情報の数値単位は、何れもポイントである。
When performing such page setting, the
In this embodiment, the numerical unit of the setting area information is a point.
ホストコンピュータ11は、上記した印刷領域の設定以外にも、印刷サイズに関するページ設定を実施可能であるが、本実施例では、説明を省略する。
The
更に、ホストコンピュータ11は、図示しない入力部からの入力に基づき、ダイレクトプリントを指示するためのダイレクトプリント指示を生成する。そして、該ダイレクトプリント指示を、PDFファイルと共に、プリンタ10へ送信する。
Furthermore, the
プリンタ10は、ダイレクトプリント機能が搭載された印刷装置であり、図1に示されるように、コントローラ部12、エンジン部13及び給紙トレイ14を備えている。
The
給紙トレイ14は、エンジン部13に装着され、記録媒体としての用紙を収容している。本実施例では、プリンタ10のエンジン部13には、1つの給紙トレイ14が装着される。
The
エンジン部13は、コントローラ部12からのサイズ検出指示(後述)に基づき、給紙トレイ14に収容されている用紙のサイズを、給紙サイズとして検出し、該給紙サイズを示す給紙サイズ情報を、コントローラ部12に通知する。また、エンジン部13は、コントローラ部12から印刷指示及び印刷イメージデータ(後述)を受け取ると、該印刷イメージデータに基づいて、用紙上に印刷イメージを形成して、印刷を実行する。
Based on a size detection instruction (described later) from the
コントローラ部12は、本実施例の印刷制御装置として、図1に示されるように、受信部15、受信バッファ16、編集部17、中間データバッファ22、展開部23、イメージデータバッファ24、エンジン制御部25、用紙一覧テーブル26、第1取得部27、第2取得部28及び比較判断部29を備えている。
As shown in FIG. 1, the
受信部15は、ホストコンピュータ11からダイレクトプリント指示及びPDFファイルを受信する機能を有する。受信部15は、受信したPDFファイルを受信バッファ16に格納すると共に、受信したダイレクトプリント指示を編集部17に送る。
The receiving
受信バッファ16は、受信部15により受信されたPDFファイルが一時的に格納される一時格納部である。
The
編集部17は、図1に示されるように、解析部18、調整部19、算出部20及び加工部21を有し、PDFファイルの解析編集処理を実施する処理部である。
As shown in FIG. 1, the
解析部18は、受信部15からダイレクトプリント指示を受け取ると、受信バッファ16からPDFファイルを読み出して、該PDFファイルを解析し、ページ設定の有無を判定する。
When the
本実施例では、解析部18は、PDFファイルにおいて、文字列「/MediaBox」及び文字列「/CropBox」を検索し、これらの各文字列に続くそれぞれの数値ボックス「[x1 y1 x2 y2]」及び「[x3 y3 x4 y4]」内の数値を比較する。そして、各数値ボックスに含まれるそれぞれの数値が一致する場合、即ち4つの等式x1=x3、y1=y3、x2=x4、y2=y4が全て満たされる場合、解析部18は、ホストコンピュータ11においてページ設定が実施されていない、即ち画像サイズの調整が必要であると判断し、画像サイズを調整すべく、調整部19に指示する。
In the present embodiment, the
また、上記した各等式の何れかが満たされない場合、解析部18は、ホストコンピュータ11においてページ設定が実施されている、即ち画像サイズの調整が不要であると判断する。そして、解析部18は、印刷領域のサイズ設定を行って、PDFファイルの加工を加工部21に指示する。
If any of the above equations is not satisfied, the
調整部19は、画像サイズの調整を行うために、印刷対象となるPDFファイルのページサイズ(指定媒体サイズ)と、給紙する用紙のサイズとの比較判断を、比較判断部29に指示する。そして、この判断結果に基づいて、算出部20や加工部21に対して、指示を行う。
In order to adjust the image size, the
算出部20は、PDFファイルに含まれる画像データの拡大或いは縮小処理のための拡縮倍率情報を算出する機能を有する。
The
加工部21は、PDFファイルに含まれる画像データを加工して、印刷中間データを生成する機能を有する。加工部21は、該印刷中間データを中間データバッファ22に格納すると共に、該印刷中間データの展開を展開部23に指示する。
The
また、加工部21は、抽出部として、調整部19から通知された印刷領域サイズ情報に基づいて、PDFファイルに含まれる画像データから領域内画像データを抽出して、印刷中間データを生成する。更に、加工部21は、拡縮生成部として、算出部20から通知された拡縮倍率情報に基づいて、画像データを拡縮画像データに拡縮し、印刷中間データを生成する。
Further, the
中間データバッファ22は、編集部17により加工して生成された印刷中間データが一時的に格納される一時格納部である。
The
展開部23は、編集部17からの展開指示に基づき、中間データバッファ22から印刷中間データを読み出して、該印刷中間データの印刷イメージデータへの展開処理を行う。そして、展開部23は、印刷イメージデータをイメージデータバッファ24に格納すると共に、エンジン制御部25に印刷開始を指示する。
The
イメージデータバッファ24は、展開部23により展開して生成された印刷イメージデータが一時的に格納される一時格納部である。
The
エンジン制御部25は、エンジン部13との通信機能を有し、展開部23からの印刷開始指示に基づき、エンジン部13による印刷を開始すべく、イメージデータバッファ24から印刷イメージデータを読み出して、該印刷イメージデータを印刷指示と共にエンジン部13へ送る。
The
また、エンジン制御部25は、後述する第2取得部28からのサイズ検出指示に基づいて、給紙トレイ14に収容されている用紙のサイズ、即ち給紙サイズを検出すべく、サイズ検出指示をエンジン部13に送る。そして、エンジン部13から給紙サイズを示す給紙サイズ情報を受け取ると、エンジン制御部25は、該給紙サイズ情報を第2取得部28に通知する。
Further, the
用紙一覧テーブル26は、プリンタ10における印刷処理に使用可能な用紙のサイズを示す用紙サイズ情報が予め設定されて記憶されている記憶部である。
図4は、用紙一覧テーブルの構成を示す説明図である。
The paper list table 26 is a storage unit in which paper size information indicating the size of paper that can be used for the printing process in the
FIG. 4 is an explanatory diagram showing the configuration of the paper list table.
用紙一覧テーブル26には、図4に示されるように、各用紙を識別するための用紙識別番号に対応して、該用紙の用紙サイズ情報を記憶するための用紙サイズ項目が設けられている。この用紙サイズ項目には、図4に示されるように、横サイズ項目及び縦サイズ項目がそれぞれ設けられ、各項目には、用紙サイズ情報に含まれる用紙横サイズ情報及び用紙縦サイズ情報がそれぞれ記憶される。なお、用紙横サイズ情報は、給紙トレイ14に収容されている用紙自体の横方向のサイズを示し、用紙縦サイズ情報は、該用紙自体の縦方向のサイズを示す。用紙サイズ項目に記憶される各情報の数値単位は、本実施例では何れもポイントである。
As shown in FIG. 4, the paper list table 26 is provided with a paper size item for storing paper size information of the paper corresponding to the paper identification number for identifying each paper. As shown in FIG. 4, the paper size item includes a horizontal size item and a vertical size item, and each item stores paper horizontal size information and paper vertical size information included in the paper size information. Is done. The paper horizontal size information indicates the horizontal size of the paper itself stored in the
また、用紙一覧テーブル26には、図4に示されるように、各用紙の用紙識別番号に対応して、該用紙の印刷領域のサイズを示す印刷領域サイズ情報を記憶するための印刷領域サイズ項目が設けられている。ここで、印刷領域とは、プリンタ10により印刷可能な領域を示す。
In the paper list table 26, as shown in FIG. 4, a print area size item for storing print area size information indicating the size of the print area of the paper corresponding to the paper identification number of each paper. Is provided. Here, the print area indicates an area that can be printed by the
プリンタは、通常、物理的な制限により、用紙の端から数ミリ乃至十数ミリの領域に印刷することができない。したがって、各プリンタは、該領域を余白領域として設定すると共に、各用紙の余白領域を除く部分領域を印刷領域として設定し、該印刷領域内に画像を形成する。用紙一覧テーブル26の印刷領域サイズ項目には、プリンタ10において、各用紙に対して設定されている印刷領域のサイズを示す印刷領域サイズ情報が記憶されている。
A printer usually cannot print in an area of several millimeters to several tens of millimeters from the edge of the paper due to physical limitations. Accordingly, each printer sets the area as a margin area, sets a partial area excluding the margin area of each sheet as a print area, and forms an image in the print area. In the print area size item of the paper list table 26, print area size information indicating the size of the print area set for each paper in the
印刷領域サイズ項目には、図4に示されるように、横サイズ項目及び縦サイズ項目がそれぞれ設けられ、各項目には、印刷領域サイズ情報に含まれる印刷領域横サイズ情報及び印刷領域縦サイズ情報がそれぞれ記憶される。なお、印刷領域横サイズ情報は、印刷領域の横方向のサイズを示し、印刷領域縦サイズ情報は、印刷領域の縦方向のサイズを示す。印刷領域サイズ項目に記憶される各情報の数値単位は、本実施例では何れもポイントである。 As shown in FIG. 4, the print area size item includes a horizontal size item and a vertical size item, and each item includes print area horizontal size information and print area vertical size information included in the print area size information. Are stored respectively. The print area horizontal size information indicates the size of the print area in the horizontal direction, and the print area vertical size information indicates the size of the print area in the vertical direction. The numerical unit of each piece of information stored in the print area size item is a point in this embodiment.
例えば、図4に示される用紙一覧テーブル26には、用紙識別番号「0x00」に対応して、用紙横サイズ情報「595」、用紙縦サイズ情報「420」、印刷領域横サイズ情報「575」及び印刷領域縦サイズ情報「400」が、それぞれ記憶されている。また、用紙識別番号「0x01」に対応して、用紙横サイズ情報「595」、用紙縦サイズ情報「842」、用紙横サイズ情報「575」及び印刷領域縦サイズ情報「822」が、それぞれ記憶されている。
なお、用紙一覧テーブル26において、用紙識別番号「0x00」に対応して設定されている各サイズ情報は、A5サイズの用紙に対応しており、用紙識別番号「0x01」に対応して設定されている各サイズ情報は、A4サイズの用紙に対応している。
For example, in the paper list table 26 shown in FIG. 4, paper horizontal size information “595”, paper vertical size information “420”, print area horizontal size information “575”, and the like are associated with the paper identification number “0x00”. The print area vertical size information “400” is stored. Corresponding to the paper identification number “0x01”, paper horizontal size information “595”, paper vertical size information “842”, paper horizontal size information “575”, and print area vertical size information “822” are stored. ing.
In the paper list table 26, each size information set corresponding to the paper identification number “0x00” corresponds to the A5 size paper and is set corresponding to the paper identification number “0x01”. Each size information corresponds to A4 size paper.
第1取得部27は、受信バッファ16に記憶されているPDFファイルに基づいて、該PDFファイルに含まれる画像データのページサイズ情報を取得する機能を有する。
The
第1取得部27は、受信バッファ16からPDFファイル(図2)を読み出すと、該PDFファイルに含まれる文字列「/MediaBox」を検索する。そして、第1取得部27は、該文字列に続いて記載される数値ボックス「[x1 y1 x2 y2]」に含まれる4つの数値を、それぞれページ情報x1、y1、x2、y2として取得する。次に、第1取得部27は、取得された各ページ情報と、計算式x=x2−x1及びy=y2−y1とに基づいて、ページ横サイズ情報x及びページ縦サイズ情報yを算出して取得する。
When the
例えば、図2に示されるPDFファイルの場合、第1取得部27は、ページ情報x1=0.0、y1=0.0、x2=595.44及びy2=841.68を検出して取得する。そして、第1取得部27は、これらに基づいて、ページ横サイズ情報x=595.44及びページ縦サイズ情報y=841.68からなるページサイズ情報を算出して取得する。
For example, in the case of the PDF file shown in FIG. 2, the
第1取得部27は、ページサイズ情報を取得すると、用紙一覧テーブル26(図4)を参照して、記憶されている各用紙サイズ情報と、取得されたページサイズ情報とを比較する。そして、第1取得部27は、ページサイズ情報に一致する用紙サイズ情報を選択し、該用紙サイズ情報に対応する用紙識別番号を、比較判断部29に通知する。また、一致する用紙サイズ情報が設定されていない場合、第1取得部27は、用紙識別番号として「該当番号なし」を比較判断部29に通知する。
When acquiring the page size information, the
第2取得部28は、給紙トレイ14に収容されている用紙のサイズを給紙サイズとして検出すべく、サイズ検出指示をエンジン制御部25に送る。そして、エンジン制御部25から、給紙サイズを示す給紙サイズ情報を受け取ると、第2取得部28は、用紙一覧テーブル26(図4)を参照し、該給紙サイズ情報に一致する用紙サイズ情報を選択し、対応する用紙識別番号を取得する。第2取得部28は、取得した用紙識別番号を、比較判断部29に通知する。また、一致する用紙サイズ情報が設定されていない場合、第2取得部28は、用紙識別番号として、予め設定されたデフォルト番号を取得し、比較判断部29に通知する。本実施例では、デフォルト番号として、用紙識別番号「0x01」が設定されているものとする。
The
更に、第2取得部28は、第3取得部として、用紙一覧テーブル26から特定の用紙識別番号に対応する印刷領域サイズ情報を取得し、該印刷領域サイズ情報を編集部17に通知する。
Further, as a third acquisition unit, the
比較判断部29は、印刷対象となるPDFファイルに対応するページサイズ情報と、給紙トレイ14に対応する給紙サイズ情報とを比較して、これらが一致するか否かを判断する機能を有する。
比較判断部29は、編集部17から比較判断指示を受けると、第1取得部27及び第2取得部28に取得指示を送る。そして、比較判断部29は、第1取得部27から通知された用紙識別番号と、第2取得部28から通知された用紙識別番号とを比較して、これらが一致するか否かに基づいて、ページサイズ及び給紙サイズが一致するか否かを判断し、判断結果を編集部17に通知する。
The
When receiving the comparison determination instruction from the
次に、本実施例のプリンタ10の動作について、説明する。
まず、プリンタ10のコントローラ部12において、第1取得部27が、PDFファイルに含まれる画像データのページサイズを検知して、該当する用紙識別番号を取得するページサイズ取得処理の流れについて、図5に沿って説明を行う。
図5は、本発明に係るコントローラ部のページサイズ取得動作を示すフローチャートである。
Next, the operation of the
First, in the
FIG. 5 is a flowchart showing the page size acquisition operation of the controller unit according to the present invention.
ここでは、PDFファイル(図2)のページサイズが、用紙一覧テーブル26(図4)において用紙識別番号「0x01」に対応して設定されている用紙サイズに一致する場合を例に、説明する。 Here, a case where the page size of the PDF file (FIG. 2) matches the paper size set corresponding to the paper identification number “0x01” in the paper list table 26 (FIG. 4) will be described as an example.
コントローラ部12において、比較判断部29が、PDFファイル(図2)から画像データのページサイズ情報を取得すべく、取得指示を第1取得部27に送ると、第1取得部27は、受信バッファ16に格納されているPDFファイル(図2)を読み出す。そして、第1取得部27は、該PDFファイルから、文字列「/MediaBox」に続く数値ボックス「[0.0 0.0 595.44 841.68]」を検出する。そして、第1取得部27は、この数値ボックスから、ページ情報として、各数値x1=0.0、y1=0.0、x2=595.44、y2=841.68を、それぞれ取得する(ステップS101)。更に、第1取得部27は、取得されたページ情報に基づいて、ページ横サイズ情報x=x2−x1=595.44と、ページ縦サイズ情報y=y2−y1=841.68とを、ページサイズ情報としてそれぞれ算出する(ステップS101)。
In the
次に、第1取得部27は、用紙一覧テーブル26を参照すべく、まず、用紙一覧テーブル26の参照ポインタを初期化する(ステップS102)。図4に示される用紙一覧テーブル26において、参照ポインタは、用紙識別番号「0x00」の位置に初期化される(ステップS102)。
Next, in order to refer to the paper list table 26, the
続いて、第1取得部27は、用紙一覧テーブル26を参照して、参照ポインタに対応する用紙サイズ項目の横サイズ項目から、用紙横サイズ情報を読み出す(ステップS103)。第1取得部27は、用紙識別番号「0x00」に対応する用紙サイズ項目の横サイズ項目から、用紙横サイズ情報「595」を読み出す(ステップS103)。
Subsequently, the
そして、第1取得部27は、取得されたページ横サイズ情報と、読み出された用紙横サイズ情報とを比較し、PDFファイルの各ページの横サイズと、用紙一覧テーブル26に設定されている用紙の横サイズとが、一致するか否かを判断する(ステップS104)。本実施例では、第1取得部27は、ページ横サイズ情報及び用紙横サイズ情報の差が±5ポイント以内である場合、ページの横サイズと用紙の横サイズとが一致すると判断するものとする。ここでは、ページ横サイズ情報が595.44であり、用紙横サイズ情報が595であるので、これらの差は5ポイント以内である。したがって、第1取得部27は、ページ横サイズ及び用紙横サイズが一致すると判断する(ステップS104)。
Then, the
次に、第1取得部27は、用紙一覧テーブル26を参照して、参照ポインタに対応する用紙サイズ項目の縦サイズ項目から、用紙縦サイズ情報を読み出す(ステップS105)。第1取得部27は、用紙識別番号「0x00」に対応する用紙サイズ項目の縦サイズ項目から、用紙縦サイズ情報「420」を読み出す(ステップS105)。
Next, the
そして、第1取得部27は、取得されたページ縦サイズ情報と、読み出された用紙縦サイズ情報とを比較し、ページ縦サイズと用紙縦サイズとが一致するか否かを判断する(ステップS106)。本実施例では、第1取得部27は、ページ縦サイズ情報及び用紙縦サイズ情報の差が±5ポイント以内である場合、ページ縦サイズ及び用紙縦サイズが一致すると判断する。ここでは、ページ縦サイズ情報が841.68であり、用紙縦サイズ情報が420であり、これらの差は5ポイントより大きい。したがって第1取得部27は、ページ縦サイズ及び用紙縦サイズが一致しないと判断する(ステップS106)。
Then, the
上記したように、ページ縦サイズ及び用紙縦サイズが一致しないと判断された場合(ステップS106)、或いは、ステップS104において、ページ横サイズ及び用紙横サイズが一致しないと判断された場合、第1取得部27は、用紙一覧テーブル26の参照ポインタを更新する(ステップS107)。図4に示される用紙一覧テーブル26において、参照ポインタは、用紙識別番号「0x00」の位置から「0x01」の位置に更新される(ステップS107)。
As described above, when it is determined that the page vertical size and the paper vertical size do not match (step S106), or when it is determined in step S104 that the page horizontal size and the paper horizontal size do not match, the first acquisition is performed. The
続いて、第1取得部27は、更新された参照ポインタに対応する用紙サイズ情報が、用紙一覧テーブル26に設定されているか否かを判断する(ステップS108)。用紙一覧テーブル(図4)において、用紙識別番号「0x01」に対応する用紙サイズ情報は設定されているので、第1取得部27は、設定されていると判断する(ステップS108)。
Subsequently, the
続いて、第1取得部27は、用紙識別番号「0x01」に対応する用紙サイズ項目の横サイズ項目から、用紙サイズ情報を「595」を読み出し(ステップS103)、取得されたページ横サイズ情報「595.44」と、読み出された用紙横サイズ情報「595」とを比較し、一致すると判断する(ステップS104)。
Subsequently, the
更に、第1取得部27は、用紙一覧テーブル26を参照して、対応する用紙サイズ項目の縦サイズ項目から、用紙縦サイズ情報「842」を読み出し(ステップS105)、取得されたページ縦サイズ情報「841.68」と、読み出された用紙縦サイズ情報「842」とを比較し、一致すると判断する(ステップS106)。
Further, the
そして、ページ縦サイズ及び用紙縦サイズが一致すると判断する(ステップS106)と、第1取得部27は、ページサイズ及び用紙サイズが一致すると判断し、用紙一覧テーブル26の参照ポインタに基づき、用紙識別番号「0x01」を取得し、比較判断部29に通知する(ステップS109)。これにより、コントローラ部12におけるページサイズ取得処理は終了する。
When it is determined that the page vertical size and the paper vertical size match (step S106), the
上記のように、PDFファイルに含まれる画像データのページサイズ情報が検知され、該当する用紙識別番号が取得される。 As described above, the page size information of the image data included in the PDF file is detected, and the corresponding sheet identification number is acquired.
なお、ステップS108において、更新された参照ポインタに対応する用紙サイズ情報が設定されていないと判断された場合、第1取得部27は、PDFファイルのページサイズに一致する用紙が、用紙一覧テーブル26に設定されていないと判断し、用紙識別番号として「該当番号なし」を取得して、比較判断部29に通知する(ステップS110)。
If it is determined in step S108 that the paper size information corresponding to the updated reference pointer is not set, the
次に、プリンタ10のコントローラ部12において、第2取得部28が、給紙トレイ14に対応する給紙サイズを検知して、該当する用紙識別番号を取得する給紙サイズ取得処理の流れについて、図6に沿って説明を行う。
図6は、本発明に係るコントローラ部の給紙サイズ取得動作を示すフローチャートである。
Next, in the
FIG. 6 is a flowchart showing the paper feed size acquisition operation of the controller unit according to the present invention.
コントローラ部12において、比較判断部29が、エンジン部13に装着されている給紙トレイ14内の用紙のサイズ、即ち給紙サイズを示す給紙サイズ情報を取得すべく、取得指示を第2取得部28に送ると、第2取得部28は、エンジン制御部25を介してエンジン部13にサイズ検出指示を送る(ステップS201)。
In the
エンジン部13は、サイズ検出指示を受けると、給紙トレイ14に収容されている用紙の横サイズを示す給紙横サイズ情報と、縦サイズを示す給紙縦サイズ情報とからなる給紙サイズ情報を検出して、該給紙サイズ情報をエンジン制御部25に通知する(ステップS202)。そして、エンジン制御部25が、通知された給紙サイズ情報を、第2取得部28に通知する(ステップS202)。
Upon receiving the size detection instruction, the
次に、第2取得部28は、用紙一覧テーブル26を参照すべく、まず、用紙一覧テーブル26(図4)の参照ポインタを初期化する(ステップS203)。
Next, in order to refer to the paper list table 26, the
続いて、第2取得部28は、用紙一覧テーブル26を参照して、参照ポインタに対応する用紙サイズ項目の横サイズ項目から、用紙横サイズ情報を読み出す(ステップS204)。
Subsequently, the
そして、第2取得部28は、取得された給紙横サイズ情報と、読み出された用紙横サイズ情報とを比較し、給紙トレイ14内の用紙の横サイズと、用紙一覧テーブル26に設定されている用紙の横サイズとが、一致するか否かを判断する(ステップS205)。本実施例では、第2取得部28は、給紙横サイズ情報及び用紙横サイズ情報の差が±5ポイント以内である場合、給紙横サイズ及び用紙横サイズが一致すると判断する。
Then, the
一致すると判断すると、第2取得部28は、更に、用紙一覧テーブル26を参照して、参照ポインタに対応する用紙サイズ項目の縦サイズ項目から、用紙縦サイズ情報を読み出す(ステップS206)。
If it is determined that they match, the
そして、第2取得部28は、取得された給紙縦サイズ情報と、読み出された用紙縦サイズ情報とを比較し、給紙縦サイズと用紙縦サイズとが一致するか否かを判断する(ステップS207)。本実施例では、第2取得部28は、給紙縦サイズ情報及び用紙縦サイズ情報の差が±5ポイント以内である場合、給紙縦サイズ及び用紙縦サイズが一致すると判断する。
Then, the
一致すると判断すると、第2取得部28は、給紙サイズ及び用紙サイズが一致すると判断し、用紙一覧テーブル26の参照ポインタに基づき、用紙識別番号を取得し、比較判断部29に通知する(ステップS208)。これにより、コントローラ部12における給紙サイズ取得処理は終了する。
When it is determined that they match, the
上記のように、給紙トレイ14の給紙サイズが検知され、該当する用紙識別番号が取得される。
As described above, the paper feed size of the
なお、ステップS205において、給紙横サイズ及び用紙横サイズが一致しないと判断された場合、或いはステップS207において、給紙縦サイズ及び用紙縦サイズが一致しないと判断された場合、第2取得部28は、用紙一覧テーブル26の参照ポインタを更新する(ステップS209)。そして、更新された参照ポインタに対応する用紙サイズ情報が設定されていると判断する(ステップS210)と、第2取得部28は、該用紙サイズ情報と給紙サイズ情報との比較判断処理を行う(ステップS204〜ステップS207)。
If it is determined in step S205 that the paper feed horizontal size and the paper horizontal size do not match, or if it is determined in step S207 that the paper feed vertical size and the paper vertical size do not match, the
対応する用紙サイズ情報が設定されていない場合(ステップS210)、第2取得部28は、給紙トレイ14内の用紙のサイズに一致する用紙サイズ情報が、用紙一覧テーブル26に設定されていないと判断する(ステップS211)。この場合、第2取得部28は、用紙識別番号としてデフォルト番号「0x01」を取得し(ステップS211)、比較判断部29に該デフォルト番号を通知する。
If the corresponding paper size information is not set (step S210), the
次に、プリンタ10のコントローラ部12における受信データの解析及び編集処理の流れについて、図7に沿って説明を行う。
図7は、本発明に係るコントローラ部の実施例1における解析編集動作を示すフローチャートである。
Next, the flow of analysis and editing processing of received data in the
FIG. 7 is a flowchart showing the analysis editing operation in the first embodiment of the controller unit according to the present invention.
解析編集処理の実施に先立ち、ホストコンピュータ11からプリンタ10に、ダイレクトプリント指示及びPDFファイルが送信され、受信部15により受信される。ここでは、まず、ホストコンピュータ11においてページサイズが設定されていない場合の処理の流れについて、PDFファイル(図2)のページサイズと給紙サイズとが一致する場合を例に、説明を行う。
Prior to the execution of the analysis / editing process, a direct print instruction and a PDF file are transmitted from the
コントローラ部12において、編集部17が受信部15からダイレクトプリント指示を受け取ると、解析部18がPDFファイル(図2)の解析を行う(ステップS301)。解析部18は、受信バッファ16からPDFファイルを読み出して、文字列「/CropBox」を検索し、この文字列に続く数値ボックスから、設定領域情報x3=0.0、y3=0.0、x4=595.44、y4=841.68を読み出す(ステップS301)。また、解析部18は、文字列「/MediaBox」を検索し、これに続く数値ボックスから、ページ情報x1=0.0、y1=0.0、x2=595.44、y2=841.68を読み出す(ステップS301)。
In the
そして、解析部18は、ページサイズの設定の有無を判定すべく、設定領域情報とページ情報とを比較する。解析部18は、4つの等式x1=x3、y1=y3、x2=x4、y2=y4が全て満たされる場合、ページサイズが設定されていないと判定する(ステップS302)。
Then, the
この判定に基づき、解析部18は、画像サイズの調整を行うと判断し、サイズ調整指示を調整部19に送る(ステップS303)。
Based on this determination, the
調整部19は、サイズ調整を指示されると、印刷対象となるPDFファイルのページサイズと、給紙トレイ14の給紙サイズとを比較すべく、比較判断指示を比較判断部29に送る(ステップS304)。
When the
比較判断部29は、編集部17から比較判断指示を受け取ると、PDFファイルのページサイズ情報と、該当する用紙識別番号とを取得すべく、取得指示を第1取得部27に送る。そして、第1取得部27が、ページサイズ取得処理(図4)を実施する(ステップS305)。第1取得部27は、図2に示されるPDFファイルから、ページサイズ情報を取得すると、用紙一覧テーブル26から用紙識別番号「0x01」を取得して、該用紙識別番号を比較判断部29に通知する(ステップS305)。
When receiving the comparison determination instruction from the
次に、比較判断部29は、給紙トレイ14内の用紙に対応する給紙サイズ情報と、該当する用紙識別番号とを取得すべく、取得指示を第2取得部28に送る。そして、第2取得部28が、給紙サイズ取得処理(図5)を実施する(ステップS306)。第2取得部28は、給紙サイズ情報を取得すると、用紙一覧テーブル26から用紙識別番号「0x01」を取得して、該用紙識別番号を比較判断部29に通知する(ステップS306)。
Next, the
そして、比較判断部29が、第1取得部27から通知された用紙識別番号と、第2取得部28から通知された用紙識別番号とを比較して、一致するか否かを判断する(ステップS307)。一致すると判断する(ステップS307)と、比較判断部29は、PDFファイルに含まれる画像データのページサイズと、給紙トレイ14内の用紙のサイズとが一致すると判断し、該判断結果と、一致した用紙識別番号「0x01」とを、編集部17に通知する(ステップS308)。
Then, the
続いて、編集部17の調整部19及び加工部21が、通知された用紙識別番号に基づいて、PDFファイルの抽出加工処理を実施し、印刷中間データを生成し、中間データバッファ22に格納する(ステップS309)。これにより、コントローラ部12における解析編集処理が終了する。ステップS309における抽出加工処理の詳細な流れについては、後述する。
Subsequently, the
ステップS307において、用紙識別番号が一致しないと判断されると、比較判断部29は、ページサイズ及び給紙サイズが一致しないと判断し、第1取得部27により取得されたページサイズ情報と、第2取得部28により取得された用紙識別番号とを、編集部17に通知する(ステップS310)。
If it is determined in step S307 that the paper identification numbers do not match, the
続いて、編集部17の算出部20及び加工部21が、PDFファイルの拡縮加工処理を実施して、印刷中間データを生成し、中間データバッファ22に格納する(ステップS311)。これにより、コントローラ部12における解析編集処理が終了する。ステップS311における拡縮編集処理の詳細な流れについては、後述する。
Subsequently, the
上記のように、コントローラ部12において、PDFファイルのページサイズと給紙サイズとの比較判断結果に基づいて、該PDFファイルの編集処理が実施され、印刷中間データが生成される。
As described above, the
なお、ステップS302において、ページ情報及び設定領域情報が一致しない場合、解析部18は、ページサイズが設定されていると判定する。この判定に基づき、解析部18は、画像サイズの調整は不要と判断し(ステップS312)、読み出されたページ情報及び設定領域情報に基づいて、加工部21が、PDFファイルの設定加工処理を実施して、印刷中間データを生成し、中間データバッファ22に格納する(ステップS313)。この設定加工処理の流れについては、後述する。
In step S302, if the page information and the setting area information do not match, the
次に、コントローラ部12の編集部17において実施される画像データから印刷中間データへの抽出加工処理について、図8及び図9を用いて説明を行う。
図8は、本発明に係るコントローラ部の実施例1における抽出加工動作を示すフローチャートであり、図9は、実施例1における画像データの抽出加工処理を説明する図である。
なお、この抽出加工処理は、図7におけるステップS309の動作に相当する。
Next, extraction processing from image data to print intermediate data performed in the
FIG. 8 is a flowchart showing the extraction processing operation in the first embodiment of the controller unit according to the present invention, and FIG. 9 is a diagram for explaining the image data extraction processing in the first embodiment.
This extraction processing corresponds to the operation in step S309 in FIG.
コントローラ部12の比較判断部29において、PDFファイルのページサイズと給紙トレイ14の給紙サイズとが一致すると判断され、該サイズに対応する用紙の用紙識別番号「0x01」が編集部17に通知されると、調整部19が、第2取得部28に該用紙識別番号を通知して、印刷領域サイズ情報の取得を指示する(ステップS401)。
The
第2取得部28は、用紙一覧テーブル26(図4)を参照して、通知された用紙識別番号「0x01」に対応する印刷領域サイズ項目の横サイズ項目から、印刷領域横サイズ情報「575」を読み出す(ステップS402)。また、第2取得部28は、対応する縦サイズ項目から、印刷領域縦サイズ情報「822」を読み出す(ステップS402)。そして、第2取得部28は、該印刷領域横サイズ情報「575」及び印刷領域縦サイズ情報「822」を、調整部19に通知する。
The
調整部19は、通知された印刷領域横サイズ情報「575」及び印刷領域縦サイズ情報「822」に基づき、印刷領域の設定を行う(ステップS403)。以下に、印刷領域の設定について、図9(a)を用いて説明を行う。
The
図9(a)は、PDFファイルに含まれる画像データに基づくページ画像を示す図である。
ページ画像32は、頂点32A、32B、32C、32Dを有する矩形領域からなり、この矩形領域の領域サイズが、第1取得部27により取得されたページサイズに相当する。即ち、ページ横サイズ情報は、頂点32A及び頂点32B間の長さを示し、ページ縦サイズ情報は、頂点32A及び頂点32C間の長さを示す。
FIG. 9A shows a page image based on the image data included in the PDF file.
The
調整部19は、このページ画像32に対して、印刷領域33を設定する。ここで、印刷領域33は、頂点33a、33b、33c、33dを有する矩形領域からなり、この矩形領域の領域サイズは、第2取得部28により取得された印刷領域サイズ情報に基づき設定される。即ち、調整部19は、印刷領域横サイズ情報に基づいて、頂点33a及び頂点33b間の長さを設定し、印刷領域縦サイズ情報に基づいて、頂点33a及び頂点33c間の長さを設定する。本実施例では、調整部19は、印刷領域がページ画像30における中央部に配置されるように、設定を行う。
The
そして、加工部21が、設定された印刷領域に対応する領域内画像データを、PDFファイルの画像データから抽出して、印刷中間データを生成し、中間データバッファ22に格納する(ステップS404)。これにより、コントローラ部12における抽出加工処理が終了する。
Then, the
上記のように、PDFファイルの画像データから印刷領域に対応する画像データが抽出され、印刷中間データが生成される。 As described above, image data corresponding to the print area is extracted from the image data of the PDF file, and print intermediate data is generated.
図9(b)は、抽出加工処理後の印刷中間データに基づくページ画像を示す図である。
図9(b)において、矩形領域34は、給紙サイズに対応する領域サイズを有し、矩形領域35は、印刷領域33に対応する領域サイズを有する。
図9(a)に示されるページ画像32の印刷領域33から抽出された領域内画像データは、図9(b)に示されるように、同一サイズで加工され、印刷中間データが生成される。
FIG. 9B shows a page image based on the print intermediate data after the extraction processing.
In FIG. 9B, the rectangular area 34 has an area size corresponding to the paper feed size, and the
The in-region image data extracted from the print region 33 of the
次に、コントローラ部12の編集部17において実施される画像データから印刷中間データへの拡縮加工処理について、図10及び図11を用いて説明を行う。
図10は、本発明に係るコントローラ部の実施例1における拡縮加工動作を示すフローチャートであり、図11は、実施例1における画像データの拡縮加工処理を説明する図である。
なお、この拡縮加工処理は、図7におけるステップS311の動作に相当する。
Next, the enlargement / reduction processing from the image data to the print intermediate data performed in the
FIG. 10 is a flowchart showing the enlargement / reduction processing operation of the controller unit according to the first embodiment of the present invention, and FIG. 11 is a diagram illustrating the image data enlargement / reduction processing according to the first embodiment.
This enlargement / reduction processing corresponds to the operation of step S311 in FIG.
拡縮加工処理の実施に先立ち、コントローラ部12の比較判断部29において、PDFファイルのページサイズと給紙トレイ14の給紙サイズとが一致しないと判断されると、第1取得部27により取得されたページサイズ情報と、第2取得部28により取得された給紙サイズに対応する用紙識別番号とが、編集部17に通知される。第2取得部28により通知されるページサイズ情報を、ページ横サイズ情報X1及びページ縦サイズ情報Y1とする。
Prior to the execution of the enlargement / reduction processing, if the
図11(a)は、PDFファイルに含まれる画像データに基づくページ画像を示す図である。
ページ画像36は、頂点36A、36B、36C、36Dを有する矩形領域からなり、この矩形領域の領域サイズが、第1取得部27により取得されたページサイズに相当する。即ち、ページ横サイズ情報X1は、頂点36A及び頂点36B間の長さを示し、ページ縦サイズ情報Y1は、頂点36A及び頂点36C間の長さを示す。
FIG. 11A shows a page image based on the image data included in the PDF file.
The
編集部17は、ページサイズ情報及び用紙識別番号を通知されると、算出部20が、通知された用紙識別番号を第2取得部28に通知して、印刷領域サイズ情報の取得を指示する(ステップS501)。
When the
第2取得部28は、用紙一覧テーブル26(図4)を参照して、通知された用紙識別番号に対応する印刷領域サイズ項目の横サイズ項目から、印刷領域横サイズ情報X2を読み出し、対応する縦サイズ項目から、印刷領域縦サイズ情報Y2を読み出す(ステップS502)。そして、第2取得部28は、該印刷領域横サイズ情報X2及び印刷領域縦サイズ情報Y2を、算出部20に通知する。
The
図11(b)は、抽出加工処理後の印刷中間データに基づくページ画像を示す図である。
図11(b)において、頂点38A、38B、38C、38Dを有する矩形領域38は、給紙サイズに対応する。そして、頂点39a、39b、39c、39dを有する矩形領域は、印刷領域サイズを有する印刷領域39を示す。即ち、第2取得部28により取得された印刷領域横サイズ情報X2が、頂点39a及び頂点39b間の長さとなり、印刷領域縦サイズ情報Y2が、頂点39a及び頂点39c間の長さとなる。
編集部17は、図11(a)に示されるページ画像36が、図11(b)に示される印刷領域39内に収まるように、画像サイズの拡縮を行う。
FIG. 11B is a diagram illustrating a page image based on the print intermediate data after the extraction processing.
In FIG. 11B, a
The
算出部20は、第1取得部27から通知されたページ横サイズ情報X1と、第2取得部28から通知された印刷領域横サイズ情報X2とに基づいて、横倍率情報RXとして、RX=X2/X1を算出する(ステップS503)。
Based on the page horizontal size information X1 notified from the
また、算出部20は、第1取得部27から通知されたページ縦サイズ情報Y1と、第2取得部28から通知された印刷領域縦サイズ情報Y2とに基づいて、縦倍率情報RYとして、RY=Y2/Y1を算出する(ステップS504)。
Further, the
そして、算出部20は、算出された横倍率情報RXと縦倍率情報RYとを比較して、横倍率情報RXが縦倍率情報RY以下であるか否かを判断する(ステップS505)。
The
RX≦RYである場合(ステップS505)、算出部20は、横倍率情報RXを拡縮倍率情報Rとして設定する(ステップS506)。また、RX>RYである場合(ステップS505)、算出部20は、縦倍率情報RYを拡縮倍率情報Rとして設定する(ステップS507)。設定された拡縮倍率情報Rは、加工部21に通知される。
When R X ≦ R Y (step S505), the
加工部21は、算出部20から拡縮倍率情報Rを通知されると、該拡縮倍率情報Rに基づいて、PDFファイルに含まれる画像データの拡縮処理を行って、印刷中間データを生成する(ステップS508)。加工部21は、ページ画像36(図11(a))をR倍に拡縮して、印刷領域39(図11(b))内に収まるサイズの印刷中間データを生成し、中間データバッファ22に格納する(ステップS508)。これにより、コントローラ部12における拡縮加工処理が終了する。
When notified of the enlargement / reduction ratio information R from the
上記のように、PDFファイルの画像データが印刷領域に対応して拡縮され、印刷中間データが生成される。 As described above, the image data of the PDF file is enlarged / reduced corresponding to the print area, and print intermediate data is generated.
次に、コントローラ部12の編集部17において実施される設定加工処理について、図12を用いて説明を行う。
図12は、本発明に係るコントローラ部の設定加工動作を示すフローチャートである。
なお、この設定加工処理は、図7におけるステップS313の動作に相当し、ホストコンピュータ11においてページサイズが設定済の画像データを印刷中間データに加工する処理である。
Next, setting processing performed in the
FIG. 12 is a flowchart showing the setting processing operation of the controller unit according to the present invention.
This setting processing is equivalent to the operation in step S313 in FIG. 7, and is processing for processing image data for which the page size has been set in the
コントローラ部12の編集部17において、画像サイズの調整が不要であると判断されると、解析部18は、PDFファイルから読み出された設定領域情報x3、y3、x4、y4に基づいて、印刷領域を設定する(ステップS601)。
If the
そして、加工部21が、PDFファイルの画像データから、該印刷領域内の画像データを抽出して、印刷中間データを生成する(ステップS602)。
Then, the
上記のように、ホストコンピュータ11において設定された印刷領域に基づいて、PDFファイルが加工され、印刷中間データが生成される。
As described above, the PDF file is processed based on the print area set in the
最後に、本実施例のプリンタ10によるダイレクトプリント処理の流れについて、説明する。
図13は、本発明に係るコントローラ部を含むプリンタの実施例1におけるダイレクトプリント動作を示すフローチャートである。
Finally, the flow of direct print processing by the
FIG. 13 is a flowchart showing a direct print operation in the first embodiment of the printer including the controller unit according to the present invention.
プリンタ10において、コントローラ部12の受信部15が、ホストコンピュータ11からダイレクトプリント指示及びPDFファイルを受信する(ステップS701)と、受信部15は、該PDFファイルを受信バッファ16に格納し、ダイレクトプリント指示を編集部17に送る。
In the
そして、コントローラ部12において、PDFファイルの解析編集処理(図7)が実施される(ステップS702)。編集部17は、PDFファイルを解析して、印刷領域を設定し、印刷中間データを生成すると、該印刷中間データを中間データバッファ22に格納すると共に、該印刷中間データの展開指示を展開部23に送る(ステップS702)。
Then, the PDF file analysis / editing process (FIG. 7) is performed in the controller unit 12 (step S702). When the
展開部23は、編集部17からの展開指示に基づいて、中間データバッファ22から印刷中間データを読み出して展開し、印刷イメージデータを生成する(ステップS703)。そして、展開部23は、印刷イメージデータをイメージデータバッファ24に格納すると共に、エンジン制御部25に印刷開始を指示する。
The
エンジン制御部25は、印刷開始指示を受け取ると、イメージデータバッファ24から印刷イメージデータを読み出して、印刷指示と共に該印刷イメージデータをエンジン部13へ送る。そして、エンジン部13が、該印刷イメージデータに基づいて、給紙トレイ14から給紙された用紙の印刷領域内に画像を形成して、印刷を行う(ステップS704)。これにより、プリンタ10における印刷処理が終了する。
Upon receiving the print start instruction, the
上記のように、プリンタ10において、PDFファイルに基づくダイレクトプリント処理が実行される。
As described above, the
以上のように、本実施例のコントローラ部12が搭載されるプリンタ10によれば、PDFファイルのページサイズと、給紙トレイ14内の用紙のサイズとが一致する場合、該用紙の印刷領域に対応する画像データが、PDFファイルから抽出されて、印刷領域サイズの印刷イメージデータが作成される。したがって、不要な画像縮小が防止され、PDFファイルを所望のサイズに印刷可能となるので、利便性が向上される。
As described above, according to the
図14は、本発明の実施例2に係るコントローラ部を含むプリンタの構成を示すブロック図である。
本実施例のプリンタ40は、コントローラ部41に第1イメージデータバッファ42及び第2イメージデータバッファ43が設けられると共に、印刷イメージデータのサイズ調整を行うための調整部44が追加される構成が、実施例1とは異なる。
なお、本実施例において、実施例1と同一の構成については同一の符号で示し、これらについての詳しい説明を省略する。
FIG. 14 is a block diagram illustrating a configuration of a printer including a controller unit according to the second embodiment of the invention.
The
In the present embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted.
プリンタ40は、ダイレクトプリント機能が搭載される印刷装置として、図14に示されるように、上位装置としてのホストコンピュータ11に接続し、コントローラ部41、エンジン部13及び給紙トレイ14を備えている。
As shown in FIG. 14, the
コントローラ部41は、本実施例の印刷制御装置として、図14に示されるように、受信部15、受信バッファ16、編集部45、中間データバッファ22、展開部49、第1イメージデータバッファ42、第2イメージデータバッファ43、調整部44、エンジン制御部25、用紙一覧テーブル26、第1取得部27、第2取得部53及び比較判断部29を備えている。
As shown in FIG. 14, the
編集部45は、図14に示されるように、解析部46、算出部47及び加工部48を有し、PDFファイルの解析編集処理を実施する処理部である。
As illustrated in FIG. 14, the
解析部46は、受信部15からダイレクトプリント指示を受け取ると、受信バッファ16からPDFファイルを読み出して、該PDFファイルを解析し、ページ設定の有無を判定する。
ページ設定が実施されていないと判定すると、解析部46は、画像サイズの調整が必要であると判断し、比較判断部29への比較判断指示を行う。そして、比較判断部29からの判断結果に基づいて、算出部47や加工部48への指示を行う。
ページ設定が実施されていると判定すると、解析部46は、画像サイズの調整が不要であると判断し、印刷領域のサイズ設定を行って、PDFファイルの加工を加工部48に指示する。
When the
If it is determined that the page setting is not performed, the
If it is determined that page setting has been performed, the
算出部47は、PDFファイルに含まれる画像データの拡大或いは縮小処理のための拡縮倍率情報を算出する。本実施例では、算出部47は、第1取得部27により取得されたページサイズ情報と、第2取得部28により取得された用紙サイズ情報とに基づいて、拡縮倍率情報の算出を行う。
The
加工部48は、PDFファイルに含まれる画像データを加工して、印刷中間データを生成し、該印刷中間データを中間データバッファ22に格納すると共に、該印刷中間データの展開を展開部49に指示する。
本実施例では、加工部48は、設定された用紙サイズに基づいて、画像データを印刷中間データに加工する。また、算出部47から拡縮倍率情報が通知された場合、加工部48は、拡縮生成部として、該核縮倍率情報に基づいて画像データを拡縮し、用紙サイズに対応する印刷中間データを生成する。
The
In this embodiment, the
展開部49は、編集部45から展開指示を受けると、中間データバッファ22から印刷中間データを読み出して、該印刷中間データの印刷イメージデータへの展開処理を行う。そして、展開部49は、印刷イメージデータを第1イメージデータバッファ42に格納すると共に、該印刷イメージデータのサイズ調整を調整部44に指示する。
When receiving a development instruction from the
第1イメージデータバッファ42は、展開部49により展開して生成された印刷イメージデータが一時的に格納される一時格納部である。
The first
第2イメージデータバッファ43は、後述する調整部44によりサイズ調整して生成された領域内印刷イメージデータが一時的に格納される一時格納部である。
The second
調整部44は、図14に示されるように、有無判断部50、抽出部51及び縮小部52有し、展開部49からのサイズ調整指示に基づいて、印刷イメージデータをサイズ調整して、領域内印刷イメージデータを生成する処理部である。
As shown in FIG. 14, the
有無判断部50は、第1イメージデータバッファ42から印刷イメージデータを読み出して、該印刷イメージデータの印刷領域外における描画データの有無を判断する。有無判断部50は、第2取得部28から通知された印刷領域サイズ情報に基づいて、印刷領域外における描画データの有無を判断する。有無判断部50は、描画データが有ると判断すると、縮小部52に縮小指示を行い、無いと判断すると、抽出部51に抽出指示を行う。
The presence /
抽出部51は、有無判断部50からの抽出指示に基づき、印刷イメージデータから印刷領域に対応する領域内印刷データを抽出する。抽出部51は、該領域内印刷データを第2イメージデータバッファ43に格納すると共に、エンジン制御部25に印刷開始を指示する。
The
縮小部52は、拡縮生成部として、有無判断部50からの縮小指示に基づき、印刷イメージデータを縮小して、印刷領域に対応する領域内印刷データを生成する。縮小部52は、第2取得部28から通知された用紙サイズ情報及び印刷領域サイズ情報に基づいて、縮小倍率情報を算出し、該縮小倍率情報に基づいて、印刷イメージデータの領域内印刷データへの縮小を行う。そして、縮小部52は、該領域内印刷データを第2イメージデータバッファ43に格納すると共に、エンジン制御部25に印刷開始を指示する。
As the enlargement / reduction generation unit, the reduction unit 52 reduces the print image data based on a reduction instruction from the presence /
第2取得部53は、エンジン制御部25にサイズ検出を指示して、給紙サイズ情報を取得する。そして、第2取得部53は、用紙一覧テーブル26(図4)から該給紙サイズ情報に対応する用紙識別番号を取得して、比較判断部29に通知する。
また、第2取得部53は、第3取得部として、調整部44からの指示に基づいて、給紙サイズ情報及び対応する印刷領域サイズ情報を取得して、調整部44に通知する。
The
Further, as the third acquisition unit, the
次に、本実施例のプリンタ40の動作について、説明する。
ここでは、まず、コントローラ部41における受信データの解析及び編集処理の流れについて、説明を行う。
図15は、本発明に係るコントローラ部の実施例2における解析編集動作を示すフローチャートである。
Next, the operation of the
Here, first, the flow of analysis and editing processing of received data in the
FIG. 15 is a flowchart showing the analysis editing operation in the second embodiment of the controller unit according to the present invention.
まず、ホストコンピュータ11においてページサイズが設定されていない場合の解析編集処理の流れについて、PDFファイルのページサイズと給紙トレイ14の給紙サイズとが一致する場合を例に、説明を行う。
なお、本実施例のプリンタ40のコントローラ部41において、第1取得部27によるページサイズ取得処理及び第2取得部28による給紙サイズ取得処理の流れは、それぞれ、実施例1と同一であるので、説明を省略する。
First, the flow of analysis and editing processing when the page size is not set in the
In the
コントローラ部41において、編集部45が受信部15からダイレクトプリント指示を受け取ると、解析部46がPDFファイル(図2)の解析を行う(ステップS301)。解析部46は、PDFファイルから設定領域情報及びページ情報を読み出して(ステップS301)、ページサイズの設定の有無を判定する(ステップS302)。
In the
ページサイズが設定されていないと判定する(ステップS302)と、解析部46は、画像サイズの調整が必要であると判断し(ステップS303)、印刷対象となるPDFファイルのページサイズと、給紙トレイ14の給紙サイズとを比較すべく、比較判断指示を比較判断部29に送る(ステップS304)。
If it is determined that the page size is not set (step S302), the
比較判断部29は、編集部45からの比較判断指示に基づき、第1取得部27に取得指示を送る。そして、第1取得部27が、ページサイズ取得処理(図4)を実施し、ページサイズ情報と対応する用紙識別番号とを取得し、該用紙識別番号を比較判断部29に通知する(ステップS305)。
The
また、比較判断部29は、第2取得部53に取得指示を送る。そして、第2取得部53が、給紙サイズ取得処理(図5)を実施し、給紙サイズ情報と対応する用紙識別番号とを取得し、該用紙識別番号を比較判断部29に通知する(ステップS306)。
Further, the
そして、比較判断部29が、第1取得部27から通知された用紙識別番号と、第2取得部53から通知された用紙識別番号の比較判断処理を行う(ステップS307)。比較判断部29は、用紙識別番号が一致すると判断する(ステップS307)と、ページサイズ及び給紙サイズが一致すると判断し、該判断結果と、一致した用紙識別番号とを、編集部45に通知する(ステップS308)。
Then, the
そして、編集部45の加工部48が、PDFファイルの画像データを加工して、印刷中間データを生成し、中間データバッファ22に格納する(ステップS801)。これにより、コントローラ部41における解析編集処理が終了する。
Then, the
図16は、実施例2における画像データの加工処理を説明する図である。
図16(a)は、PDFファイルに含まれる画像データに基づくページ画像を示す図であり、図16(b)は、解析編集処理後の印刷中間データに基づくページ画像を示す図である。図16(b)において、矩形領域55は、給紙サイズに一致する領域サイズを有する。
FIG. 16 is a diagram illustrating image data processing in the second embodiment.
FIG. 16A is a diagram showing a page image based on the image data included in the PDF file, and FIG. 16B is a diagram showing a page image based on the print intermediate data after the analysis editing process. In FIG. 16B, the
上記したように、ページサイズ及び給紙サイズが一致する場合、即ち、図16(a)に示されるページ画像54のサイズと、給紙トレイ14内の用紙のサイズとが一致する場合、PDFファイルに含まれる画像データは、等倍に加工されて、図16(b)に示されるように、給紙サイズに対応する印刷中間データが生成される。
As described above, when the page size and the paper feed size match, that is, when the size of the
ページサイズ及び給紙サイズが一致しない場合、ステップS307において、比較判断部29が、用紙識別番号の不一致を判断する。
If the page size and the paper feed size do not match, in step S307, the
この判断結果に基づき、比較判断部29は、ページサイズ及び給紙サイズが一致しないと判断し、第1取得部27により取得されたページサイズ情報と、第2取得部53により取得された給紙サイズ情報とを、編集部45に通知する(ステップS802)。
Based on the determination result, the
そして、編集部45の算出部47及び加工部48が、通知されたページサイズ情報及び給紙サイズ情報に基づき、画像データを拡縮加工して、印刷中間データを生成する(ステップS803)。これにより、コントローラ部41における解析編集処理が終了する。この拡縮加工処理の流れについては、後述する。
Then, the
なお、ステップS302において、ページサイズが設定されていると判定された場合、解析部46は、画像サイズの調整は不要であると判断する(ステップS312)。そして、加工部48が、ページ情報及び設定領域情報に基づいて、PDFファイルの設定加工処理(図12)を実施例1と同様に実施して、印刷中間データを生成し、中間データバッファ22に格納する(ステップS313)。
If it is determined in step S302 that the page size is set, the
次に、コントローラ部41の編集部45において実施される画像データから印刷中間データへの拡縮加工処理について、図16及び図17を用いて説明する。
図17は、本発明に係るコントローラ部の実施例2における拡縮加工動作を示すフローチャートである。
なお、この拡縮加工処理は、図15におけるステップS803の動作に相当する。
Next, enlargement / reduction processing from image data to print intermediate data, which is performed in the
FIG. 17 is a flowchart showing an enlargement / reduction processing operation in the second embodiment of the controller unit according to the present invention.
This enlargement / reduction processing corresponds to the operation in step S803 in FIG.
拡縮加工処理の実施に先立ち、コントローラ部41の比較判断部29は、第1取得部27により取得されたページ横サイズ情報X1及びページ縦サイズ情報Y1と、第2取得部53により取得された給紙横サイズ情報X3及び給紙縦サイズ情報Y3とを、編集部45に通知している。
Prior to execution of the enlargement / reduction processing, the
図16(a)において、ページ横サイズ情報X1は、ページ画像54の頂点54A及び頂点54B間の長さを示し、ページ縦サイズ情報Y1は、頂点54A及び頂点54C間の長さを示す。また、図16(b)において、給紙横サイズ情報X3は、矩形領域55の頂点55A及び頂点55B間の長さに相当し、給紙縦サイズ情報Y3は、頂点55A及び頂点55C間の長さに相当する。
ページ画像54の領域サイズ、即ち画像データのページサイズと、矩形領域55の領域サイズ、即ち給紙サイズとは一致しないので、編集部45は、ページ画像54が矩形領域55内に収まるように、画像サイズの拡縮を行う。
In FIG. 16A, the page horizontal size information X1 indicates the length between the vertices 54A and 54B of the
Since the area size of the
編集部45において、算出部47は、まず、ページ横サイズ情報X1と給紙横サイズ情報X3とに基づいて、横倍率情報R´Xとして、R´X=X3/X1を算出する(ステップS901)。
In the
また、算出部47は、ページ縦サイズ情報Y1と給紙縦サイズ情報Y3とに基づいて、縦倍率情報R´Yとして、R´Y=Y3/Y1を算出する(ステップS902)。
Further, the
そして、算出部47は、算出された横倍率情報R´Xと縦倍率情報R´Yとを比較して、横倍率情報R´Xが縦倍率情報R´Y以下であるか否かを判断する(ステップS903)。
The
R´X≦R´Yである場合(ステップS903)、算出部47は、横倍率情報R´Xを拡縮倍率情報R´として設定する(ステップS904)。また、R´X>R´Yである場合(ステップS903)、算出部47は、縦倍率情報R´Yを拡縮倍率情報R´として設定する(ステップS905)。設定された拡縮倍率情報R´は、加工部48に通知される。
When R ′ X ≦ R ′ Y (step S903), the
そして、加工部48が、通知された拡縮倍率情報R´に基づいて、PDFファイルに含まれる画像データの拡縮処理を行って、印刷中間データを生成する(ステップS906)。加工部48は、ページ画像54(図16(a))をR´倍に拡縮して、給紙サイズの矩形領域55(図16(b))内に収まるサイズの印刷中間データを生成し、中間データバッファ22に格納する(ステップS906)。これにより、コントローラ部41における拡縮加工処理が終了する。
Then, the
上記のように、PDFファイルの画像データが給紙サイズに対応して拡縮され、印刷中間データが生成される。 As described above, the image data of the PDF file is enlarged or reduced in accordance with the paper feed size, and print intermediate data is generated.
次に、コントローラ部41の調整部44において、印刷イメージデータのサイズ調整に先立ち実施される確認処理の流れについて、図18に沿って説明する。
図18は、本発明に係るコントローラ部の実施例2における確認動作を示すフローチャートである。
Next, the flow of the confirmation process performed before the print image data size adjustment in the
FIG. 18 is a flowchart showing the confirmation operation of the controller unit according to the second embodiment of the present invention.
コントローラ部41において、調整部44が、展開部23から調整指示を受け取ると、有無判断部50が、印刷イメージデータにおける印刷領域外の描画データの有無を判断すべく、以下に示す確認処理を行う。
In the
有無判断部50は、まず、第2取得部53に給紙サイズ情報及び印刷領域サイズ情報の取得を指示する。第2取得部53は、この取得指示に基づき、エンジン制御部25を介して給紙サイズ情報を取得する(ステップS1001)。また、第2取得部53は、用紙一覧テーブル26を参照して、該給紙サイズ情報に対応する印刷領域サイズ情報を読み出して取得する(ステップS1001)。そして、第2取得部53は、取得した給紙サイズ情報及び印刷領域サイズ情報を調整部44に通知する(ステップS1001)。第2取得部53による印刷領域サイズ情報の取得処理の詳細については、説明を省略する。
First, the presence /
給紙サイズ情報及び印刷領域サイズ情報が通知されると、有無判断部50は、該給紙サイズ情報及び印刷領域サイズ情報に基づいて、確認領域の設定を行う(ステップS1002)。
When the paper feed size information and the print area size information are notified, the presence /
図19は、確認領域の設定例を示す図である。
図19において、矩形領域64は、印刷イメージデータのページサイズを有する領域である。このページサイズは、給紙サイズに一致している。
矩形領域64の中央に配置されている部分領域64−5は、印刷領域サイズを有する矩形の領域である。矩形領域64は、更に、この部分領域64−5を囲んで、上部に配置される矩形の領域である部分領域64−1と、下部に配置される矩形領域である部分領域64−2と、両側部にそれぞれ配置される矩形の領域である部分領域64−3、64−4とに分割されている。
FIG. 19 is a diagram illustrating an example of setting a confirmation area.
In FIG. 19, a
The partial area 64-5 arranged at the center of the
有無判断部50は、印刷領域に対応する部分領域64−5を除く4つの各部分領域64−1〜4を、それぞれ、第1確認領域、第2確認領域、第3確認領域、第4確認領域として設定する(ステップS1002)。即ち、有無判断部50は、印刷イメージデータを、4つの確認領域及び1つの印刷領域に対応する各部分イメージデータに分割する。
The presence /
そして、有無判断部50は、まず、第1確認領域に対応する部分イメージデータを、印刷イメージデータから抽出し(ステップS1003)、該部分イメージデータにおける描画イメージの有無を判断する(ステップS1004)。
Then, the presence /
第1確認領域に描画イメージが無いと判断する(ステップS1004)と、有無判断部50は、続いて、第2確認領域に対応する部分イメージデータを、印刷イメージデータから抽出し(ステップS1005)、該部分イメージデータにおける描画イメージの有無を判断する(ステップS1006)。
If it is determined that there is no drawing image in the first confirmation area (step S1004), the presence /
第2確認領域に描画イメージが無いと判断する(ステップS1006)と、有無判断部50は、更に、第3確認領域に対応する部分イメージデータを、印刷イメージデータから抽出し(ステップS1007)、該部分イメージデータにおける描画イメージの有無を判断する(ステップS1008)。
If it is determined that there is no drawing image in the second confirmation area (step S1006), the presence /
そして、第3確認領域に描画イメージが無いと判断する(ステップS1008)と、有無判断部50は、第4確認領域に対応する部分イメージデータを、印刷イメージデータから抽出し(ステップS1009)、該部分イメージデータにおける描画イメージの有無を判断する(ステップS1010)。
When it is determined that there is no drawing image in the third confirmation area (step S1008), the presence /
第4確認領域にも描画イメージが無いと判断する(ステップS1010)と有無判断部50は、各確認領域に描画イメージが無いと判断する。そして、有無判断部50は、印刷領域の範囲外に描画イメージ、即ち領域外イメージが無いと判断し、該判断結果を抽出部51に通知する(ステップS1011)。これにより、有無判断部50による確認処理は終了する。
If it is determined that there is no drawing image in the fourth confirmation area (step S1010), the presence /
なお、各確認領域の何れかに描画イメージが有ると判断された場合(ステップS1004、1006、S1008、S1010)、有無判断部50は、印刷領域の範囲外に描画イメージ、即ち領域外イメージが有ると判断し、該判断結果を縮小部52に通知する(ステップS1012)。これにより、有無判断部50による確認処理は終了する。
When it is determined that there is a drawing image in any of the confirmation areas (steps S1004, 1006, S1008, and S1010), the presence /
上記のように、印刷イメージデータにおける領域外データの有無が判断される。 As described above, the presence / absence of out-of-region data in the print image data is determined.
次に、本実施例のプリンタ40によるダイレクトプリント処理の流れについて、説明する。
図20は、本発明に係るコントローラ部を含むプリンタの実施例2におけるダイレクトプリント動作を示すフローチャートである。
Next, the flow of direct print processing by the
FIG. 20 is a flowchart showing a direct print operation in the
プリンタ40において、コントローラ部41の受信部15が、ホストコンピュータ11からダイレクトプリント指示およびPDFファイルを受信する(ステップS701)と、受信部15は、該PDFファイルを受信バッファ16に格納し、ダイレクトプリント指示を編集部45に送る。
In the
そして、コントローラ部41において、PDFファイルの解析編集処理(図15)が実施される(ステップS1101)。編集部45は、PDFファイルを解析して編集し、印刷中間データを生成すると、該印刷中間データを中間データバッファ22に格納すると共に、該印刷中間データの展開指示を展開部23に送る(ステップS1101)。
Then, in the
展開部23は、この展開指示に基づいて、中間データバッファ22から印刷中間データを読み出して展開し、印刷イメージデータを生成する(ステップS1102)。そして、展開部23は、印刷イメージデータを第1イメージデータバッファ42に格納すると共に、調整部44に該印刷イメージデータの調整を指示する(ステップS1102)。
Based on the development instruction, the
調整部44は、調整指示を受け取ると、有無判断部50が、印刷イメージデータにおいて、印刷領域の範囲外における描画データの有無を判断すべく、確認処理(図18)を行う(ステップS1103)。有無判断部50は、印刷イメージデータを5つの部分イメージデータに分割して、確認処理を実施する。
When the
そして、有無判断部50は、印刷領域の範囲外に描画データ、即ち領域外イメージデータが有るか否かを判断する(ステップS1104)。
Then, the presence /
領域外イメージデータが無いと判断する(ステップS1104)と、有無判断部50は、抽出部51に印刷領域サイズ情報を通知して、領域内イメージデータの抽出を指示する(ステップS1105)。
If it is determined that there is no out-of-region image data (step S1104), the presence /
抽出部51は、この抽出指示に基づき、第1イメージデータバッファ42から印刷イメージデータを読み出す。そして、通知された印刷領域サイズ情報に基づいて、給紙サイズの印刷イメージデータから、印刷領域内のイメージデータを、領域内イメージデータとして抽出する(ステップS1106)。
The
図21は、実施例2における印刷イメージデータの抽出処理を説明する図である。
図21(a)は、印刷イメージデータに基づくページ画像を示す図である。
ページ画像56のページサイズは、給紙サイズに一致すべく、編集部45により調整済である。
FIG. 21 is a diagram illustrating print image data extraction processing according to the second embodiment.
FIG. 21A shows a page image based on print image data.
The page size of the
抽出部51は、このページ画像56に対応する印刷イメージデータから、印刷領域57内のイメージデータを、領域内イメージデータとして抽出する(ステップS1106)。抽出部51は、抽出した領域内イメージデータを第2イメージデータバッファ43に格納すると共に、エンジン制御部25に印刷開始を指示する(ステップS1106)。
The
エンジン制御部25は、印刷開始指示を受け取ると、第2イメージデータバッファ43から領域内イメージデータを読み出して、印刷指示と共にエンジン部13へ送る。そして、エンジン部13が、該領域内イメージデータに基づいて、給紙トレイ14から給紙された用紙の印刷領域内に画像を形成して、印刷を行う(ステップS1107)。これにより、プリンタ40におけるダイレクトプリント処理が終了する。
When the
図21(b)は、抽出処理後の領域内画像データに基づくページ画像を示す図である。
給紙トレイ14から給紙された用紙58の印刷領域59内に、印刷イメージデータから抽出された領域内イメージデータに基づく画像が、拡縮されることなく等倍に形成される。
FIG. 21B is a diagram illustrating a page image based on intra-region image data after extraction processing.
An image based on the in-area image data extracted from the print image data is formed in the
なお、ステップS1104において、領域外印刷データが有ると判断されると、有無判断部50は、縮小部52に給紙サイズ情報及び印刷領域サイズ情報を通知して、印刷イメージデータの縮小を指示する(ステップS1108)。
If it is determined in step S1104 that there is out-of-region print data, the presence /
縮小部52は、この縮小指示に基づき、印刷イメージデータの縮小処理を行って、領域内イメージデータを生成する(ステップS1109)。 Based on the reduction instruction, the reduction unit 52 performs print image data reduction processing to generate in-region image data (step S1109).
ここで、ステップS1109における縮小処理の流れについて、図22及び図23を用いて説明する。
図22は、本発明に係るコントローラ部の縮小動作を示すフローチャートであり、図23は、実施例2における印刷イメージデータの縮小処理を説明する図である。
Here, the flow of the reduction process in step S1109 will be described with reference to FIGS.
FIG. 22 is a flowchart showing the reduction operation of the controller unit according to the present invention, and FIG. 23 is a diagram for explaining the print image data reduction processing in the second embodiment.
コントローラ部41の調整部44において、縮小部52は、有無判断部50から、給紙横サイズ情報X3及び給紙縦サイズ情報Y3からなる給紙サイズ情報と、印刷領域横サイズ情報X2及び印刷領域縦サイズ情報Y2からなる印刷領域サイズ情報とを通知されると、印刷イメージデータの拡縮を実施する。
In the
図23(a)は、印刷イメージデータに基づくページ画像を示す図であり、図23(b)は、領域内イメージデータに基づくページ画像を示す図である。
図23(a)において、ページ画像60は、給紙サイズの矩形領域からなり、矩形領域61は、該給紙サイズに対応する印刷領域サイズを有する。ここで、ページ画像60に対応する印刷イメージデータは、矩形領域61の外側にも描画データ、即ち領域外データを有する。したがって、印刷イメージデータに基づき印刷処理が実行されると、該領域外データに基づく描画が実行されないという問題がある。
FIG. 23A shows a page image based on the print image data, and FIG. 23B shows a page image based on the in-region image data.
In FIG. 23A, a
そこで、縮小部52は、ページ画像60が、図23(b)に示される用紙62の印刷領域63内に収まるように、印刷イメージデータを縮小する。
Therefore, the reduction unit 52 reduces the print image data so that the
まず、縮小部52は、給紙横サイズ情報X3及び印刷領域横サイズ情報X2に基づいて、横倍率情報rxとして、rX=X2/X3を算出する(ステップS1201)。 First, the reduction unit 52 calculates r X = X2 / X3 as the horizontal magnification information r x based on the paper feed horizontal size information X3 and the print area horizontal size information X2 (step S1201).
また、縮小部52は、給紙縦サイズ情報Y3及び印刷領域縦サイズ情報Y2に基づいて、縦倍率情報rYとして、rY=Y2/Y3を算出する(ステップS1202)。 The reduction unit 52 calculates r Y = Y2 / Y3 as the vertical magnification information r Y based on the paper feed vertical size information Y3 and the print area vertical size information Y2 (step S1202).
そして、縮小部52は、算出された横倍率情報rXと縦倍率情報rYとを比較して、横倍率情報rXが縦倍率情報rY以下であるか否かを判断する(ステップS1203)。 Then, the reducing portion 52 compares the widthwise rate information r X calculated and vertical magnification information r Y, widthwise rate information r X is equal to or less than the vertical rate information r Y (step S1203 ).
rX≦rYである場合(ステップS1203)、縮小部52は、横倍率情報rXを縮小倍率情報rとして設定する(ステップS1204)。また、rX>rYである場合(ステップS1203)、縮小部52は、縦倍率情報rYを縮小倍率情報rとして設定する(ステップS1205)。 When a r X ≦ r Y (step S1203), the reducing portion 52 sets the widthwise rate information r X as the reduction ratio information r (step S1204). If r X > r Y (step S1203), the reduction unit 52 sets the vertical magnification information r Y as the reduction magnification information r (step S1205).
続いて、縮小部52は、設定された縮小倍率情報rに基づいて、印刷イメージデータを縮小して、印刷領域に対応する領域内イメージデータを生成する(ステップS1206)。縮小部52は、ページ画像60(図23(a))をr倍に縮小して、印刷領域63(図23(b))内に収まるサイズの領域内データを生成し、第2イメージデータバッファ43に格納する(ステップS1206)。これにより、コントローラ部41における縮小処理が終了する。
Subsequently, the reduction unit 52 reduces the print image data based on the set reduction magnification information r, and generates in-region image data corresponding to the print region (step S1206). The reduction unit 52 reduces the page image 60 (FIG. 23A) to r times, generates in-area data having a size that can be accommodated in the print area 63 (FIG. 23B), and generates a second image data buffer. 43 (step S1206). Thereby, the reduction process in the
上記のように、印刷イメージデータが印刷領域に対応して縮小され、領域内イメージデータが生成される。 As described above, the print image data is reduced corresponding to the print area, and the in-area image data is generated.
図20に戻って、縮小部52は、領域内イメージデータを第2イメージデータバッファ43に格納する(ステップS1109)と、エンジン制御部25に印刷開始を指示する。
Returning to FIG. 20, the reduction unit 52 stores the in-region image data in the second image data buffer 43 (step S <b> 1109), and instructs the
そして、エンジン制御部25が、第2イメージデータバッファ43から領域内イメージデータを読み出して、印刷指示と共にエンジン部13へ送る。続いて、エンジン部13が、受け取った領域内イメージデータに基づいて、給紙トレイ14から給紙された用紙の印刷領域内に画像を形成して、印刷を行う(ステップS1107)。これにより、プリンタ40におけるダイレクトプリント処理が終了する。
Then, the
上記のように、プリンタ40において、PDFファイルに基づくダイレクトプリント処理が実行される。
As described above, the
以上のように、本実施例のコントローラ部41が搭載されるプリンタ40によれば、画像サイズの調整に際して、印刷領域外の描画データ、即ち領域外データが存在するか否かが考慮されるので、不要な画像縮小が防止されると共に、領域外データの損失が確実に防止される。
As described above, according to the
上記した各実施例では、本発明を、上位装置から送信された電子文書に基づき、ダイレクトプリントを実行する印刷装置のコントローラ部に適用する場合を例に説明したが、本発明はこれに限定されない。例えば、スキャナで読み取った画像データに基づき印刷を行うMFPに適用することも可能である。 In each of the above-described embodiments, the case where the present invention is applied to the controller unit of a printing apparatus that performs direct printing based on an electronic document transmitted from a host apparatus has been described as an example. However, the present invention is not limited to this. . For example, the present invention can be applied to an MFP that performs printing based on image data read by a scanner.
10、40 プリンタ
11 ホストコンピュータ
12、41 コントローラ部
13 エンジン部
14 給紙トレイ
15 受信部
17、45 編集部
23 展開部
25 エンジン制御部
26 用紙一覧テーブル
27 第1取得部
28、53 第2取得部
29 比較判断部
44 調整部
50 有無判断部
51 抽出部
52 縮小部
DESCRIPTION OF
Claims (15)
前記受信した電子文書のページサイズを示すページサイズ情報を取得する第1取得部と、
前記記録媒体の媒体サイズを示す媒体サイズ情報を取得する第2取得部と、
取得された前記ページサイズ情報及び前記媒体サイズ情報を比較して、一致するか否かを判断する比較判断部と、
一致すると判断されると、前記受信した画像データの前記記録媒体の印刷可能領域に対応する領域内画像データから、該印刷可能領域に対応する領域内印刷データを生成する制御部と、
を有することを特徴とする印刷制御装置。 Receiving an electronic document including image data, a print control apparatus including a direct print function for printing the electronic document in the printable area of the recording medium,
A first acquisition unit that acquires page size information indicating a page size of the received electronic document;
A second acquisition unit that acquires medium size information indicating a medium size of the recording medium;
A comparison determination unit that compares the acquired page size information and the medium size information to determine whether or not they match;
If it is determined that matching, from a region in the image data corresponding to the printable area of the recording medium of the received image data, and a control unit for generating a print data inside of region corresponding to the printable area,
A printing control apparatus comprising:
前記解析部は、前記記録媒体のサイズと前記印刷可能領域のサイズとが一致すると、ページ設定情報が設定されていないと判断し、前記比較判断部に前記画像データのサイズを拡大又は縮小する必要の有無を判断させるべく、前記ページサイズ情報及び前記媒体サイズ情報の比較を指示することを特徴とする請求項1に記載の印刷制御装置。 Further comprising an analysis unit for analyzing whether the size and page setting information indicating the size of the printable area of the recording medium used in the printing process in the electronic document is set,
Wherein the analysis unit is configured when the size of the recording medium and the size of the printable area is matched, it is judged that the page setting information is not set, it is necessary to enlarge or reduce the size of the image data to the comparison determination unit The print control apparatus according to claim 1, wherein a comparison between the page size information and the medium size information is instructed to determine whether or not there is a printout.
前記比較判断部により前記ページサイズ情報及び前記媒体サイズ情報が一致すると判断されると、
前記制御部は、前記画像データから前記記録媒体に対応する印刷データを生成し、
前記有無判断部は、生成された前記印刷データの前記印刷可能領域外における描画データの有無を判断し、
無いと判断されると、前記制御部は、前記印刷データから前記印刷可能領域に対応する領域内印刷データを生成する
ことを特徴とする請求項1記載の印刷制御装置。 A presence / absence determining unit for determining the presence / absence of drawing data in the predetermined area;
When the comparison determination unit determines that the page size information and the medium size information match,
The control unit generates print data corresponding to the recording medium from the image data,
The state determining unit determines whether the drawing data in the non-printable area of the generated the print data,
If it is determined that there is no, the control unit, the printing control apparatus according to claim 1, wherein the generating the print data inside of region corresponding to the printable area from the print data.
取得された前記領域サイズ情報と、前記ページサイズ情報とに基づいて、前記印刷データを前記領域サイズに拡縮し、領域内印刷データを生成する拡縮生成部と、
を更に備える
ことを特徴とする請求項7記載の印刷制御装置。 If it is determined that there by the state determining section, and a third obtaining section that obtains region size information representing region size of the printable area,
Based on the acquired area size information and the page size information, the enlargement / reduction generating unit that enlarges / reduces the print data to the area size and generates in-area print data;
The print control apparatus according to claim 7, further comprising:
取得された前記領域サイズ情報と、前記ページサイズ情報とに基づいて、前記画像データを前記領域サイズに拡縮し、拡縮画像データを生成する拡縮生成部と、
を更に備え、
前記制御部は、前記拡縮画像データから前記印刷可能領域に対応する領域内印刷データを生成する
ことを特徴とする請求項1記載の印刷制御装置。 When the page size information and the medium size information by the comparative determination unit is determined not to match, and a third obtaining section that obtains region size information representing region size of the printable area,
Based on the acquired area size information and the page size information, the image data is enlarged or reduced to the area size, and an enlargement / reduction generation unit that generates enlarged / reduced image data;
Further comprising
Wherein the control unit, the printing control apparatus according to claim 1, wherein the generating the print data inside of region corresponding to the printable area from the scaled image data.
所定領域における描画データの有無を判断するための有無判断部とを更に備え、
前記制御部は、前記拡縮画像データから前記記録媒体に対応する印刷データを生成し、
前記有無判断部は、生成された前記印刷データの前記印刷可能領域外における描画データの有無を判断し、
無いと判断されると、前記制御部は、前記印刷データから前記印刷可能領域に対応する領域内印刷データを生成する
ことを特徴とする請求項1記載の印刷制御装置。 When the comparison determination unit determines that the page size information and the medium size information do not match, the image data is scaled to the medium size based on the page size information and the medium size information, and the scaled image data An enlargement / reduction generator for generating
A presence / absence determining unit for determining the presence / absence of drawing data in a predetermined area;
The control unit generates print data corresponding to the recording medium from the enlarged / reduced image data,
The state determining unit determines whether the drawing data in the non-printable area of the generated the print data,
If it is determined that there is no, the control unit, the printing control apparatus according to claim 1, wherein the generating the print data inside of region corresponding to the printable area from the print data.
前記拡縮生成部は、取得された前記領域サイズ情報と、前記媒体サイズ情報とに基づいて、前記印刷データを前記領域サイズに拡縮し、領域内印刷データを生成する
ことを特徴とする請求項12記載の印刷制御装置。 If it is determined that there by the state determining section further includes a third obtaining section that obtains region size information representing region size of the printable area,
The enlargement / reduction generation unit enlarges or reduces the print data to the area size based on the acquired area size information and the medium size information, and generates in-area print data. The printing control apparatus described.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011098370A JP5361937B2 (en) | 2011-04-26 | 2011-04-26 | Print control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011098370A JP5361937B2 (en) | 2011-04-26 | 2011-04-26 | Print control device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008095043A Division JP4743445B2 (en) | 2008-04-01 | 2008-04-01 | Print control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011161929A JP2011161929A (en) | 2011-08-25 |
JP5361937B2 true JP5361937B2 (en) | 2013-12-04 |
Family
ID=44593135
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011098370A Active JP5361937B2 (en) | 2011-04-26 | 2011-04-26 | Print control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5361937B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116552145A (en) * | 2023-04-28 | 2023-08-08 | 珠海恒盛条码设备有限公司 | Printing equipment compatible with paper and printing control method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3362680B2 (en) * | 1998-03-16 | 2003-01-07 | セイコーエプソン株式会社 | PRINT PROCESSING METHOD, RECORDING MEDIUM RECORDING COMPUTER PROGRAM FOR USING THE SAME, AND PRINTER |
JP2005056285A (en) * | 2003-08-07 | 2005-03-03 | Konica Minolta Medical & Graphic Inc | Image output system, image output control method, program for executing its method and recording medium for storing program |
JP2006231651A (en) * | 2005-02-24 | 2006-09-07 | Seiko Epson Corp | Printing device |
-
2011
- 2011-04-26 JP JP2011098370A patent/JP5361937B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011161929A (en) | 2011-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4743445B2 (en) | Print control device | |
EP2264995B1 (en) | Image processing apparatus, image processing method, and computer program | |
JP5900803B2 (en) | DATA GENERATION DEVICE, DATA GENERATION PROGRAM, AND DATA GENERATION METHOD | |
EP1764739B1 (en) | Image processing apparatus and computer program product | |
JP2009054005A (en) | Image forming system, image forming apparatus, and image forming method | |
KR100679623B1 (en) | MFP | |
KR101310236B1 (en) | Method for controlling reducing print in host apparatus and the host apparatus for it | |
JP2008077160A (en) | Image processing device, image processing method, image forming apparatus, computer-executable program, and recording medium storing the program | |
JP5871606B2 (en) | Image forming apparatus, image display method, and program | |
JP5361937B2 (en) | Print control device | |
JP2008177823A (en) | Image processor and image magnifying method | |
JP2014068152A (en) | Image processing apparatus, image processing method, and program | |
JP2009143124A (en) | Image processing apparatus | |
JP4715563B2 (en) | Print data generation apparatus and printer driver program | |
JP4049169B2 (en) | Image processing apparatus, image processing method, and image processing program | |
JP2000137801A (en) | Method and device for image formation and medium storing image processing control program | |
JP2020005061A (en) | Image processing apparatus and program | |
JP6705284B2 (en) | Document processor | |
JP2007194713A (en) | Image processing apparatus, system, and method, and program | |
JP2010081078A (en) | Color image processor and color image processing program | |
JP2018062134A (en) | Guide display device and program | |
JP2007144712A (en) | Imaging device and document distribution method | |
JP2008080592A (en) | Image data generating apparatus, image forming apparatus, image forming system, and image data generating program | |
JP2006260398A (en) | Printing controller and its control method | |
JPH1058787A (en) | Method and device for print processing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110426 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120612 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20130312 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130606 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20130701 |
|
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: 20130903 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130903 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5361937 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |