JP6727273B2 - Image forming apparatus, control method thereof, and program - Google Patents
Image forming apparatus, control method thereof, and program Download PDFInfo
- Publication number
- JP6727273B2 JP6727273B2 JP2018212481A JP2018212481A JP6727273B2 JP 6727273 B2 JP6727273 B2 JP 6727273B2 JP 2018212481 A JP2018212481 A JP 2018212481A JP 2018212481 A JP2018212481 A JP 2018212481A JP 6727273 B2 JP6727273 B2 JP 6727273B2
- Authority
- JP
- Japan
- Prior art keywords
- page
- document
- data format
- page number
- 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)
Description
本発明は、画像形成装置およびその制御方法、並びにプログラムに関する。
The present invention relates to an image forming apparatus, a control method thereof, and a program.
従来、複数のドキュメントに対して、印刷範囲を指定して印刷する技術がある(例えば、特許文献1)。この技術では、各ドキュメントの設定情報にそのドキュメントで印刷すべきページ範囲の情報を付与することで、各ドキュメントの任意のページを印刷できる。 2. Description of the Related Art Conventionally, there is a technique of specifying a print range for printing a plurality of documents (for example, Patent Document 1). According to 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, the document handled by the user has many formats such as PDF (Portable Document Format) and PS (PostScript). Therefore, in the print workflow, a format has been proposed in which pages of a plurality of documents can be managed as one job such as JDF (Job Definition Format) so that the user can handle the document without being aware of the format.
複数のドキュメントのページをひとつのジョブとして扱えるフォーマットを利用すると、例えば、図8に示すようなジョブが、アプリケーションによって生成される。ジョブ801には、ドキュメント802a,802b,802cがこの順番で含まれ、それぞれの総ページ数は2、3、2である。各ドキュメントのフォーマットは異なっていてもよい。また、ジョブ801には、印刷すべきページ範囲の情報として、印刷範囲指定803が付与される。印刷範囲指定803は、各ドキュメントのページ番号ではなく、ジョブ全体に対するページの通し番号で指定される。ここでは、全7ページのジョブ801に対し、4ページから6ページが印刷範囲として指定されているため、ドキュメント802bの2、3ページ目と、ドキュメント802cの1ページ目が印刷対象となる。このとき、ジョブ801に含まれるドキュメント802a〜802cそれぞれに対しては印刷範囲指定が付与されない。
If a format that can handle pages of a plurality of documents 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 know which page of which document corresponds to the fourth page of the
したがって、ジョブの中に複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲指定がジョブ全体に対するページの通し番号にて指定されているジョブに対しても、印刷装置は印刷できることが求められる。 Therefore, the printing apparatus is required to be able to print even a job in which a plurality of documents of different formats are included in the job and the print range is specified by the page serial number for the entire job.
上記課題を解決するために本願発明は以下の構成を有する。すなわち、本願発明の一態様に係る画像形成装置は、第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得手段と、前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得手段と、前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御手段とを有し、前記プリントジョブは、前記プリントジョブに含まれる全てのページにおける前記ターゲットページの位置を示すページ番号を含まないことを特徴とする。
また、本願発明の他の一態様に係る画像形成装置は、第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得手段と、前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得手段と、前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御手段と、前記指示が示すページ番号から、少なくとも前記第1のドキュメントのページ数を引いた結果に基づいて、前記ターゲットページを特定する特定手段とを有し、前記印刷制御手段は、前記特定手段が特定した前記ターゲットページを印刷させる制御を行うことを特徴とする。
また、本願発明の更に他の一態様に係る画像形成装置は、第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得手段と、前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得手段と、前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御手段とを有し、前記プリントジョブはJDF(Job Definition Format)に従うプリントジョブであることを特徴とする。
また、本願発明の更に他の一態様に係る画像形成装置は、第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得可能な第1の取得手段と、前記プリントジョブに含まれるページ全体における印刷すべきターゲットページの位置を示す情報を取得する第2の取得手段と、前記第1のドキュメントにおけるページ位置を示すページ番号と前記第2のドキュメントにおけるページ位置を示すページ番号、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる制御を行う印刷制御手段とを有し、前記ターゲットページの位置を示す情報は、ターゲットページの開始ページの位置情報と終了ページの位置情報を含むことを特徴とする。
In order to solve the above problems, the present invention has the following configurations. That is , the image forming apparatus according to an aspect of the present invention includes at least a first document having a first data format and a second document having a second data format different from the first data format. A first acquisition unit for acquiring a print job; a second acquisition unit for acquiring an instruction of a page number indicating a position of a target page to be printed in all pages included in the print job; and the first document. The printing of the target page based on at least one of the page number of each page in the second document and the page number of each page in the second document, and the page number acquired by the second acquisition unit. is to have a print control unit, the print job is characterized in that it does not contain a page number indicating the position of the target page in all the pages included in the print job.
An image forming apparatus according to another aspect of the present invention includes a first document having a first data format and a second document having a second data format different from the first data format. A first acquisition unit that acquires a print job that includes at least the first print job; a second acquisition unit that acquires a page number instruction indicating a position of a target page to be printed in all pages included in the print job; Printing the target page based on at least one of the page number of each page in the document and the page number of each page in the second document, and the page number acquired by the second acquisition unit. And a specifying unit that specifies the target page based on the result of subtracting at least the number of pages of the first document from the page number indicated by the instruction. Is characterized by performing control to print the target page specified by the specifying unit.
An image forming apparatus according to still another aspect of the present invention includes a first document having a first data format and a second document having a second data format different from the first data format. A first acquisition means for acquiring a print job including at least the following: a second acquisition means for acquiring an instruction of a page number indicating a position of a target page to be printed in all pages included in the print job; Of the target page based on at least one of the page number of each page in the first document and the page number of each page in the second document, and the page number acquired by the second acquisition unit. A print control means for executing printing, wherein the print job is a print job complying with JDF (Job Definition Format).
An image forming apparatus according to still another aspect of the present invention includes a first document having a first data format and a second document having a second data format different from the first data format. A first acquisition unit capable of acquiring a print job including at least: a second acquisition unit configured to acquire information indicating a position of a target page to be printed in all pages included in the print job; Control for executing the printing of the target page based on the page number indicating the page position in the second document, the page number indicating the page position in the second document, and the page number acquired by the second acquisition unit. And a print control unit, wherein the information indicating the position of the target page includes position information of a start page and an end page of the target page.
複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲がジョブ全体に対するページの通し番号で指定されるジョブを印刷できる。 You can print a job that contains multiple differently formatted documents and whose print range is specified by the page serial number for the entire job.
以下、本発明を実施するための形態について図面を用いて説明する。 Hereinafter, modes 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 a configuration example of hardware for receiving a job including a plurality of documents and performing printing in the image forming apparatus according to the present embodiment. Note that the image forming apparatus according to the present invention corresponds to 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 a job including a plurality of documents and performing printing 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 the job handled in this embodiment is as shown in FIG. The job is generated based on a user's instruction by an application used in an external information processing device such as a PC (not shown) or a mobile 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 receives such a job does not know the number of pages of each document included in the job, and therefore cannot 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 the processing according to this 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 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 S305, the
start_page≦page_num+1≦end_page
In this case, start_page=4, end_page=6, and (page_num+1)=0+1=1, and the above expression does not hold. It is determined that the page is outside the print range specification, and the process proceeds to step 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 the
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→print range not specified S307: page_num=page_num+1=1+1=2
S308: No next page (YES in S308) → Document analysis completed (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 are set, so that “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 step S303, the
S304: page_num=0
S305: start_page=2, end_page=4, (page_num+1)=(0+1)=1→print range not specified (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, the
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 the
S307: page_num=page_num+1=2+1=3
S308: No next page (YES in S308) → Document analysis completed (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 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 updating the print range designation, 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 the
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→print range not specified (NO in S305)
S307: page_num=page_num+1=1+1=2
S308: No next page (YES in S308) → Document analysis completed (to S309)
ジョブ801には次のドキュメントはないため(S309にてYES)、ジョブ制御部201は、本処理フローをする。結果として次の3ページが印刷される。
・ドキュメント802b(PS)の2ページ目
・ドキュメント802b(PS)の3ページ目
・ドキュメント802c(XPS)の1ページ目
Since the
-The second page of
S311〜S314は、受信した複数のドキュメントが含まれるジョブに印刷範囲指定の情報がなかった場合の処理である。印刷範囲指定の情報がない場合(S301にてNO)、ジョブ制御部201は、ジョブに含まれるドキュメントを順々に解析し、印刷する。
Steps S311 to S314 are processing when there is no print range designation information in the received job that includes a plurality of documents. When there is no information for specifying the print range (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 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 print range is designated by the page serial number of the entire job, which improves user convenience. ..
なお、本実施形態では、印刷範囲指定として連続したページを指定した例を示したが、これに限定するものではない。例えば、複数のドキュメントにおいて連続していないページを通し番号にて指定したジョブであってもよい。 In the present embodiment, an example in which continuous pages are designated as the print range designation has been shown, but the present invention is not limited to this. For example, it may be a job in which pages that are not continuous 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 this embodiment is an improvement of 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 processing of S303 of FIG. 1 is changed to the conditional branch of S403 of FIG. The branch process will be described in detail, and the other processes will be omitted. The detailed processing of S403 is shown in FIG. The processes of FIGS. 4 and 5 are 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 S502, the
S503にて、PDFが解析可能な解析部202aは、ページ数の情報を、PDFに含まれるページツリーから取得する。第一の実施形態ではPDFのドキュメントのページ数を取得するのに、各ページを順々に解析した。しかし、PDFはツリー構造を持つフォーマットであり、ページのツリーを参照することによりドキュメントのページ数を取得できる。
In step S503, the
図6(a)は、3ページのPDFのツリー構造とファイルの中身を示す例である。この場合、ファイルに記載された「Count 3」の“3”がページ数に相当し、解析部202aはデータ部のpage_num203cに“3”を格納する。
FIG. 6A is an example showing the tree structure of the PDF of 3 pages 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 step S505, the analysis unit (not shown) capable of analyzing JPEG stores “1” in the
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 S508,
第一の実施形態と同様、図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
Similar to the first embodiment, three
S401: Print range specified (YES at 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 the present embodiment, the number of pages is calculated for a document for which the number of pages can be calculated at low cost, and by omitting the analysis processing of the document out of the print range designation, the printing process is made faster than in the first embodiment. Will be possible.
<第三の実施形態>
図7は、第三の実施形態に係る処理を示すフローチャートである。第一、第二の実施形態では、ドキュメントの解析と印刷を、ジョブに含まれるドキュメントの順に実行した。本実施形態では、ジョブに含まれる全ドキュメントの解析を最初に行い、その解析が全て完了した後に、全ドキュメントの印刷を実行する。図7の処理は、CPU101がROM106等に格納されたプログラムを読み出して実行することで実現される。
<Third embodiment>
FIG. 7 is a flowchart showing the processing according to the third embodiment. In the first and second embodiments, the analysis and printing of documents are executed in order of the documents included in the job. In this embodiment, all the documents included in the job are analyzed first, and after all the analyzes are completed, the printing of all the documents is executed. The processing of FIG. 7 is realized by the
S701は、ジョブ制御部201が、ジョブに含まれる各ドキュメント[i](i=0,1,2...)に対して、S706までの処理を繰り返すことを示す。
In step S<b>701, the
S702にて、ジョブ制御部201は、ジョブに含まれるドキュメント[i]の解析を解析部202に依頼し、ドキュメント解析を開始する。
In step S<b>702, 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 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によりドキュメント解析が行われ、印刷範囲指定内のページについては、中間データが生成される。
In step S708, 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までの処理が全て終了したと判定した場合、本処理フローを終了する。
If the
本実施形態の処理は、例えば、ジョブに含まれるページをプレビューなどで、ジョブ全体の総ページ数をすぐに求めたり、表示したりするケースで有効である。また、本実施形態ではドキュメントに対して解析処理が二度実行される。そこで、パフォーマンス向上のために、第二の実施形態で示した、ドキュメントのページ数の算出方法をドキュメント種別によって切り替える処理を併用してもよい。 The processing of the present embodiment is effective in a case where the total number of pages of the entire job is immediately obtained or displayed, for example, by previewing the pages included in the job. Further, in the present embodiment, the analysis process is performed twice on the document. Therefore, in order to improve performance, the processing of switching the method of calculating the number of pages of a document depending on the document type, which is shown in the second embodiment, may be used together.
<その他の実施例>
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサーがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
<Other Examples>
The present invention supplies a program that implements 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. It can also be realized by the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
101…CPU、201…ジョブ制御部、202…解析部、203…データ部、801…ジョブ、802…ドキュメント 101... CPU, 201... Job control section, 202... Analysis section, 203... Data section, 801... Job, 802... Document
Claims (10)
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得手段と、
前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御手段とを有し、
前記プリントジョブは、前記プリントジョブに含まれる全てのページにおける前記ターゲットページの位置を示すページ番号を含まないことを特徴とする画像形成装置。 First acquisition means for acquiring a print job including at least a first document having a first data format and a second document having a second data format different from the first data format;
Second acquisition means for acquiring an instruction of a page number indicating a position of a target page to be printed in all pages included in the print job;
The target is based on at least one of the page number of each page in the first document and the page number of each page in the second document, and based on the page number acquired by the second acquisition unit. And a print control means for executing page printing,
The print job images forming device you characterized by not including a page number indicating the position of the target page in all the pages included in the print job.
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得手段と、
前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御手段と、
前記指示が示すページ番号から、少なくとも前記第1のドキュメントのページ数を引いた結果に基づいて、前記ターゲットページを特定する特定手段とを有し、
前記印刷制御手段は、前記特定手段が特定した前記ターゲットページを印刷させる制御を行うことを特徴とする画像形成装置。 First acquisition means for acquiring a print job including at least a first document having a first data format and a second document having a second data format different from the first data format;
Second acquisition means for acquiring an instruction of a page number indicating a position of a target page to be printed in all pages included in the print job;
The target is based on at least one of the page number of each page in the first document and the page number of each page in the second document, and based on the page number acquired by the second acquisition unit. Print control means for executing page printing,
From the page number indicated by the instruction, based on the result of subtracting at least the number of pages of the first document, and a specifying unit for specifying the target page,
It said print control means, the specifying unit images forming device you characterized in that performs control to print the target page identified.
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得手段と、
前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御手段とを有し、
前記プリントジョブはJDF(Job Definition Format)に従うプリントジョブであることを特徴とする画像形成装置。 First acquisition means for acquiring a print job including at least a first document having a first data format and a second document having a second data format different from the first data format;
Second acquisition means for acquiring an instruction of a page number indicating a position of a target page to be printed in all pages included in the print job;
The target is based on at least one of the page number of each page in the first document and the page number of each page in the second document, and based on the page number acquired by the second acquisition unit. And a print control means for executing page printing,
The print job images forming device you being a print job according to the JDF (Job Definition Format).
前記印刷制御手段は、前記印刷手段を制御して、前記ターゲットページの印刷を実行させることを特徴とする請求項1乃至4のいずれか1項に記載の画像形成装置。 Further having a printing means for printing,
The image forming apparatus according to claim 1, wherein the print control unit controls the print unit to execute printing of the target page.
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第2の取得工程と、
前記第1のドキュメントにおける各ページのページ番号と前記第2のドキュメントにおける各ページのページ番号とのうち少なくともいずれか、及び、前記第2の取得工程にて取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる印刷制御工程とを有し、
前記プリントジョブはJDF(Job Definition Format)に従うプリントジョブであることを特徴とする画像形成装置の制御方法。 A first obtaining step of obtaining a print job including at least a first document having a first data format and a second document having a second data format different from the first data format;
A second acquisition step of acquiring a page number instruction indicating a position of a target page to be printed in all pages included in the print job;
Based on at least one of the page number of each page in the first document and the page number of each page in the second document, and the page number acquired in the second acquisition step, A print control step for executing printing of the target page ,
A method of controlling an image forming apparatus, wherein the print job is a print job according to JDF (Job Definition Format) .
前記プリントジョブに含まれるページ全体における印刷すべきターゲットページの位置を示す情報を取得する第2の取得手段と、
前記第1のドキュメントにおけるページ位置を示すページ番号と前記第2のドキュメントにおけるページ位置を示すページ番号、及び、前記第2の取得手段が取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる制御を行う印刷制御手段とを有し、
前記ターゲットページの位置を示す情報は、ターゲットページの開始ページの位置情報と終了ページの位置情報を含むことを特徴とする画像形成装置。 First acquisition means capable of acquiring a print job including at least a first document having a first data format and a second document having a second data format different from the first data format;
Second acquisition means for acquiring information indicating the position of the target page to be printed in the entire page included in the print job;
The printing of the target page is performed based on the page number indicating the page position in the first document, the page number indicating the page position in the second document, and the page number acquired by the second acquisition unit. A print control means for performing control to be executed,
Wherein the information indicating the position of the target page, images forming device you comprising the positional information of the position information and Hang Up page of the target page.
第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得工程と、
前記プリントジョブに含まれるページ全体における印刷すべきターゲットページの位置を示す情報を取得する第2の取得工程と、
前記第1のドキュメントにおけるページ位置を示すページ番号と前記第2のドキュメントにおけるページ位置を示すページ番号、及び、前記第2の取得工程にて取得した前記ページ番号に基づいて、前記ターゲットページの印刷を実行させる制御を行う印刷制御工程とを有し、
前記ターゲットページの位置を示す情報は、ターゲットページの開始ページの位置情報と終了ページの位置情報を含むことを特徴とする画像形成装置の制御方法。 A method of controlling an image forming apparatus, comprising:
A first obtaining step of obtaining a print job including at least a first document having a first data format and a second document having a second data format different from the first data format;
A second acquisition step of acquiring information indicating the position of the target page to be printed in all the pages included in the print job;
Printing the target page based on a page number indicating the page position in the first document, a page number indicating the page position in the second document, and the page number acquired in the second acquisition step. and a print control step of performing control to run,
The control method of the image forming apparatus, wherein the information indicating the position of the target page includes position information of the start page and position information of the end page of the target page .
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 JP2019022998A (en) | 2019-02-14 |
| JP2019022998A5 JP2019022998A5 (en) | 2019-04-25 |
| JP6727273B2 true 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) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7584929B2 (en) * | 2020-07-15 | 2024-11-18 | キヤノン株式会社 | Printing device, control method and program |
-
2018
- 2018-11-12 JP JP2018212481A patent/JP6727273B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2019022998A (en) | 2019-02-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5654806B2 (en) | Server system, printing apparatus, network printing system having them, and method therefor | |
| JP6455232B2 (en) | Image processing system, processing execution control device, image formation output control device, control program for image processing system, and control method for image processing system | |
| US8599431B2 (en) | Print-data processing apparatus and print-data processing method | |
| JP7171218B2 (en) | PRINT CONTROL DEVICE, CONTROL METHOD AND PROGRAM | |
| JP5066511B2 (en) | How to print multiple files as one print job | |
| JP2008310526A (en) | Information processing apparatus and method | |
| US8842327B2 (en) | Print control apparatus, print control method, and storage medium storing computer-executable program | |
| JP2022066766A (en) | Image forming device, control method of image forming device, and program | |
| JP6597402B2 (en) | Image forming output control device, control method for image forming output control device, and control program for image forming output control device | |
| JP4144392B2 (en) | Image processing apparatus, image forming system, image forming method, and program | |
| JP6727273B2 (en) | Image forming apparatus, control method thereof, and program | |
| JP6455457B2 (en) | Image forming output control device, control program for image forming output control device, control method for image forming output control device, and image processing system | |
| JP6434775B2 (en) | Image forming apparatus, control method therefor, and program | |
| JP2016162241A (en) | Image processing system, image formation output control device, information processing method, information processing program | |
| US8484558B2 (en) | Document generation method and document generation apparatus | |
| CN104915159A (en) | Information processing apparatus, information processing system and recording medium | |
| JP6397168B2 (en) | Image processing apparatus, image processing apparatus control method, and program | |
| JP2008243153A (en) | Printing support apparatus, printing support program, and printing support method | |
| JP5802706B2 (en) | Data creation apparatus, method and program | |
| JP2018206311A (en) | Printing system, server, and control method and program therefor | |
| 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 | |
| JP5957979B2 (en) | Image processing method, image processing program, and image forming apparatus | |
| JP6210724B2 (en) | Information processing apparatus, data processing method for information processing apparatus, and program | |
| EP2610734B1 (en) | Image forming apparatus, image forming method, and computer readable storage medium storing program |
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 |