JP3754906B2 - Image processing apparatus, image processing method, storage medium, and server apparatus - Google Patents

Image processing apparatus, image processing method, storage medium, and server apparatus Download PDF

Info

Publication number
JP3754906B2
JP3754906B2 JP2001274082A JP2001274082A JP3754906B2 JP 3754906 B2 JP3754906 B2 JP 3754906B2 JP 2001274082 A JP2001274082 A JP 2001274082A JP 2001274082 A JP2001274082 A JP 2001274082A JP 3754906 B2 JP3754906 B2 JP 3754906B2
Authority
JP
Japan
Prior art keywords
font size
output
character
document data
information
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.)
Expired - Fee Related
Application number
JP2001274082A
Other languages
Japanese (ja)
Other versions
JP2002189582A (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 JP2001274082A priority Critical patent/JP3754906B2/en
Publication of JP2002189582A publication Critical patent/JP2002189582A/en
Application granted granted Critical
Publication of JP3754906B2 publication Critical patent/JP3754906B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、所定の構造化記述言語で記述された文書データと、外部から入力される印刷設定情報を用いて前記文書データを処理する画像処理装置および画像処理方法および記憶媒体およびサーバ装置に関するものである。
【0002】
【従来の技術】
近年、パーソナルコンピュータとインターネットの急速な普及は業界を問わず文書の電子化を促進することとなった。しかし、電子化文書のデータ形式は文書情報を編集するアプリケーションに依存するため、電子化された文書情報を閲覧するためには該当文書情報のデータ形式をサポートするアプリケーションを用意する必要があった。例えば、HTML(Hyper Text Markup Language)やXML(extensible Markup Language)など、特定のアプリケーションに依存しない構造化記述言語で記述された文書が普及しつつある。
【0003】
【発明が解決しようとする課題】
これらの言語に代表される構造化記述言語は、一般的に情報閲覧用のソフトである、いわゆるブラウザや種々のHTMLがサポートされたアプリケーションでディスプレイ画面上に表示することを前提に設計されているため、ページの概念が存在しない。ブラウザを使用してディスプレイに表示する場合、表示する画面の幅や高さを任意に変えたり画面をスクロールさせたりすることができるため、ページの概念は必要ない。一方、このような構造化言語をページ記述言語として利用する場合にはページヘの割り付けが必要になる。また、ページの概念の無い構造化記述言語をページレイアウト可能な構造化記述言語に変換する工程をフォーマッティングと呼ぶ。
【0004】
しかしながら、物理ページヘのフォーマッティングをフォントサイズなど絶対的な尺度で固定的に割り付けると、ページ内容によっては見にくくなったり、人によっては好みのレイアウトにならなかったりするという問題点があった。なお、物理ページとは、画像データを紙に印刷したときの出力ページをいう。また、この物理ページには、印刷データのプレビューを行うことによりホストコンピュータなどの表示画面に出力されるページも含む。
【0005】
さらに、構造化文書を印刷する際、PCにおいてHTMLエディタやWebブラウザなどを用いてフォントサイズを指定させる方法では、一旦サーバ側からホスト側に構造化文書を受信し、該受信した文書をアプリケーションで開き、このアプリケーション上で煩雑な操作を行ってフォントを指定した後にプリンタに送信する処理を行わなければならなかった。
【0006】
また、近年、WebブラウザやHTMLファイルを編集するためのアプリケーションが開発されているが、このアプリケーションを用いて表示させているHTML文書に対し、PCの入力手段を用いてフォントのサイズを指定し、さらにPC側でページレイアウトを行ってプリンタに送信することが可能となっている。
【0007】
ただし、前記のフォントサイズの指定により構造化文書中の基準フォントサイズを設定し得るが、この設定により、文書作成者が個別にフォントサイズ指定をしていなかった文字のフォントサイズは変更されるが、文書作成者が個別にフォントサイズ指定した文字のフォントサイズは変更されないという問題点があった。
【0008】
例えば、ページを表等のテーブル領域とテキスト領域に分け、それぞれの領域に対して別々のフォントの拡大率を指定する技術で作成された構造化文書においては、フォントサイズを無条件に一定サイズ以上に指定して、読みやすい文字が出力された文書を得たい場合でも、テーブル内の文字のフォントサイズは変更されず、対応できなかった。
【0009】
また、文書をページレイアウトする際に、テーブル領域とテキスト領域に分けられたページに適用されるフォントの拡大率を、プログラムが所定のアルゴリズムに従って計算し、レイアウトを行う技術は従来より存在していた。
【0010】
すなわち、表等のテーブル領域には、テーブルのエントリに含まれる文字列の改行が行われないことを条件として、空白領域を削減し、印字領域を拡大するように、フォントの拡大をプログラムが行う技術があった。
【0011】
また、テキスト領域のフォントを拡大すると、ページに含まれる印字領域の割合が増加する。そこで、所定の割合以上になるように当該テキスト領域のフォントサイズを拡大する。しかし、このフォントの拡大は、レイアウトの状況に依存するものであり、ユーザが指定したフォントサイズで出力されるわけではない。
【0012】
例えば、小さな文字を含んだ大きなテーブルのように、もともと印字領域の割合の大きな印刷データであれば、小さな文字でフォントが出力されていても、プログラムはフォントの拡大を行わない。すなわち、印字領域の割合を意識するあまり、ユーザの所望のフォントサイズの出力を得ることが出来ないという問題点があった。
【0013】
本願発明の第1の目的は、構造化文書が含む情報、並びに/又は、構造化文書が割り付けられるべき物理ページに関する情報を用いて、適切に文書をフォーマッティングすることである。
【0014】
また、本願発明の第2の目的は、サーバが描画処理を画像処理装置側の描画負担を強いることなく、ユーザの好みのサイズでページレイアウトした種々の文書情報を画像出力することができる画像処理装置および画像処理方法および記憶媒体およびサーバ装置を提供することである。
【0015】
【課題を解決するための手段】
本発明に係る第1の発明は、所定の構造化記述言語で記述された文書データを処理して所定の物理ページを含む画像データを生成する画像処理装置において、記文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報を特定する特定手段(図21に示す物理レイアウト処理部1107)と、前記文書データが示す画像を物理ページに割り付けて出力するフォントサイズ指示又は入力する指示入力手段(図41に示すフォントサイズ指定フィールド4205)と、前記特定手段が特定したフォントサイズ情報が設定された文字情報を前記指示入力手段により指示又は入力されたフォントサイズで、物理ページに出力処理する出力処理手段(図21に示す物理レイアウト処理部1107,データ描画部1104)とを有することを特徴とする。
【0016】
本発明に係る第2の発明は、前記特定手段は、前記文書データが含むフォントサイズ情報(基準フォントサイズ,最小文字サイズ,最頻出文字サイズ)と、前記指示入力手段により入力された標準フォントサイズを示す情報を用いて変倍率を計算し、
前記出力処理手段は、前記フォントサイズ情報が適用された文字又は文字列を前記変倍率を用いて変倍して、前記標準フォントサイズで出力されるように出力処理することを特徴とする。
【0017】
本発明に係る第3の発明は、前記文書データは、前記特定手段が特定したフォントサイズ情報が設定された特定の文字(基準フォントサイズの文字,最小文字,最頻出文字)に対してフォントサイズを指示する情報を含み、
前記出力処理手段は、前記特定の文字に対して指定されたフォントサイズが適用された文字又は文字列が、フォントサイズを指示する情報に関わらず、前記指示入力手段により入力した標準フォントサイズで出力されるように出力処理することを特徴とする。
【0018】
本発明に係る第4の発明は、前記文書データは、前記文書データにおける基準フォントサイズを指定できるものであって、前記特定手段は、前記基準フォントサイズと、前記指示入力手段により入力された標準フォントサイズを用いて変倍率を計算し、前記出力処理手段は、前記基準フォントサイズが適用された文字又は文字列が、前記指示入力手段により入力した標準フォントサイズで出力されるように、前記変倍率を前記文書データが含む文字情報全体に適用して出力処理することを特徴とする。
【0019】
本発明に係る第5の発明は、前記特定手段は、前記文書情報の最頻出のフォントサイズを特定し、前記出力処理手段は、前記特定手段で特定された前記最頻出のフォントサイズが適用された文字又は文字列が、前記指示入力手段により入力した標準フォントサイズで出力されるように出力処理することを特徴とする。
【0020】
本発明に係る第6の発明は、前記特定手段は、文書データ中の最小フォントサイズを特定し、前記出力処理手段は、物理ページにレイアウト出力される文字情報のフォントサイズが、前記指示入力手段により入力された標準フォントサイズ以上のフォントサイズで出力されるように出力処理することを特徴とする。
【0021】
本発明に係る第7の発明は、前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、前記特定手段は、前記オブジェクトデータが示す画像の大きさを検出し、前記出力処理手段は、前記オブジェクトデータが示す画像又は図表が持つオブジェクトは物理ページ内に収まるように、かつ、前記文書データが含む前記文字情報が示す文字又は文字列は前記指示入力手段により入力された標準フォントサイズで出力されるように出力処理することを特徴とする。
【0022】
本発明に係る第8の発明は、前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、前記特定手段は、前記オブジェクトデータが示す画像の大きさを検出し、前記出力処理手段は、前記オブジェクトデータが示す画像は物理ページの幅に応じて変倍され、かつ、前記文書データが含む前記文字情報が示す文字は前記指示入力手段に入力された標準フォントサイズで出力されるように出力処理することを特徴とする。
【0023】
本発明に係る第9の発明は、前記画像処理装置は、任意のサーバ装置(図7に示すWebサーバ2000)と通信して前記文書データを受信して処理することを特徴とする。
【0024】
本発明に係る第10の発明は、前記画像処理装置は、さらに、ユーザ指示に基づいてレイアウト方式を選択する選択手段(図41に示す選択手段4203,4204,4209,4210)を備え、前記出力処理手段は、前記選択手段における選択結果に基づいて前記変倍率の算出方法を決定することを特徴とする。
【0025】
本発明に係る第11の発明は、前記画像処理装置は、さらに、前記出力処理手段が生成したイメージデータを出力する印刷部(図21に示すプリンタエンジン部1400)を有することを特徴とする。
【0026】
本発明に係る第12の発明は、前記画像処理装置は、プリンタ(図21に示すプリンタ1000)であることを特徴とする。
【0027】
本発明に係る第13の発明は、所定の構造化記述言語で記述された文書データを処理して所定の物理ページを含む画像データを生成する画像処理方法において、記文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報特定する特定ステップ(図15のステップS901〜S905,図23のステップS2401〜S2405,図27のステップS2501〜2507,図30のステップS2601〜S2605,図33のステップS3401〜3403,図39のステップS3601〜S3603)と、前記文書データが示す画像を物理ページに割り付けて出力するフォントサイズ指示又は入力する指示入力ステップ(図示しないステップ)と、前記特定ステップで特定したフォントサイズ情報が設定された文字情報を前記指示入力ステップにより指示又は入力されたフォントサイズで、物理ページに出力処理する出力処理ステップ(図15のステップS906,図23のステップS2406,図27のステップS2508,図30のステップS2606〜S2607,図33のステップS3404,S3405,図39のステップS3604,S3605)とを有することを特徴とする。
【0028】
本発明に係る第14の発明は、前記特定ステップでは、前記文書データが含む特定の文字情報が示すフォントサイズと、前記指示入力ステップで外部から入力された標準フォントサイズを用いて変倍率を計算し、前記出力処理ステップでは、前記特定の文字情報が示す文字又は文字列が前記変倍率を用いて変倍したフォントサイズで出力されるように出力処理することを特徴とする。
【0029】
本発明に係る第15の発明は、前記文書データは、前記特定ステップが特定したフォントサイズ情報が設定された特定の文字に対してフォントサイズを指示する情報を含み、前記出力処理ステップでは、前記フォントサイズが適用された特定の文字又は文字列が、フォントサイズを指示する情報に関わらず、前記指示入力ステップにより入力した標準フォントサイズで出力されるように出力することを特徴とする。
【0030】
本発明に係る第16の発明は、前記文書データは、前記文書データにおける標準サイズフォントを指定できるものであって、前記解析ステップ(図15のステップS901〜S905)では、基準フォントサイズと、前記指示入力手段により入力された標準フォントサイズを用いて変倍率を計算し、前記出力処理ステップ(図1515のステップS906)では、前記基準フォントサイズが適用された文字又は文字列が、前記指示入力ステップにより入力した標準フォントサイズで出力されるように、前記変倍率を前記文書データが含む文字情報全体に適用して出力処理することを特徴とする。
【0031】
本発明に係る第17の発明は、前記特定ステップ(図23のステップS2401〜S2405)では、文書データ中の最小フォントサイズを特定し、前記出力処理ステップ(図23のステップS2406)では、物理ページにレイアウト出力される文字情報のフォントサイズが、前記指示入力ステップにより入力された標準フォントサイズ以上のフォントサイズで出力されるように出力処理することを特徴とする。
【0032】
本発明に係る第18の発明は、前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、前記特定ステップ(図27のステップS2501〜2507)では、前記オブジェクトデータが示す画像の大きさを検出し、前記出力処理ステップ(図27のステップS2508)では、前記オブジェクトデータが示す画像又は図表が持つオブジェクトは物理ページ内に収まるように、かつ、前記文書データが含む前記文字情報が示す文字又は文字列は前記指示入力ステップにより入力された標準フォントサイズで出力されるように出力処理することを特徴とする。
【0033】
本発明に係る第19の発明は、前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、前記特定ステップ(図27のステップS2501〜2507)では、前記オブジェクトデータが示す画像の大きさを検出し、前記出力処理ステップ(図27のステップS2508)では、前記オブジェクトデータが示す画像は物理ページの幅に応じて変倍され、かつ、前記文書データが含む前記文字情報が示す文字は前記指示入力ステップに入力された標準フォントサイズで出力されるように出力処理することを特徴とする。
【0034】
本発明に係る第20の発明は、前記画像処理方法は、任意のサーバ装置と通信して前記文書データを取得する取得ステップ(図示しないステップ)を有することを特徴とする。
【0035】
本発明に係る第21の発明は、前記画像処理方法は、さらに、ユーザ指示に基づいてレイアウト方式を選択する選択ステップ(図示しないステップ)を備え、前記選択ステップにおける選択結果に基づいて前記文書データが含む文字を変倍して出力処理するための変倍率の算出方法を決定することを特徴とする。
【0038】
本発明に係る第22の発明は、所定の構造化記述言語で記述された文書データを処理して所定の物理ページを含む画像データを生成する画像処理方法をコンピュータに実行させるプログラムを格納したコンピュータが読取り可能な記憶媒体において、記文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報特定する特定ステップ(図15のステップS901〜S905,図23のステップS2401〜S2405,図27のステップS2501〜2507,図30のステップS2601〜S2605,図33のステップS3401〜3403,図39のステップS3601〜S3603)と、前記文書データが示す画像を物理ページに割り付けて出力するフォントサイズ指定又は入力する指示入力ステップ(図示しないステップ)と、前記特定ステップで特定したフォントサイズ情報が設定された文字情報を前記指示入力ステップにより指示又は入力されたフォントサイズで、物理ページに出力処理する出力処理ステップ(図15のステップS906,図23のステップS2406,図27のステップS2508,図30のステップS2606〜S2607,図33のステップS3404,S3405,図39のステップS3604,S3605)とを実行するプログラムをコンピュータが読み取り可能に記憶媒体に記憶したことを特徴とする。
【0055】
本発明に係る第23の発明は、所定の構造化記述言語で記述された文書データを処理して画像データを生成する画像処理装置において、構造化文書が含む文字情報を解析する解析手段(図21に示す物理レイアウト処理部1107)と、前記構造化文書中に前記文字情報に対して設定されたフォントサイズを指示する情報が存在した場合でも、前記解析手段が解析した所定の文字情報に対応する文字が所定のフォントサイズで出力されるように、出力処理する出力手段(図21に示す物理レイアウト処理部1107,データ描画部1104)とを備え、前記文書データは、出力対象のフォントサイズが所定の基準フォントサイズを基準としてどれだけ大きいのか又は小さいのかを示す相対値を用いて指定できるものであり、前記解析手段は、文書データに指定された基準フォントサイズと前記入力手段が入力したフォントサイズとから、前記基準フォントサイズが指定された文字が前記指定手段が指定したフォントサイズで出力されるように、前記解析手段が解析した文字情報に適用すべき変倍率を求め、前記出力手段は、前記変倍率を用いて出力処理することを特徴とする。
【0056】
本発明に係る第24の発明は、前記所定のフォントサイズは、画像形成装置の指示入力手段(図41に示すフォントサイズ指定フィールド4205)により入力され、前記解析手段は、特定の文字又は文字列のフォントサイズと、所定のフォントサイズとに基づいて、変倍率を計算し、前記出力手段は、前記特定の文字又は文字列が、前記所定のフォントサイズで出力されるように、前記構造化文書中における前記文字情報に対して設定されたフォントサイズを指示する情報に関わらず、前記特定の文字を前記変倍率で変倍して出力処理することを特徴とする。
【0057】
本発明に係る第25の発明は、前記文書データは、少なくとも一つのオブジェクトを含み、前記特定の文字又は文字列を前記所定のサイズで出力する一方、前記文書データが含むオブジェクトが示す画像を前記オブジェクトを出力する用紙サイズに応じて変倍することを特徴とする。
【0058】
本発明に係る第26の発明は、前記構造化文書中に前記文字に対して設定された前記フォントサイズを指示する情報は、HTML又はXMLのフォントのサイズを指定するタグ情報によって記述されるものであることを特徴とする。
【0059】
本発明に係る第27の発明は、所定の構造化記述言語で記述された文書データを処理して画像データを生成する画像処理方法において、
構造化文書が含む文字情報を解析する解析ステップ(図15のステップS901〜S905,図23のステップS2401〜S2405,図27のステップS2501〜2507,図30のステップS2601〜S2605,図33のステップS3401〜3403,図39のステップS3601〜S3603)と、前記構造化文書中における前記文字情報に対して設定されたフォントサイズを指示する情報が存在した場合でも、前記解析ステップで解析した所定の文字情報に対応する文字が所定のフォントサイズで出力されるように、出力処理する出力ステップ(図15のステップS906,図23のステップS2406,図27のステップS2508,図30のステップS2606〜S2607,図33のステップS3404,S3405,図39のステップS3604,S3605)とを備え、前記文書データは、出力対象のフォントサイズが所定の基準フォントサイズを基準としてどれだけ大きいのか又は小さいのかを示す相対値を用いて指定できるものであり、前記解析ステップは、文書データに指定された基準フォントサイズと前記入力ステップで入力したフォントサイズとから、前記基準フォントサイズが指定された文字が前記指定ステップで指定したフォントサイズで出力されるように、前記解析ステップで解析した文字情報に適用すべき変倍率を求め、前記出力ステップは、前記変倍率を用いて出力処理することを特徴とする。
本発明に係る第28の発明は、所定の構造化記述言語で記述された文書データを処理して画像データを生成する画像処理方法をコンピュータに実行させるプログラムを格納したコンピュータが読取り可能な記憶媒体において、構造化文書が含む文字情報を解析する解析ステップと、前記構造化文書中における前記文字情報に対して設定されたフォントサイズを指示する情報が存在した場合でも、前記解析ステップで解析した所定の文字情報に対応する文字が所定のフォントサイズで出力されるように、出力処理する出力ステップとを備え、前記文書データは、出力対象のフォントサイズが所定の基準フォントサイズを基準としてどれだけ大きいのか又は小さいのかを示す相対値を用いて指定できるものであり、前記解析ステップは、文書データに指定された基準フォントサイズと前記入力ステップで入力したフォントサイズとから、前記基準フォントサイズが指定された文字が前記指定ステップで指定したフォントサイズで出力されるように、前記解析ステップで解析した文字情報に適用すべき変倍率を求め、前記出力ステップは、前記変倍率を用いて出力処理するプログラムをコンピュータが読取り可能に記憶媒体に記憶したことを特徴とする。
【0060】
【発明の実施の形態】
以下、図面を参照して、本発明に好適な実施形態を説明する。まず、本実施形態を適用するのに好適なレーザビームプリンタ(LBP)の構成について図1を参照しながら説明する。
【0061】
なお、本実施形態を適用するプリンタは、レーザビームプリンタに限られるものではなく、画像を形成して出力するものであればよい。例えば、複写機やファクシミリ、レーザビーム以外の印字方式(LED方式、液晶シャッタ方式、インクジェット方式、熱転写方式、昇華方式等)のプリンタ等でも良いことは言うまでもない。また、本発明における出力手段には、プリンタにおいて印刷出力することはもちろん、プリンタの表示部でプレビューすることを含む。また、単に画像処理装置といえば、プリンタはもちろん、プリンタ内に装備されている画像処理用コントローラ、フォーマッティング処理を行うことが出来るソフトウェアを搭載したコンピュータを含むものである。以下、図面を参照して本発明の実施形態を詳細に説明する。
【0062】
〔第1実施形態〕
図1は、本実施形態に適用されるレーザビームプリンタの内部構造を示す断面図であり、このLBPは不図示のデータ源から文字パターンの登録や定型書式(フォームデータ)などの登録が行える。
【0063】
図1において、1000はLBP本体(以下、プリンタという)であり、外部に接続されているホストコンピュータから供給される文字情報(文字コード)やフォーム情報あるいはマクロ命令などを入力して記憶する。そして、それらの情報に従って対応する文字パターンやフォームパターンなどを作成し、記録媒体である記録紙上に像を形成する。
【0064】
1012は操作パネルで、操作のためのスイッチおよびLED表示器およびタッチパネル付の表示器などが配されている。また、後述する印刷設定情報などの入力が可能である。1001はプリンタ制御ユニットで、プリンタ1000全体の制御およびホストコンピュータから供給される文字情報などを解析する。このプリンタ制御ユニット1001は、主に文字情報を対応する文字パターンのビデオ信号に変換してレーザドライバ1002に出力する。レーザドライバ1002は半導体レーザ1003を駆動するための回路である。レーザドライバ102は、入力されたビデオ信号に応じて半導体レーザ1003から発射されるレーザ光1004をオンオフ切り替えする。レーザ光1004は回転多面鏡1005で左右方向に振られ静電ドラム1006上を走査する。
【0065】
これにより、静電ドラム1006上には文字パターンの静電潜像が形成される。この潜像は、静電ドラム1006周囲の現像ユニツト1007により現像された後、記録紙に転送される。この記録紙にはカットシートを用いる。このカットシート記録紙はプリンタ1000に装着した用紙カセット1008に収納される。続いて、給紙ローラ1009および搬送ローラ1010と搬送ローラ1011とにより装置内に取り込まれて、静電ドラム1006に供給される。
【0066】
図2は、本発明の実施形態を示すプリンタ制御システムの構成を説明するブロック図である。本例では、レーザビームプリンタ(図1)を例にして説明する。なお、本発明の機能が実行される限り、単体の機器であっても、複数の機器からなるシステムであっても、LAN等のネットワークを介して処理が行われるシステムであっても本発明を適用できることは言うまでもない。
【0067】
図2において、3000はホストコンピュータであり、以下のような機能を備える。すなわち、ROM3のプログラム用ROMに記憶された文書処理プログラム等に基づいて文書データの取り出しやデータ変換を実行するCPUlを備える。そして、システムバス4に接続される各デバイスをCPUlが総括的に制御する。また、このROM3のプログラム用ROMには、CPUlの制御プログラム等を記憶する。また、ROM3のフォント用ROMには上記データ変換処理の際に使用するフォントデータ等を記憶する。ROM3のデータ用ROMには、上記データ変換処理等を行う際に使用する各種データを記憶する。
【0068】
2はRAMで、CPUlの主メモリ,ワークエリア等として機能する。5はキーボードコントローラ(KBC)である。キーボードコントローラ5は、キーボード(KB)9や不図示のポインティングデバイスからのキー入力を制御する。6はCRTコントローラ(CRTC)である。CRTコントローラ6は、CRTディスプレイ(CRT)10の表示を制御する。なお、CRT10において、構造化文書の物理ページへのレイアウト処理の結果をプレビュー出来るようにしても良い。構造化文書のレイアウト処理については後述する。
【0069】
本実施形態においてキーボード9やCRTディスプレイ10は必ずしも必要ではない。しかし、サーバコンピュータのメンテナンスや動作状況の確認のために通常装備されているものである。後述する図41に示すように、CRTディスプレイ10を介してフォントサイズをプリンタ1000に対して指定することなどができる。
【0070】
7はメモリコントローラ(MC)である。メモリコントローラ7は、外部メモリ11とのアクセスを制御する。外部メモリ11は、ブートプログラム,種々のアプリケーション,フォントデータ,ユーザファイル,編集ファイル等を記憶している。外部メモリ11は、例えば、ハードディスク(HD)、フレキシブルディスク(FD)、プログラム又は/かつデータを保持し得る記憶媒体の全てを含む。
【0071】
8はネットワークコントローラ(NTC)である。ネットワークコントローラ8は、所定の双方向性インタフェース(インタフェース)21を介してプリンタ1000に接続され、プリンタ1000との通信制御処理を実行する。なお、CPUlは、例えばメモリコントローラ7を制御することによって外部メモリ11に記憶された文書データを取り出したり、ネットワークコントローラ8を制御することによって文書データを外部へ転送することができる。
【0072】
プリンタ1000において、12はプリンタCPU(CPU)である。プリンタCPU12は、記憶部13に含まれるプログラム用ROMに記憶された制御プログラム等或いは外部メモリ14に記憶された制御プログラム等に基づいてシステムバス15に接続される各種のデバイスとのアクセスを総括的に制御し、印刷部インタフェース16を介して接続される印刷部(プリンタエンジン)17に出力情報としての画像信号を出力する。記憶部13は、プログラム又はフォントデータを含むデータ記憶用のROMを用いることが多いが、小型のハードディスクドライブ(HDD)や、着脱可能なメモリカードのような他の記憶メディアであってもよい。
【0073】
また、この記憶部13のプログラム用ROMには、後述するフローチャートで示されるようなCPUl2の制御プログラム等を記憶しても良い。
【0074】
また、記憶部13のフォント用ROMには上記出力情報を生成する際に使用するフォントデータ等を記憶する。また、記憶部13のデータ用ROMにはハードディスク等の外部メモリ14が無いプリンタの場合には、ホストコンピュータ3000上で利用される情報等を記憶している。
【0075】
CPU12は入力部18を介してホストコンピュータとの通信処理が可能となっている。また、CPU12は、プリンタ内の情報等をホストコンピュータ3000に通知可能に構成されている。
【0076】
RAM19は前記CPU12の主メモリ、ワークエリア等として機能するRAMである。RAM19は図示しない増設ポートに接続されるオプションRAMによりメモリ容量を拡張することができるように構成されている。
【0077】
なお、RAM19は、出力情報展開領域、環境データ格納領域、NVRAM等に用いられる。前述したハードディスク(HD)、ICカード等の外部メモリ14は、メモリコントローラ(MC)20によりアクセスを制御される。外部メモリ14は、オプションとして接続され、文書データ、フォントデータ、フォームデータ等を記憶する。
【0078】
また、1012は前述した操作パネルで操作のためのスイッチおよびLED表示器等が配されている。
【0079】
また、前述した外部メモリは1個に限らず、少なくとも1個以上備え、内蔵フォントに加えてオプションフォントカード,言語系の異なるプリンタ制御言語を解釈するプログラムを格納した外部メモリを複数接続できるように構成されていても良い。さらに、図示しないNVRAMを有し、操作パネル1012からのプリンタモード設定情報を記憶するようにしても良い。
【0080】
図3は、本発明の第1実施形態を示す画像処理装置におけるデータ処理構成を示すブロック図である。
【0081】
図3において、プリンタ1000は、大きく分けてフォーマッタ制御部1100、プリンタインタフェース1200、出力制御部1300、プリンタエンジン部1400より構成されている。
【0082】
フォーマッタ制御部1100は、プロトコル制御部1101、データ判定部1102、文書データ解析部1103、データ描画部1104、ページメモリ1105、リファレンス印刷指示処理部1106より構成されている。
【0083】
また、プリンタインタフェース1200は、外部との入出力のための手段である。プロトコル制御部1101は、ネットワークプロトコルを解析・送信することによって外部との通信を行なう手段であり、例えばプロトコルにHTTP(Hyper Text Transfer Protocol)を使用した場合、URI(Unified Resource Identifier)で指示された文書の取得やWebサーバヘの情報の送信を行なうものである。URIには、ネットワーク上のリソースの所在を示すURIを指定することができる。印刷を行う際、リファレンス印刷指示命令にWebサーバ上のリソースを指定する。リファレンス印刷命令指示を受けたデバイスは、当該URIをソースを取得して処理する。
【0084】
データ判定部1102は、受信したデータがリファレンス印刷指示なのか文書データなのかを判定する手段であり、受信したデータがリファレンス印刷指示であると判定した場合は、データはリファレンス印刷指示処理部1106に引き渡され、文書データであればデータは文書データ解析部1103に引き渡される。
【0085】
リファレンス印刷指示処理部1106は、リファレンス印刷指示から各情報を抽出し必要な情報をプロトコル制御部1101を通じて外部に送信するものである。リファレンス印刷指示の具体例については後述するが、リファレンス印刷指示処理部1106は、例えば文書のURIと印刷設定情報(物理レイアウト情報)をWebサーバ等に送信することによって文書を取得することができる。
【0086】
なお、画像形成装置が受信するデータが、リファレンス指示でなく、文書データであることが予め分かっている場合には、リファレンス印刷指示処理部1106並びに/又はデータ判定部1102を省略した実施形態も考え得る。
【0087】
文書データ解析部1103は、構造化記述言語で記述された文書データを解析し、より処理しやすい形式の中間コードに変換する手段である。文書データ解析部1103において生成された中間コードはデータ描画部1104に渡されて処理される。
【0088】
データ描画部1104は、上記中間コードをビットマップデータに展開するものであり、展開されたビットマップデータはページメモリ1105に逐次描画されて行く。なお、一般的には、フォーマッタ制御部1100は、CPU、ROM、RAMなどを用いたコンピュータシステムによって構成されている。
【0089】
出力制御部1300は、ページメモリ1105の内容をビデオ信号に変換処理し、プリンタエンジン部1400へ画像転送を行なう。プリンタエンジン部1400は受け取ったビデオ信号を記録紙に永久可視画像形成するための印刷機構部である。
【0090】
図4は、例えば図7の文書サーバ2004に格納されているブラウザによる文書情報表示画面の一例を示す図であり、ページの概念のない構造化記述言語で記述された文書をブラウザ表示した状態に対応する。図5は、図4に示した文書の印刷出力の一例を示す図である。
【0091】
図4に示すように、一般的なブラウザでは表示画面の大きさを変えたり、スクロールバーを使って画面を縦横にスクロールさせることができる。これに対して、図5は、フォーマッティング後の構造化記述言語で記述された文書の例を示す図であり、フォーマッティング後の文書はこのようにページ単位に表示または印刷することができる。
【0092】
一方で、構造化記述言語で記述された文書は前述したように特定のアプリケーションを必要としないため、構造化記述言語を解析可能な印刷装置があればアプリケーションを搭載しない端末からの印刷が可能になる。
【0093】
ここで、図4に表示されている構造化記述言語で記述された文書データをページレイアウトして図5のように出力する技術について、リファレンス印刷の例を用いて説明する。例えば、携帯情報端末や携帯電話からでも、文書の格納場所を印刷装置に指示するだけでWebサーバ上の文書情報の印刷が可能になる。このような印刷指示を、ここではリファレンス印刷指示と呼ぶ。ここで、リファレンス印刷指示について図6を用いて具体的に説明する。
【0094】
図6は、本発明に係る画像処理装置における構造化記述言語で記述されたリファレンス印刷指示の一例を示す図である。また、図6はページレイアウトの対象となる構造化文書の所在の情報を含む印刷命令である。さらに、図6の印刷命令は、ホスト(図6には不図示)からプリンタ1000への構造化記述言語で記述されているが、必ずしも構造化記述言語で記述されている必要はない。
【0095】
図6において、1行目は、このデータが文書データではなくリファレンス印刷指示であることを示している。実際印刷すべき文書データは2行目でURIによって指定されている。URIはインターネット上の文書を指定する最も一般的な指定方法であるのでここでは詳細な説明は省くが、図6の2行目は、HTTPプロトコルを用いてmyserver.comという名前のWebサーバ中に格納されているmydocumentという名前の文書を要求するものである。
【0096】
3行目は、出力用紙サイズを指定している。ここでは、A4用紙が指定されている。4行目は、レイアウト方向を指定している。ここでは、ポートレイトが指定されている。5行目は、基準フォントサイズを指定している。ここでは8ポイント(8pt)が指定されている。ここでいう基準フォントサイズは、後述する本発明における標準フォントサイズとは異なるものである。基準フォントサイズとは、構造化文書中に定義し得る基準となるフォントサイズである。通常、フォントサイズが指定されなければこの基準フォントサイズで表示される。また、本実施形態における構造化文書では、所望のフォントサイズ、フォントスタイルなどの表示形態を指示する命令である表示形態指示命令がタグの形式で定義されている。
【0097】
XML等の構造化文書中で特定の文字又は文字列に対して当該タグを適用すれば、当該タグを適用された構造化文書中の文字又は文字列は、スタイルシートで適用された形態で出力される。
【0098】
また、スタイルシートとは、文字情報をどのような形態(例えば、フォントサイズやフォントスタイル、斜体やアンダーラインの有無等)で出力するのか示す情報をユーザが独自に定義できる部分である。
【0099】
なお、本発明でいうスタイルシートは、ユーザが明示的に指示しなくても、フォーマッタが必要に応じて自動的に読み込んで適用するものを含む広い意味でのスタイルシートである。
【0100】
後述する図7に示すWebサーバ2000によるフォーマッティング処理において、構造化文書と共に、提供されていればスタイルシートも同時に読み込んで、タグ情報を解析し、出力する。上述した本発明にいう基準フォントサイズは、スタイルシートにも定義し得るものであり、文字又は文字列に対するユーザによる別のフォントサイズの指示がなかった場合に、当該文字又は文字列に対して適用されるデフォルトの文字サイズである。
【0101】
なお、構造化文書には、フォントサイズを指示する情報が含まれている場合が多い。例えば、フォントサイズを指示する命令とは、例えば、HTMLでは、<H1>見出しを示す文字列</H1>(このタグは大き目の見出しを示す)のように表されるタグ形式でも表現できる。ある文字列に対してフォントサイズを何も指定しなければ、通常、基準フォントサイズで出力される。
【0102】
なお、上述したように、本発明では、基準フォントサイズの情報は、構造化文書中に含まれていてもよいし、図6に示したリファレンス印刷指示中に含まれていてもよいし、後述する図41に示すフォントサイズ指定部4200で指定されてもよい。
【0103】
構造化文書の文字又は文字列を、所定の指示入力手段によって指示された所望のフォントサイズ(以下、標準フォントサイズという)に指定して出力することが本発明の目的である。
【0104】
指示入力手段には、例えばプリンタ1000の操作パネル1012や、ホストコンピュータ3000からネットワークを介しての指示の入力を受けるプリンタ1000の入力部18がある。
【0105】
このように、簡単な指示を印刷装置に送ることによって直接文書データを印刷装置に転送しなくてもmydocumentという文書を物理用紙に印刷することができる。
【0106】
図7は、本発明に係る画像処理装置と通信可能なWebサーバの構成を示すブロック図である。
【0107】
図7において、Webサーバ2000は、大きく分けてWebサーバインタフェース2001、プロトコル制御部2002、レイアウトデータ生成部2003、文書サーバ2004より構成されている。
【0108】
Webサーバインタフェース2001は、外部との入出力のための手段である。プロトコル制御部1101は、ネットワークプロトコルを解析・送信することによって外部との通信を行なう手段であり、例えばプロトコルにHTTPを使用した場合、情報の受信やURIで指示された文書の送信を行なうものである。レイアウトデータ生成部2003は、文書サーバ2004に格納されている文書をページにレイアウトする手段である。
【0109】
文書サーバ2004は、構造化記述言語で記述された文書ファイルを格納するものである。例えば、文書サーバ2004に記憶された構造化文書で記憶された文書データはWebブラウザを用いて図4のように表示される。この文書データを、レイアウトデータ生成部2003によってレイアウトし、図5のようにページレイアウトされたレイアウトデータを生成する。Webサーバ2000はURIと印刷設定情報(物理レイアウト情報)をプリンタ1000から受信すると、指定された文書を文書サーバ2004から取り出し、データ生成部2003において指定された印刷設定情報に基づいてページにレイアウトし、生成した文書データをプリンタ1000へ転送する。
【0110】
なお、プリンタ1000とWebサーバ2000との間はインターネット等のネットワークを通じて接続されている。
【0111】
ここで、文書サーバ2004に格納されている文書データとレイアウトデータ生成部2003が生成した文書データの具体例について、図8〜図10を用いて説明する。
【0112】
図8は、図7に示した文書サーバ2004に格納されている文書データの一例を示す図であり、XMLで記述された文書データである。
【0113】
図8において、文書データは各データにタグを付けることによってデータの意味付けをしただけのものであり、ページにレイアウトすることはできない。
【0114】
例えば、3行目で「Sample」という文字列データに<title>というタグが付けられている。これは「Sample」という文字列が「title」であることを意味しているが、どういう大きさでどの位置にレイアウトするか、といった情報は含まれていない。
【0115】
この文書データをどのようにレイアウトするかは、一般にスタイルシートと呼ばれるレイアウト情報を記述したファイルを適用することによって決定する。
【0116】
図9は、図7に示した文書サーバ2004に格納されるスタイルシートの一例を示す図であり、図8に示す文書データでは先頭行で適用するスタイルシートを指定している。このスタイルシートは、文書サーバ2004に格納されていてもよいが、図3に示すプリンタ1000に格納されていてもよい。
【0117】
図9において、2行目〜3行目では「title」のレイアウトを定義している。具体的には、<fontcolor=red position=center>と示されており、色の大きなフォントで行の中央に配置するよう定義されている。すなわち、図7に示した文書サーバ2004には図8に示した文書データが格納されており、かつ、図9に示したスタイルシートが格納されている。
【0118】
図10は、図7に示したレイアウトデータ生成部2003の処理により変換される文書データの一例を示す図であり、図8に示す文書データと図9に示すスタイルシートに基づき、変換された文書データ例に対応する。
【0119】
図10に示す例では、物理ページにレイアウトした文書データであり、文字サイズや描画位置まで記述されている。例えば、図8、図9で示した「title」部分は24ポイントで、(x,y)=(100,0)(mm)の位置にレイアウトされる。
【0120】
次に、このように構成された画像処理装置とサーバ装置とを含む印刷システムにおいて、本実施形態における全体の印刷制御処理手順を図11〜図15に示すフローチャートを参照しながら説明する。
【0121】
図11は、本発明に係る画像処理装置における第1のデータ処理手順の一例を示すフローチャートであり、図3に示したプリンタ1000の動作の開始から終了までのメイン処理手順に対応する。なお、S501〜S506は各ステップを示す。なお、所定の指示入力手段から標準フォントサイズ、例えば「12ポイント」が予め指示又は入力されているものとする。
【0122】
まず、ステップS501で、プリンタインタフェース1200を通してネットワークからのデータの受け取りを行なう。もちろん、文書データがプリンタ1000内に予めある場合には、S501の処理を省略し得る。次に、ステップS502で、プロトコルの解析を行なった後、ステップS503において、受信したデータがリファレンス印刷指示であるか否かを判定し、リファレンス印刷指示でないと判断した場合には、ステップS505に進んで描画処理を行ない、リファレンス印刷指示であると判断した場合には、ステップS504において、文書取得処理を行なった後に描画処理を行なう。その後、ステップS506で、文書データが終了したか否かを判断し、文書データ終了であると判断した場合には、印刷動作を終了し、文書データ終了でないと判断した場合は、ステップS501からの処理を繰り返す。もちろん、受信したデータがリファレンス印刷指示機能をサポートしていない場合、S503の処理を省略しても良い。
【0123】
図12は、本発明に係る画像処理装置における第2のデータ処理手順の一例を示すフローチャートであり、図11のステップS505に示した描画処理(実際に印刷処理を行う処理)の詳細手順に対応する。なお、S601〜S608は各ステップを示す。
【0124】
まず、ステップS601において、文書データ解析部1103でページ終了タグかどうかをチェックし、ページ終了タグであると判断した場合は、ステップS606に進み処理を行う。
【0125】
一方、ステップS601において、ページ終了タグでないと判断した場合は、ステップS602において、解析したタグが文字印字または図形描画などページメモリヘの展開処理を必要とするタグかどうかを判別し、ページメモリヘの展開処理を必要とするタグでないと判断した場合は、ステップS605に進み、ただちに属性設定・印字位置制御などタグに従った処理を行なう。
【0126】
一方、ステップS602で、ページメモリヘの展開処理を必要とするタグであると判断した場合は、ステップS603へ進み、ビットマップヘの展開処理がしやすい形である中間コードを生成する。
【0127】
そして、ステップS604において、該中間コードを受けて、データ描画部1104では、ページメモリ1105への展開処理を行い、展開処理終了後は、図9に示したステップS502に戻り、文書データの解析処理を繰り返す。
【0128】
一方、ステップS601において、ページ終了タグと判断された場合は、ステップS606へ進み、出力制御部1300において、ページメモリ1105の内容をプリンタエンジン部1400に対するビデオ信号に変換して画像転送出力する。
【0129】
そして、ステップS607において、プリンタエンジン部1400では、受け取ったビデオ信号を記録紙に永久可視画像形成し印刷を行う。そして、ステップS608において、印刷された結果を排紙すると1ページ当たりの印刷制御処理は終了する。
【0130】
図13は、本発明に係る画像処理装置における第3のデータ処理手順の一例を示すフローチャートであり、図11に示したステップS504の文書取得処理(印刷すべき文書を取得する処理)の詳細手順に対応する。なお、S701〜S706は各ステップを示す。
【0131】
まず、ステップS701で、リファレンス印刷指示中に記述された印刷設定情報を検索する。図6に示した例では用紙サイズの「A4」とレイアウト方向の「ポートレイト」と基準フォントサイズ「8ポイント」、所定の指示入力手段に指示又は入力された標準フォントサイズ、例えば「10ポイント」が印刷設定情報に当たる。また、この印刷設定情報は、印字装置における出力の際に参照される情報、又は画像処理装置が文書データを物理ページへのフォーマッティングする際に用いられる情報であり、例えば、フォントサイズ、又は、印刷の解像度、又は、有効印字領域、出力するための用紙のサイズ、印字方向、用紙の両面・片面の印字設定、トナー節約するための設定情報、ステイプルの有無などのフィニッシング処理に関する情報等も含む。
【0132】
次に、ステップS702で、リファレンス印刷指示中に記述されたURIを検索する。図6に示した例では「http://myserver.com/mydocument」がこれに当たる。
【0133】
次に、ステップS703に進み、検出したURIと印刷設定情報をHTTPフォーマットに変換することによって情報送信の準備が整う。以上の処理はリファレンス印刷指示処理部1106において処理され、以降の処理はプロトコル制御部1101における処理となる。
【0134】
そして、ステップS704では、URIで指定されたWebサーバ2000を検索し、ステップS705において、HTTPプロトコルによりWebサーバ2000ヘファイル取得要求を送信する。そして、ステップS706で、Webサーバ2000から転送されてくる文書データ(例えば、図10に示す)を受信(取得)すると、処理を終了する。
【0135】
図14は、本発明に係るサーバ装置における第1のデータ処理手順の一例を示すフローチャートであり、図7に示したWebサーバ2000の動作の開始から終了までのメイン処理手順に対応する。なお、S801〜S806は各ステップを示す。
【0136】
まず、ステップS801において、HTTPプロトコルでネットワークからのデータの受け取りを行なう。この処理は、Webサーバインタフェース2001において処理される。
【0137】
次に、ステップS802において、文書サーバ2004からURIで指定された文書情報を取り出し、さらに、ステップS803において、レイアウトに必要なリソースを取得する。
【0138】
なお、レイアウトに必要なリソースとは、例えば図9に示したスタイルシートがこれに当たる。
【0139】
次に、ステップS804において、HTTPプロトコルで通知された印刷設定情報を検出し、その後、ステップS805において、フォーマッティング処理を行なう。すなわち、ステップS802〜ステップS804で集めたページレイアウトに必要な情報とリソースを使用し、ステップS805で、実際の物理ページレイアウト処理(フォーマッティング処理)が行なわれる。
【0140】
そして、ステップS805において、フォーマッティング処理が終わると、ステップS806に進み、物理ページレイアウト済みの文書データをHTTPプロトコルを使って送信し、全ての処理を終了する。
【0141】
図15は、本発明に係るサーバ装置における第2のデータ処理手順の一例を示すフローチャートであり、図14に示したフォーマッティング処理(物理ページヘのレイアウト処理)の詳細手順に対応する。なお、S901〜S907は各ステップを示す。
【0142】
Webサーバ2000は、構造化記述言語で記述された文書データ、並びに、当該文書データ内のフォントサイズ情報と、当該文書データをページレイアウトする際、当該文字情報に設定したい、ユーザが入力したフォントサイズを用いて処理を行う。
【0143】
なお、前記フォントサイズ情報には、構造化文書が含む文字に設定された最小のフォントサイズ、又は、最も頻繁に出現する最頻出フォントサイズ、又は、処理対象である構造化文書に設定されたデフォルトのフォントサイズである基準フォントサイズ等があるが、以後、ユーザがプリンタ又はホストコンピュータの入力部から入力したフォントサイズ、詳しくは、前記文書情報が含む文字情報が示す文字を紙又は印刷プレビュー画面に出力する際にユーザが望むフォントサイズを、標準フォントサイズという。
【0144】
特定のフォントサイズ情報(例えば基準フォントサイズ)を適用されている文字列を解析手段を用いて認識し、当該フォントサイズ情報が適用されている文字列を指示入力手段により入力された標準フォントサイズで出力する。フォントサイズ情報とは、処理対象である構造化文書が含むフォントサイズに関する情報である。
【0145】
プリンタは、構造化文書に対して所定のフォントサイズ情報が適用されている場合であっても、当該文字又は文字列を、当該設定した所望のフォントサイズ(標準フォントサイズ)でページレイアウトして出力する。
【0146】
また、ページレイアウトする際、当該文字情報が示す文字に設定したい標準フォントサイズは、所定の指示入力手段により指示される。指示入力手段とは、例えば、フォントサイズを指示することが可能なプリンタ1000の操作パネル1012、プリンタ1000に接続されたホストコンピュータをキーボード9などの入力部を含む。プリンタ1000を制御するソフトウェアを搭載したホストコンピュータ3000を用いれば、遠隔的に、標準フォントサイズを入力することができる。
【0147】
さらに、例えば、工場出荷時やプリンタ設置時等に、フォントサイズをレイアウト処理に先立って記憶したプリンタ搭載の記憶部13に記憶することも考え得る。当該記憶部13に記憶されたフォントサイズを示す情報(複数)を読み出し、これらのフォントサイズを示す情報(複数)の中から選択手段を用いて所望のフォントサイズを示す情報(単数)を手動又は自動で選択指示する選択指示手段(不図示)も指示手段に含む。
【0148】
当該選択指示手段は、プリンタに備えられていてもよいし、ホストコンピュータに備えられていてもよい。当該文書データ内におけるフォントサイズ情報も、同様にホストコンピュータやプリンタ1000などにおいて、予め又は対話的に選択又は記憶部13に設定する。
【0149】
以下、図15の処理のフローを説明する。
【0150】
まず、ステップS901で、文書のフォントサイズの基準フォントを示す基準フォントサイズが適用された文字を検索する。また、本実施形態においては、文字又は文字列は、後述する図41に示すフォントサイズ指定部4200により予めプリンタの操作パネル1012又はホストコンピュータの入力部から、「基準フォントサイズ」と選択されているものとする。図6に示した例では、文書内に記述された「基準フォントサイズ(<base−font−size>8pt</base−font−size>)」、すなわち「8ポイント」の文字が、基準フォントサイズに当たる。次に、ステップS902で、「基準フォントサイズ」が適用されている文字又は文字列が操作パネル1012から指示された標準フォントサイズになるように設定する。すなわち、操作パネル1012により指示した標準フォントサイズが「10ポイント」であるとすると、「8ポイント」の文字を「10ポイント」ヘスケーリングすることになる。これにより、従来のように一々ホストコンピュータ側でアプリケーションを立ち上げて構造化文書を変更する必要がなくなり、ユーザはプリンタ側操作パネルでフォントサイズを設定して単に画像処理装置に構造化文書を送信するだけでよくなる。
【0151】
次に、ステップS903で、物理レイアウト処理を開始し、文書データを順次物理ページに割り付けて行く。そして、ステップS904で、文書データの中で文字があるかどうかを判断して、文字がないと判断した場合は、ステップS906へ進む。
【0152】
一方、ステップS904で、文字があると判断した場合は、ステップS905で、標準フォントサイズとの比率から出力すべきフォントサイズを算出しながら、ステップS906において、物理ページヘのレイアウトを進めてゆく。例えば、12ポイントの文字であれば、フォントサイズは、「12×(10÷8)ポイント」となる。このようにして、ステップS907で、文書データの終了タグが検出されると判断されるまで、ステップS904からの処理を繰り返し、文書データの終了タグが検出されたら、処理を終了する。
【0153】
なお、本実施形態では、ステップS905で、標準フォントサイズとの比率から出力すべきフォントサイズを算出して、該比率に応じたフォントサイズで文字を出力する場合について説明したが、基準フォントサイズ以外の全ての文字も標準フォントサイズで出力するように構成してもよい。
【0154】
次に、本実施形態による出力結果の具体例について図16〜図18を参照して説明する。
【0155】
図16〜図18は、本発明の第1実施形態における文書データ出力処理結果を説明する図であり、図16は、ページの概念のない構造化記述言語で記述された文書をブラウザで表示させた例であり、図17は、標準フォントサイズに「12ポイント」を指定した場合の出力結果であり、図18は、標準フォントサイズに「8ポイント」を指定した場合の出力結果である。
【0156】
この図17に示すように、標準フォントサイズに「12ポイント」を指定した場合には、老人や子供にも見やすく、文字が大きくゆったりとレイアウトされ、これに対して、図18に示したように、標準フォントサイズに「8ポイント」を指定した場合は、文字が小さく、一枚の用紙にたくさんの情報を含むことができる緻密なレイアウトで出力されるようにすることが望ましい。
【0157】
〔第2実施形態〕
上記第1実施形態では、文書サーバ2004に格納されている文書の記述言語にXMLを用いた例を説明したが、本実施形態ではHTMLを用いた例を、図19、図20を用いて説明する。
【0158】
図19は、本発明の第2実施形態を示すサーバ装置におけるデータ処理手順を説明するフローチャートであり、Webサーバ2000の動作の開始から終了までのメイン処理に対応する。なお、S1601〜S1605は各ステップを示す。
【0159】
まずステップS1601において、HTTPプロトコルでネットワークからのデータの受け取りを行なう。この処理はWebサーバインタフェース2001において処理される。
【0160】
次に、ステップS1602において、文書サーバ2004からURIで指定された文書を取り出す。上記第1実施形態では、ここでレイアウトに必要なリソースの取得処理を行なったが、HTMLはレイアウト情報を含んでいるため処理は必要でない。次に、ステップS1603において、HTTPプロトコルで通知された印刷設定情報を検出し、その後、ステップS1604において、フォーマッティング処理を行なう。すなわち、ステップS1602と、ステップS1603の処理によって得られた情報だけで、実際の物理ページレイアウト処理が行なわれる。
【0161】
なお、S1604のフォーマッティング処理は、第1実施形態と同様であるので説明は省略する。
【0162】
そして、ステップS1604において処理が終わると、ステップS1605に進み、物理ページレイアウト済みの文書をHTTPプロトコルを使って送信し、全ての処理を終了する。
【0163】
本実施形態で用いたHTMLによる文書データの具体例を図20に示す。
【0164】
図20は、本発明の第2実施形態を示すサーバ装置において処理されるHTMLによる文書データの具体例を示す図である。
【0165】
図20において、3行目の<H1>タグは、最も大きなフォントでの表示を定義している。このようにHTMLは記述言語自体にレイアウト情報を含んでいるため第1実施形態に比べて処理手順を簡略化することができる。
【0166】
〔第3実施形態〕
上記第1実施形態では、フォーマッティング処理を本実施形態ではWebサバ側で行なう例を説明したが、本実施形態では印刷装置側でフォーマッティング処理を行なう例を図21,図22を用いて説明する。
【0167】
図21は、本発明の第3実施形態を示す画像処理装置の構成を説明するブロック図であり、図3と同一のものには同一の符号を付してある。
【0168】
図21において、プリンタ1000は、大きく分けてフォーマッタ制御部1100、プリンタインタフェース1200、出力制御部1300、プリンタエンジン部1400より構成されている。
【0169】
フォーマッタ制御部1100は、プロトコル制御部1101、文書データ解析部1103、データ描画部1104、ページメモリ1105、物理レイアウト処理部1107より構成されている。
【0170】
プリンタインタフェース(プリンタI/F)1200は、外部との入出力のための手段である。
【0171】
プロトコル制御部1101は、ネットワークプロトコルを解析・送信することによって外部との通信を行なう手段である。物理レイアウト処理部1107は構造化記述言語の物理ページヘの割り付け、すなわちフォーマッティング処理を行なう手段である。
【0172】
文書データ解析部1103は、構造化記述言語で記述された文書データを解析し、より処理しやすい形式の中間コードに変換する手段である。文書データ解析部1103において生成された中間コードはデータ描画部1104に渡されて処理される。
【0173】
データ描画部1104は、上記中間コードをビットマップデータに展開するものであり、展開されたビットマップデータはページメモリ1105に逐次描画されて行く。なお、一般的には、フォーマッタ制御部1100は、CPU、ROM、RAMなどを用いたコンピュータシステムによって構成されている。出力制御部1300は、ページメモリ1105の内容をビデオ信号に変換処理し、プリンタエンジン部1400へ画像転送を行なう。
【0174】
プリンタエンジン部1400は受け取ったビデオ信号を記録紙に永久可視画像形成するための印刷機構部である。
【0175】
図22は、本発明に係る画像処理装置における第4のデータ処理手順の一例を示すフローチャートであり、図21に示した、本実施形態におけるプリンタ1000の動作の開始から終了までのメイン処理手順に対応する。なお、S2201〜S2205は各ステップを示すが、ステップS2203のフォーマッティング処理およびステップS2204の描画処理の詳細手順についてはそれぞれ第1実施形態で説明した処理と同様であるのでここでは説明を省略する。
【0176】
まず、ステップS2201で、プリンタインタフェース1200を通してネットワークからのデータの受け取りを行なう。なお、予めリファレンス印刷指示に基づいて該リファレンス印刷指示中に記述されたURI(図6に示した例では「http://myserver.com/mydocument」)で指定された構造化記述言語で記述された文書データ(例えばHTMLで記載された文書情報)をWebサーバ2000に要求済みであるとし、ここで受け取るデータは、予め受信しておいたリファレンス印刷指示中に記述されたURIで指定された文書データ(例えばHTML等の構造化記述言語で記述された文書データ)となる。なお、この文書データは、例えば図8に示したXMLで記載された文書データ及び該文書データのレイアウトに必要なリソース(例えば図9)であってもよい。
【0177】
次に、ステップS2202で、プロトコルの解析を行なった後、ステップS2203において、フォーマッティング処理、すなわち物理ページヘの割り付けを行なう。その後、ステップS2204に進んで描画処理を行なう。
【0178】
その後、ステップS2205で、文書データが終了したか否かを判断し、文書データ終了であると判断した場合は、印刷動作を終了する。
【0179】
一方、ステップS2205で、文書データ終了でないと判断した場合は、ステップS2201からの処理を繰り返す。
【0180】
なお、上記第1実施形態において、基準となるフォントサイズをリファレンス印刷指示により指定しているが、操作パネルからの指定など他の指定方法であっても良い。
【0181】
また、上記第3実施形態において、基準となるフォントサイズの指定は文書データと共に指定することも可能である。
【0182】
例えば、予め基準フォントサイズを文書データに付加しておけば基準フォントサイズが指定されない場合の初期値として設定しておくことができる。
【0183】
上記第1から第3実施形態では、ポイントサイズによりページレイアウトする際の標準フォントサイズを指定したが、例えば「大」,「中」,「小」のように簡略化することも可能である。この場合、「大」=8ポイント、「中」=10ポイント、「小」=12ポイントのように予めポイントサイズとの関連付けを行なっておくことにより実現することができる。
【0184】
また、上記第1実施形態において、リファレンス印刷指示には構造化記述言語で記述する例を述べたが、構造化記述言語の文書データを出力指示するものであれば必ずしも構造化記述言語で記述する必要はない。例えば、HTTPプロトコルだけで指示することも可能である。
【0185】
さらに、第1実施形態において、文書サーバをWebサーバの構成要素とした例を述べたが、文書サーバは外部にあっても構わない。例えば、他のパソコンのハードディスクであっても良い。
【0186】
また、第1実施形態では、リファレンス印刷指示で指示された情報の中から物理ページレイアウトに関係する情報を通知したが、レイアウト時に参照する情報であればリファレンス印刷指示で指示されない情報を通知しても良い。
【0187】
例えば、印刷装置固有の解像度を通知することでさらに厳密な物理ページレイアウトを行なうことができる。
【0188】
なお、上記第1〜第3実施形態を組み合わせて、その処理をサーバ装置の資源の違いや、データ処理能力に合わせて切り換えて、ユーザが指示した文書情報を効率よく展開し、かつ、高速に印刷処理できるように構成してもよい。
【0189】
また、本発明に係る各手段を備える画像処理装置とサーバ装置あるいは各ステップを実行可能な画像処理装置とサーバ装置とから、例えば印刷システムを構築することも本発明の適用範囲である。これにより、任意に指定された文字サイズを基準としてフォーマッティングを行なうことによって自由度の高いページレイアウトを実現し、高齢者から子供まで好みに応じた出力を選択することのできる印刷システムを提供することが可能となる。
【0190】
以上のように、所定の構造化記述言語で記述された文書情報を解析する際に、指示されたフォントサイズ(基準フォントサイズ及び標準フォントサイズ)に基づいてサーバ装置より取得される文書情報を物理ページヘ割り付けるので、ユーザが指定した特定の文字サイズを基準として取得される所定の構造化記述言語で記述された文書情報をレイアウト可能として、自由度の高いページレイアウトを実現し、高齢者から子供まで好みに応じた出力を選択することができる。
【0191】
また、任意のサーバ装置に送信すべきリファレンス印刷指示にユーザ指定されるフォントサイズ(基準フォントサイズ及び標準フォントサイズ)を印刷設定情報として文書情報取得先のサーバ装置に送信して、該印刷設定情報に従ってサーバ装置でレイアウトされた文書情報を取得して出力するので、画像処理装置側の描画負担を強いることなく、ユーザの好みのサイズでページレイアウトした種々の文書情報を画像出力することができる。
【0192】
従って、取得しようとしているサーバ装置で管理される文書情報に設定されている各文字に対する文字サイズを、ユーザが意図する文字サイズを基準として、文字サイズが再スケールされたサイズ文書情報を画像処理装置あるいはサーバ装置でページレイアウト可能となり、高齢者から子供まで好みに応じたサイズでレイアウトされた最適な文書情報出力を容易に得ることができる画像処理システム環境を自在に構築することができる等の優れた効果を奏する。
【0193】
〔第4実施形態〕
上記第1〜第3実施形態では、リファレンス印刷指示等で指示された構造化記述言語を用いて記述した文書データ内の基準フォントサイズを標準フォントサイズに変換して出力する構成について説明したが、構造化記述言語を用いて記述した文書データの最小文字サイズを標準フォントサイズに変換して出力するように構成してもよい。以下、その実施形態について説明する。
【0194】
図23は、本発明に係る画像処理装置における第5のデータ処理手順の一例を示すフローチャートであり、図22のステップS2203に示したフォーマッティング処理、即ち物理レイアウト処理部1107における物理ページへのレイアウト処理の詳細を示すものである。なお、S2401〜S2407は各ステップを示す。また、このフォーマッティング処理は、Webサーバ2000側で行うように構成してもよい(即ち、図14のステップS805に示したフォーマッティング処理としてもよい)。
【0195】
以下では、先の実施形態との差分を示す。基準フォントサイズ情報として、最小フォントサイズを選択した場合を説明する。つまり、構造化記述言語を用いて記述した文書データから最小文字サイズと、最小フォントサイズを適用された文字等を認識する。認識された最小文字サイズと、所定の指示手段で指示された標準フォントサイズを用いて、最小文字サイズが適用された文字又は文字列を当該指示された標準フォントサイズで出力すべく、文書データが含む文字情報のフォントサイズを変倍してレイアウトする。
【0196】
まず、ステップS2401で文書データを先頭から検索し、文字データを認識し、検出した時点でその文字サイズを算出し、ステップS2402で該算出した文字サイズを保存する。そして、ステップS2403で全ての文書データの検索が終了したか否かを判定し、終了するまでステップS2401〜S2402の処理を繰り返すことにより、文書中に使用されている文字サイズのリストが完成する。
【0197】
ステップS2403で全ての文書データの検索が終了した場合にはステップS2404に進み、保存された文字サイズのリストを用いて、最小の文字サイズminを検出して認識する。そしてステップS2405において、検出された最小文字サイズminを標準フォントサイズ(この例では、「8ポイント」)と見立てた場合の拡大率を算出する。この出力されるフォントサイズである標準フォントサイズ(「8ポイント」という数字)は、プリンタ1000の操作パネル1012上の画面(グラフィカルユーザインタフェース(例えば、後述する図41に示すフォントサイズ指定部4200))によって指示入力されるか、又はホストコンピュータのCRT10の画面のグラフィカルユーザインタフェース(図41に示すフォントサイズ指定部4200を用いて後述する)によってネットワークを介してプリンタの入力部18を介して指示入力され、例えばRAM19に保持されるものとする。
【0198】
この拡大率が物理レイアウトの基準となるため、ステップS2406ではこの拡大率を用いて、文書の先頭から順次、物理ページへの割り付けを行なう。
【0199】
そしてステップS2407において、全ての文書データに対して物理ページへの割り付けが終了したか否かを判断し、終了するまでステップS2406の割り付け処理を繰り返す。
【0200】
以下、上述した図23に示すフォーマッティング処理の具体例を示す。
【0201】
ステップS2401〜S2403によって、文書中に使用されている文字サイズとして例えば、「6ポイント」,「8ポイント」,「10ポイント」がリストされた場合、ステップS2404では最小文字サイズminとして「6ポイント」が検出される。するとステップS2405において、これを標準フォントサイズである「8ポイント」とするための拡大率が「8/6倍」として算出される。従って、リストされた他の「8ポイント」,「10ポイント」の文字サイズはそれぞれ、「8×(8/6)ポイント」,「10×(8/6)ポイント」で物理ページに割り付けられる。なお、文字のみでなくテーブルやボーダーライン等、他の図形(オブジェクト)についてもこの拡大率(上記例では「8/6」)を掛け合わせることによって、物理ページへ割り付けられる。
【0202】
以下、図24〜図26を参照して、本実施形態におけるフォーマッティング処理結果の具体例を示す。
【0203】
図24は、HTMLによって記述された入力文書データの一例を示す図であり、図25は、図24に示した入力文書データにフォーマッティング処理を施すことによって変換されるページレイアウト可能なデータの一例を示す図であり、図26は、図25に示す文書データを実際に印刷した結果の一例を示す模式図である。
【0204】
この例によれば、図24に「<font−size……table 1</font></P>」と示されるように、最小文字(“table 1”)のサイズは「4ポイント」であるから、拡大率は「8/4=2倍」として算出される。
【0205】
従って、図24において“<Hl>”のタグで示されるタイトル文字(“Sample”)のサイズが14ポイント、その他の文字(“this document・browser.”)の基準フォントサイズが規定値である「6ポイント」であるとすると、図25によれば、タイトルの文字サイズが「28ポイント」、その他の文字サイズが「12ポイント」、そして最小文字サイズが「8ポイント」として変換されていることが分かる。また、テーブルオブジェクトについてもこの拡大率(2倍)が適用されるため、テーブルが2分割でページ内に割りつけられていることが分かる。
【0206】
以上説明した様に本実施形態によれば、構造化記述言語をフォーマッティングする際に、フォントサイズ情報である最小文字サイズに基づいて物理レイアウトをすることによって、ページ内への適切な割り付けが可能となる。
【0207】
なお、本実施形態における拡大率の算出は、構造化記述言語内において検出された最小文字サイズminを「8ポイント」に拡大する場合について説明したが、本発明はこの例に限定されず、他のサイズ(所定の指示手段によって指示された標準フォントサイズ)に拡大するように拡大率を算出する場合でも、同様に適用される。
【0208】
また、算出された拡大率に基づいて文字サイズを決定する際に、単に拡大率を乗じるだけでなく、更に適切なポイント数(システムにおいて通常使用されるポイント数)へ切り上げ等の最適化処理を施すように構成しても良い。
【0209】
〔第5実施形態〕
上述した第4実施形態においては、予め又は対話的に設定したフォントサイズ情報として最小文字サイズを認識して用いる構成について説明したが、該基準値をオブジェクトの最大幅に基づいて設定するように構成してもよい。なお、ここでオブジェクトとは文字以外の描画図形を指し、HTML文書ではテーブルやイメージ等がこれにあたる。以下、その実施形態について説明する。
【0210】
図27は、本発明に係る画像処理装置における第6のデータ処理手順の一例を示すフローチャートであり、図22のステップS2203に示したフォーマッティング処理、即ち物理レイアウト処理部1107における物理ページへのレイアウト処理の詳細を示すものである。なお、S2501〜S2509は各ステップを示す。また、このフォーマッティング処理は、Webサーバ2000側で行うように構成してもよい(即ち、図14のステップS805に示したフォーマッティング処理としてもよい)。さらに、本実施形態におけるシステム構成、及び印刷動作のメイン処理、描画処理については、上述した第4実施形態と同様であるため、説明を省略する。以下、前述の実施形態との差分を示す。
【0211】
まずステップS2501において文書データを先頭から検索し、文字以外のオブジェクトを検索する。例えばHTMLであれば、“<table>“や“<img>”というタグを検索すれば良い。
【0212】
次にステップS2502において、検出したオブジェクトの幅を算出する。例えばオブジェクトがテーブルであれば、該テーブルに指定された幅情報、もしくはテーブル内に記述される文字サイズに基づいて幅が算出できる。また、イメージであれば、データフォーマットのヘッダに記述される画像情報に基づいて幅が算出できる。
【0213】
そしてステップS2503において、全ての文書データの検索が終了したか否かを判定し、終了するまでステップS2501〜S2502の処理を繰り返すことにより、文書中に使用されているオブジェクトの幅のリストが完成する。
【0214】
ステップS2503で全ての文書データの検索が終了した場合にはステップS2504に進み、保存されたオブジェクト幅のリストから、最大のオブジェクト幅maxを検出する。そしてステップS2505において、検出された最大オブジェクト幅maxをページ幅と比較する。ここでページ幅とは、記録紙内において物理的に印字可能となる主走査方向の長さを指す。
【0215】
最大オブジェクト幅maxがページ幅以下であればステップS2507に進み、縮小率を1に設定する。一方、最大オブジェクト幅maxがページ幅よりも大きければステップS2506に進み、最大オブジェクト幅maxをページ幅とみなした場合の縮小率を算出する。このようにして求められた縮小率が物理レイアウトの基準となるため、ステップS2508ではこの縮小率を用いて、文書の先頭から順次、物理ページへの割り付けを行なう。
【0216】
そしてステップS2509において、全ての文書データに対して物理ページへの割り付けが終了したか否かを判断し、終了するまでステップS2508の割り付け処理を繰り返す。
【0217】
なお、文字以外のオブジェクトを備えない、即ち全てが文字によって構成されている文書データについては、ステップS2501においてオブジェクトが検出されない。このような場合、図27のフローチャートには特に示していないが、縮小率を1に設定して、物理ページへの割り付け処理を行なう。そのために例えば、ステップS2501でオブジェクトが検出されなかった場合、オブジェクト最大幅maxを最小値(例えば「0」)に設定するステップを設ければ良い。
【0218】
以下、上記図27に示すフォーマッティング処理の具体例を示す。
【0219】
ステップS2501〜S2503によって、文書中に使用されているオブジェクト幅として例えば、「2000ドット」,「5000ドット」がリストされた場合、ステップS2504では最大オブジェクトサイズmaxとして「5000ドット」が検出される。
【0220】
一方、記録紙がA4サイズ、プリンタ解像度が600dpiであれば、該記録紙を縦に搬送する場合のページ幅は「4720ドット」である。するとステップS2505において最大オブジェクトサイズmax(5000)がページ幅(4720)よりも大きいため、ステップS2506で縮小率が「4720/5000」として算出される。なお、オブジェクトのみでなく文字についてもこの縮小率を掛け合わせることによって、物理ページへ割り付けられる。
【0221】
以下、図28,図29を参照して、さらに本実施形態におけるフォーマッティング処理結果の具体例を示す。
【0222】
図28は、上記第4実施形態で図24に示したHTMLの入力文書データに図27に示したフォーマッティング処理を施した変換結果(文書データ)の一例を示す図であり、図29は、図28に示した文書データの実際の印刷結果の一例を示す模式図である。
【0223】
図28及び図29によれば、最大幅を有するオブジェクトであるテーブルがページ内に適切に割りつけられ、文字サイズが第4実施形態に示した図26よりも小さくなっていることが分かる。
【0224】
以上説明した様に本発明の第5実施形態によれば、構造化記述言語をフォーマッティングする際に、値を最大オブジェクト幅に基づいて物理レイアウトすることによって、ページ内への適切な割り付けが可能となる。
【0225】
〔第6実施形態〕
上述した第4実施形態においては、予め又は対話的に設定したフォントサイズ情報として最小文字サイズを認識して用いる構成について説明したが、予め又は対話的に設定できるフォントサイズ情報として、物理レイアウトの基準値として最も使用頻度の高い文字サイズである最頻出フォントサイズを用いて設定するように構成してもよい。以下、その実施形態について説明する。
【0226】
図30は、本発明に係る画像処理装置における第7のデータ処理手順の一例を示すフローチャートであり、図22のステップS2203に示したフォーマッティング処理、即ち物理レイアウト処理部1107における物理ページへのレイアウト処理の詳細を示すものである。なお、S2601〜S2607は各ステップを示す。また、このフォーマッティング処理は、Webサーバ2000側で行うように構成してもよい(即ち、図14のステップS805に示したフォーマッティング処理としてもよい)。さらに、本実施形態におけるシステム構成、及び印刷動作のメイン処理、描画処理については、上述した第4実施形態と同様であるため、説明を省略する。以下、前述の実施形態との差分を示す。
【0227】
まずステップS2601において文書データを先頭から検索し、文字データを検出した時点でその文字サイズを算出し、ステップS2602で文字サイズ毎の文字数をカウントして保存する。そして、ステップ803で全ての文書データの検索が終了したか否かを判定し、終了するまでステップS2601〜S2602の処理を繰り返すことにより、文書中に使用されている文字サイズ及びその文字数のリストが完成する。
【0228】
ステップS2603で全ての文書データの検索が終了した場合にはステップS2604に進み、保存された文字サイズのリストから、最も文字数の多い、即ち最頻出の文字サイズ(freq)を検出する。そしてステップS2605において、認識された最頻出文字サイズ(freq)を標準フォントサイズ(この例では、「10ポイント」)と見立てた場合の拡大率を算出する。この拡大率が物理レイアウトの基準となるため、ステップS2606ではこの拡大率を用いて、文書の先頭から順次、物理ページへの割り付けを行なう。
【0229】
そしてステップS2607において、全ての文書データに対して物理ページへの割り付けが終了したか否かを判断し、終了するまでステップS2606の割り付け処理を繰り返す。
【0230】
以下、上記図30に示したフォーマッティング処理の具体例を示す。
【0231】
ステップS2601〜S2603によって、例えば文書中に使用されている文字サイズとして「8ポイント」が10文字、「10ポイント」が400文字、「20ポイント」が8文字リストされた場合、ステップS2604では最頻出文字サイズ(freq)として「10ポイント」が検出される。するとステップS2605において、これを予めユーザから指示された標準フォントサイズである「10ポイント」とするための拡大率が「10/10倍(=1倍)」として算出される。従って、リストされた他の「8ポイント」,「20ポイント」の文字サイズもそれぞれ、「8ポイント」,「20ポイント」で物理ページに割り付けられる。なお、文字のみでなくテーブルやボーダーライン等、他の図形(オブジェクト)についてもこの拡大率(上記例では1倍)を掛け合わせることによって、物理ページへ割り付けられる。
【0232】
以下、図31,図32を参照して、さらに本実施形態におけるフォーマッティング処理結果の具体例を示す。
【0233】
図31は、第4実施形態で図24に示したHTMLの入力文書データに対して本実施形態のフォーマッティング処理を施して変換した結果(文書データ)の一例を示す図であり、図32は、図31に示した文書データの実際の印刷結果の一例を示す模式図である。
【0234】
この例によれば、図24に示した最頻出文字サイズ(“this document・browser.“)は先に述べた様に、基準フォントサイズが規定値の「6ポイント」として設定されているから、拡大率は「10/6」倍として算出される。従って、図24におけるタイトル文字(“Sample“)のサイズが「14ポイント」、最小文字(“table 1“)のサイズが「4ポイント」であるから、図31によれば、最頻出文字サイズが「10ポイント」、タイトルの文字サイズが「14×10/6=23.33(23)ポイント」、最小文字サイズが「4×10/6=6.66(7)ポイント」として変換されていることが分かる。また、最大幅を有するテーブルオブジェクトについてもこの拡大率(10/6倍)が適用されて、図32に示すように、かろうじてページ内に割りつけられていることが分かる。
【0235】
以上説明した様に第6実施形態によれば、構造化記述言語をフォーマッティングする際に、を最頻出文字サイズに基づいて物理レイアウトをすることによって、ページ内への適切な割り付けが可能となる。
【0236】
なお、本実施形態における拡大率の算出も第4実施形態と同様に、検出された最頻出文字サイズ(freq)を10ポイントに拡大する例に限定されず、他のサイズ(所定の指示手段によって指示された標準フォントサイズ)への拡大を想定しても同様に適用される。また、文字サイズの変換の際にも、拡大率を乗じるのみならず、適切なポイント数への切り上げ等の最適化処理を施すように構成してもよい。
【0237】
なお、第5実施形態では、文字を最小文字サイズと標準フォントサイズとの比率に基づくサイズで出力したが、第6実施形態のように、最頻出文字サイズと標準フォントサイズとの比率、又は第3実施形態のように基準フォントサイズと標準フォントサイズとの比率に基づくサイズで出力するように構成してもよい。
【0238】
〔第7実施形態〕
上記第4〜第6実施形態では文字サイズもしくはオブジェクトの最大幅を認識してページ全体の拡大率を算出する構成について説明したが、文字とオブジェクトそれぞれに異なる拡大率を用いるように構成してもよい。以下、その実施形態について、図33〜図38を用いて説明する。
【0239】
図33は、本発明に係る画像処理装置における第8のデータ処理手順の一例を示すフローチャートであり、図22のステップS2203に示したフォーマッティング処理、即ち物理レイアウト処理部1107における物理ページへのレイアウト処理の詳細を示すものである。なお、S3401〜S3408は各ステップを示す。また、このフォーマッティング処理は、Webサーバ2000側で行うように構成してもよい(即ち、図14のステップS805に示したフォーマッティング処理としてもよい)。さらに、本実施形態におけるシステム構成、及び印刷動作のメイン処理、描画処理については、上述した第4実施形態と同様であるため、説明を省略する。以下、前述の実施形態との差分を示す。また、本実施形態では、上記第4実施形態等(図23等)で説明した最小文字サイズを認識してこれを基準に拡大率を算出する例について説明するが、文字サイズから拡大率を算出するのであれば、例えば上記第6実施形態(図30)で示したように、最多頻度の文字サイズを認識し、拡大率を算出しても良い。以下、これまで述べた実施形態との差分を示す。
【0240】
まず、ステップS3401で文書データを頭から検索し、文字データを検出した時点で使用されている文字サイズ(特に、最小文字サイズ(min))を算出する。次にステップS3402において検出された最小文字サイズ(min)を標準文字サイズ(この例では「8ポイント」)と見立てた場合の拡大率(以下、基準拡大率と呼ぶ)を算出する。基準拡大率は物理レイアウト時に文字・図形・イメージ全ての描画処理に原則的に適用される拡大率であり、ステップS3401で検出された最大文字サイズが「6ポイント」であった場合には「8/6」が基準拡大率となる。原則的と述べたのは、図形・画像処理の場合には、特定の拡大率に変更するからである。図形・画像処理については後述する。
【0241】
基準拡大率を算出した後、ステップS3403において文書の頭から文書記述内容の解析を行なう。解析した記述が文字の描画である場合(ステップS3404)にはステップS3405に進み、基準拡大率を文字サイズ、文字ピッチに乗算した上で物理ページへレイアウトを行なう。
【0242】
一方、ステップS3404において解析した記述が文字の描画でない場合にはさらにステップS3406に進み、図形または画像の描画であるか否かを判断する。図形または画像の描画である場合にはステップS3407に進んで図形・画像用の処理を行なう。このようにステップS3403〜ステップS3407の処理を文書全ての解析と物理ページへの割り付けが終了するまで繰り返す(ステップS3408)。
【0243】
図34は、本発明に係る画像処理装置における第9のデータ処理手順の一例を示すフローチャートであり、図33のステップS3407に示した図形・画像処理に対応する。この処理は図形または画像を物理ページへ割り付ける処理である。以下、図形と画像を総称してオブジェクトと呼ぶ。なお、S3501〜S3505は各ステップを示す。また、図33に示したフォーマッティング処理がWebサーバ2000側で行われる場合には、この図形・画像処理もWebサーバ2000側で行われる。
【0244】
まずステップS3501において、オブジェクトの幅を算出する。ここでオブジェクトの幅は、例えばテーブルであればテーブルに指定された幅情報もしくはテーブルの中に記述される文字サイズから、イメージであればデータフォーマットのヘッダに記述される画像情報から幅を算出することが可能である。
【0245】
次にステップS3502において、図33のステップS3402で算出した基準拡大率を掛けてオブジェクトの右端を算出する。具体的には、オブジェクトの描画開始位置とオブジェクトの幅の和に、基準拡大率を乗じた値でオブジェクトの右端が求まる。次にステップS3503において、オブジェクトの右端がページ右端より大きいか、すなわちオブジェクトがページ右端からはみ出すか否かを判定する。ここでオブジェクトがページ右端からはみ出す場合にはさらにステップS3504に進み、オブジェクト右端をページ右端とした場合の拡大率(以下、obj−mag)を算出する。具体的には、ページ右端とオブジェクトの描画開始位置の差をオブジェクト幅で割った値が「obj−mag」である。
【0246】
一方、ステップS3502において、オブジェクトがページ右端からはみ出さない場合には、ステップS3506において「obj−mag」には「1」をセットしておく。
【0247】
最後にステップS3505において、オブジェクトを「obj−mag」倍でスケーリングしながら物理ページへの割り付けを行なう。すなわち、文字サイズから算出された拡大率を適用して図形や画像が用紙からはみ出してしまう場合に、図形と画像についてのみ個別に拡大率を変えることによって強制的に同一ページに押し込めることによって画が切れて出力されるのを防止することができ、体裁のよいページレイアウトが実現できる。
【0248】
以下、図35〜図37を参照して、本実施形態の具体例を示す。
【0249】
図35は、Webブラウザでの表示された文書の一例を示す図であり、文字列に混じって画像データが張り付けられたものに対応する。
【0250】
図36,図37は、図35の実際の印刷装置での印字結果の一例を示す図であり、特に図36は文字だけを考慮した拡大率適用による印字結果に対応し、図37は文字と画像の両方を考慮して文字とオブジェクトそれぞれに異なる拡大率を用いた印字結果に対応する。
【0251】
上記第4実施形態〜第6実施形態等で示したフォーマッティング処理を図35に示した全てのオブジェクトに適用する手法では、図36に示すようにページからはみ出してしまうケースが発生する。
【0252】
そこで、本実施形態によるレイアウト処理では、文字と画像の両方を考慮して文字とオブジェクトそれぞれに異なる拡大率を用いたので、図37に示すように、文字を拡大した場合でも画像データがページに収まって見栄えの良い出力を得ることができる。
【0253】
〔第8実施形態〕
上記第7実施形態では、文字にのみ予め基準を指示し、ページからはみ出る場合のみ個別にオブジェクトの拡大率を算出する構成について示したが、文字とオブジェクトそれぞれに予め基準を指示することにより拡大率の外部からの制御を可能にするように構成してもよい、以下、その実施形態について、図38を参照して説明する。
【0254】
図38は、本実施形態におけるリファレンス印刷指示の一例を示す図である。
【0255】
各項目の内容については前述の実施形態で説明済みであるが、図38では標準フォントサイズに加えてオブジェクトの拡大率<object−mag>を指定している。<object−mag>に“small”が指定されており、これは、すなわちオブジェクトの拡大率に「小さめ」を指示したものである。
【0256】
図39は、本発明に係る画像処理装置における第10のデータ処理手順の一例を示すフローチャートであり、図22のステップS2203に示したフォーマッティング処理、即ち物理レイアウト処理部1107における物理ページへのレイアウト処理の詳細を示すものである。なお、S3601〜S3608は各ステップを示す。また、このフォーマッティング処理は、Webサーバ2000側で行うように構成してもよい(即ち、図14のステップS805に示したフォーマッティング処理としてもよい)。さらに、本実施形態におけるシステム構成、及び印刷動作のメイン処理、描画処理については、上述した第4実施形態と同様であるため、説明を省略する。以下、前述の実施形態との差分を示す。
【0257】
まず、ステップS3601において、文字基準拡大率を算出する。この算出方法については上記実施形態で説明した通りであるので詳細は割愛する。
【0258】
次にステップS3602に進み、同様にオブジェクト基準拡大率を算出する。オブジェクト基準拡大率は図38に示した指定(オブジェクトの拡大率が“small”「小さめ」)の場合、例えば文字基準拡大率に「3/4」を乗算することで算出する。この「3/4」という数値は“small”に対して予め保持されている数値であり、この他に、オブジェクトの拡大率が“middle”「中」の場合は「1」,オブジェクトの拡大率が“big”「大きめ」の場合は「4/3」のように予め特定の文字列に対して一対一で数値を保持しているものとする。
【0259】
このように文字基準拡大率とオブジェクト基準拡大率を算出した後、ステップS3603に進んで文書の頭から文書記述内容の解析を行なう。解析した記述が文字の描画である場合(ステップS3604)にはステップS3605に進み、基準拡大率を文字サイズ、文字ピッチに乗算した上で物理ページへレイアウトを行なう。
【0260】
一方、ステップS3604において解析した記述が文字の描画でない場合にはさらにステップS3606に進み、図形または画像の描画であるか否かを判断する。図形または画像の描画である場合にはステップS3607に進み、描画位置および幅・高さにオブジェクト基準拡大率を乗算して物理ページへの割り付けを行なう。
【0261】
このようにステップS3603〜ステップS3607の処理を文書全ての解析と物理ページへの割り付けが終了するまで繰り返す(ステップS3608)。
【0262】
以下、図40を参照して、本実施形態の具体例を示す。
【0263】
図40は、図35に示した文書の本実施形態における印字結果の一例を示す模式図である。
【0264】
図に示すように、文字が「8/6」倍に拡大されてレイアウトされている一方で、画像は「(8/6)×(3/4)=1」倍でレイアウトされていることがわかる。
【0265】
以上のように、前述した実施形態の機能を実現するソフトウエアのプログラムコードを記録した記憶媒体を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読出し実行することによっても、本発明の目的が達成されることは言うまでもない。
【0266】
〔第9実施形態〕
以下、本発明に係る第9実施形態について説明する。
【0267】
第9実施形態においては、上述した第3〜第8実施形態に示したフォーマッティング処理の全て又は一部の中からいずれかを任意に選択可能とするようにことを特徴とする。即ち、第9実施形態におけるシステム構成、及び印刷動作のメイン処理、描画処理については、上述した第4実施形態と同様であるが、フォーマッティング処理における物理レイアウトの基準値を、最小文字サイズ、最大オブジェクト幅、又は最頻出文字サイズのいずれかに基づいて設定することを特徴とする。
【0268】
具体的には、プリンタ1000の操作パネル1012において、ユーザがフォーマッティングの基準値として上記3種類のいずれかを選択する、即ち、上記各実施形態に対応するレイアウト方法のいずれかを選択できるように構成すれば良い。
【0269】
図41は、図1に示したプリンタ1000の操作パネル1012に表示し得る画面の一例を示す模式図であり、フォントサイズを指示入力できるフォントサイズ指定部4200に対応する。
【0270】
なお、この画面は、プリンタ1000にネットワーク接続したホストコンピュータ3000のCRT10に表示されてもよい。
【0271】
ホストコンピュータ3000のCRT10からマウスやKB9を用いてフォントサイズを指定し、当該指定されたフォントサイズが、プリンタの出力すべきフォントサイズの指示入力部に対して入力されてもよい。
【0272】
フォントサイズ指定部4200において、4201はOKボタンで、フォントサイズ指定が終了すると押下され、フォントサイズ指定が有効と成る。4202はキャンセルボタンで、押下されるとフォントサイズ指定が無効となる。
【0273】
4203,4204,4209,4210は、それぞれフォントサイズ指定を行いたい文字又は文字列を選択する選択手段であり、すべての文字,最頻出文字,最小文字,基準文字に対応する。4205はフォントサイズ指定フィールドで、選択手段4203,4204,4209,4210によって選択された(この図は「最小」と表示された選択手段4204、即ち最小フォントサイズが選択されている)文字を出力するためのフォントサイズ(即ち、標準フォントサイズ)を入力出来る。なお、フォントサイズ指定フィールド4205に入力がない場合は、フォントサイズ指定フィールド4205,選択手段4203,4204,4209の指定は無効となる。
【0274】
フォントサイズ指定フィールド4205,選択手段4203,4204,4209,4210により、フォントの拡大を構造文書が含むどのフォントサイズ情報によって決定するかを選択する。なお、「すべての」と表示された選択手段4209を選択すると、どのフォントサイズ情報が適用されていても、フォントサイズ指定フィールド4205に指定されたフォントサイズで出力する。
【0275】
4206,4207,4208は、基準フォントを変更するボタンであり、スタイルシートを変更する。例えば「大」と表示されたボタン4206を押すと、基準フォントサイズを定義したスタイルシートのフォントサイズを大きなサイズに変更する。
【0276】
よって、フォントサイズ指定フィールド4205,選択手段4203,4204,4209の指定は無効の場合には、基準フォントサイズを定義したスタイルシートを適用される文字列が、基準フォントサイズが予め定められた比較的大きなサイズで出力される。ただし、スタイルシートで定義された基準フォントサイズの適用を除外され、個別にフォントサイズを指定している部分には影響がない。
【0277】
一方、フォントサイズ指定フィールド4205,選択手段4203,4204,4209の指定は無効の場合、例えば「最小」と表示された選択手段4204を選択し、かつフォントサイズ指定フィールドで「12」ポイントを指定した場合では、スタイルシートに関係なく(即ち、ボタン4206,4207,4208の選択に関係なく)、最小フォントサイズが「12」ポイント以上で出力される。これにより、構造化文書におけるスタイルシートの適用の有無に関わらず、高齢者などに確実に読みやすい画像を出力することができる。
【0278】
また、選択した基準値に基づくフォーマッティング結果を、ホストコンピュータ3000に接続されたCRT10においてページ単位にプレビューできるようにすれば、更に操作性が向上する。このフォーマッティング処理をホストコンピュータ3000で行っても(即ち、ホストコンピュータ3000内で図15,図23,図27,図30,図33,図34,図39に示す処理を実行する)、プリンタ1000でフォーマッティング処理した結果をコンピュータに転送して表示するように構成してもよい。
【0279】
以上説明した様に第9実施形態によれば、ユーザの所望するようなフォーマッティングが可能となる。
【0280】
選択手段4209,4203,4204,4210を選択してフォントサイズ指定フィールド4205に標準フォントサイズを入力することにより、例えば、同じHTMLで記述された文書データについて施されるフォーマッティング処理を、全ての文字を標準フォントサイズで出力する図示しないフォーマッティング処理(全ての文字を標準フォントサイズで出力する出力形態),第6実施形態に示した図30に示すフォーマッティング処理(最頻出文字を標準フォントサイズで出力する図32に示す出力形態),第4実施形態に示した図23に示すフォーマッティング処理(最小文字を標準フォントサイズで出力する図26に示す出力形態),第1〜第3実施形態に示した図15に示すフォーマッティング処理(基準文字を標準フォントサイズで出力する出力形態)のいずれかを選択可能となる。なお、それぞれ第7実施形態,第8実施形態と合わせてオブジェクトのサイズも変更可能に構成してもよい。
【0281】
また、図41に示したフォントサイズ指定部4200上に、オブジェクトと文字をオブジェクト最大幅に基づくサイズに設定するためのボタンを設け、第5実施形態に示した図27に示すフォーマッティング処理(最頻出文字を標準フォントサイズで出力する図29に示す出力形態)を選択可能に構成してもよい。
【0282】
このように、文字サイズをポイント値として算出する例について説明したが、例えば文字サイズがその他の表現(例えば大/中/小)によって指定されている文書であっても、予め各サイズ(大/中/小)の比率を保持しておくことにより、本発明を適用することが可能である。
【0283】
また、上述した各実施形態においては、フォーマッティング対象となる文書データとしてHTMLによって記述された文書を例として説明したが、本発明はこの例に限定されるものではなく、構造化記述言語であれば、XMLやSGML,XHTMLといった他の言語であっても良いことは言うまでもない。
【0284】
なお、上記第1実施形態〜第9実施形態を合わせた構成も本発明に含まれるものである。
【0285】
以上説明したように、本願発明は、所定の構造化記述言語で記述された文書情報を解析する際、予め設定又は指示された標準フォントサイズと基準フォントサイズ、又は文書中の最も頻繁に出現する文字サイズ情報、又は文書中に出現する最も小さい文字サイズに関する情報、並びに文書中に出現する最大のオブジェクト幅に関する情報、或いはこれらの情報の組合せに係る情報等を用いて、サーバ装置より取得される文書情報が含む文字情報を、文書情報の構成に関わらず、所望のフォントサイズで出力することにより、構造化文書の文字又は文字列を所定の指示手段によって指示された所望のフォントサイズを標準フォントサイズとして、所定の構造化記述言語で記述された文書情報をレイアウト可能となる。
【0286】
さらに、自由度の高いページレイアウトを実現し、高齢者から子供まで好みに応じた出力を選択することのできる画像処理装置および画像処理方法およびプログラムを提供することが可能になる。
【0287】
また、本発明の好適な実施形態によれば、画像処理装置にフォントサイズの指示入力手段を設けることによって、PC側のHTMLエディタなどのアプリケーションを操作することなく、画像処理装置の操作部や遠隔のホストコンピュータ等から画像形成装置側に対して簡単な入力を与えるだけで実現する。
【0288】
以上により、構造化文書が含む情報、並びに/又は、構造化文書が割り付けられるべき物理ページに関する情報を用いて、適切に文書をフォーマッティングするという本願発明の第1の目的を達成する。
【0289】
また、リファレンス印刷指示にユーザ指定されるフォントサイズ(基準フォントサイズ,標準フォントサイズ)を印刷設定情報として文書情報取得先のサーバ装置に送信し、該印刷設定情報に従ってサーバ装置でレイアウトされた文書情報を取得して出力することにより、サーバが描画処理を画像処理装置側の描画負担を強いることなく、ユーザの好みのサイズでページレイアウトした種々の文書情報を画像出力することができるという本願発明の第2の目的を達成する。
【0290】
なお、この発明の目的は、上記に述べた実施形態の構成が達成する目的に限定されるものではなく、構造化文書を物理ページに割り付ける際に見栄えの良い描画出力を得ること、又は、ネットワークを介して印刷指示し、見栄えの良い印刷結果を得ることを達成する目的の限りにおいては他の構成をも取り得るものである。
【0291】
以下、図42,図43に示すメモリマップを参照して本発明に係る画像処理装置,サーバ装置を適用可能な印刷システムで読み出し可能なデータ処理プログラムの構成について説明する。
【0292】
図42,図43は、本発明に係る画像処理装置,サーバ装置を適用可能な印刷システムで読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【0293】
なお、特に図示しないが、記憶媒体に記憶されるプログラム群を管理する情報、例えばバージョン情報,作成者等も記憶され、かつ、プログラム読み出し側のOS等に依存する情報、例えばプログラムを識別表示するアイコン等も記憶される場合もある。
【0294】
さらに、各種プログラムに従属するデータも上記ディレクトリに管理されている。また、各種プログラムをコンピュータにインストールするためのプログラムや、インストールするプログラムが圧縮されている場合に、解凍するプログラム等も記憶される場合もある。
【0295】
なお、本発明は、複数の機器(例えばホストコンピュータ、インタフェイス機器、リーダ、プリンタなど)から構成されるシステムに適用しても、一つの機器からなる装置(例えば、複写機、ファクシミリ装置など)に適用してもよい。
【0296】
また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラム、及びそのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0297】
この場合、記憶媒体から読み出されたプログラムコード自体が本発明の新規な機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。
【0298】
プログラムコードを供給するための記憶媒体としては、例えば、フロッピー(登録商標)ディスク,ハードディスク,光ディスク,光磁気ディスク,CD−ROM,CD−R,磁気テープ,不揮発性のメモリカード,ROM,EEPROM,シリコンディスク等を用いることができる。
【0299】
また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOS(オペレーティングシステム)等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0300】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPU等が実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0301】
本実施形態における図11〜図15及び図19,図22,図23,図27,図30,図33,図34,図39に示す機能などは外部からインストールされるプログラムによって、ホストコンピュータにより遂行されていてもよい。そして、その場合、CD−ROMやフラッシュメモリやFD等の記憶媒体により、あるいはネットワークを介して外部の記憶媒体から、プログラムを含む情報群を出力装置に供給される場合でも本発明は適用されるものである。
【0302】
また、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。また、本発明は、システムあるいは装置にプログラムを供給することによって達成される場合にも適応できることは言うまでもない。この場合、本発明を達成するためのソフトウエアによって表されるプログラムを格納した記憶媒体を該システムあるいは装置に読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。
【0303】
さらに、本発明を達成するためのソフトウエアによって表されるプログラムをネットワーク上のデータベースから通信プログラムによりダウンロードして読み出すことによって、そのシステムあるいは装置が、本発明の効果を享受することが可能となる。
【0304】
【発明の効果】
以上説明したように、本発明に係る第1〜28の発明によれば、所定の構造化記述言語で記述された文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報を特定し、該特定したフォントサイズ情報が設定された文字情報を入力された標準フォントサイズで、物理ページに出力処理するので、構造化記述言語で記述された文書の文字又は文字列を標準フォントサイズとして出力して、構造化文書から物理ページへの適切なページレイアウトを実現し、高齢者から子供まで好みに応じた出力を容易に選択することができる。
【0305】
また、ホストコンピュータ側のHTMLエディタなどのアプリケーションを操作することなく、画像処理装置の操作部や遠隔のホストコンピュータ等から画像形成装置側に対して簡単な入力を与えるだけで構造化記述言語で記載された文書のレイアウトを実現することができる。
【0306】
さらに、リファレンス印刷指示にユーザ指定される標準フォントサイズを印刷設定情報として文書情報取得先のサーバ装置に送信し、該印刷設定情報に従ってサーバ装置でレイアウトされた文書情報を取得して出力することにより、サーバが描画処理を画像処理装置側の描画負担を強いることなく、ユーザの好みのサイズでページレイアウトした種々の文書情報を画像出力することができる。
【0307】
従って、構造化文書に設定されている各文字に対する文字サイズ(各文字に個別に設定されている文字サイズも含む)を、ユーザが指定した標準文字サイズに基づいて、各文字を再スケールしてページレイアウト可能となり、高齢者から子供まで好みに応じたサイズでレイアウトされた見栄えのよい構造化文書情報出力を容易に行うことができる画像処理環境を自在に構築することができる等の効果を奏する。
【図面の簡単な説明】
【図1】本実施形態に適用されるレーザビームプリンタの内部構造を示す断面図である。
【図2】本発明の実施形態を示すプリンタ制御システムの構成を説明するブロック図である。
【図3】本発明の第1実施形態を示す画像処理装置におけるデータ処理構成を示すブロック図である。
【図4】文書サーバに格納されているブラウザによる文書情報表示画面の一例を示す図である。
【図5】図4に示した文書の印刷出力の一例を示す図である。
【図6】本発明に係る画像処理装置における構造化記述言語で記述されたリファレンス印刷指示の一例を示す図である。
【図7】本発明に係る画像処理装置と通信可能なWebサーバの構成を示すブロック図である。
【図8】図7に示した文書サーバに格納されている文書データの一例を示す図である。
【図9】図7に示した文書サーバに格納されるスタイルシートの一例を示す図である。
【図10】図7に示したレイアウトデータ生成部の処理により変換される文書データの一例を示す図である。
【図11】本発明に係る画像処理装置における第1のデータ処理手順の一例を示すフローチャートである。
【図12】本発明に係る画像処理装置における第2のデータ処理手順の一例を示すフローチャートである。
【図13】本発明に係る画像処理装置における第3のデータ処理手順の一例を示すフローチャートである。
【図14】本発明に係るサーバ装置における第1のデータ処理手順の一例を示すフローチャートである。
【図15】本発明に係るサーバ装置における第2のデータ処理手順の一例を示すフローチャートである。
【図16】ページの概念のない構造化記述言語で記述された文書をブラウザで表示させた例である。
【図17】標準フォントサイズに「12ポイント」を指定した場合の出力結果である。
【図18】標準フォントサイズに「8ポイント」を指定した場合の出力結果である。
【図19】本発明の第2実施形態を示すサーバ装置におけるデータ処理手順を説明するフローチャートである。
【図20】本発明の第2実施形態を示すサーバ装置において処理されるHTMLによる文書データの具体例を示す図である。
【図21】本発明の第3実施形態を示す画像処理装置の構成を説明するブロック図である。
【図22】本発明に係る画像処理装置における第4のデータ処理手順の一例を示すフローチャートである。
【図23】本発明に係る画像処理装置における第5のデータ処理手順の一例を示すフローチャートである。
【図24】HTMLによって記述された入力文書データの一例を示す図である。
【図25】図24に示した入力文書データにフォーマッティング処理を施すことによって変換されるページレイアウト可能なデータの一例を示す図である。
【図26】図25に示す文書データを実際に印刷した結果の一例を示す模式図である。
【図27】本発明に係る画像処理装置における第6のデータ処理手順の一例を示すフローチャートである。
【図28】上記第4実施形態で図24に示したHTMLの入力文書データに図27に示したフォーマッティング処理を施した変換結果(文書データ)の一例を示す図である。
【図29】図28に示した文書データの実際の印刷結果の一例を示す模式図である。
【図30】本発明に係る画像処理装置における第7のデータ処理手順の一例を示すフローチャートである。
【図31】第4実施形態で図24に示したHTMLの入力文書データに対して本実施形態のフォーマッティング処理を施して変換した結果(文書データ)の一例を示す図である。
【図32】図31に示した文書データの実際の印刷結果の一例を示す模式図である。
【図33】本発明に係る画像処理装置における第8のデータ処理手順の一例を示すフローチャートである。
【図34】本発明に係る画像処理装置における第9のデータ処理手順の一例を示すフローチャートである。
【図35】Webブラウザでの表示された文書の一例を示す図である。
【図36】図35の実際の印刷装置での印字結果の一例を示す図である。
【図37】図35の実際の印刷装置での印字結果の一例を示す図である。
【図38】本実施形態におけるリファレンス印刷指示の一例を示す図である。
【図39】本発明に係る画像処理装置における第10のデータ処理手順の一例を示すフローチャートである。
【図40】図35に示した文書の本実施形態における印字結果の一例を示す模式図である。
【図41】図1に示したプリンタの操作パネルに表示し得る画面の一例を示す模式図である。
【図42】本発明に係る画像処理装置,サーバ装置を適用可能な印刷システムで読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【図43】本発明に係る画像処理装置,サーバ装置を適用可能な印刷システムで読み出し可能な各種データ処理プログラムを格納する記憶媒体のメモリマップを説明する図である。
【符号の説明】
1100 フォーマッタ制御部
1101 プロトコル制御部
1102 データ判別部
1103 文書データ解析部
1104 データ描画部
1105 ページメモリ
1106 リファレンス印刷指示処理部
1200 プリンタインタフェース
1300 出力制御部
1400 プリンタエンジン部
2000 Webサーバ
2001 Webサーバインタフェース
2002 プロトコル制御部
2003 レイアウトデータ生成部
2004 文書サーバ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing device, an image processing method, a storage medium, and a server device that process document data using document data described in a predetermined structured description language and print setting information input from the outside. It is.
[0002]
[Prior art]
In recent years, the rapid spread of personal computers and the Internet has promoted the digitization of documents regardless of the industry. However, since the data format of the digitized document depends on the application for editing the document information, it is necessary to prepare an application that supports the data format of the document information in order to view the digitized document information. For example, documents written in a structured description language that does not depend on a specific application, such as HTML (Hyper Text Markup Language) and XML (Extensible Markup Language), are becoming popular.
[0003]
[Problems to be solved by the invention]
Structured description languages represented by these languages are designed on the assumption that they are displayed on a display screen by an application that supports so-called browsers and various HTMLs, which are generally information browsing software. Therefore, the concept of page does not exist. When displaying on a display using a browser, since the width and height of the screen to be displayed can be arbitrarily changed or the screen can be scrolled, the page concept is not necessary. On the other hand, when such a structured language is used as a page description language, allocation to pages is required. Further, the process of converting a structured description language having no page concept into a structured description language capable of page layout is called formatting.
[0004]
However, if the formatting to the physical page is fixedly assigned with an absolute scale such as a font size, there are problems that it is difficult to see depending on the contents of the page or that the layout is not preferred depending on the person. The physical page refers to an output page when image data is printed on paper. The physical page also includes a page output on a display screen of a host computer or the like by previewing print data.
[0005]
Furthermore, when a structured document is printed, a method of specifying a font size using an HTML editor or a Web browser on a PC, the structured document is once received from the server side to the host side, and the received document is received by the application. After opening, specifying a font by performing complicated operations on this application, processing to send to the printer had to be performed.
[0006]
In recent years, applications for editing Web browsers and HTML files have been developed. For HTML documents displayed using this application, the font size is specified using the input means of the PC. Furthermore, it is possible to perform page layout on the PC side and send it to the printer.
[0007]
However, although the reference font size in the structured document can be set by specifying the font size, the font size of the characters that the document creator has not specified for the font size is changed by this setting. However, there is a problem that the font size of characters individually designated by the document creator is not changed.
[0008]
For example, in a structured document created by dividing the page into a table area such as a table and a text area and specifying a different font enlargement ratio for each area, the font size is unconditionally larger than a certain size. Even if you want to obtain a document with easy-to-read characters output, the font size of the characters in the table is not changed, and it cannot be handled.
[0009]
In addition, when a document is page-laid, there has conventionally been a technique in which a program calculates a font enlargement ratio applied to a page divided into a table area and a text area according to a predetermined algorithm and performs layout. .
[0010]
That is, in the table area such as a table, the program enlarges the font so that the blank area is reduced and the print area is enlarged on the condition that the line break of the character string included in the table entry is not performed. There was technology.
[0011]
Further, when the font of the text area is enlarged, the ratio of the print area included in the page increases. Therefore, the font size of the text area is enlarged so as to become a predetermined ratio or more. However, the enlargement of the font depends on the layout situation and is not output with the font size specified by the user.
[0012]
For example, if the print data originally has a large print area ratio, such as a large table containing small characters, the program does not enlarge the font even if the font is output with small characters. That is, there is a problem that it is impossible to obtain an output with a font size desired by the user because the user is conscious of the ratio of the print area.
[0013]
A first object of the present invention is to appropriately format a document using information included in the structured document and / or information regarding a physical page to which the structured document is to be allocated.
[0014]
A second object of the present invention is to enable image processing to output various types of document information in a page layout at a user's favorite size without the server placing a drawing burden on the image processing apparatus. An apparatus, an image processing method, a storage medium, and a server device are provided.
[0015]
[Means for Solving the Problems]
  A first invention according to the present invention processes document data described in a predetermined structured description language.Contains a given physical pageIn an image processing apparatus that generates image data,in frontDocument dataSet to character information contained inFont size information that is information about the font sizespecificDospecificMeans (physical layout processing unit 1107 shown in FIG. 21) and an image indicated by the document data is assigned to a physical page and output.in frontInfont sizeTheInstructions orInstruction input means for inputting (font size designation field 4205 shown in FIG. 41);specificMeansCharacter information with the specified font size information setBy the instruction input meansInstructions orWith the entered font size, Output processing means for output processing to physical pages(Physical layout processing unit 1107 and data drawing unit 1104 shown in FIG. 21).
[0016]
  According to a second aspect of the present invention,specificThe means calculates the scaling factor using the font size information (reference font size, minimum character size, most frequently appearing character size) included in the document data and information indicating the standard font size input by the instruction input unit,
  The output processing unit scales the character or character string to which the font size information is applied using the scaling factor, and performs output processing so that the standard font size is output.
[0017]
  In a third aspect of the present invention, the document data is stored by the specifying means.The specified font size information is setContains information that indicates the font size for specific characters (characters of the standard font size, the smallest character, the most frequent character)
  The output processing means outputs a character or a character string to which the specified font size is applied to the specific character in a standard font size input by the instruction input means regardless of information indicating the font size. To beOutput processingIt is characterized by doing.
[0018]
  According to a fourth aspect of the present invention, the document data can specify a reference font size in the document data, and the specifying means includes the reference font size and a standard input by the instruction input means. The scaling factor is calculated using a font size, and the output processing unit outputs the character or character string to which the reference font size is applied, so that the standard font size input by the instruction input unit is output. Output processing is performed by applying the magnification to the entire character information included in the document data.
[0019]
  According to a fifth aspect of the present invention, the specifying means determines the most frequently used font size of the document information.specificThe output processing means is the specifying means.specificThe output processing is performed so that the character or the character string to which the most frequently used font size is applied is output in the standard font size input by the instruction input unit.
[0020]
  According to a sixth aspect of the present invention, the specifying means determines a minimum font size in the document data.specificThe output processing means performs an output process so that the font size of the character information to be laid out on the physical page is output with a font size larger than the standard font size input by the instruction input means. To do.
[0021]
  In a seventh aspect of the present invention, the document data includes at least one object data and character information, the specifying unit detects a size of an image indicated by the object data, and the output processing unit includes: The object represented by the image or chart indicated by the object data fits within a physical page, and the character or character string indicated by the character information included in the document data is output in the standard font size input by the instruction input means. Output processing as described above.
[0022]
  According to an eighth aspect of the present invention, the document data includes at least one object data and character information, the specifying unit detects a size of an image indicated by the object data, and the output processing unit includes: The image indicated by the object data is scaled according to the width of the physical page, and the characters indicated by the character information included in the document data are output in a standard font size input to the instruction input means. It is characterized by processing.
[0023]
A ninth invention according to the present invention is characterized in that the image processing apparatus communicates with an arbitrary server apparatus (Web server 2000 shown in FIG. 7) to receive and process the document data.
[0024]
  According to a tenth aspect of the present invention, the image processing apparatus further comprises selection means (selection means 4203, 4204, 4209, 4210 shown in FIG. 41) for selecting a layout method based on a user instruction, and the output The processing means determines the scaling factor calculation method based on the selection result of the selection means.
[0025]
  According to an eleventh aspect of the present invention, the image processing apparatus further includes a printing unit (printer engine unit 1400 shown in FIG. 21) that outputs the image data generated by the output processing unit.
[0026]
According to a twelfth aspect of the present invention, the image processing apparatus is a printer (the printer 1000 shown in FIG. 21).
[0027]
  According to a thirteenth aspect of the present invention, document data described in a predetermined structured description language is processed.Contains a given physical pageIn an image processing method for generating image data,in frontDocument dataFont size information that is information about the font size set in the character information contained inThespecificDospecificSteps (Steps S901 to S905 in FIG. 15, Steps S2401 to S2405 in FIG. 23, Steps S2501 to 2507 in FIG. 27, Steps S2601 to S2605 in FIG. 30, Steps S3401 to 3403 in FIG. 33, Steps S3601 to S3603 in FIG. 39) And the image indicated by the document data is assigned to a physical page and output.in frontInfont sizeTheInstructions orAn instruction input step (step not shown) for inputting,specificIn stepsCharacter information with the specified font size information setBy the instruction input stepInstructions orWith the entered font size, Output processing to output to physical page15 (step S906 in FIG. 15, step S2406 in FIG. 23, step S2508 in FIG. 27, steps S2606 to S2607 in FIG. 30, steps S3404 and S3405 in FIG. 33, and steps S3604 and S3605 in FIG. 39). And
[0028]
  A fourteenth aspect of the invention relates to the above-mentionedspecificIn the step, a scaling factor is calculated using the font size indicated by the specific character information included in the document data and the standard font size input from the outside in the instruction input step, and in the output processing step, the specific character An output process is performed so that a character or a character string indicated by information is output with a font size scaled using the scaling factor.
[0029]
  In a fifteenth aspect of the present invention, the document data includes the specifying step.The specified font size information is setIncluding information indicating a font size with respect to a specific character, and in the output processing step, the specific character or character string to which the font size is applied is the instruction input step regardless of the information indicating the font size. Is output in such a manner that it is output in the standard font size input.
[0030]
  According to a sixteenth aspect of the present invention, the document data can specify a standard size font in the document data. In the analysis step (steps S901 to S905 in FIG. 15), the reference font size, A scaling factor is calculated using the standard font size input by the instruction input means. In the output processing step (step S906 in FIG. 1515), the character or character string to which the reference font size is applied is the instruction input step. The scaling factor is applied to the entire character information included in the document data so that it is output in the standard font size input byoutputIt is characterized by processing.
[0031]
  In a seventeenth aspect of the present invention, in the specifying step (steps S2401 to S2405 in FIG. 23), the minimum font size in the document data is set.specificThen, in the output processing step (step S2406 in FIG. 23), the font size of the character information laid out on the physical page is output in a font size larger than the standard font size input in the instruction input step. It is characterized by output processing.
[0032]
  In an eighteenth aspect of the present invention, the document data includes at least one object data and character information. In the specifying step (steps S2501 to S2507 in FIG. 27), the size of the image indicated by the object data is determined. In the output processing step (step S2508 in FIG. 27), the character or the character indicated by the character information included in the document data is set so that the object included in the image or chart indicated by the object data is within the physical page. The character string is output so as to be output in the standard font size input in the instruction input step.
[0033]
  According to a nineteenth aspect of the present invention, the document data includes at least one object data and character information. In the specifying step (steps S2501 to 2507 in FIG. 27), the size of the image indicated by the object data is determined. In the output processing step (step S2508 in FIG. 27), the image indicated by the object data is scaled according to the physical page width, and the character indicated by the character information included in the document data is indicated by the instruction. Output processing is performed so that the standard font size input in the input step is output.
[0034]
According to a twentieth aspect of the present invention, the image processing method includes an acquisition step (step not shown) for acquiring the document data by communicating with an arbitrary server device.
[0035]
  According to a twenty-first aspect of the present invention, the image processingMethodFurther comprises a selection step (not shown) for selecting a layout method based on a user instruction, and scaling the characters included in the document data based on the selection result in the selection step.outputA method of calculating a scaling factor for processing is determined.
[0038]
  According to a twenty-second aspect of the present invention, document data described in a predetermined structured description language is processed.Contains a given physical pageIn a computer-readable storage medium storing a program for causing a computer to execute an image processing method for generating image data,in frontDocument dataFont size information that is information about the font size set in the character information contained inThespecificDospecificSteps (Steps S901 to S905 in FIG. 15, Steps S2401 to S2405 in FIG. 23, Steps S2501 to 2507 in FIG. 27, Steps S2601 to S2605 in FIG. 30, Steps S3401 to 3403 in FIG. 33, Steps S3601 to S3603 in FIG. 39) And the image indicated by the document data is assigned to a physical page and output.in frontInfont sizeTheSpecified orAn instruction input step (step not shown) for inputting,specificIn stepsCharacter information with the specified font size information setBy the instruction input stepInstructions orWith the entered font size, Output processing to output to physical page15 (step S906 in FIG. 15, step S2406 in FIG. 23, step S2508 in FIG. 27, steps S2606 to S2607 in FIG. 30, steps S3404 and S3405 in FIG. 33, steps S3604 and S3605 in FIG. 39). The computer is readable and stored in a storage medium.
[0055]
  According to the present invention23The present invention provides an image processing apparatus for processing image data described in a predetermined structured description language to generate image data.Structured documentContains character informationanalysisAnalyzing means (physical layout processing unit 1107 shown in FIG. 21) and information indicating a font size set for the character information in the structured documentEven if, The analysis meansanalysisdidPredeterminedCharacter informationThe character corresponding toSo that is output with a predetermined font size,outputProcessoutputMeans (physical layout processing unit 1107, data drawing unit 1104 shown in FIG. 21)The document data can be specified using a relative value indicating how large or small the font size of the output target is based on a predetermined reference font size. The analysis unit analyzes the standard font size designated by the input unit and the font size inputted by the input unit so that the character designated by the standard font size is output in the font size designated by the designation unit. A scaling factor to be applied to the character information is obtained, and the output means performs output processing using the scaling factor.It is characterized by that.
[0056]
  According to the present invention24According to the invention, the predetermined font size is input by an instruction input unit (font size designation field 4205 shown in FIG. 41) of the image forming apparatus, and the analysis unit is configured to input a font size of a specific character or character string, and a predetermined font size. Calculate the scaling factor based on the font size ofThe output means includesRegardless of information indicating the font size set for the character information in the structured document so that the specific character or character string is output with the predetermined font size, the specific character Is scaled by the above magnificationoutputProcessRukoIt is characterized by.
[0057]
  According to the present invention25According to the invention, the document data includes at least one object, and the specific character or character string is output at the predetermined size, while the image indicated by the object included in the document data is output as a paper size. It is characterized in that it is scaled according to.
[0058]
  According to the present invention26The invention is characterized in that the information specifying the font size set for the character in the structured document is described by tag information specifying the font size of HTML or XML. To do.
[0059]
  According to the present invention27The present invention provides an image processing method for generating image data by processing document data described in a predetermined structured description language.
  Structured documentContains character informationanalysisAnalysis steps (steps S901 to S905 in FIG. 15, steps S2401 to S2405 in FIG. 23, steps S2501 to S2507 in FIG. 27, steps S2601 to S2605 in FIG. 30, steps S3401 to 3403 in FIG. 33, and steps S3601 in FIG. S3603) and information indicating the font size set for the character information in the structured documentEven ifIn the analysis stepanalysisdidPredeterminedCharacter informationThe character corresponding toSo that is output with a predetermined font size,outputProcessoutputSteps (Step S906 in FIG. 15, Step S2406 in FIG. 23, Step S2508 in FIG. 27, Steps S2606 to S2607 in FIG. 30, Steps S3404 and S3405 in FIG. 33, Steps S3604 and S3605 in FIG. 39)The document data can be specified using a relative value indicating how large or small the font size of the output target is based on a predetermined reference font size. From the reference font size specified in step 1 and the font size input in the input step, analysis is performed in the analysis step so that the character specified in the reference font size is output in the font size specified in the specification step. A scaling factor to be applied to the character information is obtained, and the output step performs output processing using the scaling factor.It is characterized by that.
  According to a twenty-eighth aspect of the present invention, there is provided a computer-readable storage medium storing a program for causing a computer to execute an image processing method for processing document data described in a predetermined structured description language to generate image data. The analysis step for analyzing the character information included in the structured document and the predetermined analysis analyzed in the analysis step even when there is information indicating the font size set for the character information in the structured document An output step for performing output processing so that characters corresponding to the character information of the document are output in a predetermined font size, and the document data has an output font size that is larger than a predetermined reference font size as a reference Can be specified using a relative value indicating whether the document data is small or small. From the reference font size specified in step 1 and the font size input in the input step, analysis is performed in the analysis step so that the character specified in the reference font size is output in the font size specified in the specification step. A scaling factor to be applied to the character information is obtained, and in the output step, a program for output processing using the scaling factor is stored in a storage medium so as to be readable by a computer.
[0060]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. First, a configuration of a laser beam printer (LBP) suitable for applying this embodiment will be described with reference to FIG.
[0061]
The printer to which this embodiment is applied is not limited to a laser beam printer, and any printer that forms and outputs an image may be used. For example, it is needless to say that a printer such as a copying machine, a facsimile, or a printing method other than a laser beam (LED method, liquid crystal shutter method, ink jet method, thermal transfer method, sublimation method, etc.) may be used. Further, the output means in the present invention includes not only printing output in the printer but also previewing on the display unit of the printer. The image processing apparatus includes not only a printer but also an image processing controller provided in the printer and a computer having software capable of performing formatting processing. Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
[0062]
[First Embodiment]
FIG. 1 is a cross-sectional view showing the internal structure of a laser beam printer applied to this embodiment. This LBP can register a character pattern and a fixed form (form data) from a data source (not shown).
[0063]
In FIG. 1, reference numeral 1000 denotes an LBP main body (hereinafter referred to as a printer), which inputs and stores character information (character code), form information, macro instructions, etc. supplied from a host computer connected to the outside. A corresponding character pattern, form pattern, or the like is created in accordance with the information, and an image is formed on a recording sheet as a recording medium.
[0064]
An operation panel 1012 includes switches for operation, an LED display, a display with a touch panel, and the like. Also, it is possible to input print setting information, which will be described later. A printer control unit 1001 controls the entire printer 1000 and analyzes character information supplied from a host computer. The printer control unit 1001 mainly converts character information into a video signal having a corresponding character pattern and outputs the video signal to the laser driver 1002. A laser driver 1002 is a circuit for driving the semiconductor laser 1003. The laser driver 102 switches on and off the laser light 1004 emitted from the semiconductor laser 1003 according to the input video signal. The laser beam 1004 is swung in the left-right direction by the rotary polygon mirror 1005 and scans on the electrostatic drum 1006.
[0065]
As a result, an electrostatic latent image of a character pattern is formed on the electrostatic drum 1006. This latent image is developed by a developing unit 1007 around the electrostatic drum 1006 and then transferred to a recording sheet. A cut sheet is used as the recording paper. The cut sheet recording paper is stored in a paper cassette 1008 mounted on the printer 1000. Subsequently, the sheet is taken into the apparatus by the sheet feeding roller 1009, the conveying roller 1010 and the conveying roller 1011, and is supplied to the electrostatic drum 1006.
[0066]
FIG. 2 is a block diagram illustrating the configuration of the printer control system according to the embodiment of the present invention. In this example, a laser beam printer (FIG. 1) will be described as an example. As long as the functions of the present invention are executed, the present invention can be applied to a single device, a system composed of a plurality of devices, or a system in which processing is performed via a network such as a LAN. Needless to say, it can be applied.
[0067]
In FIG. 2, 3000 is a host computer having the following functions. That is, the CPU 1 is provided for executing extraction of document data and data conversion based on a document processing program stored in the program ROM of the ROM 3. The CPU 1 comprehensively controls each device connected to the system bus 4. Further, a control program of the CPU 1 is stored in the program ROM of the ROM 3. The font ROM of the ROM 3 stores font data used for the data conversion process. The data ROM of the ROM 3 stores various data used when performing the data conversion process and the like.
[0068]
Reference numeral 2 denotes a RAM which functions as a main memory and work area of the CPU 1. Reference numeral 5 denotes a keyboard controller (KBC). The keyboard controller 5 controls key input from a keyboard (KB) 9 or a pointing device (not shown). Reference numeral 6 denotes a CRT controller (CRTC). The CRT controller 6 controls display on a CRT display (CRT) 10. Note that the CRT 10 may be configured to preview the result of layout processing of a structured document on a physical page. Structured document layout processing will be described later.
[0069]
In the present embodiment, the keyboard 9 and the CRT display 10 are not necessarily required. However, it is usually equipped for maintenance of the server computer and confirmation of the operation status. As shown in FIG. 41 described later, the font size can be designated to the printer 1000 via the CRT display 10.
[0070]
Reference numeral 7 denotes a memory controller (MC). The memory controller 7 controls access to the external memory 11. The external memory 11 stores a boot program, various applications, font data, user files, edit files, and the like. The external memory 11 includes, for example, all of a hard disk (HD), a flexible disk (FD), a program, and / or a storage medium that can hold data.
[0071]
Reference numeral 8 denotes a network controller (NTC). The network controller 8 is connected to the printer 1000 via a predetermined bidirectional interface (interface) 21 and executes communication control processing with the printer 1000. For example, the CPU l can take out document data stored in the external memory 11 by controlling the memory controller 7 or transfer the document data to the outside by controlling the network controller 8.
[0072]
In the printer 1000, reference numeral 12 denotes a printer CPU (CPU). The printer CPU 12 comprehensively accesses various devices connected to the system bus 15 based on a control program stored in a program ROM included in the storage unit 13 or a control program stored in the external memory 14. And an image signal as output information is output to a printing unit (printer engine) 17 connected via the printing unit interface 16. The storage unit 13 often uses a ROM for storing data including programs or font data, but may be another storage medium such as a small hard disk drive (HDD) or a removable memory card.
[0073]
Further, the program ROM of the storage unit 13 may store a control program for the CPU 12 as shown in a flowchart to be described later.
[0074]
The font ROM in the storage unit 13 stores font data and the like used when generating the output information. The data ROM of the storage unit 13 stores information used on the host computer 3000 in the case of a printer that does not have an external memory 14 such as a hard disk.
[0075]
The CPU 12 can communicate with the host computer via the input unit 18. The CPU 12 is configured to notify the host computer 3000 of information in the printer.
[0076]
A RAM 19 is a RAM that functions as a main memory, a work area, and the like of the CPU 12. The RAM 19 is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown).
[0077]
The RAM 19 is used as an output information expansion area, environment data storage area, NVRAM, and the like. Access to the above-described external memory 14 such as a hard disk (HD) or IC card is controlled by a memory controller (MC) 20. The external memory 14 is connected as an option and stores document data, font data, form data, and the like.
[0078]
Reference numeral 1012 denotes a switch for operation on the operation panel described above, an LED display, and the like.
[0079]
Further, the number of external memories is not limited to one, and at least one external memory is provided so that an optional font card and a plurality of external memories storing programs for interpreting printer control languages with different language systems can be connected in addition to the built-in font. It may be configured. Further, an NVRAM (not shown) may be provided to store printer mode setting information from the operation panel 1012.
[0080]
FIG. 3 is a block diagram showing a data processing configuration in the image processing apparatus showing the first embodiment of the present invention.
[0081]
In FIG. 3, the printer 1000 is roughly composed of a formatter control unit 1100, a printer interface 1200, an output control unit 1300, and a printer engine unit 1400.
[0082]
The formatter control unit 1100 includes a protocol control unit 1101, a data determination unit 1102, a document data analysis unit 1103, a data drawing unit 1104, a page memory 1105, and a reference print instruction processing unit 1106.
[0083]
The printer interface 1200 is a means for input / output from / to the outside. The protocol control unit 1101 is a means for performing communication with the outside by analyzing and transmitting the network protocol. For example, when HTTP (Hyper Text Transfer Protocol) is used as the protocol, the protocol control unit 1101 is instructed by a URI (Unified Resource Identifier). Documents are acquired and information is transmitted to a Web server. In the URI, a URI indicating the location of a resource on the network can be designated. When printing, resources on the Web server are specified in the reference print instruction command. Upon receiving the reference print command instruction, the device acquires the URI and processes the URI.
[0084]
The data determination unit 1102 is means for determining whether the received data is a reference print instruction or document data. If it is determined that the received data is a reference print instruction, the data is sent to the reference print instruction processing unit 1106. If the document data is delivered, the data is delivered to the document data analysis unit 1103.
[0085]
The reference print instruction processing unit 1106 extracts each information from the reference print instruction and transmits necessary information to the outside through the protocol control unit 1101. Although a specific example of the reference print instruction will be described later, the reference print instruction processing unit 1106 can acquire the document by transmitting, for example, the URI of the document and print setting information (physical layout information) to a Web server or the like.
[0086]
Note that when it is known in advance that the data received by the image forming apparatus is not reference instructions but document data, an embodiment in which the reference print instruction processing unit 1106 and / or the data determination unit 1102 are omitted is also considered. obtain.
[0087]
The document data analysis unit 1103 is means for analyzing document data described in a structured description language and converting it into an intermediate code in a format that is easier to process. The intermediate code generated in the document data analysis unit 1103 is passed to the data drawing unit 1104 for processing.
[0088]
The data drawing unit 1104 develops the intermediate code into bitmap data, and the developed bitmap data is sequentially drawn in the page memory 1105. In general, the formatter control unit 1100 is configured by a computer system using a CPU, a ROM, a RAM, and the like.
[0089]
The output control unit 1300 converts the contents of the page memory 1105 into a video signal and transfers the image to the printer engine unit 1400. The printer engine unit 1400 is a printing mechanism unit for forming a received video signal on a recording sheet as a permanent visible image.
[0090]
FIG. 4 is a diagram showing an example of a document information display screen by a browser stored in the document server 2004 of FIG. 7, for example, in a state in which a document described in a structured description language having no page concept is displayed in the browser. Correspond. FIG. 5 is a diagram showing an example of the print output of the document shown in FIG.
[0091]
As shown in FIG. 4, a general browser can change the size of the display screen or scroll the screen vertically and horizontally using a scroll bar. On the other hand, FIG. 5 is a diagram showing an example of a document described in a structured description language after formatting, and the document after formatting can be displayed or printed in page units in this way.
[0092]
On the other hand, as described above, a document written in a structured description language does not require a specific application, so if there is a printing device that can analyze the structured description language, printing from a terminal that does not have the application is possible. Become.
[0093]
Here, a technique for page-laying out document data described in the structured description language displayed in FIG. 4 and outputting it as shown in FIG. 5 will be described using an example of reference printing. For example, even from a portable information terminal or a cellular phone, it is possible to print document information on a Web server simply by instructing the printing device where to store the document. Such a print instruction is referred to herein as a reference print instruction. Here, the reference print instruction will be specifically described with reference to FIG.
[0094]
FIG. 6 is a diagram showing an example of a reference print instruction described in a structured description language in the image processing apparatus according to the present invention. FIG. 6 shows a print command including information on the location of a structured document that is a page layout target. Furthermore, although the print command of FIG. 6 is described in a structured description language from the host (not shown in FIG. 6) to the printer 1000, it is not necessarily described in the structured description language.
[0095]
In FIG. 6, the first line indicates that this data is not document data but a reference print instruction. The document data to be actually printed is specified by the URI on the second line. Since the URI is the most common designation method for designating a document on the Internet, a detailed description is omitted here, but the second line in FIG. requesting a document named mydocument stored in a web server named com.
[0096]
The third line specifies the output paper size. Here, A4 paper is designated. The fourth line specifies the layout direction. Here, a portrait is specified. The fifth line specifies the reference font size. Here, 8 points (8 pt) are designated. The reference font size here is different from the standard font size in the present invention described later. The reference font size is a reference font size that can be defined in the structured document. Normally, if the font size is not specified, the reference font size is displayed. In the structured document according to the present embodiment, a display form instruction command that is a command for instructing a display form such as a desired font size and font style is defined in a tag format.
[0097]
If the tag is applied to a specific character or character string in a structured document such as XML, the character or character string in the structured document to which the tag is applied is output in a form applied by a style sheet. Is done.
[0098]
The style sheet is a portion where the user can uniquely define information indicating in what form the character information is output (for example, font size, font style, presence of italics or underline).
[0099]
Note that the style sheet in the present invention is a style sheet in a broad sense including one that is automatically read and applied by the formatter as needed, even if the user does not explicitly instruct.
[0100]
In the formatting process by the Web server 2000 shown in FIG. 7 to be described later, the style sheet is simultaneously read together with the structured document, if provided, and the tag information is analyzed and output. The reference font size referred to in the present invention described above can also be defined in a style sheet, and is applied to the character or character string when there is no other font size instruction from the user for the character or character string. The default character size to be used.
[0101]
In many cases, structured documents include information indicating the font size. For example, an instruction that designates a font size can be expressed in a tag format represented as, for example, a character string </ H1> indicating <H1> heading (this tag indicates a larger heading) in HTML. If no font size is specified for a certain character string, it is normally output in the standard font size.
[0102]
As described above, in the present invention, the reference font size information may be included in the structured document, may be included in the reference print instruction shown in FIG. It may be designated by the font size designation unit 4200 shown in FIG.
[0103]
It is an object of the present invention to designate and output a character or a character string of a structured document with a desired font size (hereinafter referred to as a standard font size) designated by a predetermined instruction input means.
[0104]
The instruction input means includes, for example, the operation panel 1012 of the printer 1000 and the input unit 18 of the printer 1000 that receives an instruction input from the host computer 3000 via the network.
[0105]
In this way, by sending a simple instruction to the printing apparatus, a document called mydocument can be printed on physical paper without directly transferring the document data to the printing apparatus.
[0106]
FIG. 7 is a block diagram showing the configuration of a Web server that can communicate with the image processing apparatus according to the present invention.
[0107]
In FIG. 7, the Web server 2000 is roughly composed of a Web server interface 2001, a protocol control unit 2002, a layout data generation unit 2003, and a document server 2004.
[0108]
The Web server interface 2001 is a means for input / output with the outside. The protocol control unit 1101 is a means for performing communication with the outside by analyzing and transmitting a network protocol. For example, when HTTP is used as the protocol, the protocol control unit 1101 receives information and transmits a document specified by a URI. is there. A layout data generation unit 2003 is a means for laying out a document stored in the document server 2004 on a page.
[0109]
The document server 2004 stores a document file described in a structured description language. For example, document data stored as a structured document stored in the document server 2004 is displayed as shown in FIG. 4 using a Web browser. The document data is laid out by the layout data generation unit 2003, and the layout data is generated by page layout as shown in FIG. When the Web server 2000 receives the URI and print setting information (physical layout information) from the printer 1000, the Web server 2000 retrieves the designated document from the document server 2004 and lays out the page based on the print setting information designated by the data generation unit 2003. The generated document data is transferred to the printer 1000.
[0110]
The printer 1000 and the Web server 2000 are connected through a network such as the Internet.
[0111]
Here, specific examples of document data stored in the document server 2004 and document data generated by the layout data generation unit 2003 will be described with reference to FIGS.
[0112]
FIG. 8 is a diagram showing an example of document data stored in the document server 2004 shown in FIG. 7, which is document data described in XML.
[0113]
In FIG. 8, the document data is obtained by simply attaching data to each data by attaching a tag, and cannot be laid out on a page.
[0114]
For example, the tag <title> is attached to the character string data “Sample” in the third line. This means that the character string “Sample” is “title”, but does not include information such as what size and where the layout is to be made.
[0115]
How to lay out the document data is determined by applying a file describing layout information generally called a style sheet.
[0116]
FIG. 9 is a diagram showing an example of a style sheet stored in the document server 2004 shown in FIG. 7. In the document data shown in FIG. 8, the style sheet to be applied is specified in the first line. The style sheet may be stored in the document server 2004 or may be stored in the printer 1000 shown in FIG.
[0117]
In FIG. 9, the layout of “title” is defined in the second to third lines. Specifically, it is indicated as <fontcolor = red position = center>, and is defined to be arranged in the center of a line with a large color font. That is, the document server 2004 shown in FIG. 7 stores the document data shown in FIG. 8 and the style sheet shown in FIG.
[0118]
FIG. 10 is a diagram showing an example of document data converted by the processing of the layout data generation unit 2003 shown in FIG. 7, and the converted document is based on the document data shown in FIG. 8 and the style sheet shown in FIG. Corresponds to the data example.
[0119]
In the example shown in FIG. 10, the document data is laid out on a physical page, and the character size and drawing position are described. For example, the “title” portion shown in FIGS. 8 and 9 is 24 points and is laid out at a position of (x, y) = (100, 0) (mm).
[0120]
Next, in the printing system including the image processing apparatus and the server apparatus configured as described above, an overall print control processing procedure in the present embodiment will be described with reference to the flowcharts shown in FIGS.
[0121]
FIG. 11 is a flowchart showing an example of a first data processing procedure in the image processing apparatus according to the present invention, and corresponds to the main processing procedure from the start to the end of the operation of the printer 1000 shown in FIG. S501 to S506 indicate each step. It is assumed that a standard font size, for example, “12 points” is previously instructed or input from a predetermined instruction input unit.
[0122]
First, in step S501, data is received from the network through the printer interface 1200. Of course, if the document data is stored in the printer 1000 in advance, the process of S501 can be omitted. Next, after analyzing the protocol in step S502, it is determined in step S503 whether the received data is a reference print instruction. If it is determined that the received data is not a reference print instruction, the process proceeds to step S505. In step S504, after the document acquisition process is performed, the drawing process is performed. Thereafter, in step S506, it is determined whether or not the document data has ended. If it is determined that the document data has ended, the printing operation is ended. If it is determined that the document data has not ended, the process starts from step S501. Repeat the process. Of course, if the received data does not support the reference print instruction function, the process of S503 may be omitted.
[0123]
FIG. 12 is a flowchart showing an example of the second data processing procedure in the image processing apparatus according to the present invention, and corresponds to the detailed procedure of the drawing process (the process of actually performing the printing process) shown in step S505 of FIG. To do. In addition, S601-S608 shows each step.
[0124]
First, in step S601, the document data analysis unit 1103 checks whether it is a page end tag. If it is determined that it is a page end tag, the process proceeds to step S606 to perform processing.
[0125]
On the other hand, if it is determined in step S601 that the tag is not a page end tag, it is determined in step S602 whether or not the analyzed tag is a tag that requires expansion processing to the page memory such as character printing or graphic drawing. If it is determined that the tag does not require the expansion processing, the process proceeds to step S605, and processing according to the tag such as attribute setting and print position control is performed immediately.
[0126]
On the other hand, if it is determined in step S602 that the tag needs to be expanded into the page memory, the process proceeds to step S603 to generate an intermediate code that is easy to expand into a bitmap.
[0127]
In step S604, upon receiving the intermediate code, the data rendering unit 1104 performs expansion processing on the page memory 1105. After the expansion processing is completed, the processing returns to step S502 shown in FIG. repeat.
[0128]
On the other hand, if the page end tag is determined in step S601, the process proceeds to step S606, where the output control unit 1300 converts the contents of the page memory 1105 into a video signal for the printer engine unit 1400, and outputs the image.
[0129]
In step S607, the printer engine unit 1400 forms a permanent visible image on the recording paper and prints the received video signal. In step S608, when the printed result is discharged, the print control process per page ends.
[0130]
FIG. 13 is a flowchart showing an example of a third data processing procedure in the image processing apparatus according to the present invention, and a detailed procedure of the document acquisition processing (processing for acquiring a document to be printed) in step S504 shown in FIG. Corresponding to S701 to S706 indicate each step.
[0131]
First, in step S701, the print setting information described in the reference print instruction is searched. In the example shown in FIG. 6, the paper size “A4”, the layout direction “Portrait”, the reference font size “8 points”, and the standard font size indicated or input to a predetermined instruction input unit, for example, “10 points”. Corresponds to the print setting information. Also, this print setting information is information that is referred to at the time of output in the printing apparatus, or information that is used when the image processing apparatus formats the document data into a physical page. Information on the finishing process such as the presence or absence of stapling, and the like.
[0132]
Next, in step S702, the URI described in the reference print instruction is searched. In the example shown in FIG. 6, “http://myserver.com/mydocument” corresponds to this.
[0133]
In step S703, the detected URI and print setting information are converted into an HTTP format to prepare for information transmission. The above processing is processed in the reference print instruction processing unit 1106, and the subsequent processing is processing in the protocol control unit 1101.
[0134]
In step S704, the Web server 2000 specified by the URI is searched. In step S705, a file acquisition request is transmitted to the Web server 2000 using the HTTP protocol. In step S706, when document data (for example, shown in FIG. 10) transferred from the Web server 2000 is received (acquired), the process ends.
[0135]
FIG. 14 is a flowchart showing an example of a first data processing procedure in the server apparatus according to the present invention, and corresponds to the main processing procedure from the start to the end of the operation of the Web server 2000 shown in FIG. S801 to S806 indicate each step.
[0136]
First, in step S801, data is received from the network using the HTTP protocol. This process is performed in the Web server interface 2001.
[0137]
In step S802, the document information specified by the URI is extracted from the document server 2004. Further, in step S803, resources necessary for the layout are acquired.
[0138]
The resource necessary for the layout corresponds to, for example, the style sheet shown in FIG.
[0139]
Next, in step S804, print setting information notified by the HTTP protocol is detected, and then a formatting process is performed in step S805. That is, using the information and resources necessary for the page layout collected in steps S802 to S804, an actual physical page layout process (formatting process) is performed in step S805.
[0140]
In step S805, when the formatting process is completed, the process proceeds to step S806, in which the physical page layout-completed document data is transmitted using the HTTP protocol, and all the processes are completed.
[0141]
FIG. 15 is a flowchart showing an example of a second data processing procedure in the server apparatus according to the present invention, and corresponds to the detailed procedure of the formatting process (layout process to the physical page) shown in FIG. S901 to S907 indicate each step.
[0142]
The Web server 2000 uses document data described in a structured description language, font size information in the document data, and a font size input by the user to be set in the character information when the document data is page-laid. Process using.
[0143]
The font size information includes the minimum font size set for the characters included in the structured document, the most frequently appearing font size that appears most frequently, or the default set for the structured document to be processed. The font size input by the user from the input unit of the printer or the host computer, specifically, the character indicated by the character information included in the document information is displayed on the paper or the print preview screen. The font size desired by the user when outputting is called the standard font size.
[0144]
A character string to which specific font size information (for example, a reference font size) is applied is recognized using an analysis unit, and the character string to which the font size information is applied is a standard font size input by an instruction input unit. Output. The font size information is information regarding the font size included in the structured document to be processed.
[0145]
Even if the specified font size information is applied to the structured document, the printer performs page layout of the character or character string with the set desired font size (standard font size) and outputs it. To do.
[0146]
In addition, when performing page layout, a standard font size to be set for a character indicated by the character information is instructed by a predetermined instruction input unit. The instruction input means includes, for example, an operation panel 1012 of the printer 1000 capable of instructing a font size, and an input unit such as a keyboard 9 for a host computer connected to the printer 1000. If a host computer 3000 equipped with software for controlling the printer 1000 is used, a standard font size can be input remotely.
[0147]
Furthermore, for example, it is conceivable to store the font size in the storage unit 13 installed in the printer that stores the font size prior to the layout process at the time of factory shipment or printer installation. Information (plurality) indicating the font size stored in the storage unit 13 is read out, and information (single) indicating a desired font size is manually or manually selected from the information (plurality) indicating these font sizes. Selection instruction means (not shown) for automatically instructing selection is also included in the instruction means.
[0148]
The selection instruction means may be provided in the printer or may be provided in the host computer. Similarly, the font size information in the document data is selected or set in the storage unit 13 in advance or interactively in the host computer, the printer 1000, or the like.
[0149]
Hereinafter, the flow of the processing of FIG. 15 will be described.
[0150]
First, in step S901, a character to which a reference font size indicating the reference font of the document font size is applied is searched. In the present embodiment, the character or character string is selected in advance as “reference font size” from the operation panel 1012 of the printer or the input unit of the host computer by the font size designation unit 4200 shown in FIG. Shall. In the example shown in FIG. 6, the “reference font size (<base-font-size> 8pt </ base-font-size>)” described in the document, that is, the character of “8 points” is the reference font size. It hits. In step S <b> 902, a character or character string to which “reference font size” is applied is set to a standard font size instructed from the operation panel 1012. In other words, if the standard font size designated by the operation panel 1012 is “10 points”, the character “8 points” is scaled to “10 points”. This eliminates the need to start an application on the host computer side and change the structured document as before, and the user simply sets the font size on the printer-side operation panel and sends the structured document to the image processing apparatus. Just do it.
[0151]
In step S903, physical layout processing is started, and document data is sequentially allocated to physical pages. In step S904, it is determined whether there is a character in the document data. If it is determined that there is no character, the process proceeds to step S906.
[0152]
On the other hand, if it is determined in step S904 that there is a character, the font size to be output is calculated from the ratio to the standard font size in step S905, and the layout on the physical page is advanced in step S906. For example, if the character is 12 points, the font size is “12 × (10 ÷ 8) points”. In this way, the processing from step S904 is repeated until it is determined in step S907 that an end tag of the document data is detected. When the end tag of the document data is detected, the processing ends.
[0153]
In this embodiment, the case has been described in which the font size to be output is calculated from the ratio to the standard font size in step S905, and the characters are output with the font size according to the ratio. It may be configured to output all the characters in the standard font size.
[0154]
Next, specific examples of output results according to the present embodiment will be described with reference to FIGS.
[0155]
16 to 18 are diagrams for explaining the document data output processing result in the first embodiment of the present invention. FIG. 16 is a diagram for displaying a document described in a structured description language without the concept of a page by a browser. FIG. 17 shows an output result when “12 points” is designated as the standard font size, and FIG. 18 shows an output result when “8 points” is designated as the standard font size.
[0156]
As shown in FIG. 17, when “12 points” is designated as the standard font size, it is easy to see for the elderly and children, and the characters are laid out in a relaxed manner. On the other hand, as shown in FIG. When “8 points” is designated as the standard font size, it is desirable that the characters be small and output in a precise layout that can contain a lot of information on one sheet.
[0157]
[Second Embodiment]
In the first embodiment, the example in which XML is used as the description language of the document stored in the document server 2004 has been described. In the present embodiment, an example in which HTML is used will be described with reference to FIGS. 19 and 20. To do.
[0158]
FIG. 19 is a flowchart for explaining a data processing procedure in the server device according to the second embodiment of the present invention, and corresponds to the main processing from the start to the end of the operation of the Web server 2000. S1601 to S1605 indicate each step.
[0159]
First, in step S1601, data is received from the network using the HTTP protocol. This processing is processed in the Web server interface 2001.
[0160]
In step S1602, the document specified by the URI is extracted from the document server 2004. In the first embodiment, the resource acquisition process necessary for the layout is performed here, but the process is not necessary because the HTML includes the layout information. Next, in step S1603, print setting information notified by the HTTP protocol is detected, and then in step S1604, formatting processing is performed. That is, the actual physical page layout process is performed using only the information obtained by the processes in steps S1602 and S1603.
[0161]
Note that the formatting process in S1604 is the same as that in the first embodiment, and a description thereof will be omitted.
[0162]
When the processing ends in step S1604, the process advances to step S1605 to transmit a physical page laid out document using the HTTP protocol, and all processing ends.
[0163]
A specific example of document data by HTML used in this embodiment is shown in FIG.
[0164]
FIG. 20 is a diagram showing a specific example of document data by HTML processed in the server device showing the second embodiment of the present invention.
[0165]
In FIG. 20, the <H1> tag on the third line defines display in the largest font. Thus, since HTML includes layout information in the description language itself, the processing procedure can be simplified as compared with the first embodiment.
[0166]
[Third Embodiment]
In the first embodiment, an example in which the formatting process is performed on the Web server side in the present embodiment has been described. In the present embodiment, an example in which the formatting process is performed on the printing apparatus side will be described with reference to FIGS.
[0167]
FIG. 21 is a block diagram illustrating the configuration of the image processing apparatus according to the third embodiment of the present invention. The same components as those in FIG. 3 are denoted by the same reference numerals.
[0168]
In FIG. 21, the printer 1000 is roughly composed of a formatter control unit 1100, a printer interface 1200, an output control unit 1300, and a printer engine unit 1400.
[0169]
The formatter control unit 1100 includes a protocol control unit 1101, a document data analysis unit 1103, a data drawing unit 1104, a page memory 1105, and a physical layout processing unit 1107.
[0170]
A printer interface (printer I / F) 1200 is a means for input / output from / to the outside.
[0171]
The protocol control unit 1101 is means for performing communication with the outside by analyzing and transmitting a network protocol. The physical layout processing unit 1107 is a means for allocating a structured description language to a physical page, that is, a formatting process.
[0172]
The document data analysis unit 1103 is means for analyzing document data described in a structured description language and converting it into an intermediate code in a format that is easier to process. The intermediate code generated in the document data analysis unit 1103 is passed to the data drawing unit 1104 for processing.
[0173]
The data drawing unit 1104 develops the intermediate code into bitmap data, and the developed bitmap data is sequentially drawn in the page memory 1105. In general, the formatter control unit 1100 is configured by a computer system using a CPU, a ROM, a RAM, and the like. The output control unit 1300 converts the contents of the page memory 1105 into a video signal and transfers the image to the printer engine unit 1400.
[0174]
The printer engine unit 1400 is a printing mechanism unit for forming a received video signal on a recording sheet as a permanent visible image.
[0175]
FIG. 22 is a flowchart showing an example of a fourth data processing procedure in the image processing apparatus according to the present invention. The main processing procedure from the start to the end of the operation of the printer 1000 in the present embodiment shown in FIG. Correspond. Note that steps S2201 to S2205 indicate each step, but the detailed procedures of the formatting process in step S2203 and the drawing process in step S2204 are the same as the processes described in the first embodiment, and thus the description thereof is omitted here.
[0176]
First, in step S2201, data is received from the network through the printer interface 1200. It is described in a structured description language designated in advance by a URI (“http://myserver.com/mydocument” in the example shown in FIG. 6) described in the reference print instruction based on the reference print instruction. Document data (for example, document information described in HTML) has been requested from the Web server 2000, and the data received here is the document specified by the URI described in the reference print instruction received in advance. Data (for example, document data described in a structured description language such as HTML). The document data may be, for example, document data described in XML shown in FIG. 8 and resources (for example, FIG. 9) necessary for the layout of the document data.
[0177]
Next, after analyzing the protocol in step S2202, in step S2203, formatting processing, that is, allocation to physical pages is performed. Thereafter, the process proceeds to step S2204 to perform drawing processing.
[0178]
Thereafter, in step S2205, it is determined whether or not the document data has ended. If it is determined that the document data has ended, the printing operation is ended.
[0179]
On the other hand, if it is determined in step S2205 that the document data has not ended, the processing from step S2201 is repeated.
[0180]
In the first embodiment, the reference font size is designated by the reference print instruction, but other designation methods such as designation from the operation panel may be used.
[0181]
In the third embodiment, the reference font size can be specified together with the document data.
[0182]
For example, if a reference font size is added to document data in advance, it can be set as an initial value when the reference font size is not specified.
[0183]
In the first to third embodiments, the standard font size for page layout is specified by the point size. However, it can be simplified to, for example, “large”, “medium”, and “small”. In this case, it can be realized by associating with the point size in advance such as “large” = 8 points, “medium” = 10 points, and “small” = 12 points.
[0184]
In the first embodiment, the reference print instruction is described in the structured description language. However, if the document data in the structured description language is instructed to be output, the reference print instruction is always described in the structured description language. There is no need. For example, it is possible to instruct only by the HTTP protocol.
[0185]
Furthermore, in the first embodiment, an example in which the document server is a component of the Web server has been described, but the document server may be external. For example, it may be a hard disk of another personal computer.
[0186]
In the first embodiment, the information related to the physical page layout is notified from the information instructed by the reference print instruction. However, if the information is referred to at the time of layout, the information not instructed by the reference print instruction is notified. Also good.
[0187]
For example, a more strict physical page layout can be performed by notifying the resolution unique to the printing apparatus.
[0188]
In addition, by combining the first to third embodiments, the processing is switched according to the resource difference of the server device and the data processing capability, and the document information instructed by the user is efficiently developed, and at high speed. You may comprise so that a printing process can be performed.
[0189]
In addition, it is also within the scope of the present invention to construct a printing system, for example, from an image processing apparatus and server apparatus that include each means according to the present invention, or from an image processing apparatus that can execute each step and a server apparatus. This provides a printing system that realizes a highly flexible page layout by performing formatting based on an arbitrarily designated character size, and can select an output according to preferences from the elderly to children. Is possible.
[0190]
As described above, when analyzing document information described in a predetermined structured description language, the document information acquired from the server device based on the designated font size (reference font size and standard font size) is physically stored. Since it is assigned to a page, it is possible to lay out document information described in a predetermined structured description language acquired based on a specific character size specified by the user, realizing a highly flexible page layout, from elderly to children The output can be selected according to your preference.
[0191]
Also, a font size (reference font size and standard font size) specified by the user in the reference print instruction to be transmitted to an arbitrary server device is transmitted as print setting information to the server device from which the document information is acquired, and the print setting information Accordingly, the document information laid out by the server device is acquired and output according to the above, so that various document information laid out in a page size of the user's favorite size can be output without imposing a drawing burden on the image processing device side.
[0192]
Therefore, the image processing apparatus uses the size document information obtained by rescaling the character size based on the character size intended by the user for the character size set for each character set in the document information managed by the server device to be acquired. Or it is possible to construct an image processing system environment that can easily obtain the optimal document information output laid out in a size according to the preference from elderly people to children, etc., which can be page layout on the server device Has an effect.
[0193]
[Fourth Embodiment]
In the first to third embodiments, the configuration has been described in which the reference font size in the document data described using the structured description language specified by the reference print instruction or the like is converted into the standard font size and output. The minimum character size of document data described using a structured description language may be converted into a standard font size and output. The embodiment will be described below.
[0194]
FIG. 23 is a flowchart showing an example of the fifth data processing procedure in the image processing apparatus according to the present invention. The formatting process shown in step S2203 of FIG. 22, that is, the layout process to the physical page in the physical layout processing unit 1107. It shows the details. S2401 to S2407 indicate steps. Further, the formatting process may be performed on the Web server 2000 side (that is, the formatting process shown in step S805 in FIG. 14 may be performed).
[0195]
In the following, differences from the previous embodiment are shown. A case where the minimum font size is selected as the reference font size information will be described. That is, the minimum character size, the character to which the minimum font size is applied, and the like are recognized from the document data described using the structured description language. Using the recognized minimum character size and the standard font size instructed by a predetermined instruction means, the document data is output to output the character or character string to which the minimum character size is applied in the instructed standard font size. Lay out the font size of the character information to be included.
[0196]
First, in step S2401, document data is searched from the beginning, character data is recognized, the character size is calculated when detected, and the calculated character size is stored in step S2402. In step S2403, it is determined whether or not all the document data has been searched, and the processing in steps S2401 to S2402 is repeated until the search is completed, thereby completing a list of character sizes used in the document.
[0197]
If the search for all the document data is completed in step S2403, the process proceeds to step S2404, and the minimum character size min is detected and recognized using the stored character size list. In step S 2405, an enlargement ratio is calculated when the detected minimum character size min is regarded as a standard font size (in this example, “8 points”). The standard font size (the number “8 points”) that is the output font size is displayed on the screen on the operation panel 1012 of the printer 1000 (graphical user interface (for example, the font size designation unit 4200 shown in FIG. 41 described later)). Or by a graphical user interface on the CRT 10 screen of the host computer (which will be described later using the font size designation unit 4200 shown in FIG. 41) via the input unit 18 of the printer via the network. For example, it is assumed to be held in the RAM 19.
[0198]
Since this enlargement ratio becomes a reference for the physical layout, in step S2406, allocation to physical pages is performed sequentially from the top of the document using this enlargement ratio.
[0199]
In step S2407, it is determined whether or not allocation to physical pages has been completed for all document data, and the allocation processing in step S2406 is repeated until the allocation is completed.
[0200]
A specific example of the formatting process shown in FIG.
[0201]
If, for example, “6 points”, “8 points”, and “10 points” are listed as character sizes used in the document in steps S2401 to S2403, “6 points” is set as the minimum character size min in step S2404. Is detected. Then, in step S2405, the enlargement ratio for setting this to “8 points” which is the standard font size is calculated as “8/6 times”. Therefore, the character sizes of the other listed “8 points” and “10 points” are allocated to the physical page by “8 × (8/6) points” and “10 × (8/6) points”, respectively. It should be noted that not only characters but also other figures (objects) such as tables and border lines are allocated to physical pages by multiplying this enlargement ratio (“8/6” in the above example).
[0202]
Hereinafter, with reference to FIGS. 24 to 26, a specific example of the formatting process result in the present embodiment will be shown.
[0203]
FIG. 24 is a diagram showing an example of input document data described in HTML. FIG. 25 is an example of page layoutable data converted by performing formatting processing on the input document data shown in FIG. FIG. 26 is a schematic diagram showing an example of a result of actually printing the document data shown in FIG.
[0204]
According to this example, as shown in FIG. 24 as “<font-size …… table 1 </ font> </ P>”, the size of the minimum character (“table 1”) is “4 points”. Therefore, the enlargement ratio is calculated as “8/4 = 2 times”.
[0205]
Accordingly, the size of the title character (“Sample”) indicated by the tag “<Hl>” in FIG. 24 is 14 points, and the reference font size of the other characters (“this document browser.”) Is the default value. If “6 points”, according to FIG. 25, the title character size is “28 points”, the other character sizes are “12 points”, and the minimum character size is “8 points”. I understand. In addition, since this enlargement ratio (twice) is applied to the table object, it can be seen that the table is allocated in the page in two.
[0206]
As described above, according to the present embodiment, when a structured description language is formatted, it is possible to perform appropriate allocation within a page by performing a physical layout based on the minimum character size that is font size information. Become.
[0207]
Although the calculation of the enlargement ratio in the present embodiment has been described for the case where the minimum character size min detected in the structured description language is enlarged to “8 points”, the present invention is not limited to this example. The same applies to the case where the enlargement ratio is calculated so as to enlarge to the size (standard font size instructed by the predetermined instruction means).
[0208]
Also, when determining the character size based on the calculated enlargement ratio, not only multiplying the enlargement ratio, but also optimization processing such as rounding up to an appropriate number of points (number of points normally used in the system) You may comprise so that it may give.
[0209]
[Fifth Embodiment]
In the above-described fourth embodiment, the configuration has been described in which the minimum character size is recognized and used as the font size information set in advance or interactively. However, the reference value is set based on the maximum width of the object. May be. Here, the object refers to a drawing figure other than a character, and a table, an image, or the like corresponds to this in an HTML document. The embodiment will be described below.
[0210]
FIG. 27 is a flowchart showing an example of the sixth data processing procedure in the image processing apparatus according to the present invention. The formatting process shown in step S2203 of FIG. 22, that is, the layout process to the physical page in the physical layout processing unit 1107. It shows the details. S2501 to S2509 indicate each step. Further, the formatting process may be performed on the Web server 2000 side (that is, the formatting process shown in step S805 in FIG. 14 may be performed). Furthermore, the system configuration, the main process of the printing operation, and the drawing process in the present embodiment are the same as those in the above-described fourth embodiment, and thus description thereof is omitted. Hereinafter, differences from the above-described embodiment will be described.
[0211]
First, in step S2501, document data is searched from the top, and objects other than characters are searched. For example, in the case of HTML, a tag such as “<table>” or “<img>” may be searched.
[0212]
In step S2502, the width of the detected object is calculated. For example, if the object is a table, the width can be calculated based on the width information specified in the table or the character size described in the table. In the case of an image, the width can be calculated based on image information described in the header of the data format.
[0213]
In step S2503, it is determined whether or not the search of all document data has been completed. By repeating the processing in steps S2501 to S2502 until the search is completed, a list of the widths of objects used in the document is completed. .
[0214]
If the search of all document data is completed in step S2503, the process proceeds to step S2504, and the maximum object width max is detected from the list of stored object widths. In step S2505, the detected maximum object width max is compared with the page width. Here, the page width refers to the length in the main scanning direction that allows physical printing within the recording paper.
[0215]
If the maximum object width max is equal to or smaller than the page width, the process advances to step S2507 to set the reduction ratio to 1. On the other hand, if the maximum object width max is larger than the page width, the process advances to step S2506 to calculate a reduction ratio when the maximum object width max is regarded as the page width. Since the reduction ratio obtained in this way becomes a reference for the physical layout, in step S2508, allocation to physical pages is performed sequentially from the top of the document using this reduction ratio.
[0216]
In step S2509, it is determined whether allocation to physical pages has been completed for all document data, and the allocation processing in step S2508 is repeated until the allocation is completed.
[0217]
For document data that does not include objects other than characters, that is, all document characters are configured, no object is detected in step S2501. In such a case, although not particularly shown in the flowchart of FIG. 27, the reduction ratio is set to 1 and the allocation process to the physical page is performed. Therefore, for example, when an object is not detected in step S2501, a step of setting the object maximum width max to a minimum value (for example, “0”) may be provided.
[0218]
A specific example of the formatting process shown in FIG.
[0219]
If, for example, “2000 dots” and “5000 dots” are listed as the object widths used in the document in steps S2501 to S2503, “5000 dots” is detected as the maximum object size max in step S2504.
[0220]
On the other hand, if the recording paper is A4 size and the printer resolution is 600 dpi, the page width when the recording paper is conveyed vertically is “4720 dots”. Then, since the maximum object size max (5000) is larger than the page width (4720) in step S2505, the reduction ratio is calculated as “4720/5000” in step S2506. Note that not only objects but also characters are assigned to physical pages by multiplying the reduction ratio.
[0221]
Hereinafter, with reference to FIG. 28 and FIG. 29, a specific example of the formatting process result in the present embodiment will be shown.
[0222]
FIG. 28 is a diagram showing an example of a conversion result (document data) obtained by performing the formatting process shown in FIG. 27 on the HTML input document data shown in FIG. 24 in the fourth embodiment, and FIG. FIG. 29 is a schematic diagram illustrating an example of an actual print result of the document data illustrated in FIG.
[0223]
28 and 29, it can be seen that the table which is the object having the maximum width is appropriately allocated in the page, and the character size is smaller than that in FIG. 26 shown in the fourth embodiment.
[0224]
As described above, according to the fifth embodiment of the present invention, when a structured description language is formatted, values can be appropriately allocated within a page by performing physical layout based on the maximum object width. Become.
[0225]
[Sixth Embodiment]
In the above-described fourth embodiment, the configuration in which the minimum character size is recognized and used as the font size information set in advance or interactively has been described. However, as the font size information that can be set in advance or interactively, the physical layout reference The value may be set using the most frequently used font size that is the most frequently used character size. The embodiment will be described below.
[0226]
FIG. 30 is a flowchart showing an example of a seventh data processing procedure in the image processing apparatus according to the present invention. The formatting process shown in step S2203 of FIG. 22, that is, the layout process to the physical page in the physical layout processing unit 1107. It shows the details. S2601 to S2607 indicate each step. Further, the formatting process may be performed on the Web server 2000 side (that is, the formatting process shown in step S805 in FIG. 14 may be performed). Furthermore, the system configuration, the main process of the printing operation, and the drawing process in the present embodiment are the same as those in the above-described fourth embodiment, and thus description thereof is omitted. Hereinafter, differences from the above-described embodiment will be described.
[0227]
First, in step S2601, document data is searched from the beginning, and when character data is detected, the character size is calculated. In step S2602, the number of characters for each character size is counted and stored. In step 803, it is determined whether or not the search of all document data has been completed. By repeating the processing in steps S2601 to S2602 until the search is completed, a list of character sizes and the number of characters used in the document is obtained. Complete.
[0228]
If the search for all the document data is completed in step S2603, the process proceeds to step S2604, and the most frequently used character size (freq) is detected from the stored character size list. In step S2605, an enlargement ratio is calculated when the recognized most frequently used character size (freq) is regarded as a standard font size (in this example, “10 points”). Since this enlargement ratio is a reference for the physical layout, in step S2606, the enlargement ratio is used to perform allocation to physical pages sequentially from the top of the document.
[0229]
In step S2607, it is determined whether allocation to physical pages has been completed for all document data, and the allocation processing in step S2606 is repeated until the allocation is completed.
[0230]
A specific example of the formatting process shown in FIG. 30 will be described below.
[0231]
If, for example, “8 points” is listed as 10 characters, “10 points” is 400 characters, and “20 points” is 8 characters as a character size used in the document in steps S2601 to S2603, the most frequently appearing in step S2604. “10 points” is detected as the character size (freq). Then, in step S2605, the enlargement ratio for setting this to “10 points”, which is the standard font size specified in advance by the user, is calculated as “10/10 times (= 1 times)”. Accordingly, the other “8 points” and “20 points” character sizes listed are also allocated to the physical page at “8 points” and “20 points”, respectively. It should be noted that not only characters but also other figures (objects) such as tables and border lines are allocated to physical pages by multiplying by this enlargement ratio (1 time in the above example).
[0232]
Hereinafter, with reference to FIG. 31 and FIG. 32, a specific example of the formatting process result in the present embodiment will be shown.
[0233]
FIG. 31 is a diagram illustrating an example of a result (document data) obtained by performing the formatting process of the present embodiment on the HTML input document data illustrated in FIG. 24 in the fourth embodiment, and FIG. It is a schematic diagram which shows an example of the actual printing result of the document data shown in FIG.
[0234]
According to this example, since the most frequently used character size (“this document browser.”) Shown in FIG. 24 is set as the standard value “6 points” as described above, The enlargement ratio is calculated as “10/6” times. Accordingly, since the size of the title character (“Sample”) in FIG. 24 is “14 points” and the size of the minimum character (“table 1”) is “4 points”, according to FIG. “10 points”, the character size of the title is “14 × 10/6 = 23.33 (23) points”, and the minimum character size is “4 × 10/6 = 6.66 (7) points”. I understand that. It can also be seen that this enlargement ratio (10/6 times) is applied to the table object having the maximum width, and as shown in FIG. 32, it is barely allocated in the page.
[0235]
As described above, according to the sixth embodiment, when the structured description language is formatted, the physical layout is performed based on the most frequent character size, so that appropriate allocation to the page can be performed.
[0236]
Note that the calculation of the enlargement ratio in the present embodiment is not limited to the example in which the detected most frequent character size (freq) is enlarged to 10 points, as in the fourth embodiment, but other sizes (by predetermined instruction means) The same applies even when enlarging the designated standard font size). Also, when converting the character size, not only the enlargement factor is multiplied, but also optimization processing such as rounding up to an appropriate number of points may be performed.
[0237]
In the fifth embodiment, characters are output in a size based on the ratio between the minimum character size and the standard font size. However, as in the sixth embodiment, the ratio between the most frequent character size and the standard font size, or As in the third embodiment, the output may be performed at a size based on the ratio between the reference font size and the standard font size.
[0238]
[Seventh Embodiment]
In the fourth to sixth embodiments, the configuration for calculating the enlargement ratio of the entire page by recognizing the character size or the maximum width of the object has been described. However, it may be configured to use different enlargement ratios for characters and objects. Good. Hereinafter, the embodiment will be described with reference to FIGS.
[0239]
FIG. 33 is a flowchart showing an example of the eighth data processing procedure in the image processing apparatus according to the present invention. The formatting process shown in step S2203 of FIG. 22, that is, the layout process to the physical page in the physical layout processing unit 1107 is shown. It shows the details. S3401 to S3408 indicate each step. Further, the formatting process may be performed on the Web server 2000 side (that is, the formatting process shown in step S805 in FIG. 14 may be performed). Furthermore, the system configuration, the main process of the printing operation, and the drawing process in the present embodiment are the same as those in the above-described fourth embodiment, and thus description thereof is omitted. Hereinafter, differences from the above-described embodiment will be described. In this embodiment, an example in which the minimum character size described in the fourth embodiment and the like (FIG. 23, etc.) is recognized and the enlargement ratio is calculated based on this will be described. However, the enlargement ratio is calculated from the character size. If so, for example, as shown in the sixth embodiment (FIG. 30), the most frequently used character size may be recognized to calculate the enlargement ratio. In the following, differences from the embodiments described so far are shown.
[0240]
First, in step S3401, the document data is searched from the beginning, and the character size (particularly, the minimum character size (min)) used when the character data is detected is calculated. Next, an enlargement ratio (hereinafter referred to as a reference enlargement ratio) when the minimum character size (min) detected in step S3402 is regarded as a standard character size (in this example, “8 points”) is calculated. The reference enlargement ratio is an enlargement ratio that is basically applied to drawing processing of all characters, figures, and images during physical layout. If the maximum character size detected in step S3401 is “6 points”, the reference enlargement ratio is “8”. / 6 "is the reference magnification. The reason for the principle is that in the case of graphic / image processing, it is changed to a specific enlargement ratio. The graphic / image processing will be described later.
[0241]
After calculating the reference enlargement ratio, the document description content is analyzed from the beginning of the document in step S3403. If the analyzed description is a character drawing (step S3404), the process proceeds to step S3405, where the reference enlargement factor is multiplied by the character size and the character pitch, and then the physical page is laid out.
[0242]
On the other hand, if the description analyzed in step S3404 is not a character drawing, the process further proceeds to step S3406 to determine whether the drawing is a figure or an image. In the case of drawing a graphic or an image, the process proceeds to step S3407 to perform graphic / image processing. As described above, the processes in steps S3403 to S3407 are repeated until the analysis of all the documents and the allocation to physical pages are completed (step S3408).
[0243]
FIG. 34 is a flowchart showing an example of the ninth data processing procedure in the image processing apparatus according to the present invention, and corresponds to the graphic / image processing shown in step S3407 of FIG. This process is a process of assigning a figure or image to a physical page. Hereinafter, graphics and images are collectively referred to as objects. S3501 to S3505 indicate each step. In addition, when the formatting process shown in FIG. 33 is performed on the Web server 2000 side, this graphic / image processing is also performed on the Web server 2000 side.
[0244]
First, in step S3501, the width of the object is calculated. For example, the width of the object is calculated from the width information specified in the table or the character size described in the table if it is a table, or from the image information described in the header of the data format if it is an image. It is possible.
[0245]
In step S3502, the right end of the object is calculated by multiplying the reference enlargement ratio calculated in step S3402 of FIG. Specifically, the right end of the object is obtained by multiplying the sum of the drawing start position of the object and the width of the object by the reference enlargement ratio. In step S3503, it is determined whether the right edge of the object is larger than the right edge of the page, that is, whether the object protrudes from the right edge of the page. If the object protrudes from the right edge of the page, the process further proceeds to step S3504, and an enlargement ratio (hereinafter referred to as obj-mag) when the right edge of the object is the right edge of the page is calculated. Specifically, a value obtained by dividing the difference between the right edge of the page and the drawing start position of the object by the object width is “obj-mag”.
[0246]
On the other hand, if the object does not protrude from the right edge of the page in step S3502, “1” is set in “obj-mag” in step S3506.
[0247]
Finally, in step S3505, allocation to the physical page is performed while scaling the object by “obj-mag” times. In other words, when a figure or image is projected out of the paper by applying the enlargement ratio calculated from the character size, the image is displayed by forcibly pressing the figure and image into the same page by changing the enlargement ratio individually. It is possible to prevent the output from being cut out, and to realize a good page layout.
[0248]
Hereinafter, specific examples of the present embodiment will be described with reference to FIGS.
[0249]
FIG. 35 is a diagram illustrating an example of a document displayed on a Web browser, and corresponds to a document in which image data is pasted in a character string.
[0250]
FIG. 36 and FIG. 37 are diagrams showing an example of the printing result in the actual printing apparatus of FIG. 35. FIG. 36 corresponds to the printing result by applying the enlargement factor considering only characters, and FIG. Considering both images, it corresponds to printing results using different enlargement ratios for characters and objects.
[0251]
In the method of applying the formatting process shown in the fourth embodiment to the sixth embodiment to all the objects shown in FIG. 35, a case of protruding from the page occurs as shown in FIG.
[0252]
Therefore, in the layout processing according to the present embodiment, since different enlargement ratios are used for characters and objects in consideration of both characters and images, as shown in FIG. It is possible to obtain an output with good appearance.
[0253]
[Eighth Embodiment]
In the seventh embodiment, the reference is given to only the characters in advance, and the object enlargement ratio is calculated only when the character protrudes from the page. However, the enlargement ratio can be determined by instructing the reference in advance for each character and object. The embodiment may be configured to enable control from the outside, and an embodiment thereof will be described below with reference to FIG.
[0254]
FIG. 38 is a diagram showing an example of a reference print instruction in the present embodiment.
[0255]
Although the contents of each item have been described in the above-described embodiment, in FIG. 38, the object enlargement ratio <object-mag> is designated in addition to the standard font size. “Small” is specified in <object-mag>, that is, “small” is instructed to the enlargement ratio of the object.
[0256]
FIG. 39 is a flowchart showing an example of the tenth data processing procedure in the image processing apparatus according to the present invention. The formatting process shown in step S2203 of FIG. 22, that is, the layout process to the physical page in the physical layout processing unit 1107. It shows the details. Note that S3601 to S3608 indicate each step. Further, the formatting process may be performed on the Web server 2000 side (that is, the formatting process shown in step S805 in FIG. 14 may be performed). Furthermore, the system configuration, the main process of the printing operation, and the drawing process in the present embodiment are the same as those in the above-described fourth embodiment, and thus description thereof is omitted. Hereinafter, differences from the above-described embodiment will be described.
[0257]
First, in step S3601, a character reference enlargement ratio is calculated. Since this calculation method is as described in the above embodiment, the details are omitted.
[0258]
In step S3602, the object reference enlargement ratio is calculated in the same manner. In the case of the designation shown in FIG. 38 (the object enlargement ratio is “small” “small”), for example, the object reference enlargement ratio is calculated by multiplying the character reference enlargement ratio by “3/4”. The numerical value “3/4” is a numerical value previously stored for “small”, and in addition to this, when the object enlargement ratio is “middle” “medium”, “1”, the object enlargement ratio When “big” is “large”, it is assumed that a numerical value is previously held in a one-to-one correspondence with a specific character string, such as “4/3”.
[0259]
After calculating the character reference enlargement ratio and the object reference enlargement ratio in this way, the process advances to step S3603 to analyze the document description content from the beginning of the document. If the analyzed description is a character drawing (step S3604), the process proceeds to step S3605, where the character size and the character pitch are multiplied by the reference enlargement ratio, and then the layout is performed on the physical page.
[0260]
On the other hand, if the description analyzed in step S3604 is not a drawing of characters, the process further proceeds to step S3606, where it is determined whether the drawing is a drawing of a figure or an image. In the case of drawing a graphic or an image, the process proceeds to step S3607, where the drawing position and width / height are multiplied by the object reference enlargement ratio to perform allocation to a physical page.
[0261]
In this way, the processes in steps S3603 to S3607 are repeated until the analysis of all the documents and the allocation to the physical page are completed (step S3608).
[0262]
Hereinafter, a specific example of this embodiment will be described with reference to FIG.
[0263]
FIG. 40 is a schematic diagram showing an example of a printing result in the present embodiment of the document shown in FIG.
[0264]
As shown in the figure, the characters are laid out by being enlarged by “8/6” times, while the images are laid out by “(8/6) × (3/4) = 1” times. Recognize.
[0265]
As described above, a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to the system or apparatus, and the computer (or CPU or MPU) of the system or apparatus stores the storage medium in the storage medium. It goes without saying that the object of the present invention can also be achieved by reading and executing the programmed program code.
[0266]
[Ninth Embodiment]
The ninth embodiment according to the present invention will be described below.
[0267]
The ninth embodiment is characterized in that any one of all or part of the formatting processes shown in the third to eighth embodiments described above can be arbitrarily selected. In other words, the system configuration and the main process and drawing process of the printing operation in the ninth embodiment are the same as those in the fourth embodiment described above, but the physical layout reference values in the formatting process are the minimum character size and the maximum object. It is set based on either the width or the most frequent character size.
[0268]
Specifically, the operation panel 1012 of the printer 1000 is configured such that the user can select any one of the above three types as the formatting reference value, that is, select any one of the layout methods corresponding to the above embodiments. Just do it.
[0269]
FIG. 41 is a schematic diagram illustrating an example of a screen that can be displayed on the operation panel 1012 of the printer 1000 illustrated in FIG. 1, and corresponds to the font size designation unit 4200 that can instruct and input the font size.
[0270]
Note that this screen may be displayed on the CRT 10 of the host computer 3000 connected to the printer 1000 via a network.
[0271]
A font size may be specified from the CRT 10 of the host computer 3000 using a mouse or KB9, and the specified font size may be input to a font size instruction input unit to be output by the printer.
[0272]
In the font size designation unit 4200, reference numeral 4201 denotes an OK button which is pressed when the font size designation is completed, and the font size designation becomes valid. Reference numeral 4202 denotes a cancel button. When pressed, the font size designation becomes invalid.
[0273]
Reference numerals 4203, 4204, 4209, and 4210 are selection means for selecting a character or a character string for which font size designation is desired, and correspond to all characters, most frequently used characters, minimum characters, and reference characters. Reference numeral 4205 denotes a font size designation field for outputting a character selected by the selection means 4203, 4204, 4209, and 4210 (in this figure, the selection means 4204 displayed as "minimum", that is, the minimum font size is selected). Font size (ie, standard font size) can be entered. If there is no input in the font size designation field 4205, the designation in the font size designation field 4205, selection means 4203, 4204, 4209 is invalid.
[0274]
A font size designation field 4205, selection means 4203, 4204, 4209, and 4210 selects which font size information included in the structural document determines font expansion. Note that when the selection unit 4209 displayed as “all” is selected, any font size information applied is output in the font size specified in the font size specification field 4205.
[0275]
Reference numerals 4206, 4207, and 4208 are buttons for changing the reference font, and change the style sheet. For example, when a button 4206 displayed as “Large” is pressed, the font size of the style sheet defining the reference font size is changed to a larger size.
[0276]
Therefore, when the specification in the font size designation field 4205, the selection means 4203, 4204, and 4209 is invalid, the character string to which the style sheet defining the reference font size is applied is a comparatively predetermined reference font size. Output in large size. However, the application of the reference font size defined in the style sheet is excluded, and there is no effect on the part where the font size is individually specified.
[0277]
On the other hand, if the designation of the font size designation field 4205, selection means 4203, 4204, and 4209 is invalid, for example, the selection means 4204 displayed as “minimum” is selected, and “12” points are designated in the font size designation field. In some cases, the minimum font size is output at “12” points or more regardless of the style sheet (ie, regardless of the selection of the buttons 4206, 4207, and 4208). This makes it possible to output an image that is easy to read for the elderly or the like regardless of whether or not the style sheet is applied to the structured document.
[0278]
Further, if the formatting result based on the selected reference value can be previewed for each page in the CRT 10 connected to the host computer 3000, the operability is further improved. Even if this formatting process is performed by the host computer 3000 (that is, the processes shown in FIGS. 15, 23, 27, 30, 33, 34, and 39 are executed in the host computer 3000), the printer 1000 can perform the formatting process. The result of the formatting process may be transferred to a computer and displayed.
[0279]
As described above, according to the ninth embodiment, formatting as desired by the user can be performed.
[0280]
By selecting the selection means 4209, 4203, 4204, and 4210 and inputting the standard font size in the font size designation field 4205, for example, the formatting process applied to the document data described in the same HTML is performed on all characters. Formatting process (not shown) for outputting with standard font size (output form for outputting all characters with standard font size), formatting process shown in FIG. 30 shown in the sixth embodiment (for outputting most frequently used characters with standard font size) 32), the formatting process shown in FIG. 23 shown in the fourth embodiment (the output form shown in FIG. 26 for outputting the minimum character in the standard font size), and the FIG. 15 shown in the first to third embodiments. Formatting process shown in (Standard font as standard character One of the output mode) to output noise becomes selectable. It should be noted that the object size may be changed in combination with the seventh embodiment and the eighth embodiment, respectively.
[0281]
In addition, a button for setting an object and a character to a size based on the object maximum width is provided on the font size designation unit 4200 shown in FIG. 41, and the formatting process (most frequent occurrence) shown in FIG. 27 shown in the fifth embodiment is provided. The output form shown in FIG. 29 for outputting characters in a standard font size may be selectable.
[0282]
As described above, the example in which the character size is calculated as the point value has been described. For example, even in a document in which the character size is specified by other expressions (for example, large / medium / small), each size (large / By maintaining the ratio of (medium / small), the present invention can be applied.
[0283]
In each of the above-described embodiments, a document described in HTML as an example of document data to be formatted has been described as an example. However, the present invention is not limited to this example, and may be a structured description language. Needless to say, other languages such as XML, SGML, and XHTML may be used.
[0284]
In addition, the structure which combined the said 1st Embodiment-9th Embodiment is also contained in this invention.
[0285]
As described above, the present invention, when analyzing document information described in a predetermined structured description language, appears in the document most frequently in the standard font size and reference font size that are set or designated in advance. Acquired from the server device using character size information, information on the smallest character size appearing in the document, information on the maximum object width appearing in the document, information on a combination of these information, or the like By outputting the character information included in the document information in a desired font size regardless of the structure of the document information, the desired font size indicated by the specified instruction means for the character or character string of the structured document is set to the standard font. As a size, document information described in a predetermined structured description language can be laid out.
[0286]
Furthermore, it is possible to provide an image processing apparatus, an image processing method, and a program that can realize a page layout with a high degree of freedom and can select an output according to preferences from elderly people to children.
[0287]
According to a preferred embodiment of the present invention, the font size instruction input means is provided in the image processing apparatus, so that an operation unit of the image processing apparatus or a remote control can be performed without operating an application such as an HTML editor on the PC side. This is realized simply by giving a simple input from the host computer or the like to the image forming apparatus side.
[0288]
As described above, the first object of the present invention of appropriately formatting a document by using information included in the structured document and / or information on a physical page to which the structured document is to be allocated is achieved.
[0289]
Also, the font information (reference font size, standard font size) specified by the user in the reference print instruction is transmitted as print setting information to the server apparatus from which the document information is acquired, and the document information laid out by the server apparatus in accordance with the print setting information By acquiring and outputting the image, the server can output various types of document information in a page layout with a user's preferred size without forcing the drawing processing on the image processing apparatus side. The second objective is achieved.
[0290]
Note that the object of the present invention is not limited to the object achieved by the configuration of the embodiment described above, and it is possible to obtain a good-looking rendering output when allocating a structured document to a physical page, or a network Other configurations can be adopted as long as the purpose is to instruct printing via the printhead and to obtain a good-looking print result.
[0291]
The configuration of a data processing program that can be read by a printing system to which the image processing apparatus and the server apparatus according to the present invention can be applied will be described below with reference to the memory maps shown in FIGS.
[0292]
42 and 43 are diagrams for explaining a memory map of a storage medium for storing various data processing programs that can be read out by a printing system to which the image processing apparatus and server apparatus according to the present invention can be applied.
[0293]
Although not particularly illustrated, information for managing a program group stored in the storage medium, for example, version information, creator, etc. is also stored, and information depending on the OS on the program reading side, for example, a program is identified and displayed. Icons may also be stored.
[0294]
Further, data depending on various programs is also managed in the directory. In addition, a program for installing various programs in the computer, and a program for decompressing when the program to be installed is compressed may be stored.
[0295]
Note that the present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, and a printer), and a device (for example, a copying machine and a facsimile device) including a single device. You may apply to.
[0296]
Another object of the present invention is to supply a storage medium (or recording medium) in which a program code of software that realizes the functions of the above-described embodiments is recorded to a system or apparatus, and the computer (or CPU or Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the program and the storage medium storing the program code constitute the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0297]
In this case, the program code itself read from the storage medium realizes the novel function of the present invention, and the storage medium storing the program code constitutes the present invention.
[0298]
As a storage medium for supplying the program code, for example, a floppy (registered trademark) disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a nonvolatile memory card, a ROM, an EEPROM, A silicon disk or the like can be used.
[0299]
Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS (operating system) or the like running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included.
[0300]
Further, after the program code read from the storage medium is written to a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the case where the CPU or the like provided in the board or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.
[0301]
The functions shown in FIG. 11 to FIG. 15 and FIG. 19, FIG. 22, FIG. 23, FIG. 27, FIG. 30, FIG. 33, FIG. May be. In this case, the present invention is applied even when an information group including a program is supplied to the output device from a storage medium such as a CD-ROM, a flash memory, or an FD, or from an external storage medium via a network. Is.
[0302]
In addition, the present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or apparatus. In this case, by reading the storage medium storing the program represented by the software for achieving the present invention into the system or apparatus, the system or apparatus can enjoy the effects of the present invention. .
[0303]
Furthermore, by downloading and reading a program represented by software for achieving the present invention from a database on a network by a communication program, the system or apparatus can enjoy the effects of the present invention. .
[0304]
【The invention's effect】
  As explained above, the first to the present invention28According to the invention, document data described in a predetermined structured description languageSet to character information contained inFont size information that is information about the font sizespecificAnd theCharacter information with the specified font size information setWith the entered standard font size, Output to physical pageSince it is processed, the text or character string of the document described in the structured description language is output as the standard font size, and an appropriate page layout from the structured document to the physical page is realized. The corresponding output can be easily selected.
[0305]
Also, in a structured description language, a simple input is given to the image forming apparatus from the operation unit of the image processing apparatus or a remote host computer without operating an application such as an HTML editor on the host computer. The document layout can be realized.
[0306]
Further, the standard font size specified by the user in the reference print instruction is transmitted as print setting information to the server apparatus of the document information acquisition destination, and the document information laid out by the server apparatus according to the print setting information is acquired and output. The server can output various types of document information that are laid out in a page of a user's preferred size without forcing the image processing apparatus to perform the drawing process.
[0307]
Therefore, the character size for each character set in the structured document (including the character size set individually for each character) is rescaled based on the standard character size specified by the user. Page layout is possible, and it is possible to freely construct an image processing environment that can easily output structured document information with a good appearance that is laid out according to preferences from elderly people to children. .
[Brief description of the drawings]
FIG. 1 is a cross-sectional view showing an internal structure of a laser beam printer applied to this embodiment.
FIG. 2 is a block diagram illustrating a configuration of a printer control system according to an exemplary embodiment of the present invention.
FIG. 3 is a block diagram showing a data processing configuration in the image processing apparatus showing the first embodiment of the present invention.
FIG. 4 is a diagram illustrating an example of a document information display screen by a browser stored in a document server.
FIG. 5 is a diagram illustrating an example of print output of the document illustrated in FIG. 4;
FIG. 6 is a diagram showing an example of a reference print instruction described in a structured description language in the image processing apparatus according to the present invention.
FIG. 7 is a block diagram showing a configuration of a Web server that can communicate with the image processing apparatus according to the present invention.
8 is a diagram showing an example of document data stored in the document server shown in FIG. 7. FIG.
9 is a diagram showing an example of a style sheet stored in the document server shown in FIG. 7. FIG.
10 is a diagram showing an example of document data converted by the processing of the layout data generation unit shown in FIG.
FIG. 11 is a flowchart showing an example of a first data processing procedure in the image processing apparatus according to the present invention.
FIG. 12 is a flowchart showing an example of a second data processing procedure in the image processing apparatus according to the present invention.
FIG. 13 is a flowchart showing an example of a third data processing procedure in the image processing apparatus according to the present invention.
FIG. 14 is a flowchart showing an example of a first data processing procedure in the server apparatus according to the present invention.
FIG. 15 is a flowchart showing an example of a second data processing procedure in the server apparatus according to the present invention.
FIG. 16 is an example in which a document described in a structured description language having no page concept is displayed in a browser.
FIG. 17 shows an output result when “12 points” is designated as the standard font size.
FIG. 18 shows an output result when “8 points” is designated as the standard font size.
FIG. 19 is a flowchart illustrating a data processing procedure in the server apparatus according to the second embodiment of this invention.
FIG. 20 is a diagram showing a specific example of document data by HTML processed in the server apparatus showing the second embodiment of the present invention.
FIG. 21 is a block diagram illustrating a configuration of an image processing apparatus according to a third embodiment of the present invention.
FIG. 22 is a flowchart showing an example of a fourth data processing procedure in the image processing apparatus according to the present invention.
FIG. 23 is a flowchart showing an example of a fifth data processing procedure in the image processing apparatus according to the present invention.
FIG. 24 is a diagram illustrating an example of input document data described in HTML.
FIG. 25 is a diagram illustrating an example of page layoutable data that is converted by performing a formatting process on the input document data illustrated in FIG. 24;
26 is a schematic diagram showing an example of a result of actually printing the document data shown in FIG. 25. FIG.
FIG. 27 is a flowchart showing an example of a sixth data processing procedure in the image processing apparatus according to the present invention;
28 is a diagram showing an example of a conversion result (document data) obtained by performing the formatting process shown in FIG. 27 on the HTML input document data shown in FIG. 24 in the fourth embodiment.
FIG. 29 is a schematic diagram illustrating an example of an actual print result of the document data illustrated in FIG.
FIG. 30 is a flowchart showing an example of a seventh data processing procedure in the image processing apparatus according to the present invention.
FIG. 31 is a diagram illustrating an example of a result (document data) obtained by performing the formatting process of the present embodiment on the HTML input document data illustrated in FIG. 24 in the fourth embodiment and converting the data.
32 is a schematic diagram showing an example of an actual print result of the document data shown in FIG. 31. FIG.
FIG. 33 is a flowchart showing an example of an eighth data processing procedure in the image processing apparatus according to the present invention.
FIG. 34 is a flowchart showing an example of a ninth data processing procedure in the image processing apparatus according to the present invention.
FIG. 35 is a diagram illustrating an example of a document displayed on a Web browser.
36 is a diagram illustrating an example of a printing result in the actual printing apparatus of FIG. 35. FIG.
FIG. 37 is a diagram illustrating an example of a printing result in the actual printing apparatus of FIG.
FIG. 38 is a diagram showing an example of a reference print instruction in the present embodiment.
FIG. 39 is a flowchart showing an example of a tenth data processing procedure in the image processing apparatus according to the present invention.
40 is a schematic diagram illustrating an example of a printing result of the document illustrated in FIG. 35 in the present embodiment.
41 is a schematic diagram showing an example of a screen that can be displayed on the operation panel of the printer shown in FIG. 1. FIG.
FIG. 42 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read out by a printing system to which the image processing apparatus and the server apparatus according to the present invention can be applied.
FIG. 43 is a diagram illustrating a memory map of a storage medium that stores various data processing programs that can be read by a printing system to which the image processing apparatus and the server apparatus according to the present invention can be applied.
[Explanation of symbols]
1100 Formatter controller
1101 Protocol control unit
1102 Data discrimination unit
1103 Document data analysis unit
1104 Data drawing unit
1105 page memory
1106 Reference print instruction processing unit
1200 Printer interface
1300 Output controller
1400 Printer engine
2000 Web server
2001 Web server interface
2002 Protocol control unit
2003 Layout data generator
2004 Document server

Claims (28)

所定の構造化記述言語で記述された文書データを処理して所定の物理ページを含む画像データを生成する画像処理装置において、
記文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報を特定する特定手段と、
前記文書データが示す画像を物理ページに割り付けて出力するフォントサイズ指示又は入力する指示入力手段と、
前記特定手段が特定したフォントサイズ情報が設定された文字情報を前記指示入力手段により指示又は入力されたフォントサイズで、物理ページに出力処理する出力処理手段と、
を有することを特徴とする画像処理装置。
In an image processing apparatus that processes document data described in a predetermined structured description language to generate image data including a predetermined physical page ,
Specifying means for specifying a font size information is information about a font size set in the text information contained in the prior SL document data,
An instruction input means for instructing or inputting a font size before assigning and outputting an image indicated by the document data to a physical page;
Output processing means for performing output processing on a physical page with the font size indicated or input by the instruction input means with the character information set with the font size information specified by the specifying means;
An image processing apparatus comprising:
前記特定手段は、前記文書データが含むフォントサイズ情報と、前記指示入力手段により入力された標準フォントサイズを示す情報を用いて変倍率を計算し、
前記出力処理手段は、前記フォントサイズ情報が適用された文字又は文字列を前記変倍率を用いて変倍して、前記標準フォントサイズで出力されるように出力処理すること特徴とする請求項1記載の画像処理装置。
The specifying unit calculates a scaling factor using font size information included in the document data and information indicating a standard font size input by the instruction input unit;
The output processing unit performs output processing so that a character or a character string to which the font size information is applied is scaled using the scaling factor and is output in the standard font size. The image processing apparatus described.
前記文書データは、前記特定手段が特定したフォントサイズ情報が設定された特定の文字に対してフォントサイズを指示する情報を含み、
前記出力処理手段は、前記特定の文字に対して指定されたフォントサイズが適用された文字又は文字列が、フォントサイズを指示する情報に関わらず、前記指示入力手段により入力した標準フォントサイズで出力されるように出力処理することを特徴とする請求項1記載の画像処理装置。
The document data includes information indicating a font size for a specific character in which the font size information specified by the specifying unit is set ,
The output processing means outputs a character or a character string to which the specified font size is applied to the specific character in a standard font size input by the instruction input means regardless of information indicating the font size. The image processing apparatus according to claim 1, wherein output processing is performed as described above.
前記文書データは、前記文書データにおける基準フォントサイズを指定できるものであって、
前記特定手段は、前記基準フォントサイズと、前記指示入力手段により入力された標準フォントサイズを用いて変倍率を計算し、
前記出力処理手段は、前記基準フォントサイズが適用された文字又は文字列が、前記指示入力手段により入力した標準フォントサイズで出力されるように、前記変倍率を前記文書データが含む文字情報全体に適用して出力処理することを特徴とする請求項1記載の画像処理装置。
The document data can specify a reference font size in the document data,
The specifying unit calculates a scaling factor using the reference font size and the standard font size input by the instruction input unit,
The output processing means outputs the scaling factor to the entire character information included in the document data so that the character or character string to which the reference font size is applied is output with the standard font size input by the instruction input means. The image processing apparatus according to claim 1, wherein the output processing is applied.
前記特定手段は、前記文書情報の最頻出のフォントサイズを特定し、
前記出力処理手段は、前記特定手段で特定された前記最頻出のフォントサイズが適用された文字又は文字列が、前記指示入力手段により入力した標準フォントサイズで出力されるように出力処理することを特徴とする請求項1記載の画像処理装置。
The specifying unit specifies the font size of the most frequent of the document information,
The output processing means performs output processing so that the character or character string to which the most frequently used font size specified by the specifying means is applied is output in the standard font size input by the instruction input means. The image processing apparatus according to claim 1, wherein:
前記特定手段は、文書データ中の最小フォントサイズを特定し、
前記出力処理手段は、物理ページにレイアウト出力される文字情報のフォントサイズが、前記指示入力手段により入力された標準フォントサイズ以上のフォントサイズで出力されるように出力処理することを特徴とする請求項1記載の画像処理装置。
The specifying unit specifies the minimum font size in the document data,
The output processing means performs an output process so that a font size of character information laid out on a physical page is output with a font size larger than a standard font size input by the instruction input means. Item 6. The image processing apparatus according to Item 1.
前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、
前記特定手段は、前記オブジェクトデータが示す画像の大きさを検出し、
前記出力処理手段は、前記オブジェクトデータが示す画像又は図表が持つオブジェクトは物理ページ内に収まるように、かつ、前記文書データが含む前記文字情報が示す文字又は文字列は前記指示入力手段により入力された標準フォントサイズで出力されるように出力処理することを特徴とする請求項1記載の画像処理装置。
The document data includes at least one object data and character information,
The specifying means detects a size of an image indicated by the object data;
The output processing means is configured such that an object included in an image or a chart indicated by the object data is contained in a physical page, and a character or a character string indicated by the character information included in the document data is input by the instruction input means. 2. The image processing apparatus according to claim 1, wherein output processing is performed so that the output is performed with a standard font size.
前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、
前記特定手段は、前記オブジェクトデータが示す画像の大きさを検出し、
前記出力処理手段は、前記オブジェクトデータが示す画像は物理ページの幅に応じて変倍され、かつ、前記文書データが含む前記文字情報が示す文字は前記指示入力手段に入力された標準フォントサイズで出力されるように出力処理することを特徴とする請求項1記載の画像処理装置。
The document data includes at least one object data and character information,
The specifying means detects a size of an image indicated by the object data;
The output processing means scales the image indicated by the object data according to the width of the physical page, and the characters indicated by the character information included in the document data are in a standard font size input to the instruction input means. The image processing apparatus according to claim 1, wherein the output processing is performed so that the data is output.
前記画像処理装置は、任意のサーバ装置と通信して前記文書データを受信して処理することを特徴とする請求項1記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the image processing apparatus receives and processes the document data by communicating with an arbitrary server apparatus. 前記画像処理装置は、さらに、ユーザ指示に基づいてレイアウト方式を選択する選択手段を備え、
前記出力処理手段は、前記選択手段における選択結果に基づいて前記変倍率の算出方法を決定することを特徴とする請求項1記載の画像処理装置。
The image processing apparatus further includes selection means for selecting a layout method based on a user instruction,
The image processing apparatus according to claim 1, wherein the output processing unit determines a method for calculating the scaling factor based on a selection result of the selection unit.
前記画像処理装置は、さらに、前記出力処理手段が生成したイメージデータを出力する印刷部を有することを特徴とする請求項1記載の画像処理装置。  The image processing apparatus according to claim 1, further comprising a printing unit that outputs the image data generated by the output processing unit. 前記画像処理装置は、プリンタであることを特徴とする請求項1記載の画像処理装置。  The image processing apparatus according to claim 1, wherein the image processing apparatus is a printer. 所定の構造化記述言語で記述された文書データを処理して所定の物理ページを含む画像データを生成する画像処理方法において、
記文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報特定する特定ステップと、
前記文書データが示す画像を物理ページに割り付けて出力するフォントサイズ指示又は入力する指示入力ステップと、
前記特定ステップで特定したフォントサイズ情報が設定された文字情報を前記指示入力ステップにより指示又は入力されたフォントサイズで、物理ページに出力処理する出力処理ステップと、
を有することを特徴とする画像処理方法。
In an image processing method for processing document data described in a predetermined structured description language to generate image data including a predetermined physical page ,
A specifying step of specifying a font size information is information about the set font size text information contained in the prior SL document data,
An instruction input step of instructing or inputting a font size before assigning and outputting an image indicated by the document data to a physical page;
An output processing step of performing output processing on a physical page with the font size indicated or input by the instruction input step with the character information set with the font size information specified in the specifying step;
An image processing method comprising:
前記特定ステップでは、前記文書データが含む特定の文字情報が示すフォントサイズと、前記指示入力ステップで外部から入力された標準フォントサイズを用いて変倍率を計算し、
前記出力処理ステップでは、前記特定の文字情報が示す文字又は文字列が前記変倍率を用いて変倍したフォントサイズで出力されるように出力処理することを特徴とする請求項13記載の画像処理方法。
In the specifying step, a scaling factor is calculated using a font size indicated by specific character information included in the document data and a standard font size input from the outside in the instruction input step,
14. The image processing according to claim 13, wherein in the output processing step, output processing is performed so that a character or a character string indicated by the specific character information is output with a font size scaled using the scaling factor. Method.
前記文書データは、前記特定ステップが特定したフォントサイズ情報が設定された特定の文字に対してフォントサイズを指示する情報を含み、
前記出力処理ステップでは、前記フォントサイズが適用された特定の文字又は文字列が、フォントサイズを指示する情報に関わらず、前記指示入力ステップにより入力した標準フォントサイズで出力されるように出力することを特徴とする請求項13記載の画像処理方法。
The document data includes information indicating a font size for a specific character in which the font size information specified in the specifying step is set ,
In the output processing step, the specific character or character string to which the font size is applied is output so as to be output in the standard font size input in the instruction input step regardless of information indicating the font size. The image processing method according to claim 13.
前記文書データは、前記文書データにおける基準サイズフォントを指定できるものであって、
前記特定ステップでは、基準フォントサイズと、前記指示入力ステップにより入力された標準フォントサイズを用いて変倍率を計算し、
前記出力処理ステップでは、前記基準フォントサイズが適用された文字又は文字列が、前記指示入力ステップにより入力した標準フォントサイズで出力されるように、前記変倍率を前記文書データが含む文字情報全体に適用して出力処理することを特徴とする請求項13記載の画像処理方法。
The document data can specify a reference size font in the document data,
In the specifying step, a scaling factor is calculated using the reference font size and the standard font size input in the instruction input step,
In the output processing step, the scaling factor is applied to the entire character information included in the document data so that the character or character string to which the reference font size is applied is output in the standard font size input in the instruction input step. 14. The image processing method according to claim 13, wherein output processing is performed by applying.
前記特定ステップでは、文書データ中の最小フォントサイズを特定し、
前記出力処理ステップでは、物理ページにレイアウト出力される文字情報のフォントサイズが、前記指示入力ステップにより入力された標準フォントサイズ以上のフォントサイズで出力されるように出力処理することを特徴とする請求項13記載の画像処理方法。
In the specifying step, a minimum font size in the document data is specified ,
In the output processing step, output processing is performed so that a font size of character information to be laid out on a physical page is output with a font size larger than the standard font size input in the instruction input step. Item 14. The image processing method according to Item 13.
前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、
前記特定ステップでは、前記オブジェクトデータが示す画像の大きさを検出し、
前記出力処理ステップでは、前記オブジェクトデータが示す画像又は図表が持つオブジェクトは物理ページ内に収まるように、かつ、前記文書データが含む前記文字情報が示す文字又は文字列は前記指示入力ステップにより入力された標準フォントサイズで出力されるように出力処理することを特徴とする請求項13記載の画像処理方法。
The document data includes at least one object data and character information,
In the specifying step, a size of an image indicated by the object data is detected,
In the output processing step, an object included in an image or chart indicated by the object data is accommodated in a physical page, and a character or a character string indicated by the character information included in the document data is input by the instruction input step. 14. The image processing method according to claim 13, wherein output processing is performed so that the output is performed with a standard font size.
前記文書データは、少なくとも一つのオブジェクトデータ並びに文字情報を含み、
前記特定ステップでは、前記オブジェクトデータが示す画像の大きさを検出し、
前記出力処理ステップでは、前記オブジェクトデータが示す画像は物理ページの幅に応じて変倍され、かつ、前記文書データが含む前記文字情報が示す文字は前記指示入力ステップに入力された標準フォントサイズで出力されるように出力処理することを特徴とする請求項13記載の画像処理方法。
The document data includes at least one object data and character information,
In the specifying step, a size of an image indicated by the object data is detected,
In the output processing step, the image indicated by the object data is scaled according to the width of the physical page, and the character indicated by the character information included in the document data is a standard font size input in the instruction input step. The image processing method according to claim 13, wherein output processing is performed so that the data is output.
前記画像処理方法は、任意のサーバ装置と通信して前記文書データを取得する取得ステップを有する請求項13記載の画像処理方法。  The image processing method according to claim 13, further comprising an acquisition step of acquiring the document data by communicating with an arbitrary server device. 前記画像処理方法は、さらに、ユーザ指示に基づいてレイアウト方式を選択する選択ステップを備え、前記選択ステップにおける選択結果に基づいて前記文書データが含む文字を変倍して出力処理するための変倍率の算出方法を決定することを特徴とする請求項13記載の画像処理方法。  The image processing method further includes a selection step of selecting a layout method based on a user instruction, and a scaling factor for performing output processing by scaling the characters included in the document data based on a selection result in the selection step The image processing method according to claim 13, wherein a calculation method is determined. 所定の構造化記述言語で記述された文書データを処理して所定の物理ページを含む画像データを生成する画像処理方法をコンピュータに実行させるプログラムを格納したコンピュータが読取り可能な記憶媒体において、
記文書データに含まれる文字情報に設定されたフォントサイズに関する情報であるフォントサイズ情報特定する特定ステップと、
前記文書データが示す画像を物理ページに割り付けて出力するフォントサイズ指定又は入力する指示入力ステップと、
前記特定ステップで特定したフォントサイズ情報が設定された文字情報を前記指示入力ステップにより指示又は入力されたフォントサイズで、物理ページに出力処理する出力処理ステップと、
を有することを特徴とする画像処理方法をコンピュータに実行させるプログラムを格納したコンピュータが読取り可能な記憶媒体。
In a computer-readable storage medium storing a program for causing a computer to execute an image processing method for processing document data described in a predetermined structured description language to generate image data including a predetermined physical page ,
A specifying step of specifying a font size information is information about the set font size text information contained in the prior SL document data,
An instruction input step of designating or inputting a font size before assigning and outputting an image indicated by the document data to a physical page;
An output processing step of performing output processing on a physical page with the font size indicated or input by the instruction input step with the character information set with the font size information specified in the specifying step;
A computer-readable storage medium storing a program for causing a computer to execute an image processing method.
所定の構造化記述言語で記述された文書データを処理して画像データを生成する画像処理装置において、
構造化文書が含む文字情報を解析する解析手段と、
前記構造化文書中に前記文字情報に対して設定されたフォントサイズを指示する情報が存在した場合でも、前記解析手段が解析した所定の文字情報に対応する文字が所定のフォントサイズで出力されるように、出力処理する出力手段とを備え、
前記文書データは、出力対象のフォントサイズが所定の基準フォントサイズを基準としてどれだけ大きいのか又は小さいのかを示す相対値を用いて指定できるものであり、
前記解析手段は、文書データに指定された基準フォントサイズと前記入力手段が入力したフォントサイズとから、前記基準フォントサイズが指定された文字が前記指定手段が指定したフォントサイズで出力されるように、前記解析手段が解析した文字情報に適用すべき変倍率を求め、
前記出力手段は、前記変倍率を用いて出力処理することを特徴とする画像処理装置。
In an image processing apparatus that processes document data described in a predetermined structured description language to generate image data,
An analysis means for analyzing character information included in the structured document ;
Even if there is information indicating the font size set for the character information in the structured document , characters corresponding to the predetermined character information analyzed by the analyzing means are output in a predetermined font size. Output means for performing output processing ,
The document data can be specified using a relative value indicating how large or small a font size to be output is based on a predetermined reference font size,
The analysis means outputs a character designated by the reference font size in a font size designated by the designation means from a reference font size designated in the document data and a font size inputted by the input means. , Obtaining a scaling factor to be applied to the character information analyzed by the analysis means,
The image processing apparatus , wherein the output means performs an output process using the scaling factor .
前記所定のフォントサイズは、画像形成装置の指示入力手段により入力され、
前記解析手段は、特定の文字又は文字列のフォントサイズと、所定のフォントサイズとに基づいて、変倍率を計算し、
前記出力手段は、前記特定の文字又は文字列が、前記所定のフォントサイズで出力されるように、前記構造化文書中における前記文字情報に対して設定されたフォントサイズを指示する情報に関わらず、前記特定の文字を前記変倍率で変倍して出力処理することを特徴とする請求項23記載の画像処理装置。
The predetermined font size is input by an instruction input unit of the image forming apparatus,
The analyzing means calculates a scaling factor based on a font size of a specific character or character string and a predetermined font size,
The output means is irrelevant to information indicating a font size set for the character information in the structured document so that the specific character or character string is output in the predetermined font size. the image processing apparatus according to claim 23, wherein the benzalkonium be output processing the specific character and scaling by the scaling factor.
前記文書データは、少なくとも一つのオブジェクトを含み、前記特定の文字又は文字列を前記所定のサイズで出力する一方、前記文書データが含むオブジェクトが示す画像を前記オブジェクトを出力する用紙サイズに応じて変倍することを特徴とする請求項23記載の画像処理装置。The document data includes at least one object, and the specific character or character string is output at the predetermined size. On the other hand, an image indicated by the object included in the document data is changed according to a paper size on which the object is output. 24. The image processing apparatus according to claim 23 , wherein the image processing apparatus is doubled. 前記構造化文書中に前記文字に対して設定された前記フォントサイズを指示する情報は、HTML又はXMLのフォントのサイズを指定するタグ情報によって記述されるものであることを特徴とする請求項23記載の画像処理装置。 23. information indicating the font size set for the character in the structured document, which is characterized in that what is described by the tag information specifying the size of the HTML or XML font The image processing apparatus described. 所定の構造化記述言語で記述された文書データを処理して画像データを生成する画像処理方法において、
構造化文書が含む文字情報を解析する解析ステップと、
前記構造化文書中における前記文字情報に対して設定されたフォントサイズを指示する情報が存在した場合でも、前記解析ステップで解析した所定の文字情報に対応する文字が所定のフォントサイズで出力されるように、出力処理する出力ステップとを備え、
前記文書データは、出力対象のフォントサイズが所定の基準フォントサイズを基準としてどれだけ大きいのか又は小さいのかを示す相対値を用いて指定できるものであり、
前記解析ステップは、文書データに指定された基準フォントサイズと前記入力ステップで入力したフォントサイズとから、前記基準フォントサイズが指定された文字が前記指定ステップで指定したフォントサイズで出力されるように、前記解析ステップで解析した文字情報に適用すべき変倍率を求め、前記出力ステップは、前記変倍率を用いて出力処理することを特徴とする画像処理方法。
In an image processing method for generating image data by processing document data described in a predetermined structured description language,
An analysis step for analyzing character information included in the structured document ;
Even when there is information indicating the font size set for the character information in the structured document , characters corresponding to the predetermined character information analyzed in the analysis step are output in a predetermined font size. And an output step for output processing ,
The document data can be specified using a relative value indicating how large or small a font size to be output is based on a predetermined reference font size,
In the analyzing step, the character specified with the reference font size is output with the font size specified in the specifying step from the reference font size specified in the document data and the font size input in the input step. A scaling factor to be applied to the character information analyzed in the analyzing step is obtained, and the output step performs an output process using the scaling factor .
所定の構造化記述言語で記述された文書データを処理して画像データを生成する画像処理方法をコンピュータに実行させるプログラムを格納したコンピュータが読取り可能な記憶媒体において、In a computer-readable storage medium storing a program for causing a computer to execute an image processing method for processing document data described in a predetermined structured description language to generate image data,
構造化文書が含む文字情報を解析する解析ステップと、An analysis step for analyzing character information included in the structured document;
前記構造化文書中における前記文字情報に対して設定されたフォントサイズを指示する情報が存在した場合でも、前記解析ステップで解析した所定の文字情報に対応する文字が所定のフォントサイズで出力されるように、出力処理する出力ステップとを備え、Even when there is information indicating the font size set for the character information in the structured document, characters corresponding to the predetermined character information analyzed in the analysis step are output in a predetermined font size. And an output step for output processing,
前記文書データは、出力対象のフォントサイズが所定の基準フォントサイズを基準としてどれだけ大きいのか又は小さいのかを示す相対値を用いて指定できるものであり、The document data can be specified using a relative value indicating how large or small a font size to be output is based on a predetermined reference font size,
前記解析ステップは、文書データに指定された基準フォントサイズと前記入力ステップで入力したフォントサイズとから、前記基準フォントサイズが指定された文字が前記指定ステップで指定したフォントサイズで出力されるように、前記解析ステップで解析した文字情報に適用すべき変倍率を求め、前記出力ステップは、前記変倍率を用いて出力処理することを特徴とする画像処理方法をコンピュータに実行させるプログラムを格納したコンピュータが読取り可能な記憶媒体。In the analysis step, the character specified with the reference font size is output with the font size specified in the specification step from the reference font size specified in the document data and the font size input in the input step. A computer storing a program for causing a computer to execute an image processing method, wherein a scaling factor to be applied to the character information analyzed in the analyzing step is obtained, and the output step performs output processing using the scaling factor Is a readable storage medium.
JP2001274082A 2000-09-12 2001-09-10 Image processing apparatus, image processing method, storage medium, and server apparatus Expired - Fee Related JP3754906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001274082A JP3754906B2 (en) 2000-09-12 2001-09-10 Image processing apparatus, image processing method, storage medium, and server apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-275952 2000-09-12
JP2000275952 2000-09-12
JP2001274082A JP3754906B2 (en) 2000-09-12 2001-09-10 Image processing apparatus, image processing method, storage medium, and server apparatus

Publications (2)

Publication Number Publication Date
JP2002189582A JP2002189582A (en) 2002-07-05
JP3754906B2 true JP3754906B2 (en) 2006-03-15

Family

ID=26599719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001274082A Expired - Fee Related JP3754906B2 (en) 2000-09-12 2001-09-10 Image processing apparatus, image processing method, storage medium, and server apparatus

Country Status (1)

Country Link
JP (1) JP3754906B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2849940B1 (en) * 2003-01-09 2005-03-18 Orange France METHOD FOR MANAGING A DEVICE AND COMPUTER SYSTEM USING SUCH A METHOD
WO2007004455A1 (en) * 2005-06-30 2007-01-11 Access Co., Ltd. Content display magnification setting method, content display magnification setting program, and terminal
JP4803218B2 (en) * 2008-07-18 2011-10-26 カシオ計算機株式会社 Information output device and information output processing program
JP4656215B2 (en) * 2008-08-31 2011-03-23 ブラザー工業株式会社 Printing system, printing apparatus and terminal device constituting the printing system
US8384918B2 (en) * 2010-06-30 2013-02-26 Konica Minolta Laboratory U.S.A., Inc. Enforcing a minimum font size
WO2013137323A1 (en) * 2012-03-13 2013-09-19 Necカシオモバイルコミュニケーションズ株式会社 Information processing device, information processing method, computer-readable recording medium recording information processing program
JP6429433B2 (en) * 2013-03-12 2018-11-28 キヤノン株式会社 Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
JP2002189582A (en) 2002-07-05

Similar Documents

Publication Publication Date Title
JP4371516B2 (en) Management server device, print processing method, information processing device, print control method, and computer-readable storage medium
EP1293885B1 (en) Information processing apparatus and method
US7386790B2 (en) Image processing apparatus, server apparatus, image processing method and memory medium
EP1723503A1 (en) Information processing apparatus and method and program of controlling the same
JP2002215361A (en) Information processor, printing management, device, system and method, storage medium storing computer- readable program, and printing control program
US20100123935A1 (en) Document processing apparatus and document processing method
US6988243B2 (en) Print system and information processing apparatus
JP3754906B2 (en) Image processing apparatus, image processing method, storage medium, and server apparatus
JP4109938B2 (en) Information processing apparatus, control method therefor, and program
JP3848133B2 (en) Image forming apparatus and image forming method for processing data described in structured description language
JP6424678B2 (en) Image processing system, image formation output control apparatus, information processing method, information processing program
JP2000010753A (en) Communication system printing control method, and record medium recorded with printing control program
JP3854791B2 (en) Image processing apparatus, server apparatus, image processing method, and storage medium
JP6500754B2 (en) Image formation output control device, image processing system, control method of image formation output control device, control program of image formation output control device
JP2004058500A (en) Image formation device
JP4227394B2 (en) Printing system
JP2002187317A (en) Printing job producing apparatus, printing data producing apparatus, printing system, printing job producing method, printing data producing method, and memory medium
JP4227294B2 (en) Image processing apparatus and method, and storage medium
JP2003162396A (en) Image output system, information processor and image output program
JP2002318852A (en) Information processing device, print managing device, print managing system, method for the same, storage medium with program readable by computer housed therein, and print control program
JP3184687B2 (en) Information processing method, information processing apparatus, output method, output apparatus, and printing system
JP5104446B2 (en) Print control apparatus, program, and system
JP3155617B2 (en) Document processing method and apparatus
JP6848671B2 (en) Image formation output control device, control method, control program
JP2016162244A (en) Image processing system, image formation and output control apparatus, and image processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050208

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050411

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: 20051206

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051219

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081222

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091222

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091222

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111222

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121222

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131222

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees