JP2011037219A - Image processing apparatus, method for controlling image processing apparatus and computer program - Google Patents
Image processing apparatus, method for controlling image processing apparatus and computer program Download PDFInfo
- Publication number
- JP2011037219A JP2011037219A JP2009188919A JP2009188919A JP2011037219A JP 2011037219 A JP2011037219 A JP 2011037219A JP 2009188919 A JP2009188919 A JP 2009188919A JP 2009188919 A JP2009188919 A JP 2009188919A JP 2011037219 A JP2011037219 A JP 2011037219A
- Authority
- JP
- Japan
- Prior art keywords
- file
- print data
- pdl
- image processing
- processing apparatus
- 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.)
- Granted
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
本発明は、画像処理装置、画像処理装置の制御方法、及びコンピュータプログラムに関する。 The present invention relates to an image processing apparatus, an image processing apparatus control method, and a computer program.
複数の種類のPDL(Page Description Language :ページ記述言語)データを解釈して処理することができるプリンタ等の画像処理装置が提案されている。このような画像処理装置は、受信した印刷データについてPDLの種別(以下、PDL種別と記述)の判定を行い、このPDL種別の判定結果に基づいて、印刷データの印刷処理を行う。PDL種別の判定は、印刷データにどのPDLが用いられているかについての判定である。
特許文献1は、印刷データ先頭の所定サイズのデータ中の各コマンド群についての、複数の種類のPDLに関する構文規則一致度を算出し、算出した構文規則一致度に基づいて印刷データに用いられているPDLを判定する印刷装置を開示している。すなわち、この印刷装置は、印刷データを先頭から順に展開してPDL種別を判定する。
An image processing apparatus such as a printer capable of interpreting and processing a plurality of types of PDL (Page Description Language) data has been proposed. Such an image processing apparatus determines the type of PDL (hereinafter referred to as PDL type) for the received print data, and performs print processing of the print data based on the determination result of the PDL type. The determination of the PDL type is a determination as to which PDL is used for the print data.
Japanese Patent Application Laid-Open No. 2004-228867 calculates syntax rule matching degrees for a plurality of types of PDLs for each command group in data of a predetermined size at the beginning of print data, and is used for print data based on the calculated syntax rule matching degrees. A printing apparatus for determining a PDL that is present is disclosed. That is, this printing apparatus develops print data in order from the top and determines the PDL type.
近年、Microsoft社が提唱する、XML(Extensible Markup Language)をベースとするXPS(XML Paper Specification )印刷システムが広く知られている。XPS文書は、文書データであるとともに、印刷データとしての側面を有する。従って、XPS文書をプリンタドライバを用いずに直接プリンタなどの画像処理装置に送信して印刷を行うことが考えられる。
XPS文書については、通常、XPS文書を構成する各ファイルをまとめてZIP形式で圧縮処理をすることが行われている。また、バリアブル印刷に特化した印刷言語であるPPML(Personalized Print Markup Language)の形式で記述されたデータについても、複数のファイルをまとめてZIP形式で圧縮処理を行うのが一般的である。パーソナルコンピュータ等の情報機器が性能向上したことにより、印刷データや文書データを上記のように圧縮処理して容量を抑え、ネットワーク負荷を軽減することが行われている。
In recent years, an XPS (XML Paper Specification) printing system based on XML (Extensible Markup Language) proposed by Microsoft Corporation is widely known. The XPS document is document data and has an aspect as print data. Therefore, it is conceivable to print an XPS document by directly transmitting it to an image processing apparatus such as a printer without using a printer driver.
As for the XPS document, usually, the files constituting the XPS document are collectively compressed in the ZIP format. Also, with respect to data described in a PPML (Personalized Print Markup Language) format, which is a printing language specialized for variable printing, it is common to compress a plurality of files together in a ZIP format. As information devices such as personal computers have improved performance, print data and document data are compressed as described above to reduce the capacity and reduce the network load.
ここで、同一形式で圧縮処理された印刷データが直接画像処理装置に送信される場合、画像処理装置が、先頭数バイトの情報に基づいてPDL種別の判定をすることは困難である。また、画像処理装置が、圧縮処理された印刷データの中身を確認するためには、印刷データのファイルを展開する必要がある。また、XPS文書やPPML文書の印刷データについては、データ順序が一定でないため、先頭のファイルにPDL種別の判定に用いるデータがあるとは限らない。このため、印刷データを先頭から順に展開してPDL種別を判定する技術では、PDL種別の判定に時間がかかる。
本発明は、圧縮処理された印刷データのPDL種別の判定を効率的に実行する画像処理装置、画像処理装置の制御方法、及びコンピュータプログラムの提供を目的とする。
Here, when print data compressed in the same format is directly transmitted to the image processing apparatus, it is difficult for the image processing apparatus to determine the PDL type based on the information of the first few bytes. Further, in order for the image processing apparatus to check the contents of the compressed print data, it is necessary to expand the print data file. Further, the print order of XPS documents and PPML documents is not always in a fixed order, so there is not always data used for determining the PDL type in the first file. For this reason, it takes time to determine the PDL type in the technology for determining the PDL type by developing the print data in order from the top.
An object of the present invention is to provide an image processing apparatus, a control method for an image processing apparatus, and a computer program that efficiently execute determination of the PDL type of compressed print data.
本発明の一実施形態の画像処理装置は、印刷データを受信するデータ受信手段と、受信した前記印刷データが圧縮形式であるかを判断し、前記印刷データが圧縮形式であると判断した場合に、前記印刷データを展開処理せずに該印刷データのページ記述言語の種別を判定するページ記述言語判定手段と、前記ページ記述言語の種別が判定された印刷データのファイルを取得するファイル取得手段と、前記ファイル取得手段から前記ファイルを受け取って解析する解析手段とを備える。 An image processing apparatus according to an embodiment of the present invention determines a data reception unit that receives print data, whether the received print data is in a compressed format, and determines that the print data is in a compressed format. A page description language determining unit that determines a type of page description language of the print data without developing the print data, and a file acquisition unit that acquires a file of print data for which the type of page description language is determined Analyzing means for receiving and analyzing the file from the file acquisition means.
本発明の画像処理装置によれば、圧縮処理された印刷データのPDL種別の判定を効率的に行うことができる。その結果、この印刷データについて、PDL種別の判定時間を短縮することができる。 According to the image processing apparatus of the present invention, it is possible to efficiently determine the PDL type of the compressed print data. As a result, the PDL type determination time can be shortened for this print data.
図1は、本実施形態のシステム構成の一例を示す図である。図1(A)は、本実施形態の画像処理装置を有するシステムの構成例を示し、図1(B)は、本実施形態の画像処理装置が備える制御装置の機能ブロック図の例を示す。図1(A)に示す画像処理装置1は、印刷データを受信し、受信した印刷データにどのページ記述言語(PDL)が用いられているかを判定(PDL種別を判定)し、PDL判定結果に基づいて印刷処理を実行する情報処理装置である。画像処理装置1は、MFP(Multi Function Printer)、SFP(Single Function Printer )、LBP(Laser Beam Printer)のうち、いずれのプリンタであってもよい。また、画像処理装置1は、MFP、SFP、LBP以外のプリント方式のプリンタであってもよい。画像処理装置1は、イーサネット(登録商標)等のLAN(Local Area Network)3を介し、画像処理装置1に対して各種指示を行うホストコンピュータ2と接続されている。
FIG. 1 is a diagram illustrating an example of a system configuration of the present embodiment. FIG. 1A shows a configuration example of a system having an image processing apparatus of the present embodiment, and FIG. 1B shows an example of a functional block diagram of a control device provided in the image processing apparatus of the present embodiment. The
画像処理装置は、図1(A)に示すように、制御装置11、プリンタ装置12、外部メディア接続部13、操作部14、記憶装置15を備える。制御装置11は、画像処理装置1全体を制御する。制御装置11は、外部メディア接続部13、記憶装置15、又はLAN3を介して印刷データを受信し、受信した印刷データについてPDL種別の判定を行う。また、制御装置11は、PDL判定種別の判定結果に基づいて、印刷データの印刷制御処理を実行する。具体的には、制御装置11はプリンタ装置12に指示して印刷データを印刷出力させる。
As shown in FIG. 1A, the image processing apparatus includes a
制御装置11は、ハードウェア資源として、CPU(Central Processing Unit )111、ROM(Read Only Memory)112、RAM(Random Access Memory)113を備える。CPU111は、ROM112又は他の記憶媒体に格納された制御プログラムに基づいて、画像処理装置1全体を統括制御する。上記制御プログラムは、本実施形態の画像処理装置の制御方法を実現するコンピュータプログラムである。RAM113は、CPU111の作業領域として用いられる記憶手段である。プリンタ装置12は、制御装置11の指示に従って、印刷データを印刷出力する。外部メディア接続部13は、USB(Universal Serial Bus)メモリ等の外部メディアから印刷データの入力が可能な装置である。操作部14は、各種機能の表示/設定や画像処理装置の状況の表示を行う。このために、操作部14は液晶パネルを備える。記憶装置15は、印刷データの格納/保存を行う。
The
図1(B)に示すように、制御装置11は、データ受信部101、PDL判定部102、文書判定情報記憶部103、ファイル情報記憶部104、ファイル取得部105、PDL解析部106、印刷制御部107を備える。データ受信部101は、外部メディア接続部13、記憶装置15、LAN3から印刷データを受信するデータ受信手段として機能する。PDL判定部102は、受信した印刷データについてPDL種別の判定を行うページ記述言語判定手段として機能する。PDL判定部102は、受信した印刷データが圧縮形式であるかを判断し、印刷データが圧縮形式であると判断した場合に、印刷データを展開処理せずに該印刷データに用いられているPDLの種別を判定する。例えば、PDL判定部102は、上記圧縮形式であると判断した印刷データのファイルのファイル名を取得する。そして、PDL判定部102は、取得したファイル名と文書判定情報記憶部103内(第1の記憶手段内)の文書判定情報とに基づいて、該取得したファイル名に対応するPDL種別を決定し、決定した種別を上記印刷データのPDL種別と判定する。文書判定情報は、PDL種別とファイル名との対応情報を含む情報である。PDL判定部102は、更に、上記取得したファイル名に対応するファイルのアドレス情報を取得し、該ファイル名とアドレス情報との対応情報をファイル情報記憶部104内(第2の記憶手段内)に記憶する。文書判定情報記憶部103は、文書判定情報が予め記憶される第1の記憶手段として機能する。ファイル情報記憶部104は、PDL判定部102によって取得されたファイル名とアドレス情報との対応情報が記憶される第2の記憶手段として機能する。ファイル情報記憶部104は、ハードウェア資源としてのRAM113又は記憶装置15に対応する。
As shown in FIG. 1B, the
ファイル取得部105は、PDL判定部102によってPDL種別が判定された印刷データのファイルを取得し、取得したファイルをPDL解析部106に渡すファイル取得手段として機能する。ファイル取得部105は、PDL解析部106による解析処理に必要である順番にファイルを取得する。例えば、ファイル取得部105は、PDL判定部102によって判定されたPDL種別が順次処理可能な印刷データに対応する種別である場合に、取得した該印刷データのファイルを順次展開してPDL解析部106に渡す。順次処理可能な印刷データは、PDL解析部106の処理に必要なファイルの順番にファイルが格納されている印刷データである。PDL種別が、PDL解析部106による解析処理対象となるファイルがランダムに格納され、各々のファイルに次に解析処理対象となるファイルのファイル名が含まれている印刷データに対応する種別である場合、ファイル取得部105は、以下の処理を実行する。ファイル取得部105は、各々のファイルに含まれる次に解析処理対象となるファイルのファイル名に基づいて、上記解析処理対象となるファイルを順次取得する。具体的には、ファイル取得部105は、次に解析処理対象となるファイルのファイル名と、ファイル情報記憶部104内の対応情報とに基づいて、次に解析処理対象となるファイルのファイル名に対応するアドレス情報を取得する。そして、ファイル取得部105は、取得されたアドレス情報に基づいて、次に解析処理対象となるファイルにアクセスする。PDL解析部106は、ファイル取得部105からファイルを受け取って解析、すなわち印刷データを解析する。印刷制御部107は、PDL解析部106によって解析された印刷データをプリンタ装置12に送信し、印刷データを印刷出力させる。
The
図2は、文書判定情報記憶部内の文書判定情報の例を示す図である。文書判定情報は、例えば、図2(A)のテーブル(以下、PDL種別テーブル)に格納された情報と、図2(B)に示すテーブル(以下、印刷不可文書テーブル)に格納された情報とを含む。PDL種別テーブルには、PDL種別とファイル名との対応情報とが予め格納されている。図2(A)に示す例では、印刷データであるPPML文書、順次処理XPS文書、ランダム処理XPS文書のそれぞれに対応させて、文書に含まれるファイルのファイル名が格納されている。図2(A)に示す例では、PPML文書は、定義ファイルとしてppmlファイルを含み、更に、pdf等の参照される文書データも含む。XPS文書(順次処理XPS文書及びランダム処理XPS文書)は、[Content_Types].xmlやFixedDocumentSequence.fdseqファイルを含む。特に、順次処理XPS文書は、[Content_Types].xml/〜.pieceというpieceファイルを含む。なお、順次処理XPS文書は、前述した順次処理可能な印刷データの例である。また、ランダム処理XPS文書は、PDL解析部106による解析処理対象となるファイルがランダムに格納され、各々のファイルに次に解析処理対象となるファイルのファイル名が含まれている印刷データの例である。
FIG. 2 is a diagram illustrating an example of document determination information in the document determination information storage unit. The document determination information includes, for example, information stored in a table in FIG. 2A (hereinafter referred to as a PDL type table) and information stored in a table illustrated in FIG. 2B (hereinafter referred to as a non-printable document table). including. In the PDL type table, correspondence information between PDL types and file names is stored in advance. In the example shown in FIG. 2A, the file names of the files included in the document are stored in association with the PPML document, which is the print data, the sequentially processed XPS document, and the random processed XPS document. In the example shown in FIG. 2A, the PPML document includes a ppml file as a definition file, and further includes document data to be referred to such as pdf. XPS documents (sequentially processed XPS documents and random processed XPS documents) are stored in [Content_Types]. xml and FixedDocumentSequence. Includes fdseq file. In particular, the sequentially processed XPS document is [Content_Types]. xml / ~. Includes a piece file called piece. The sequentially processed XPS document is an example of print data that can be sequentially processed as described above. The random processing XPS document is an example of print data in which files to be analyzed by the
印刷不可文書テーブルには、印刷が可能でない文書と、文書に含まれるファイルのファイル名との対応情報が予め格納されている。図2(B)に示す例では、印刷不可文書テーブルには、パワーポイント文書、ワード文書、エクセル文書と、各々の文書に含まれるファイルのファイル名との対応情報が格納されている。パワーポイント文書、ワード文書、エクセル文書は、それぞれ、Microsoft社のOffice2007(登録商標)によって作成される、パワーポイント、ワード、エクセルの文書である。例えば、パワーポイント文書は、[Content_Types].xmlファイルとppt/〜ファイルとを含む。ワード文書は、[Content_Types].xmlファイルとword/〜ファイルとを含む。エクセル文書は、[Content_Types].xmlファイルとxl/〜ファイルとを含む。 In the unprintable document table, correspondence information between documents that cannot be printed and the file names of files included in the documents is stored in advance. In the example shown in FIG. 2B, correspondence information between the PowerPoint document, the word document, and the Excel document and the file name of the file included in each document is stored in the non-printable document table. The PowerPoint document, Word document, and Excel document are PowerPoint, Word, and Excel documents created by Office 2007 (registered trademark) of Microsoft Corporation. For example, the PowerPoint document is [Content_Types]. Includes xml files and ppt / ~ files. The word document is [Content_Types]. Contains xml files and word / ~ files. The Excel document is [Content_Types]. Contains xml files and xl / ~ files.
図3は、順次処理XPS文書とランダム処理XPS文書のファイル構造の一例を示す図である。図3(A)は、順次処理XPS文書のファイル構造を示す。順次処理XPS文書には、PDL解析部106の処理に必要なファイルの順番にファイルが格納されている。図3(A)に示す例では、[Content_Types].xml/[0].pieceファイルから[Content_Types].xml/[6].pieceファイルまでのファイルが順次格納されている。図3(A)中の点線の矢印で示す順番に各々のファイルが処理される。
FIG. 3 is a diagram illustrating an example of the file structure of the sequentially processed XPS document and the random processed XPS document. FIG. 3A shows the file structure of the sequentially processed XPS document. In the sequentially processed XPS document, files are stored in the order of files necessary for processing by the
図3(B)は、ランダム処理XPS文書のファイル構造を示す。ランダム処理XPS文書には、ファイルが、PDL解析部106の処理に必要なファイルの順番にではなく、ランダムに格納されている。図3(B)中の点線の矢印が、ランダム処理XPS文書のファイルが処理される順番を示す。図3(B)に示すランダム処理XPS文書の解析処理には、まず、文書のファイル構造を示す定義ファイルである[Content_Types].xmlファイルが必要である。次に、_rels/.relsファイル、FixedDocumentSequence.fdseqファイル、FixedDocument.fdocファイルの順に、PDL解析部106の解析処理対象となる。_rels/.relsファイルは、ファイルアクセスの最初の起点となるファイルである。_rels/.relsファイル内には、FixedDocumentSequence.fdseqファイルのパス(ファイル名)が記述されている。FixedDocumentSequence.fdseqファイル内には、FixedDocument.fdocファイルのパス(ファイル名)が記述されている。FixedDocument.fdocファイルは、ドキュメント情報を有する。また、FixedDocument.fdocファイル内には、ページ情報を含むFixedPage(図3(B)中の1.fpage)のパスが記述されている。このFixedPage内に1ページ分の情報が記載されている。
FIG. 3B shows the file structure of a randomly processed XPS document. In the random processing XPS document, files are stored at random, not in the order of files necessary for processing by the
図4は、本実施形態の画像処理装置によるPDL種別判定処理を説明する図である。図4(A)は画像処理装置1が備える制御装置11が実行するPDL種別判定処理フローの例を示す。まず、制御装置11が備えるPDL判定部102が、データ受信部101から印刷データを受け取り、この印刷データについて、印刷データのファイル名が示す拡張子に基づいてPDL種別を判定する(ステップS1)。ステップS1においては、PDL判定部102は、拡張子に基づいてPDL種別を判定できる場合には、PDL種別を判定して処理を終了する。例えば、印刷データのファイル名がXXX.xpsである場合には、拡張子に基づいてこの印刷データがXPS文書であると判定できるので、PDL判定部102は、この印刷データがXPS文書であると判定する。一方、PDL判定部102が、拡張子に基づいてPDL種別を判定できない場合には、ステップS2に進む。例えば、印刷データのファイル名がYYY.zipである場合のように、印刷データのファイルがZIP形式のファイルである場合には、印刷データがXPS文書であるかPPML文書であるか、又はその他の文書であるかを判定することができない。
FIG. 4 is a diagram for explaining PDL type determination processing by the image processing apparatus according to the present embodiment. FIG. 4A shows an example of a PDL type determination processing flow executed by the
次に、PDL判定部102は、印刷データが圧縮形式であるかを判断する(ステップS2)。PDL判定部102は、例えば、印刷データの先頭4バイトが”0x504B0304”である場合には、印刷データがZIP形式すなわち圧縮形式で圧縮処理されたデータであると判断する。PDL判定部102が、印刷データが圧縮形式であると判断した場合はステップS3に進む。PDL判定部102が、印刷データが圧縮形式でないと判断した場合には、PDL判定部102は、従来のPDL種別の判定処理を行う(ステップS8)。ステップS8における従来のPDL種別の判定処理においては、PDL判定部102は、印刷データの先頭から印刷データの内容を解析し、この解析結果に基づいてPDL種別を判定する。ステップS3においては、PDL判定部102は、印刷データに含まれる先頭のファイルから順にファイル名を取得する(ステップS3)。具体的には、PDL判定部102は、ファイルに付加されているヘッダを解析して、ファイル名を取得できるかを判断する。PDL判定部102が、ファイル名を取得できないと判断した場合は、ステップS9に進む。PDL判定部102が、ファイル名を取得できると判断した場合は、PDL判定部102はファイル名を取得し、ステップS4に進む。
Next, the
ステップS3における処理について、圧縮形式であると判断された印刷データのファイルがZIP形式で圧縮処理された印刷データのファイル(以下、ZIPファイルと記述)である場合を例にとって以下に説明する。図4(B)は、ZIPファイルの構成例を示す図である。図4(B)に示す例では、ZIPファイルは、ファイル1乃至nの各々に対応する圧縮データを含む。各々のファイルに対応する圧縮データの前にはヘッダが付加されている。また、ZIPファイルの最後尾には、ZIPファイルに含まれるファイル名の一覧を含むZIPのヘッダが付加されている。各々の圧縮データの前に付加されているヘッダは、対応するファイルのファイル名、展開後のファイルサイズ、圧縮データのサイズ等の情報を含む。従って、例えば、PDL判定部102は、ZIPファイルを展開せずに、ZIPファイルに含まれる各々のファイルのヘッダを解析することによって、各々のファイルのファイル名を取得することができる。
The process in step S3 will be described below by taking as an example the case where the print data file determined to be in the compression format is a print data file compressed in the ZIP format (hereinafter referred to as a ZIP file). FIG. 4B is a diagram illustrating a configuration example of a ZIP file. In the example shown in FIG. 4B, the ZIP file includes compressed data corresponding to each of the
ステップS4において、PDL判定部102は、ステップS3において取得したファイル名に基づいて、印刷データのPDL種別を判定する(ステップS4)。具体的には、PDL判定部102は、図2(A)に示すPDL種別テーブル内に、取得したファイル名に対応するPDL種別の文書があるかを判断し、この判断結果に基づいて、印刷データのPDL種別が判定できるかを判断する。PDL判定部102が、PDL種別テーブル内に、取得したファイル名に対応するPDL種別の文書があると判断した場合は、この文書に対応するPDL種別を印刷データのPDL種別であると判断し、PDL種別の判定処理を終了する。PDL種別の判定処理の終了後、PDL判定部102が、印刷データとこの印刷データについての、PDL種別の判定処理結果とをファイル取得部105に送信する。そして、ファイル取得部105が、送信されたPDL種別の判定処理結果に基づいて、印刷データのファイルを、解析に必要なファイルから順に展開してPDL解析部106に送信する。PDL判定部102が、PDL種別テーブル内に、取得したファイル名に対応するPDL種別の文書がないと判断した場合は、ステップS5に進む。
In step S4, the
ステップS5において、PDL判定部102が、ステップS3において取得したファイル名に対応する文書が図2(B)に示す印刷不可文書テーブル内にあるかを判断する(ステップS5)。PDL判定部102が、ファイル名に対応する文書が印刷不可文書テーブル内にないと判断した場合は、上記ステップS3に戻る。PDL判定部102が、ファイル名に対応する文書が印刷不可文書テーブル内にあると判断した場合は、PDL判定部102は、この文書の文書情報を取得し、ステップS6に進む。この文書情報には、例えば、ファイル名、文書を作成したアプリケーション名等が含まれる。次に、PDL判定部102は、上記取得した文書の文書情報を操作部14の液晶パネル上に表示する(ステップS6)。ステップS6においては、PDL判定部102が、液晶パネル上に、上記文書情報を表示するとともに、印刷データが印刷可能でないことを示すエラー表示をするようにしてもよい。そして、PDL判定部102が、印刷処理をキャンセルして(ステップS7)、処理を終了する。
In step S5, the
上記ステップS3において、PDL判定部102が、ファイル名を取得できないと判断した場合、PDL判定部102は、印刷データに含まれる特定又は任意のファイルを展開して(ステップS9)、印刷データの中身を取り出す。そして、PDL判定部102が、取り出した印刷データの中身を解析して、PDL種別の判定を行う。具体的には、PDL判定部102は、展開したファイルのファイル名の情報と、印刷データの中身に含まれるコマンド情報とに基づいてPDL種別を判定する(ステップS10)。なお、PDL判定部102が、印刷データが印刷可能でない印刷データであって、PDL種別を判定することができないと判断した場合には、印刷処理をキャンセルする。図4を参照して説明したPDL種別の判定処理によれば、圧縮形式で圧縮処理された印刷データをできるだけ展開せずにファイル名に基づいてPDL種別を判定することができる。その結果、同じ圧縮形式で保存された、異なるPDLデータのPDL種別を迅速に判定することが可能となる。
If the
図5は、PDL判定部によるファイル情報の記憶処理フローの例と、PDL種別を判定された印刷データのPDL解析部に対する送信処理フローの例を示す図である。図5(A)は、ファイル情報の記憶処理フローの例を示す。この例におけるファイル情報の記憶処理は、図4(A)を参照して説明したPDL種別の判定処理と並行して行われる。また、この例におけるファイル情報の記憶処理は、図4のステップS4におけるPDL種別の判定処理において印刷データがXPS文書であると判定された場合に実行される。
まず、PDL判定部102が、印刷データに含まれる先頭のファイルから順にファイル情報を取得する(ステップS21)。ファイル情報は、例えば、ファイル名とファイルのアドレス情報との対応情報である。ファイルのアドレス情報は、各ファイルが格納されている先頭アドレスの情報である。図4(B)に示すZIPファイルの例では、ZIPファイルに含まれる各ファイルの圧縮データに付加されているヘッダの先頭アドレスの情報がファイルのアドレス情報である。PDL判定部102は、図4(A)のステップS3におけるファイル名の取得処理においてヘッダを解析した時に、ヘッダのサイズとヘッダの後に続く圧縮データのサイズの情報とを取得する。そして、PDL判定部102は、取得したヘッダのサイズと圧縮データのサイズの情報とに基づいて、各々のファイルのアドレス情報を求める。
FIG. 5 is a diagram illustrating an example of a file information storage processing flow by the PDL determination unit and an example of a transmission processing flow of the print data for which the PDL type has been determined, to the PDL analysis unit. FIG. 5A shows an example of a storage processing flow of file information. The file information storage process in this example is performed in parallel with the PDL type determination process described with reference to FIG. The file information storage process in this example is executed when the print data is determined to be an XPS document in the PDL type determination process in step S4 of FIG.
First, the
続いて、PDL判定部102が、ステップS21において取得したファイル情報をファイル記憶部104に記憶する(ステップS22)。PDL判定部102が、印刷データに含まれる最終ファイルについてファイル情報を記憶したと判断した場合は処理を終了する。PDL判定部102が、印刷データに含まれる最終ファイルについてファイル情報を記憶していないと判断した場合は、上記ステップS21に戻る。図5(A)を参照して上述したファイル情報記憶処理において記憶されたファイル情報は、後述する図5(B)のステップS36においてファイル取得部105が必要なファイルへアクセスする際に用いられる。すなわち、PDL種別の判定処理と並行してファイル情報を取得して記憶しておくことによって、PDL種別の判定処理に続く処理において、記憶されたファイル情報を用いてファイルに直接アクセスすることが可能となる。
Subsequently, the
図5(B)は、PDL種別を判定された印刷データのPDL解析部に対する送信処理フローの例を示す。この例では、図4(A)のステップS4のPDL種別の判定処理において、印刷データがXPS文書であると判定された場合の処理について説明する。
図5(B)に示す処理フローでは、ファイル取得部105が、PDL判定部102から受け取った印刷データが順次処理XPS文書であるか、ランダム処理XPS文書のいずれであるかに応じて、処理の切り替えを行う。まず、ファイル取得部105が、PDL判定部102から受け取った印刷データが順次処理XPS文書であるかを判断する(ステップS31)。ファイル取得部105が、印刷データが順次処理XPS文書であると判断した場合、ファイル取得部105は、印刷データの先頭のファイルから順次展開してPDL解析部106に送信する(ステップS32)。
FIG. 5B shows an example of a transmission processing flow for the PDL analysis unit of the print data for which the PDL type is determined. In this example, a process will be described in a case where it is determined that the print data is an XPS document in the PDL type determination process in step S4 of FIG.
In the processing flow shown in FIG. 5B, the
ファイル取得部105が、PDL判定部102から受け取った印刷データが順次処理XPS文書ではなく、ランダム処理XPS文書であると判断した場合には、ステップS33に進む。ステップS33において、ファイル取得部105が、PDL解析部106による解析処理に必要なファイルのファイル名の取得処理を行う(ステップS33)。図3(B)に示すランダム処理XPS文書を例にとって説明すると、ファイル取得部105は、ファイルアクセスの最初の起点である_rels/.relsファイルのデータをPDL解析部106に送信し、このファイルを解析させ、解析結果を受け取る。この解析結果には、FixedDocumentSequence.fdseqファイルのパス(ファイル名)が記述されている。従って、ファイル取得部105は、FixedDocumentSequence.fdseqを次に処理が必要なファイルのファイル名として取得する。このように、ファイル取得部105は、PDL解析部106にランダム処理XPS文書を解析させ、該解析結果に基づいて、次に必要なファイルのファイル名を取得することができる。
If the
次に、ファイル取得部105が、ファイル情報記憶部104内のファイル情報を参照して、ステップS23によって取得されたファイル名がファイル情報記憶部104に記憶されているかを判断する(ステップS34)。ファイル取得部105が、ファイル名がファイル情報記憶部104に記憶されていないと判断した場合は、ステップS35に進む。ファイル取得部105は、ステップS33において取得されたファイル名がファイル情報記憶処理104に記憶されるまで処理を待つ(ステップS35)。ファイル取得部105が、ファイル名がファイル情報記憶部104に記憶されていると判断した場合、ファイル取得部105は、ファイル情報記憶部104のファイル情報に基づいて、ファイル名に対応するファイルのアドレス情報を取得する。ファイル取得部105は、取得したアドレス情報に基づいて、必要なファイルにアクセスしてファイルを取得し、取得したファイルを展開してPDL解析部106に対して送信する(ステップS36)。例えば、ファイル取得部105は、FixedDocumentSequence.fdseqファイルをPDL解析部106に対して送信する。PDL解析部106は、送信されたFixedDocumentSequence.fdseqファイルを解析して、このファイル内に記述されているFixedDocument.fdocファイルのパス(ファイル名)を取得する。FixedDocument.fdocファイルは、FixedDocumentSequence.fdseqファイルの次に解析処理が必要なファイルである。
Next, the
続いて、ファイル取得部105が、PDL解析部106による解析処理に必要なファイルがないかを判断する(ステップS37)。ファイル取得部105が、解析処理に必要なファイルがないと判断した場合は処理を終了する。ファイル取得部105が、解析処理に必要なファイルがあると判断した場合は、上記ステップS33の処理に戻る。この処理において、ファイル取得部105は、例えば、上記PDL解析部106によって取得されたFixedDocument.fdocファイルのパス(ファイル名)を取得する。上述したステップS33乃至S37の処理の結果、ランダム処理XPS文書に含まれるファイルが、処理が必要な順番に展開される。その結果、スプールデータ領域を効率的に利用することができる。
Subsequently, the
図5(B)を参照して上述した処理によれば、印刷データが順次処理XPS文書である場合には、PDL種別の判定終了後、ファイル取得部105が直ちに印刷データの先頭ファイルからPDL解析部106に対して印刷データを送信することができる。その結果、PDL解析処理を迅速に行うことが可能となる。また、印刷データがランダム処理XPS文書である場合には、ファイル取得部105が、ファイル情報記憶部104に記憶されているファイル情報と、解析処理に必要なファイルのファイル名とに基づいて、このファイルに迅速にアクセスすることができる。
According to the processing described above with reference to FIG. 5B, when the print data is a sequentially processed XPS document, the
(その他の実施例)
また、本発明は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。
(Other examples)
The present invention 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, or the like) of the system or apparatus reads the program. It is a process to be executed. In this case, the program and the storage medium storing the program constitute the present invention.
1 画像処理装置
2 ホストコンピュータ
3 LAN
1
Claims (8)
受信した前記印刷データが圧縮形式であるかを判断し、前記印刷データが圧縮形式であると判断した場合に、前記印刷データを展開処理せずに該印刷データのページ記述言語の種別を判定するページ記述言語判定手段と、
前記ページ記述言語の種別が判定された印刷データのファイルを取得するファイル取得手段と、
前記ファイル取得手段から前記ファイルを受け取って解析する解析手段とを備える
ことを特徴とする画像処理装置。 Data receiving means for receiving print data;
It is determined whether the received print data is in a compressed format, and when it is determined that the print data is in a compressed format, the type of page description language of the print data is determined without decompressing the print data Page description language determination means;
File acquisition means for acquiring a file of print data for which the type of the page description language is determined;
An image processing apparatus comprising: an analysis unit that receives and analyzes the file from the file acquisition unit.
前記ページ記述言語判定手段は、前記圧縮形式であると判断した印刷データのファイルのファイル名を取得し、前記取得したファイル名と前記第1の記憶手段内の対応情報とに基づいて、該取得したファイル名に対応するページ記述言語の種別を決定し、決定した種別を前記印刷データのページ記述言語の種別と判定する
ことを特徴とする請求項1に記載の画像処理装置。 First storage means in which correspondence information between a page description language type and a file name is stored in advance;
The page description language determination unit acquires a file name of a print data file determined to be in the compression format, and acquires the file name based on the acquired file name and correspondence information in the first storage unit The image processing apparatus according to claim 1, further comprising: determining a page description language type corresponding to the file name and determining the determined type as a page description language type of the print data.
ことを特徴とする請求項2に記載の画像処理装置。 The file acquisition unit sequentially expands the acquired print data file when the type of the page description language determined by the page description language determination unit is a type corresponding to print data that can be sequentially processed. The image processing apparatus according to claim 2, wherein the image processing apparatus is passed to an analysis unit.
ことを特徴とする請求項2に記載の画像処理装置。 In the file acquisition means, the type of the determined page description language is stored randomly as a file to be analyzed by the analyzing means, and each file includes the file name of the file to be analyzed next The file to be analyzed is sequentially acquired based on the file name of the next file to be analyzed included in each file when the type corresponds to the print data being recorded. The image processing apparatus according to claim 2.
前記ファイル取得手段は、前記解析処理対象となる各々のファイルに含まれる、次に解析処理対象となるファイルのファイル名と、前記第2の記憶手段内の対応情報とに基づいて、前記次に解析処理対象となるファイルのファイル名に対応するアドレス情報を取得し、取得されたアドレス情報に基づいて、前記次に解析処理対象となるファイルにアクセスする
ことを特徴とする請求項4に記載の画像処理装置。 The page description language determination unit further acquires address information of a file corresponding to the acquired file name, and stores correspondence information between the file name and address information in a second storage unit,
The file acquisition unit includes the file name of the next file to be analyzed and the corresponding information in the second storage unit, and is included in each file to be analyzed. 5. The address information corresponding to the file name of the file to be analyzed is acquired, and the file to be analyzed next is accessed based on the acquired address information. Image processing device.
ことを特徴とする請求項1乃至5のいずれかに記載の画像処理装置。 6. The page description language determination unit analyzes a header of a file of print data determined to be in the compression format, and acquires a file name of the file based on the analysis result. An image processing apparatus according to any one of the above.
受信した前記印刷データが圧縮形式であるかを判断し、前記印刷データが圧縮形式であると判断した場合に、前記印刷データを展開処理せずに該印刷データのページ記述言語の種別を判定する工程と、
前記ページ記述言語の種別が判定された印刷データのファイルを取得する工程と、
前記取得されたファイルを解析する工程とを有する
ことを特徴とする画像処理装置の制御方法。 Receiving print data; and
It is determined whether the received print data is in a compressed format, and when it is determined that the print data is in a compressed format, the type of page description language of the print data is determined without decompressing the print data Process,
Obtaining a print data file for which the type of the page description language is determined;
And a step of analyzing the acquired file. A method for controlling an image processing apparatus.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009188919A JP5455504B2 (en) | 2009-08-18 | 2009-08-18 | Image processing apparatus, image processing apparatus control method, and computer program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009188919A JP5455504B2 (en) | 2009-08-18 | 2009-08-18 | Image processing apparatus, image processing apparatus control method, and computer program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011037219A true JP2011037219A (en) | 2011-02-24 |
JP5455504B2 JP5455504B2 (en) | 2014-03-26 |
Family
ID=43765504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009188919A Expired - Fee Related JP5455504B2 (en) | 2009-08-18 | 2009-08-18 | Image processing apparatus, image processing apparatus control method, and computer program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5455504B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013137622A (en) * | 2011-12-28 | 2013-07-11 | Brother Ind Ltd | Printing controller and program |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0577517A (en) * | 1991-09-24 | 1993-03-30 | Tokyo Electric Co Ltd | Printer |
JPH06262810A (en) * | 1993-03-12 | 1994-09-20 | Fuji Xerox Co Ltd | Image processing device |
JP2001169119A (en) * | 1999-12-14 | 2001-06-22 | Canon Inc | Method and device for image output |
JP2002157108A (en) * | 2000-11-17 | 2002-05-31 | Canon Inc | Image processing method, storage medium, and image forming device |
JP2003337822A (en) * | 2002-05-21 | 2003-11-28 | Fujitsu Ltd | Compressed search archive processing method, compressed search archive processing program, and recording medium for the program |
JP2004330688A (en) * | 2003-05-09 | 2004-11-25 | Hitachi Printing Solutions Ltd | Printer equipped with automatic distinction capability of page description language and character-encoding scheme |
JP2005071240A (en) * | 2003-08-27 | 2005-03-17 | Seiko Epson Corp | Printing data creation device, printing device, and printing system |
JP2009163709A (en) * | 2007-09-28 | 2009-07-23 | Konica Minolta Systems Lab Inc | Method for determining document characteristics from pdl data |
-
2009
- 2009-08-18 JP JP2009188919A patent/JP5455504B2/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0577517A (en) * | 1991-09-24 | 1993-03-30 | Tokyo Electric Co Ltd | Printer |
JPH06262810A (en) * | 1993-03-12 | 1994-09-20 | Fuji Xerox Co Ltd | Image processing device |
JP2001169119A (en) * | 1999-12-14 | 2001-06-22 | Canon Inc | Method and device for image output |
JP2002157108A (en) * | 2000-11-17 | 2002-05-31 | Canon Inc | Image processing method, storage medium, and image forming device |
JP2003337822A (en) * | 2002-05-21 | 2003-11-28 | Fujitsu Ltd | Compressed search archive processing method, compressed search archive processing program, and recording medium for the program |
JP2004330688A (en) * | 2003-05-09 | 2004-11-25 | Hitachi Printing Solutions Ltd | Printer equipped with automatic distinction capability of page description language and character-encoding scheme |
JP2005071240A (en) * | 2003-08-27 | 2005-03-17 | Seiko Epson Corp | Printing data creation device, printing device, and printing system |
JP2009163709A (en) * | 2007-09-28 | 2009-07-23 | Konica Minolta Systems Lab Inc | Method for determining document characteristics from pdl data |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013137622A (en) * | 2011-12-28 | 2013-07-11 | Brother Ind Ltd | Printing controller and program |
Also Published As
Publication number | Publication date |
---|---|
JP5455504B2 (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8659777B2 (en) | Server system, print device, network print system including server system and print device, and downloading method in network print system | |
JP6454213B2 (en) | Image output system, image processing apparatus, image output apparatus, method and program therefor | |
US8553263B2 (en) | Information processing apparatus, control method for information processing apparatus, and storage medium | |
JP2007249856A (en) | Information processor, printing setup reflection method for information processor, and program | |
US9652189B2 (en) | Non-transitory computer-readable storage medium storing printer driver causing computing device to perform prohibition processing, and print control method of the printer driver | |
US20070223025A1 (en) | Printing Apparatus and Method, Computer-Readable Medium, and Computer Data Signal | |
US10558411B2 (en) | Server apparatus, method of controlling the server apparatus, storage medium, and printing system that determine whether to perform, in the server apparatus, rendering processing on a page of a print job | |
US9772804B2 (en) | Job processing apparatus, control method, and program that processes a plurality of jobs in response to reception of execution instructions thereof | |
JP4784361B2 (en) | Printing system, information processing apparatus, and program | |
JP6289276B2 (en) | Information processing apparatus, program, and control method | |
JP6371697B2 (en) | Information processing apparatus, print control method, and program | |
US9830541B2 (en) | Image output system, image output method, document server, and non-transitory computer readable recording medium | |
JP4144392B2 (en) | Image processing apparatus, image forming system, image forming method, and program | |
JP6632424B2 (en) | Information processing apparatus, program and control method | |
JP6827738B2 (en) | Control methods, programs and information processing equipment | |
JP5455504B2 (en) | Image processing apparatus, image processing apparatus control method, and computer program | |
US9626131B2 (en) | Print data processing method, print data processing apparatus, and storage medium for processing print data according to print setting information in the print data | |
JP6338324B2 (en) | Print image processing system and program | |
US8023124B2 (en) | Printing apparatus and printing method | |
JP7158895B2 (en) | Information processing device, its control method, and program | |
JP2013206243A (en) | Printing control device, printing system, printing control program and printing control method | |
US8836984B2 (en) | Image processing apparatus, method and storage medium for increasing the speed of printing data stored in an external storage medium by reducing the number of accesses to the medium | |
JP4957816B2 (en) | PDL data processing apparatus and PDL data processing program | |
KR20110071527A (en) | Image Forming Device and GPS File Identification Method | |
JP2022157948A (en) | printer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120813 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130617 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130625 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130823 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130917 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131118 |
|
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: 20131210 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140107 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 5455504 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |