Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6727273B2 - Image forming apparatus, control method thereof, and program - Google Patents
[go: Go Back, main page]

JP6727273B2 - Image forming apparatus, control method thereof, and program - Google Patents

Image forming apparatus, control method thereof, and program Download PDF

Info

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
print
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
Application number
JP2018212481A
Other languages
Japanese (ja)
Other versions
JP2019022998A (en
JP2019022998A5 (en
Inventor
賢太 松井
賢太 松井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2018212481A priority Critical patent/JP6727273B2/en
Publication of JP2019022998A publication Critical patent/JP2019022998A/en
Publication of JP2019022998A5 publication Critical patent/JP2019022998A5/en
Application granted granted Critical
Publication of JP6727273B2 publication Critical patent/JP6727273B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2008−210401号公報JP, 2008-210401, A

複数のドキュメントのページをひとつのジョブとして扱えるフォーマットを利用すると、例えば、図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 job 801 includes documents 802a, 802b, and 802c in this order, and the total number of pages is 2, 3 and 2, respectively. The format of each document may be different. A print range designation 803 is added to the job 801 as information on the page range to be printed. The print range designation 803 is designated not by the page number of each document but by the page serial number for the entire job. Here, since pages 4 to 6 are designated as the print range for the job 801 having a total of 7 pages, the second and third pages of the document 802b and the first page of the document 802c are to be printed. At this time, the print range designation is not given to each of the documents 802a to 802c included in the job 801.

印刷装置は、このようなジョブを受信した時点では、ジョブに含まれる各ドキュメントのページ数が分からないため、例えば、ジョブ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 job 801. ..

したがって、ジョブの中に複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲指定がジョブ全体に対するページの通し番号にて指定されているジョブに対しても、印刷装置は印刷できることが求められる。 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.

本実施形態に係るハードウェアの構成例を示す図。The figure which shows the structural example of the hardware which concerns on this embodiment. 本実施形態に係るソフトウェアの構成例を示す図。The figure which shows the structural example of the software which concerns on this embodiment. 第一の実施形態に係るフローチャート。The flowchart which concerns on 1st embodiment. 第二の実施形態に係る全体フローチャート。The whole flowchart which concerns on 2nd embodiment. 第二の実施形態に係るS403の詳細処理のフローチャート。The flowchart of the detailed process of S403 which concerns on 2nd embodiment. PDF、XPSの構造とファイルを説明するための図。The figure for demonstrating the structure and file of PDF and XPS. 第三の実施形態に係るフローチャート。The flowchart which concerns on 3rd embodiment. 本願発明にて処理するジョブを説明するための図。FIG. 4 is a diagram for explaining a job processed by the present invention. 本実施形態に係るジョブの生成例を説明するための図。FIG. 4 is a diagram for explaining an example of job generation according to the present embodiment.

以下、本発明を実施するための形態について図面を用いて説明する。 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 CPU 101 is a CPU (Central Processing Unit). The software module described later with reference to FIG. 2 is realized by the CPU 101 reading and executing the program. The memory 102 is a RAM (Random Access Memory) that can be accessed by the CPU 101. The memory 102 is used as a storage destination of a storage area required for the operation of various software, and is also used as a storage destination of the intermediate data generated by the analysis unit 202 of the software module and the bitmap image generated by the renderer 103.

レンダラ103は、ソフトウェアモジュールの解析部202が生成する中間データから、ビットマップ画像を生成するハードウェアである。入力部104は、複数のドキュメントが含まれるジョブの入力を受け付ける。エンジン105は、レンダラ103が生成したビットマップ画像を印刷用紙に出力する印刷部である。ROM106は、不揮発性の記憶部である。図2で後述するソフトウェアモジュールは、ROM106に格納され、CPU101に読み出され、実行される。 The renderer 103 is hardware that generates a bitmap image from the intermediate data generated by the analysis unit 202 of the software module. The input unit 104 receives an input of a job including a plurality of documents. The engine 105 is a printing unit that outputs the bitmap image generated by the renderer 103 onto printing paper. The ROM 106 is a non-volatile storage unit. A software module described below with reference to FIG. 2 is stored in the ROM 106, read by the CPU 101, and executed.

[ソフトウェア構成]
図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 job control unit 201 receives a job including a plurality of documents, and requests the analysis unit 202 (one of 202a, 202b, and 202c) capable of analyzing each document to analyze each document. In this embodiment, since the types of formats that define each document are different, it is assumed that a plurality of analysis units having different analyzable formats are provided. Then, the job control unit 201 passes the intermediate data generated by the analysis unit 202 as an analysis result to the renderer 103, and the bitmap image generated by the renderer 103 is output by the engine 105 to a print sheet (recording medium).

解析部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 analysis unit 202 analyzes the document requested by the job control unit 201, and generates intermediate data necessary for generating a bitmap image. Examples of the document format include PDF (Portable Document Format), PS (PostScript), XPS (XML Paper Specification), and JPEG (Joint Photographic Experts Group). In the present embodiment, the analysis units 202a, 202b, and 202c are analysis units capable of analyzing the PDF, PS, and XPS document formats, respectively. The format of the document is not limited to the above and may be another format. In this case, an analysis unit capable of analyzing the format is separately provided. The data section 203 stores and manages information on the page range to be printed by the job (start_page 203a, end_page 203b) and the number of pages of the document (page_num 203c) in the course of the printing process. The start_page 203a indicates the first page in the page range, and the end_page 203b indicates the last page in the page range. The job control unit 201 and the analysis unit 202 access the data unit 203 and execute print processing.

本実施形態において扱うジョブの構成例は、図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 documents 903a, 903b, 903c as one group 902 in the application 901. Pages of each document are displayed as thumbnails on the application, and the user selects a thumbnail to specify the page to be printed. Here, it is assumed that the user selects the second and third pages of the document 903b and the first page of the document 903c as pages to be printed. 8 and 9, the selected pages are shown in white and the unselected pages are shown in diagonal lines.

ドキュメントを開いているアプリケーション901は、各ドキュメントのページ数を把握しているため、印刷すべきページをグループ902全体に対する通し番号で指定できる。この場合、アプリケーション901は、印刷対象をグループ902のうち4、5、6ページ目であると判定し、印刷用のジョブとしてジョブ904(すなわち、図8のジョブ801)を生成する。図9において、括弧付で示されるページ番号はジョブ904全体に対する通し番号である。印刷範囲指定905は、その通し番号に基づいて指定されている。 Since the application 901 that has opened the document knows the number of pages of each document, the page to be printed can be designated by the serial number for the entire group 902. In this case, the application 901 determines that the print target is the fourth, fifth, and sixth pages of the group 902, and generates the job 904 (that is, the job 801 in FIG. 8) as a print job. In FIG. 9, the page numbers shown in parentheses are serial numbers for the entire job 904. The print range designation 905 is designated based on the serial number.

一方、このようなジョブを受信した画像形成装置は、ジョブに含まれる各ドキュメントのページ数が分からないため、指定された通し番号に対応する各ドキュメントのページが分からない。そこで、本実施形態では、以下に説明する方法で印刷を行う。 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 CPU 101 reading and executing a program stored in the ROM 106 or the like. Hereinafter, a specific example will be described using the job configuration shown in FIG.

S301にて、ジョブ制御部201は、ジョブに印刷範囲指定の情報があるか否かを確認する。印刷範囲指定の情報がある場合は(S301にてYES)S302の処理へ進み、ない場合は(S301にてNO)S311の処理へ進む。 In step S<b>301, the job control unit 201 confirms whether or not the job has print range designation information. If there is information for specifying the print range (YES in S301), the process proceeds to S302, and if there is no information (NO in S301), the process proceeds to S311.

S302にて、ジョブ制御部201は、ジョブに含まれている印刷範囲指定の情報をデータ部203に格納する。ここでは、ジョブの印刷範囲指定の情報が、図8に示すように4〜6ページであるため、start_page203aに“4”が格納され、end_page203bに“6”が格納される。 In step S<b>302, the job control unit 201 stores the print range designation information included in the job in the data unit 203. Here, since the print range designation information of the job is 4 to 6 pages as illustrated in FIG. 8, “4” is stored in the start_page 203a and “6” is stored in the end_page 203b.

S303にて、ジョブ制御部201は、ジョブに含まれるドキュメントの解析を解析部202に依頼し、ドキュメント解析が開始される。ここでは、ジョブに含まれる3つのドキュメント802a,802b,802cのフォーマットがそれぞれPDF、PS、XPSであるとする。この場合、ジョブ制御部201は、最初のドキュメント802a(PDF)の解析を、PDFの解析が可能な解析部202aに依頼する。 In step S303, the job control unit 201 requests the analysis unit 202 to analyze the document included in the job, and the document analysis is started. Here, it is assumed that the formats of the three documents 802a, 802b, and 802c included in the job are PDF, PS, and XPS, respectively. In this case, the job control unit 201 requests the analysis unit 202a capable of PDF analysis to analyze the first document 802a (PDF).

S304にて、解析部202aは、ドキュメントのページ数の情報を“0”で初期化する。初期化の結果、データ部203のpage_num203cに“0”が格納される。 In S304, the analysis unit 202a initializes the information about the number of pages of the document with "0". As a result of the initialization, “0” is stored in the page_num 203c of the data section 203.

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 analysis unit 202a determines whether the page to be analyzed is within the print range designation. If the page is within the print range (YES in S503), the process proceeds to S306, and if the page is out of the print range (NO in S503), the process proceeds to S307. Specifically, if the following expression is satisfied, it is determined that the page is within the print range specification, and if not, it is determined that the page is outside the print range.
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 analysis unit 202a updates the number of pages of the document as follows, and stores the updated value in the page_num 203c of the data unit 203.
page_num=page_num+1
Here, page_num=page_num+1=0+1=1, and “1” is stored in the page_num 203c.

S308にて、解析部202aは、ドキュメント解析終了か否かを判定する。依頼を受けたドキュメントにおいて解析すべき次のページがある場合は(S308にてNO)、ドキュメント解析を継続するため、S305の処理へ戻る。解析すべき次のページがない場合は(S308にてYES)、ドキュメント解析終了であると判定して、S309の処理へ進む。 In S308, the analysis unit 202a determines whether or not the document analysis is completed. If there is a next page to be analyzed in the requested document (NO in S308), the process returns to S305 to continue the document analysis. If there is no next page to be analyzed (YES in S308), it is determined that the document analysis is completed, and the process proceeds to S309.

ここでは、次のページ(ドキュメント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 document 802a (PDF)), the process proceeds to S305. Then, after S305, the process proceeds to S309 through the following processes.
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 job control unit 201 determines whether the job is finished. If there is a next document in the job (NO in S309), the process proceeds to S310 to perform the analysis process. If there is no next document (YES in S309), it is determined that the job is completed. To do. Here, since there is the next document 802b (PS), the process proceeds to S310.

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 job control unit 201 updates the print range designation information as follows.
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 start_page 203a of the data unit 203 and “4” is stored in the end_page 203b.

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 job control unit 201 starts the document analysis by requesting the analysis unit 202 to analyze the next document included in the job. Here, since the format of the next document 802b is PS, the job control unit 201 requests the analysis unit 202b capable of analyzing PS to analyze the document. After that, after S304, the process goes through the following process to reach S306.
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 analysis unit 202b generates intermediate data of the page to be analyzed. As described above, the job control unit 201 passes this intermediate data to the renderer 103, and the bitmap image generated by the renderer 103 from the intermediate data is output by the engine 105 onto the printing paper. That is, the second page of the document 802b (PS) included in the job 801 is output at this timing. Similarly, after S307, the third page of the document 802b (PS) is output through the following processing, and the process again reaches S309.
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 document 802b)
S307: page_num=page_num+1=2+1=3
S308: No next page (YES in S308) → Document analysis completed (to S309)
S309: Next document 802b (XPS) exists (to S310)

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 job control unit 201 updates the print range designations start_page 203a and end_page 203b as follows.
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 job control unit 201 starts the document analysis by requesting the analysis unit 202 to analyze the next document included in the job. Here, since the format of the next document 802c is XPS, the analysis unit 202c capable of analyzing XPS is requested to analyze the document. Then, after S304, the first page of the document 802c (XPS) is output through the following processes, and the process reaches S309.
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 document 802c)
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 job 801 does not include the next document (YES in step S309), the job control unit 201 performs this processing flow. As a result, the next three pages are printed.
-The second page of document 802b (PS)-The third page of document 802b (PS)-The first page of document 802c (XPS)

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 job control unit 201 sequentially analyzes the documents included in the job and prints them.

S311にて、ジョブ制御部201は、ジョブに含まれるドキュメントの解析を解析部202(202a、202b、202cのいずれか)に依頼し、ドキュメント解析を開始する。先述の通り、ジョブ制御部201は、そのドキュメントを解析可能な解析部に解析を依頼する。 In step S311, the job control unit 201 requests the analysis unit 202 (any of 202a, 202b, and 202c) to analyze the document included in the job, and starts the document analysis. As described above, the job control unit 201 requests the analysis unit capable of analyzing the document for analysis.

S312にて、解析部202は、解析するページの中間データを生成する。先述の通り、ジョブ制御部201は、生成した中間データをレンダラ103に渡し、レンダラ103が中間データから生成するビットマップ画像が、エンジン105によって印刷用紙に出力される。 In S312, the analysis unit 202 generates intermediate data of the page to be analyzed. As described above, the job control unit 201 passes the generated intermediate data to the renderer 103, and the engine 105 outputs the bitmap image generated from the intermediate data by the renderer 103 to the print sheet.

S313にて、解析部202は、ドキュメント解析が終了か否かを判定する。解析すべき次のページがある場合は(S313にてNO)、ドキュメント解析を継続するため、S312の処理へ戻る。解析すべき次のページがない場合は(S313にてYES)、解析部202は、ドキュメント解析終了と判定して、S314の処理へ進む。 In S313, the analysis unit 202 determines whether the document analysis is completed. If there is a next page to be analyzed (NO in S313), the process returns to S312 to continue the document analysis. When there is no next page to be analyzed (YES in S313), the analysis unit 202 determines that the document analysis is completed, and proceeds to the process of S314.

S314にて、ジョブ制御部201は、ジョブ終了か否かを判定する。ジョブ中に次のドキュメントがある場合は(S314にてNO)、そのドキュメントの解析処理を行うためにS311の処理へ進み、ない場合は(S314にてYES)ジョブ終了と判定する。 In step S314, the job control unit 201 determines whether the job is finished. If the next document is present in the job (NO in S314), the process proceeds to S311 to analyze the document, and if not (YES in S314), it is determined that the job is completed.

以上、本実施形態によって、印刷装置は、複数の異なるフォーマットのドキュメントが含まれ、かつ印刷範囲がジョブ全体に対するページの通し番号で指定されるジョブを印刷できるようになり、ユーザの利便性が向上する。 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 CPU 101 reading and executing a program stored in the ROM 106 or the like.

S501にて、ジョブ制御部201は、ジョブに含まれるドキュメントの解析を解析部202に依頼し、ドキュメント解析を開始する。 In step S501, the job control unit 201 requests the analysis unit 202 to analyze the document included in the job, and starts the document analysis.

S502では、ジョブ制御部201は、ドキュメント解析を開始した直後で、解析するドキュメントに応じてpage_numの更新方法を切り替える。ドキュメントがPDFの場合はS503の処理へ、XPSの場合はS504の処理へ、JPEGの場合はS505の処理へ、PSの場合はS507へ処理を進める。PSは、データ構造上、ファイルの先頭から終端まで逐次解析しないとページ数がわからない。そのため、S507以降で、第一の実施形態と同じように各ページを順々に解析してドキュメントのページ数を算出する。 In step S502, the job control unit 201 switches the method of updating the page_num according to the document to be analyzed immediately after the document analysis is started. If the document is PDF, the process proceeds to S503, if it is XPS, the process proceeds to S504, if it is JPEG, the process proceeds to S505, and if it is PS, the process proceeds to S507. Due to the data structure of the PS, the number of pages cannot be known without sequentially analyzing the file from the beginning to the end. Therefore, after S507, each page is sequentially analyzed in the same manner as in the first embodiment to calculate the number of pages of the document.

S503にて、PDFが解析可能な解析部202aは、ページ数の情報を、PDFに含まれるページツリーから取得する。第一の実施形態ではPDFのドキュメントのページ数を取得するのに、各ページを順々に解析した。しかし、PDFはツリー構造を持つフォーマットであり、ページのツリーを参照することによりドキュメントのページ数を取得できる。 In step S503, the analysis unit 202a that can analyze the PDF acquires information about the number of pages from the page tree included in the PDF. In the first embodiment, each page is analyzed in order to obtain the page number of the PDF document. However, PDF is a format having a tree structure, and the number of pages of a document can be acquired by referring to the tree of pages.

図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 “Count 3” described in the file corresponds to the number of pages, and the analysis unit 202a stores “3” in the page_num 203c of the data unit.

S504にて、XPSが解析可能な解析部202cは、ページ数の情報を、XPSに含まれるFixedDocumentパーツから取得する。第一の実施形態ではXPSのページ数を取得するのに、各ページを順々に解析した。しかし、XPSはフォルダ構成を持つフォーマットであり、特定のフォルダに存在するファイルを参照することによりドキュメントを構成するページ数を取得できる。 In step S504, the analysis unit 202c that can analyze XPS acquires information about the number of pages from the FixedDocument parts included in XPS. In the first embodiment, each page is analyzed in order to obtain the number of XPS pages. However, XPS is a format having a folder structure, and the number of pages forming a document can be acquired by referring to a file existing in a specific folder.

図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 page 3 and the contents of the file (FixedDoc.fdoc) existing in a specific folder (Documents). In this case, the number of appearances of </PageContent> described in the file (here, three times) corresponds to the number of pages, and the analysis unit 202c stores “3” in the page_num 203c of the data unit 203.

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 page_num 203c of the data unit 203. In the case of JPEG, the number of pages is “1” because it is always one page according to the format standard, and the analysis unit (not shown) of JPEG stores “1” in the page_num 203c of the data unit 203.

S506にて、解析部202は、ドキュメントのページ数から、印刷範囲指定内のドキュメントか否かを判定する。印刷範囲指定内のドキュメントの場合は(S506にてYES)S507の処理へ進み、印刷範囲指定外のドキュメントの場合は(S506にてNO)S508の処理へ進む。ここでは、次の式が成り立つ場合は印刷範囲指定内のドキュメント、成り立たない場合は印刷範囲指定外のドキュメントと判定する。
num_page≧start_page
In step S506, the analysis unit 202 determines whether the document is within the print range designation based on the number of pages of the document. If the document is within the print range designation (YES in S506), the process proceeds to S507. If the document is out of the print range designation (NO in S506), the process proceeds to S508. Here, if the following expression is satisfied, it is determined that the document is within the print range specification, and if not, the document is outside the print range specification.
num_page≧start_page

S507にて、解析部202は、ドキュメント解析を継続する。つまり、図4のS404以降の処理を続ける。 In step S507, the analysis unit 202 continues document analysis. That is, the processing of S404 and subsequent steps in FIG. 4 is continued.

S508にて、解析部202は、ドキュメント解析を終了する。つまり、図4のS409以降の処理を続ける。 In S508, analysis unit 202 ends the document analysis. That is, the processing from S409 onward in FIG. 4 is continued.

第一の実施形態と同様、図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 documents 802a, 802b, 802c included in the job 801 of FIG. 8 are PDF, PS, and XPS, respectively. In this case, after S401 (of FIG. 4) and the following processes, the process reaches S506.
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 document 802a (PDF) is determined to be a document whose print range is not specified (NO in step S506). Then, in step S508, the analysis unit 202a ends the PDF document analysis, and proceeds to the processing in step S409 and subsequent steps in FIG. By performing the processing in this way, it is possible to start the analysis of the next document 802b (PS) earlier than in the first embodiment without analyzing each page of the document 802a (PDF) outside the print range specification.

本実施形態によれば、ページ数を低コストで算出できるドキュメントについてはページ数を算出し、印刷範囲指定外のドキュメントの解析処理を省くことで、第一の実施形態よりも印刷処理の高速化が可能になる。 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 CPU 101 reading and executing a program stored in the ROM 106 or the like.

S701は、ジョブ制御部201が、ジョブに含まれる各ドキュメント[i](i=0,1,2...)に対して、S706までの処理を繰り返すことを示す。 In step S<b>701, the job control unit 201 repeats the processing up to step S<b>706 for each document [i] (i=0, 1, 2...) Included in the job.

S702にて、ジョブ制御部201は、ジョブに含まれるドキュメント[i]の解析を解析部202に依頼し、ドキュメント解析を開始する。 In step S<b>702, the job control unit 201 requests the analysis unit 202 to analyze the document [i] included in the job, and starts the document analysis.

S703にて、解析部202は、ドキュメント[i]のページ数の情報を初期化し、データ部203のpage_num[i](不図示)に“0”を格納する。 In step S703, the analysis unit 202 initializes the information about the number of pages of the document [i], and stores “0” in the page_num[i] (not shown) of the data unit 203.

S704にて、解析部202は、ドキュメント[i]の解析を行い、ページ数の情報を更新する。第一の実施形態と異なり、解析部202はドキュメント[i]の解析だけを行い、中間データの生成は行わない。 In step S704, the analysis unit 202 analyzes the document [i] and updates the page number information. Unlike the first embodiment, the analysis unit 202 only analyzes the document [i] and does not generate intermediate data.

S705にて、解析部202は、ドキュメント[i]の解析が終了したか否かを判定する。解析が終了した場合は(S705にてYES)S706の処理へ進み、終了してない場合は(S705にてNO)S704の処理へ戻り、解析処理を継続する。 In S705, the analysis unit 202 determines whether the analysis of the document [i] is completed. When the analysis is completed (YES in S705), the process proceeds to S706, and when the analysis is not completed (NO in S705), the process returns to S704 and the analysis process is continued.

S706にて、ジョブ制御部201は、各ドキュメント[i](i=0,1,2...)に対して、S705までの処理が全て終了したと判定した場合、S707の処理へ進む。 If the job control unit 201 determines in step S<b>706 that all the processes up to step S<b>705 have been completed for each document [i] (i=0, 1, 2,...), The process proceeds to step S<b>707.

S707にて、ジョブ制御部201は、印刷範囲指定の情報をデータ部203のstart_page203a、end_page203bに格納する。 In step S<b>707, the job control unit 201 stores the print range designation information in the start_page 203 a and the end_page 203 b of the data unit 203.

S708は、ジョブ制御部201が、ジョブに含まれる各ドキュメント[i](i=0,1,2...)に対して、S714までの処理を繰り返すことを示す。S709〜S712では、第一の実施形態と同様に解析部202によりドキュメント解析が行われ、印刷範囲指定内のページについては、中間データが生成される。 In step S708, the job control unit 201 repeats the processing up to step S714 for each document [i] (i=0, 1, 2...) Included in the job. In S709 to S712, the document analysis is performed by the analysis unit 202 as in the first embodiment, and intermediate data is generated for pages within the print range designation.

S713にて、ジョブ制御部201は、印刷範囲指定の情報を次のように更新する。
start_page=start_page−page_num[i]
end_page=end_page−page_num[i]
In step S713, the job control unit 201 updates the print range designation information as follows.
start_page=start_page-page_num[i]
end_page=end_page-page_num[i]

S714にて、ジョブ制御部201は、各ドキュメント[i](i=0,1,2...)に対して、S713までの処理が全て終了したと判定した場合、本処理フローを終了する。 If the job control unit 201 determines in step S714 that all the processes up to step S713 have been completed for each document [i] (i=0, 1, 2,... ), the process flow ends. ..

本実施形態の処理は、例えば、ジョブに含まれるページをプレビューなどで、ジョブ全体の総ページ数をすぐに求めたり、表示したりするケースで有効である。また、本実施形態ではドキュメントに対して解析処理が二度実行される。そこで、パフォーマンス向上のために、第二の実施形態で示した、ドキュメントのページ数の算出方法をドキュメント種別によって切り替える処理を併用してもよい。 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)

第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得手段と、
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第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.
第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得手段と、
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第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.
第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得手段と、
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第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).
前記第2の取得手段が取得する前記指示は、ユーザの指示に基づくことを特徴とする請求項1乃至3のいずれか1項に記載の画像形成装置。 Wherein said instruction second acquisition unit acquires the image forming apparatus according to any one of claims 1 to 3, characterized in that based on a user's instruction. 印刷を行う印刷手段を更に有し、
前記印刷制御手段は、前記印刷手段を制御して、前記ターゲットページの印刷を実行させることを特徴とする請求項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.
第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得する第1の取得工程と、
前記プリントジョブに含まれる全てのページにおける印刷すべきターゲットページの位置を示すページ番号の指示を取得する第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) .
第1のデータフォーマットを有する第1のドキュメントと、前記第1のデータフォーマットと異なる第2のデータフォーマットを有する第2のドキュメントとを少なくとも含むプリントジョブを取得可能な第1の取得手段と、
前記プリントジョブに含まれるページ全体における印刷すべきターゲットページの位置を示す情報を取得する第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のドキュメントに含まれ前記終了ページが前記第2のドキュメントに含まれる前記情報を前記第2の取得手段が取得した場合に、前記制御を行うことを特徴とする請求項に記載の画像形成装置。 The print control unit performs the control at least when the second acquisition unit acquires the information in which the start page is included in the first document and the end page is included in the second document. The image forming apparatus according to claim 7, which is performed. 画像形成装置の制御方法であって、
第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 .
画像形成装置が備えるコンピュータを、請求項1乃至4、7及び8のいずれか1項に記載の画像形成装置の各手段として機能させるためのプログラム。 A program for causing a computer included in an image forming apparatus to function as each unit of the image forming apparatus according to any one of claims 1 to 4, 7, and 8 .
JP2018212481A 2018-11-12 2018-11-12 Image forming apparatus, control method thereof, and program Active JP6727273B2 (en)

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)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7584929B2 (en) * 2020-07-15 2024-11-18 キヤノン株式会社 Printing device, control method and program

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