JP2019022998A - Image forming apparatus - Google Patents
Image forming apparatus Download PDFInfo
- Publication number
- JP2019022998A JP2019022998A JP2018212481A JP2018212481A JP2019022998A JP 2019022998 A JP2019022998 A JP 2019022998A JP 2018212481 A JP2018212481 A JP 2018212481A JP 2018212481 A JP2018212481 A JP 2018212481A JP 2019022998 A JP2019022998 A JP 2019022998A
- Authority
- JP
- Japan
- Prior art keywords
- page
- document
- job
- pages
- documents
- 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
Abstract
Description
本発明は、複数のドキュメントを含むジョブを印刷する画像形成装置に関する。 The present invention relates to an image forming apparatus that prints a job including a plurality of documents.
従来、複数のドキュメントに対して、印刷範囲を指定して印刷する技術がある(例えば、特許文献1)。この技術では、各ドキュメントの設定情報にそのドキュメントで印刷すべきページ範囲の情報を付与することで、各ドキュメントの任意のページを印刷できる。 2. Description of the Related Art Conventionally, there is a technique for printing a plurality of documents by specifying a print range (for example, Patent Document 1). In this technique, any page of each document can be printed by adding information on the page range to be printed in the document to the setting information of each document.
一方、ユーザが扱うドキュメントには、PDF(Portable Document Format)やPS(PostScript)など、数多くのフォーマットがある。そこで、印刷ワークフローの中で、ユーザがフォーマットを意識せずドキュメントを扱えるよう、JDF(Job Definition Format)のように複数のドキュメントのページをひとつのジョブとして管理できるフォーマットが提案されている。 On the other hand, a document handled by a user has many formats such as PDF (Portable Document Format) and PS (PostScript). Therefore, a format that can manage pages of a plurality of documents as one job, such as JDF (Job Definition Format), has been proposed so that the user can handle the document without being aware of the format in the print workflow.
複数のドキュメントのページをひとつのジョブとして扱えるフォーマットを利用すると、例えば、図8に示すようなジョブが、アプリケーションによって生成される。ジョブ801には、ドキュメント802a,802b,802cがこの順番で含まれ、それぞれの総ページ数は2、3、2である。各ドキュメントのフォーマットは異なっていてもよい。また、ジョブ801には、印刷すべきページ範囲の情報として、印刷範囲指定803が付与される。印刷範囲指定803は、各ドキュメントのページ番号ではなく、ジョブ全体に対するページの通し番号で指定される。ここでは、全7ページのジョブ801に対し、4ページから6ページが印刷範囲として指定されているため、ドキュメント802bの2、3ページ目と、ドキュメント802cの1ページ目が印刷対象となる。このとき、ジョブ801に含まれるドキュメント802a〜802cそれぞれに対しては印刷範囲指定が付与されない。
When a format that can handle a plurality of document pages as one job is used, for example, a job as shown in FIG. 8 is generated by the application. The
印刷装置は、このようなジョブを受信した時点では、ジョブに含まれる各ドキュメントのページ数が分からないため、例えば、ジョブ801に対する4ページ目が、どのドキュメントのどのページに該当するかについて把握できない。
Since the printing apparatus does not know the number of pages of each document included in the job at the time of receiving such a job, for example, it cannot grasp which page of which document corresponds to the fourth page for the
したがって、ジョブの中に複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲指定がジョブ全体に対するページの通し番号にて指定されているジョブに対しても、印刷装置は印刷できることが求められる。 Therefore, the printing apparatus is required to be able to print even for a job in which a plurality of different format documents are included in the job and the print range designation is designated by the page serial number for the entire job.
上記課題を解決するために本願発明は以下の構成を有する。すなわち、画像処理装置であって、ドキュメントフォーマットが互いに異なる複数のドキュメントを含むプリントジョブであって、前記複数のドキュメントのそれぞれが1又は複数のページを含むプリントジョブを受信する受信手段と、前記プリントジョブに含まれるページのうち印刷対象のページを、前記プリントジョブに含まれるページの印刷順序に応じたページ数で指定するページ指定を受け付ける受付手段と、前記プリントジョブに含まれる前記複数のドキュメントのそれぞれのページ数と、前記受付手段が受け付けた前記ページ指定とに基づいて、前記プリントジョブに含まれるページのうち印刷すべきページを特定する特定手段とを有する。 In order to solve the above problems, the present invention has the following configuration. In other words, the image processing apparatus is a print job including a plurality of documents having different document formats, each of the plurality of documents receiving a print job including one or a plurality of pages, and the print Receiving means for receiving a page designation for designating a page to be printed out of pages included in the job by a number of pages according to a printing order of pages included in the print job; and a plurality of documents included in the print job. And specifying means for specifying a page to be printed out of pages included in the print job based on the number of each page and the page designation received by the receiving means.
複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲がジョブ全体に対するページの通し番号で指定されるジョブを印刷できる。 It is possible to print a job that includes a plurality of documents in different formats and whose print range is designated by a page serial number for the entire job.
以下、本発明を実施するための形態について図面を用いて説明する。 Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings.
<第一の実施形態>
[ハードウェア構成]
図1は、本実施形態に係る画像形成装置における、複数のドキュメントが含まれるジョブを受け付け、印刷を行うためのハードウェアの構成例を示す。なお、本願発明に係る画像形成装置は、ネットワークプリンタやMFP(Multi−Function Peripheral)などが該当するが特に限定するものではない。
<First embodiment>
[Hardware configuration]
FIG. 1 shows an example of the hardware configuration for receiving and printing a job including a plurality of documents in the image forming apparatus according to the present embodiment. The image forming apparatus according to the present invention may be a network printer, an MFP (Multi-Function Peripheral), or the like, but is not particularly limited.
CPU101は、CPU(Central Processing Unit)である。図2で後述するソフトウェアモジュールはCPU101がプログラムを読み出して実行することにより実現される。メモリ102は、CPU101がアクセスできるRAM(Random Access Memory)である。メモリ102は、各種ソフトウェアの動作に必要な記憶領域の確保先として利用され、ソフトウェアモジュールの解析部202が生成する中間データや、レンダラ103が生成するビットマップ画像の保存先としても利用される。
The
レンダラ103は、ソフトウェアモジュールの解析部202が生成する中間データから、ビットマップ画像を生成するハードウェアである。入力部104は、複数のドキュメントが含まれるジョブの入力を受け付ける。エンジン105は、レンダラ103が生成したビットマップ画像を印刷用紙に出力する印刷部である。ROM106は、不揮発性の記憶部である。図2で後述するソフトウェアモジュールは、ROM106に格納され、CPU101に読み出され、実行される。
The
[ソフトウェア構成]
図2は、本実施形態に係る画像形成装置において、複数のドキュメントが含まれるジョブを受け付け、印刷を行うためのソフトウェアモジュールの構成例を示す。
Software configuration
FIG. 2 shows a configuration example of a software module for receiving and printing a job including a plurality of documents in the image forming apparatus according to the present embodiment.
ジョブ制御部201は、複数のドキュメントが含まれるジョブを受け付け、各ドキュメントの解析を、そのドキュメントを解析可能な解析部202(202a,202b,202cのいずれか)に依頼する。本実施形態では、各ドキュメントを定義するフォーマットの種類が異なるため、解析可能なフォーマットが異なる複数の解析部が設けられているものとする。そして、ジョブ制御部201は、解析部202が解析結果として生成する中間データをレンダラ103に渡し、レンダラ103が生成するビットマップ画像が、エンジン105によって印刷用紙(記録媒体)に出力される。
The
解析部202は、ジョブ制御部201から依頼を受けたドキュメントを解析し、ビットマップ画像の生成に必要な中間データを生成する。ドキュメントのフォーマットの例としては、PDF(Portable Document Format)、PS(PostScript)、XPS(XML Paper Specification)、JPEG(Joint Photographic Experts Group)などが挙げられる。本実施形態では、解析部202a,202b,202cがそれぞれ、PDF,PS,XPSのドキュメントフォーマットを解析可能な解析部とする。なお、ドキュメントのフォーマットは上記に限定するものではなく、他のフォーマットであってもよい。この場合には、そのフォーマットを解析可能な解析部が別途設けられるものとする。データ部203には、印刷処理の過程で、ジョブで印刷すべきページ範囲の情報(start_page203a,end_page203b)やドキュメントのページ数(page_num203c)が格納され、管理される。start_page203aは、ページ範囲のうちの最初のページを示し、end_page203bはページ範囲のうちの最後のページを示す。ジョブ制御部201と解析部202は、データ部203にアクセスして、印刷処理を実行する。
The
本実施形態において扱うジョブの構成例は、図8に示したとおりである。ジョブは、PC(不図示)や携帯端末(不図示)などの外部の情報処理装置にて利用するアプリケーションによりユーザの指示に基づいて生成される。図9は、ジョブの生成例を示す。 A configuration example of a job handled in this embodiment is as shown in FIG. The job is generated based on a user instruction by an application used in an external information processing apparatus such as a PC (not shown) or a portable terminal (not shown). FIG. 9 shows an example of job generation.
ユーザは、アプリケーション901で、3つのドキュメント903a、903b、903cを1つのグループ902として開く。アプリケーション上には、各ドキュメントのページがサムネイル表示され、ユーザはサムネイルを選択する形で印刷したいページを指定する。ここでは、印刷したいページとして、ドキュメント903bの2、3ページ目、ドキュメント903cの1ページ目を、ユーザが選択したとする。なお、図8、図9では、選択したページを白塗りで示し、選択していないページを斜線にて示している。
The user opens three
ドキュメントを開いているアプリケーション901は、各ドキュメントのページ数を把握しているため、印刷すべきページをグループ902全体に対する通し番号で指定できる。この場合、アプリケーション901は、印刷対象をグループ902のうち4、5、6ページ目であると判定し、印刷用のジョブとしてジョブ904(すなわち、図8のジョブ801)を生成する。図9において、括弧付で示されるページ番号はジョブ904全体に対する通し番号である。印刷範囲指定905は、その通し番号に基づいて指定されている。
Since the
一方、このようなジョブを受信した画像形成装置は、ジョブに含まれる各ドキュメントのページ数が分からないため、指定された通し番号に対応する各ドキュメントのページが分からない。そこで、本実施形態では、以下に説明する方法で印刷を行う。 On the other hand, the image forming apparatus that has received such a job does not know the number of pages of each document included in the job, and therefore does not know the page of each document corresponding to the designated serial number. Therefore, in this embodiment, printing is performed by the method described below.
[処理フロー]
図3は、本実施形態に係る処理を示すフローチャートである。本処理は、CPU101がROM106等に格納されたプログラムを読み出して実行することにより実現される。以下、図8に示すジョブの構成を用いて具体的な例と共に説明する。
[Processing flow]
FIG. 3 is a flowchart showing processing according to the present embodiment. This process is realized by the
S301にて、ジョブ制御部201は、ジョブに印刷範囲指定の情報があるか否かを確認する。印刷範囲指定の情報がある場合は(S301にてYES)S302の処理へ進み、ない場合は(S301にてNO)S311の処理へ進む。
In step S <b> 301, the
S302にて、ジョブ制御部201は、ジョブに含まれている印刷範囲指定の情報をデータ部203に格納する。ここでは、ジョブの印刷範囲指定の情報が、図8に示すように4〜6ページであるため、start_page203aに“4”が格納され、end_page203bに“6”が格納される。
In step S <b> 302, the
S303にて、ジョブ制御部201は、ジョブに含まれるドキュメントの解析を解析部202に依頼し、ドキュメント解析が開始される。ここでは、ジョブに含まれる3つのドキュメント802a,802b,802cのフォーマットがそれぞれPDF、PS、XPSであるとする。この場合、ジョブ制御部201は、最初のドキュメント802a(PDF)の解析を、PDFの解析が可能な解析部202aに依頼する。
In step S303, the
S304にて、解析部202aは、ドキュメントのページ数の情報を“0”で初期化する。初期化の結果、データ部203のpage_num203cに“0”が格納される。
In step S304, the
S305にて、解析部202aは、解析を行うページが印刷範囲指定内のページか否かを判定する。印刷範囲指定内のページの場合は(S503にてYES)S306の処理へ進み、印刷範囲外のページの場合は(S503にてNO)S307の処理へ進む。具体的には、次の式が成り立つ場合は印刷範囲指定内のページであると判定し、成り立たない場合は印刷範囲外のページであると判定する。
start_page≦page_num+1≦end_page
ここでは、start_page=4、end_page=6、(page_num+1)=0+1=1となり、上記の式が成り立たず、印刷範囲指定外のページと判定され、S307の処理へ進む。
In step S305, the
start_page ≦ page_num + 1 ≦ end_page
Here, start_page = 4, end_page = 6, (page_num + 1) = 0 + 1 = 1, and the above expression does not hold, and the page is determined to be out of print range designation, and the process proceeds to S307.
S307にて、解析部202aは、ドキュメントのページ数を次のように更新し、データ部203のpage_num203cに更新した値を格納する。
page_num=page_num+1
ここでは、page_num=page_num+1=0+1=1となり、page_num203cには“1”が格納される。
In S307, the
page_num = page_num + 1
Here, page_num = page_num + 1 = 0 + 1 = 1, and “1” is stored in
S308にて、解析部202aは、ドキュメント解析終了か否かを判定する。依頼を受けたドキュメントにおいて解析すべき次のページがある場合は(S308にてNO)、ドキュメント解析を継続するため、S305の処理へ戻る。解析すべき次のページがない場合は(S308にてYES)、ドキュメント解析終了であると判定して、S309の処理へ進む。
In S308, the
ここでは、次のページ(ドキュメント802a(PDF)の2ページ目)があるため、S305の処理へ進む。そして、S305以降、次の処理を経て、S309に到達する。
S305:start_page=4、end_page=6、(page_num+1)=(1+1)=2→印刷範囲指定外
S307:page_num=page_num+1=1+1=2
S308:次ページなし(S308にてYES)→ドキュメント解析終了(S309へ)
Here, since there is the next page (the second page of the
S305: start_page = 4, end_page = 6, (page_num + 1) = (1 + 1) = 2 → not specified print range S307: page_num = page_num + 1 = 1 + 1 = 2
S308: No next page (YES in S308) → End of document analysis (to S309)
S309にて、ジョブ制御部201は、ジョブ終了か否か判定する。ジョブ中に次のドキュメントがある場合は(S309にてNO)、その解析処理を行うためにS310の処理へ進み、次のドキュメントがない場合は(S309にてYES)、ジョブ終了であると判定する。ここでは、次のドキュメント802b(PS)があるので、S310に進む。
In step S309, the
S310にて、ジョブ制御部201は、印刷範囲指定の情報を次のように更新する。
start_page=start_page−page_num
end_page=end_page−page_num
ここでは、start_page−page_num=4−2=2、end_page−page_num=6−2=4となり、データ部203のstart_page203aには“2”が格納され、end_page203bには“4”が格納される。
In step S310, the
start_page = start_page-page_num
end_page = end_page-page_num
Here, start_page-page_num = 4-2 = 2 and end_page-page_num = 6-2 = 4, and “2” is stored in the
S303に戻り、ジョブ制御部201は、ジョブに含まれる次のドキュメントの解析を解析部202に依頼することで、ドキュメント解析を開始する。ここでは、次のドキュメント802bのフォーマットはPSであるため、ジョブ制御部201は、PSを解析可能な解析部202bにドキュメントの解析を依頼する。その後、S304以降、次の処理を経て、S306に到達する。
S304:page_num=0
S305:start_page=2、end_page=4、(page_num+1)=(0+1)=1→印刷範囲指定外(S305にてNO)
S307:page_num=page_num+1=0+1=1
S308:次ページあり(S308にてNO)→ドキュメント解析継続(S305へ)
S305:start_page=2、end_page=4、(page_num+1)=(1+1)=2→印刷範囲指定内(S305にてYES)
Returning to S303, the
S304: page_num = 0
S305: start_page = 2, end_page = 4, (page_num + 1) = (0 + 1) = 1 → no print range designation (NO in S305)
S307: page_num = page_num + 1 = 0 + 1 = 1
S308: Next page exists (NO in S308) → Continue document analysis (to S305)
S305: start_page = 2, end_page = 4, (page_num + 1) = (1 + 1) = 2 → within print range designation (YES in S305)
S306にて、解析部202bは、解析するページの中間データを生成する。先述の通り、ジョブ制御部201は、この中間データをレンダラ103に渡し、レンダラ103が中間データから生成するビットマップ画像が、エンジン105によって印刷用紙に出力される。つまり、ジョブ801に含まれるドキュメント802b(PS)の2ページ目は、このタイミングで出力される。同様にS307以降は、次の処理を経て、ドキュメント802b(PS)の3ページ目を出力し、再びS309に到達する。
S307:page_num=page_num+1=1+1=2
S308:次ページあり(S308にてNO)→ドキュメント解析継続(S305へ)
S305:start_page=2、end_page=4、(page_num+1)=2+1=3→印刷範囲指定内(S305にてYES)
S306:中間データ生成(ドキュメント802bの3ページ目の出力)
S307:page_num=page_num+1=2+1=3
S308:次ページなし(S308にてYES)→ドキュメント解析終了(S309へ)
S309:次のドキュメント802b(XPS)あり(S310へ)
In S306,
S307: page_num = page_num + 1 = 1 + 1 = 2
S308: Next page exists (NO in S308) → Continue document analysis (to S305)
S305: start_page = 2, end_page = 4, (page_num + 1) = 2 + 1 = 3 → within print range designation (YES in S305)
S306: Intermediate data generation (output of the third page of
S307: page_num = page_num + 1 = 2 + 1 = 3
S308: No next page (YES in S308) → End of document analysis (to S309)
S309:
S310にて、ジョブ制御部201は、印刷範囲指定start_page203a、end_page203bを次のように更新する。
start_page=start_page−page_num=2−3=−1
end_page=end_page−page_num=4−3=1
In step S310, the
start_page = start_page-page_num = 2-3 = −1
end_page = end_page-page_num = 4-3 = 1
印刷範囲指定の更新後はS303に戻る。ジョブ制御部201は、ジョブに含まれる次のドキュメントの解析を解析部202に依頼することで、ドキュメント解析を開始する。ここでは、次のドキュメント802cのフォーマットXPSであるため、XPSを解析可能な解析部202cにドキュメントの解析を依頼する。その後、S304以降、次の処理を経て、ドキュメント802c(XPS)の1ページ目を出力して、S309に到達する。
S304:page_num=0
S305:start_page=−1、end_page=1、(page_num+1)=0+1=1→印刷範囲指定内(S305にてYES)
S306:中間データ生成(ドキュメント802cの1ページ目の出力)
S307:page_num=page_num+1=0+1=1
S308:次ページあり(S308にてNO)→ドキュメント解析継続(S305へ)
S305:start_page=−1、end_page=1、(page_num+1)=1+1=2→印刷範囲指定外(S305にてNO)
S307:page_num=page_num+1=1+1=2
S308:次ページなし(S308にてYES)→ドキュメント解析終了(S309へ)
After the print range designation is updated, the process returns to S303. The
S304: page_num = 0
S305: start_page = -1, end_page = 1, (page_num + 1) = 0 + 1 = 1 → within print range designation (YES in S305)
S306: Intermediate data generation (output of the first page of
S307: page_num = page_num + 1 = 0 + 1 = 1
S308: Next page exists (NO in S308) → Continue document analysis (to S305)
S305: start_page = -1, end_page = 1, (page_num + 1) = 1 + 1 = 2 → no print range designation (NO in S305)
S307: page_num = page_num + 1 = 1 + 1 = 2
S308: No next page (YES in S308) → End of document analysis (to S309)
ジョブ801には次のドキュメントはないため(S309にてYES)、ジョブ制御部201は、本処理フローをする。結果として次の3ページが印刷される。
・ドキュメント802b(PS)の2ページ目
・ドキュメント802b(PS)の3ページ目
・ドキュメント802c(XPS)の1ページ目
Since there is no next document in the job 801 (YES in S309), the
-Second page of
S311〜S314は、受信した複数のドキュメントが含まれるジョブに印刷範囲指定の情報がなかった場合の処理である。印刷範囲指定の情報がない場合(S301にてNO)、ジョブ制御部201は、ジョブに含まれるドキュメントを順々に解析し、印刷する。
S311 to S314 are processes when there is no print range designation information in a job including a plurality of received documents. When there is no print range designation information (NO in S301), the
S311にて、ジョブ制御部201は、ジョブに含まれるドキュメントの解析を解析部202(202a、202b、202cのいずれか)に依頼し、ドキュメント解析を開始する。先述の通り、ジョブ制御部201は、そのドキュメントを解析可能な解析部に解析を依頼する。
In step S311, the
S312にて、解析部202は、解析するページの中間データを生成する。先述の通り、ジョブ制御部201は、生成した中間データをレンダラ103に渡し、レンダラ103が中間データから生成するビットマップ画像が、エンジン105によって印刷用紙に出力される。
In S312, the
S313にて、解析部202は、ドキュメント解析が終了か否かを判定する。解析すべき次のページがある場合は(S313にてNO)、ドキュメント解析を継続するため、S312の処理へ戻る。解析すべき次のページがない場合は(S313にてYES)、解析部202は、ドキュメント解析終了と判定して、S314の処理へ進む。
In step S313, the
S314にて、ジョブ制御部201は、ジョブ終了か否かを判定する。ジョブ中に次のドキュメントがある場合は(S314にてNO)、そのドキュメントの解析処理を行うためにS311の処理へ進み、ない場合は(S314にてYES)ジョブ終了と判定する。
In step S314, the
以上、本実施形態によって、印刷装置は、複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲がジョブ全体に対するページの通し番号で指定されるジョブを印刷できるようになり、ユーザの利便性が向上する。 As described above, according to the present exemplary embodiment, the printing apparatus can print a job that includes a plurality of documents in different formats and whose printing range is specified by a page serial number for the entire job, which improves user convenience. .
なお、本実施形態では、印刷範囲指定として連続したページを指定した例を示したが、これに限定するものではない。例えば、複数のドキュメントにおいて連続していないページを通し番号にて指定したジョブであってもよい。 In this embodiment, an example in which continuous pages are specified as the print range specification is shown, but the present invention is not limited to this. For example, it may be a job in which pages that are not consecutive in a plurality of documents are designated by serial numbers.
<第二の実施形態>
本実施形態の処理は、第一の実施形態を改善するものであり、処理全体のフローチャートを図4に示す。本実施形態(図4)と第一の実施形態(図3)との差分は、図1のS303の処理が図4のS403の条件分岐に変わった点のみであるため、ここではS403の条件分岐処理の詳細説明を行い、その他については説明を省略する。S403の詳細処理について、図5に示す。図4、図5の処理は、CPU101がROM106等に格納されたプログラムを読み出して実行することで実現される。
<Second Embodiment>
The process of the present embodiment improves the first embodiment, and a flowchart of the entire process is shown in FIG. The only difference between this embodiment (FIG. 4) and the first embodiment (FIG. 3) is that the process of S303 in FIG. 1 is changed to the conditional branch of S403 in FIG. The branch process will be described in detail, and the description of the other processes will be omitted. The detailed processing of S403 is shown in FIG. 4 and 5 is realized by the
S501にて、ジョブ制御部201は、ジョブに含まれるドキュメントの解析を解析部202に依頼し、ドキュメント解析を開始する。
In step S501, the
S502では、ジョブ制御部201は、ドキュメント解析を開始した直後で、解析するドキュメントに応じてpage_numの更新方法を切り替える。ドキュメントがPDFの場合はS503の処理へ、XPSの場合はS504の処理へ、JPEGの場合はS505の処理へ、PSの場合はS507へ処理を進める。PSは、データ構造上、ファイルの先頭から終端まで逐次解析しないとページ数がわからない。そのため、S507以降で、第一の実施形態と同じように各ページを順々に解析してドキュメントのページ数を算出する。
In step S <b> 502, the
S503にて、PDFが解析可能な解析部202aは、ページ数の情報を、PDFに含まれるページツリーから取得する。第一の実施形態ではPDFのドキュメントのページ数を取得するのに、各ページを順々に解析した。しかし、PDFはツリー構造を持つフォーマットであり、ページのツリーを参照することによりドキュメントのページ数を取得できる。
In step S503, the
図6(a)は、3ページのPDFのツリー構造とファイルの中身を示す例である。この場合、ファイルに記載された「Count 3」の“3”がページ数に相当し、解析部202aはデータ部のpage_num203cに“3”を格納する。
FIG. 6A shows an example of the tree structure of a 3-page PDF and the contents of the file. In this case, “3” of “
S504にて、XPSが解析可能な解析部202cは、ページ数の情報を、XPSに含まれるFixedDocumentパーツから取得する。第一の実施形態ではXPSのページ数を取得するのに、各ページを順々に解析した。しかし、XPSはフォルダ構成を持つフォーマットであり、特定のフォルダに存在するファイルを参照することによりドキュメントを構成するページ数を取得できる。
In step S504, the
図6(b)は、3ページのXPSが持つフォルダ構成と、特定のフォルダ(Documents)に存在するファイル(FixedDoc.fdoc)の中身を示す例である。この場合、ファイルに記載された</PageContent>の出現回数(ここでは3回)がページ数に相当し、解析部202cはデータ部203のpage_num203cに“3”を格納する。
FIG. 6B is an example showing the folder structure of XPS on
S505にて、JPEGが解析可能な解析部(不図示)は、データ部203のpage_num203cに“1”を格納する。JPEGの場合、そのフォーマットの規格上、常に1ページであるためページ数は“1”になり、JPEGの解析部(不図示)はデータ部203のpage_num203cに“1”を格納する。
In S505, an analysis unit (not shown) that can analyze JPEG stores “1” in
S506にて、解析部202は、ドキュメントのページ数から、印刷範囲指定内のドキュメントか否かを判定する。印刷範囲指定内のドキュメントの場合は(S506にてYES)S507の処理へ進み、印刷範囲指定外のドキュメントの場合は(S506にてNO)S508の処理へ進む。ここでは、次の式が成り立つ場合は印刷範囲指定内のドキュメント、成り立たない場合は印刷範囲指定外のドキュメントと判定する。
num_page≧start_page
In step S506, the
num_page ≧ start_page
S507にて、解析部202は、ドキュメント解析を継続する。つまり、図4のS404以降の処理を続ける。
In step S507, the
S508にて、解析部202は、ドキュメント解析を終了する。つまり、図4のS409以降の処理を続ける。
In step S508, the
第一の実施形態と同様、図8のジョブ801に含まれる3つのドキュメント802a,802b,802cがそれぞれPDF、PS、XPSとする。この場合、(図4の)S401以降、次の処理を経て、S506の処理に到達する。
S401:印刷範囲指定あり(S401にてYES)
S402:start_page=4、end_page=6
S501:ドキュメント解析開始
S502:ドキュメント=PDF
S503:page_num=2
As in the first embodiment, the three
S401: Print range specified (YES in S401)
S402: start_page = 4, end_page = 6
S501: Document analysis start S502: Document = PDF
S503: page_num = 2
S506にて、start_page=4、page_num=2であるため、ドキュメント802a(PDF)は印刷範囲指定外のドキュメントと判定される(S506にてNO)。そして、S508で解析部202aは、PDFのドキュメント解析を終了し、図4のS409以降の処理に移る。このように処理することで、印刷範囲指定外のドキュメント802a(PDF)の各ページの解析を一切せず、第一の実施形態よりも早く次のドキュメント802b(PS)の解析を開始できる。
In step S506, since start_page = 4 and page_num = 2, the
本実施形態によれば、ページ数を低コストで算出できるドキュメントについてはページ数を算出し、印刷範囲指定外のドキュメントの解析処理を省くことで、第一の実施形態よりも印刷処理の高速化が可能になる。 According to this embodiment, the number of pages can be calculated for a document whose number of pages can be calculated at a low cost, and the analysis processing of the document outside the print range specification is omitted, thereby speeding up the printing process compared to the first embodiment. Is possible.
<第三の実施形態>
図7は、第三の実施形態に係る処理を示すフローチャートである。第一、第二の実施形態では、ドキュメントの解析と印刷を、ジョブに含まれるドキュメントの順に実行した。本実施形態では、ジョブに含まれる全ドキュメントの解析を最初に行い、その解析が全て完了した後に、全ドキュメントの印刷を実行する。図7の処理は、CPU101がROM106等に格納されたプログラムを読み出して実行することで実現される。
<Third embodiment>
FIG. 7 is a flowchart showing processing according to the third embodiment. In the first and second embodiments, document analysis and printing are executed in the order of documents included in a job. In this embodiment, all documents included in the job are analyzed first, and after all the analysis is completed, printing of all documents is executed. 7 is realized by the
S701は、ジョブ制御部201が、ジョブに含まれる各ドキュメント[i](i=0,1,2...)に対して、S706までの処理を繰り返すことを示す。
S701 indicates that the
S702にて、ジョブ制御部201は、ジョブに含まれるドキュメント[i]の解析を解析部202に依頼し、ドキュメント解析を開始する。
In step S702, the
S703にて、解析部202は、ドキュメント[i]のページ数の情報を初期化し、データ部203のpage_num[i](不図示)に“0”を格納する。
In step S703, the
S704にて、解析部202は、ドキュメント[i]の解析を行い、ページ数の情報を更新する。第一の実施形態と異なり、解析部202はドキュメント[i]の解析だけを行い、中間データの生成は行わない。
In step S704, the
S705にて、解析部202は、ドキュメント[i]の解析が終了したか否かを判定する。解析が終了した場合は(S705にてYES)S706の処理へ進み、終了してない場合は(S705にてNO)S704の処理へ戻り、解析処理を継続する。
In step S705, the
S706にて、ジョブ制御部201は、各ドキュメント[i](i=0,1,2...)に対して、S705までの処理が全て終了したと判定した場合、S707の処理へ進む。
If the
S707にて、ジョブ制御部201は、印刷範囲指定の情報をデータ部203のstart_page203a、end_page203bに格納する。
In step S <b> 707, the
S708は、ジョブ制御部201が、ジョブに含まれる各ドキュメント[i](i=0,1,2...)に対して、S714までの処理を繰り返すことを示す。S709〜S712では、第一の実施形態と同様に解析部202によりドキュメント解析が行われ、印刷範囲指定内のページについては、中間データが生成される。
S708 indicates that the
S713にて、ジョブ制御部201は、印刷範囲指定の情報を次のように更新する。
start_page=start_page−page_num[i]
end_page=end_page−page_num[i]
In step S713, the
start_page = start_page-page_num [i]
end_page = end_page-page_num [i]
S714にて、ジョブ制御部201は、各ドキュメント[i](i=0,1,2...)に対して、S713までの処理が全て終了したと判定した場合、本処理フローを終了する。
In step S714, when the
本実施形態の処理は、例えば、ジョブに含まれるページをプレビューなどで、ジョブ全体の総ページ数をすぐに求めたり、表示したりするケースで有効である。また、本実施形態ではドキュメントに対して解析処理が二度実行される。そこで、パフォーマンス向上のために、第二の実施形態で示した、ドキュメントのページ数の算出方法をドキュメント種別によって切り替える処理を併用してもよい。 The processing of the present embodiment is effective in a case where, for example, a page included in a job is previewed, and the total number of pages of the entire job is immediately obtained or displayed. In this embodiment, the analysis process is executed twice on the document. Therefore, in order to improve performance, the process of switching the document page number calculation method according to the document type shown in the second embodiment may be used together.
<その他の実施例>
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
<Other examples>
The present invention supplies a program that realizes one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program This process can be realized. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
101…CPU、201…ジョブ制御部、202…解析部、203…データ部、801…ジョブ、802…ドキュメント
DESCRIPTION OF
Claims (1)
前記プリントジョブに含まれるページのうち印刷対象のページを、前記プリントジョブに含まれるページの印刷順序に応じたページ数で指定するページ指定を受け付ける受付手段と、
前記プリントジョブに含まれる前記複数のドキュメントのそれぞれのページ数と、前記受付手段が受け付けた前記ページ指定とに基づいて、前記プリントジョブに含まれるページのうち印刷すべきページを特定する特定手段と
を有することを特徴とする画像処理装置。 Receiving means for receiving a print job including a plurality of documents having different document formats, each of the plurality of documents including one or a plurality of pages;
A receiving unit that receives a page designation that designates a page to be printed out of pages included in the print job with a number of pages corresponding to a printing order of pages included in the print job;
Specifying means for specifying pages to be printed out of pages included in the print job based on the number of pages of each of the plurality of documents included in the print job and the page designation received by the receiving means; An image processing apparatus comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018212481A JP6727273B2 (en) | 2018-11-12 | 2018-11-12 | Image forming apparatus, control method thereof, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2018212481A JP6727273B2 (en) | 2018-11-12 | 2018-11-12 | Image forming apparatus, control method thereof, and program |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014210168A Division JP6434775B2 (en) | 2014-10-14 | 2014-10-14 | Image forming apparatus, control method therefor, and program |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2019022998A true JP2019022998A (en) | 2019-02-14 |
JP2019022998A5 JP2019022998A5 (en) | 2019-04-25 |
JP6727273B2 JP6727273B2 (en) | 2020-07-22 |
Family
ID=65368780
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2018212481A Active JP6727273B2 (en) | 2018-11-12 | 2018-11-12 | Image forming apparatus, control method thereof, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6727273B2 (en) |
-
2018
- 2018-11-12 JP JP2018212481A patent/JP6727273B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP6727273B2 (en) | 2020-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9501246B2 (en) | Computer readable recording medium, information processing apparatus, and information processing method for displaying converted image data | |
US8599431B2 (en) | Print-data processing apparatus and print-data processing method | |
JP5336819B2 (en) | Information processing apparatus and print control method | |
JP7171218B2 (en) | PRINT CONTROL DEVICE, CONTROL METHOD AND PROGRAM | |
US9639304B2 (en) | Data supplying device and image processing system | |
US8860990B2 (en) | Information processing apparatus, PDL data conversion method, and storage medium | |
JP6434775B2 (en) | Image forming apparatus, control method therefor, and program | |
JP2016179619A (en) | Information processing device, method of obtaining printing duration by information processing device, image formation apparatus, and control method and program of image formation apparatus | |
US8484558B2 (en) | Document generation method and document generation apparatus | |
JP6727273B2 (en) | Image forming apparatus, control method thereof, and program | |
US8248632B2 (en) | Method and apparatus for printing and inserting dividers into multi-section documents from multiple files | |
JP2014076569A (en) | Image forming apparatus, control method thereof, program, and image formation system | |
JP2018036755A (en) | Control method, program and information processing device | |
US8503008B2 (en) | Computer readable medium, printing control apparatus and printing system for outputting second job and first job based on second job attributes | |
JP3991028B2 (en) | Document processing method and information processing apparatus | |
JP6603490B2 (en) | Image forming apparatus, control method therefor, and storage medium | |
JP6217094B2 (en) | Image forming apparatus, printer driver for setting printing, image forming method, and image forming program | |
JP2015001846A (en) | Data creation device, method, and program | |
EP2610734B1 (en) | Image forming apparatus, image forming method, and computer readable storage medium storing program | |
JP4118834B2 (en) | Printer control program and printer control apparatus | |
JP5353477B2 (en) | Image processing apparatus and program | |
JP2017220088A (en) | Print server, print control program, and print control method | |
JP2010079599A (en) | Image processing apparatus | |
JP2014141003A (en) | Image forming device, control method thereof, and program | |
JP2013186743A (en) | Image processing method, image processing program and image forming apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20181211 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190313 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190911 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190920 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20191113 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200424 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200514 |
|
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: 20200601 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200630 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6727273 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |