JP2004114326A - Image formation device and image formation method - Google Patents

Image formation device and image formation method Download PDF

Info

Publication number
JP2004114326A
JP2004114326A JP2002276992A JP2002276992A JP2004114326A JP 2004114326 A JP2004114326 A JP 2004114326A JP 2002276992 A JP2002276992 A JP 2002276992A JP 2002276992 A JP2002276992 A JP 2002276992A JP 2004114326 A JP2004114326 A JP 2004114326A
Authority
JP
Japan
Prior art keywords
data
document
image
document data
image data
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.)
Withdrawn
Application number
JP2002276992A
Other languages
Japanese (ja)
Other versions
JP2004114326A5 (en
Inventor
Goro Ishida
石田 悟郎
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002276992A priority Critical patent/JP2004114326A/en
Publication of JP2004114326A publication Critical patent/JP2004114326A/en
Publication of JP2004114326A5 publication Critical patent/JP2004114326A5/ja
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize the function of printing documents which require a layout process and the function of printing image data, without requiring many hardware resources. <P>SOLUTION: When the document 63 described in a predetermined language such as XHTML which requires the layout process is inputted from a data source 10, the printer 20 determines a layout on a physical page of the document 63 by a document interpretation/layout process part 41, drives a printing engine 47 and prints the document data 63. When a simple image 65 of a JPEG format or the like is inputted from the data source 10, the printer 20 forms document data 73 of a predetermined language such as XHTML having the image 65 incorporated therein at an image reception/document generation part 43, and delivers the data to the document interpretation/layout process part 41. The document interpretation/layout process part 41 processes the document 73 the same as above, and the image data 65 is printed. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明が属する技術分野】
本発明は、画像形成装置に関わり、特に、ページのレイアウトを決定するための処理に関する。
【0002】
【従来の技術】
従来、例えば、HTML(Hyper Text Markup Language)やSGML(Standard Generalized Markup Language)、XML(eXtensible Markup Language)といった、特定のアプリケーションに依存しない構造化記述言語で記述された文書データが普及しつつあること、及び、このような構造化記述言語にはページの概念が特にないので、この構造化記述言語で記述された文書データを印刷処理する場合には、文書を印刷媒体の物理ページにレイアウトする処理(Formatting工程)が必要であり、そのためには、出力用紙サイズやポートレイト/ランドスケープといったレイアウト方向を決める必要があることが知られている(例えば、特開2002−219845号公報参照)。
【0003】
さらに、Formatting工程がWebサーバ側(Webサーバ以外のサーバも含まれる)で行なわれる印刷システムにおいて、印刷装置が、印刷指示に基づいて、用紙サイズとレイアウト方向などのレイアウトを決めてサーバへ通知し、サーバが、そのレイアウトに基づいてFormatting工程を行って、構造化記述言語で記述された文書データを、物理ページへの割り付けが行われた文書データに変換して、印刷装置へ送信するように構成されたものが、知られている(例えば、特開2002−219845号公報参照)。
【0004】
一方、デジタルカメラから写真の画像データに基づいて印刷を行う印刷装置において、デジタルカメラから画像のサイズ情報を受信すると、それに基づいて印刷媒体のページ上での画像レイアウトを作成し、その画像レイアウトをデジタルカメラに送信することで、デジタルカメラにその画像レイアウトを表示させてユーザに確認させ、その後に、ユーザの指示により画像データがデジタルカメラから送られてくると、その画像レイアウトで印刷を行なうようになった印刷装置が知られている(例えば、特開2002−33992号公報参照)。
【0005】
【特許文献1】特開2002−219845号公報、段落0002〜0015
【特許文献2】特開2002−33992号公報、段落0016〜0019
【0006】
【発明が解決しようとする課題】
HTMLのようなページの概念の無い言語で記述された文書を印刷する場合、印刷媒体の物理ページ上での当該文書のレイアウトを決める処理(以下、レイアウト処理という)を行なう必要がある。また、JPEGファイルのような画像データを印刷する場合にも、印刷媒体の物理ページ上での当該画像のレイアウトを決める処理(レイアウト処理)を行なう必要がある。
【0007】
このように印刷時にレイアウト処理が必要な文書を印刷する機能と、やはり印刷時にレイアウト処理が必要な画像データを印刷する機能の2つの機能を兼ね備えた画像形成装置を実現しようとする場合、上記の従来技術に基づけば、上記2つの機能におけるレイアウト処理をそれぞれ行なうための構成要素(典型的には、コンピュータプログラム)が必要になるため、メモリ空間などのハードウェア資源が多く必要になる。また、上記2つの機能間で、印刷媒体(特にロール紙)のハンドリングや、画像色調調整のような画像処理において、相違が発生して操作性を損ねるおそれもある。
【0008】
従って、本発明の目的は、レイアウト処理の必要な文書を印刷する機能と画像データを印刷する機能とを、多くのハードウェア資源を必要とせずに実現可能とすることにある。
【0009】
【課題を解決するための手段】
本発明に従う画像形成装置は、データソースから所定言語で記述された文書データを入力する文書入力手段と、データソースから画像データを入力する画像入力手段と、入力された画像データが組み込まれた文書データを、前記所定言語を用いて作成する文書作成手段と、前記文書入力手段からも前記文書作成手段からも前記文書データを受け取り、印刷媒体の物理ページ上での前記文書データのレイアウトを決定し、決定されたレイアウトで前記文書データを印刷するためのビットマップ画像を生成する共通のレイアウト処理手段と、生成されたビットマップ画像を用いて、前記決定されたレイアウトで前記文書データを印刷する印刷手段とを備える。
【0010】
好適な実施形態では、前記文書データ作成手段が、任意の画像データが組み込み可能である前記所定言語で記述された基本的な文書データを表した文書テンプレートを予め有しており、前記入力された画像データを前記文書テンプレートに組み込むことにより、前記入力された画像データが組み込まれた前記文書データを作成することができる。
【0011】
また、好適な実施形態では、前記文書作成手段によって作成された前記画像データの組み込まれた文書データを外部出力する外部出力手段が更に設けられる。
【0012】
さらに、好適な実施形態では、前記所定言語として、任意の画像データへのリンクを任意の文書データに埋め込むことにより、前記任意の文書データに前記任意の画像データを組み込むことができるような言語が用いられる。そして、画像バッファが更に設けられ、前記文書作成手段は、前記入力された画像データを前記画像バッファに格納し、前記画像バッファに格納された画像データへのリンクを埋め込んだ文書データを前記所定言語で作成する。そして、前記レイアウト処理手段は、前記リンクが埋め込まれた文書データを受け取ると、受け取った文書データにリンクされた画像データを前記画像バッファから読み込み、そして、前記受け取った文書データと前記リンクされた画像データとを用いて、前記レイアウトを決定して前記ビットマップ画像を作成するようになっている。
【0013】
【発明の実施の形態】
以下、本発明の実施形態を図面を参照して説明する。
【0014】
図1は、本発明の一実施形態にかかる電子プリンタの構成を示す。
【0015】
このプリンタ20は、印刷対象のデータを生成又は保有するデータソース10と、有線又は無線で通信可能である。データソース10としては、ホストコンピュータ、デジタルカメラ、データストレージ、通信ネットワークなど種々の装置が採用し得る。
【0016】
プリンタ20は、データソース10から、所定の言語で記述された文書データ63を受けて印刷を行うこともできるし、所定のデータ形式にエンコードされた画像データ71を受けて印刷を行なうこともできる。文書データ63を供給するデータソース10と画像データ71を供給するデータソース10は、同じ装置であってもよいし、異なる装置であってもよい。
【0017】
文書データ63の言語として、特定の一種類の言語だけを採用することも、複数種類の言語を採用することもできるが、そこには、本発明の原理に従って、印刷時にレイアウト処理の必要な一種類以上の言語が含まれ得る。以下の説明では、レイアウト処理の必要な言語の例として、ページの概念の無い構造化言語の一つであるXHTML( eXtensible HyperText Markup Language)を採用するが、これは単なる例示に過ぎず、他の言語を採用してもよいことは勿論である。なお、周知のように、XHTML文書データ63には、リンク技術により、文書内の所望場所に所定形式にエンコードされた画像データ65が組み込まれ(リンクされ)得る。プリンタ20は、XHTML文書データ63に画像データ65が組み込まれ(リンクされ)ていた場合、そのXHTML文書データ63を印刷する際、その画像データ65もデータソース10から受け取る。
【0018】
また、上述した画像データ65、71のデータ形式として、特定の一種類の形式だけを採用することも、複数種類の形式を採用することもできる。以下の説明では、一例としてJPEG形式を採用するが、これも単なる例示に過ぎず、他のデータ形式を採用してもよいことは言うまでも無い。
【0019】
さらに、プリンタ20は、XHTML文書データ63印刷を行なう際、データソース10から、或いは、このプリンタ20が持つコントロールパネル51から、その印刷に用いる用紙のサイズや、用紙方向(縦置き(ポートレイト)か横置き(ランドスケープ)か)や、印刷される画像に施されるべき画像調整(色調の調整や各種画像エンハンスメントなど)などの項目の設定を含んだ印刷条件61又は69の指定を受けることができる。プリンタ20は、上述したXHTML文書データ63やJPEG画像データ71を印刷する際、指定された印刷条件61又は69に従って、XHTML文書データ63やJPEG画像データ71の用紙の物理ページ上でのレイアウトを決定することになる。
【0020】
また、さらに、プリンタ20は、データソース10から、或いは、コントロールパネル51から、外部出力命令81又は83を受けることができる。後に詳細に説明するように、プリンタ20は、外部出力命令81又は83を受けると、プリンタ20がその内部で作成したXHTML文書データ73を、それにリンクされているJPEG画像データ75と共に、プリンタ20の外部にある外部装置30に出力することができる。外部装置30としては、例えば、コンピュータ、デジタルカメラ、データストレージ、通信ネットワークなど種々の装置が採用し得る。なお、XHTML文書データ73を外部出力する際には、プリンタ20は、そのXHTML文書データ73にJPEG画像データ75が正しくリンクされるように、そのXHTML文書データ73に埋め込まれた画像リンク(画像組み込み)内のJPEG画像データ75のパスの記述を、外部出力後のJPEG画像データ75の外部装置30内でのパスに合うように書き換えることができる。
【0021】
プリンタ20は、文書解釈/レイアウト処理部41、画像受信/文書生成部43、画像バッファ45、印刷エンジン47、外部出力部49及びコントロールパネル51を備える。
【0022】
以下、プリンタ20の各部の機能及び動作を、XHTML文書データ63を印刷する場合と、単なるJPEG画像データ71を印刷する場合とに分けて、図1と図2〜図4を併用して説明する。ここで、図2は、文書解釈/レイアウト処理部41の処理フローを示し、図3は、画像受信/文書生成部43の処理フローを示し、また、図4は、画像受信/文書生成部43が予め記憶している基本的なXHTML文書データを表したテンプレートの例を示す。
【0023】
まず、XHTML文書データ63を印刷するときのプリンタ20の動作を説明する。
【0024】
プリンタ20が印刷対象としてXHTML文書データ63をデータソース10から受信する場合には、文書解釈/レイアウト処理部41が、受信されたXHTML文書データ63を入力して解釈し(図2、ステップ201)、そして、そこにJPEG画像データ65(1枚でも複数枚でもよい)がリンクされていれば、そのリンクされたJPEG画像データ65を、その画像リンクに記述されたパスから取得する(図2、ステップ203)。なお、JPEG画像データ65の在り場所(パス)は、図示の例ではデータソース10内に存在するが、これは単なる例示であり、データソース10以外の別の装置内に存在していても良い。
【0025】
また、文書解釈/レイアウト処理部41は、データソース10又はコントロールパネル51から、その印刷で使用する用紙サイズ、用紙方向、画像調整などの設定を示した印刷条件61又は69を入力する(図2、ステップ205)。
【0026】
そして、文書解釈/レイアウト処理部41は、入力されたXHTML文書データ63及びJPEG画像データ65に基づき、入力された印刷条件61又は69の用紙サイズ及び用紙方向に従って、印刷文書の各ページの全ての表示オブジェクト(そのページに表示される文字や画像や図形など)の物理ページにおけるレイアウトを決定する(図2、ステップ207)。続いて、文書解釈/レイアウト処理部41は、決定されたレイアウトで、印刷文書の各ページのビットマップ画像データを作成する(図2、ステップ209)。その際、指定された印刷条件61又は69で、印刷文書内のいずれかの画像(又は印刷文書全体)に対して何らかの画像調整が指定されている場合には、文書解釈/レイアウト処理部41は、その画像調整も行なった上でもビットマップ画像データを作成する。そして、文書解釈/レイアウト処理部41は、そのビットマップ画像データを印刷エンジン47に転送する(図2、ステップ211)。印刷エンジンは47は、そのビットマップ画像データに基づいて、各用紙上に印刷文書の各ページを印刷する。
【0027】
次に、単なるJPEG画像データ71を印刷するときのプリンタ20の動作を説明する。
【0028】
プリンタ20が印刷対象として単なるJPEG画像データ71(1枚でも複数枚でもよい)をデータソース10から受信する場合には、画像受信/文書生成部43が、受信されたJPEG画像データ71を入力し(図3、301)、そのJPEG画像データ71を画像バッファ75に書き込む(図3、303)。そして、画像受信/文書生成部43は、そのJPEG画像データ71を印刷するためのXHTML文書データ73、つまり、そのJPEG画像データ71が組み込まれた(つまり、画像バッファ75内のJPEG画像データ71への画像リンクが埋め込まれた)XHTML文書データ73を作成する(図3、303)。このXHTML文書データ73の作成方法には、様々な方法が採用し得るが、一つの簡便な方法は、例えば、その文書データ内の所定箇所に任意の画像データへの画像リンクを追記するだけで任意の画像データが組み込まれたXHTML文書データが完成するような、基本的なXHTML文書データを表した文書テンプレートを予め用意しておいて、その文書テンプレートにJPEG画像データ71への画像リンクを追記するという方法である。
【0029】
図4は、そのような文書テンプレートの例を模式的に示す。図4Aに示す文書テンプレート400は、無地の背景をもつ文書データ内に例えば1枚の画像401を組み込むための例であり、図4Bに示す文書テンプレート410は、無地の背景をもつ文書内に例えば2枚の画像411、413を組み込むための例である。画像受信/文書生成部43は、例えば、入力した印刷対象のJPEG画像データ71の枚数に応じて、1枚であれば図4Aの文書テンプレート400を読み込み、2枚であれば図4Bの文書テンプレート410を読み込むというように、適当な文書テンプレートを読み込んで、その文書テンプレート内の所定箇所に、画像バッファ75内のJPEG画像データ71への画像リンクを書き込むという方法で、XHTML文書データ73を作成することができる。
【0030】
この後、画像受信/文書生成部43は、作成されたXHTML文書データ73を文書解釈/レイアウト処理部41へ渡す(図3、ステップ307)。すると、文書解釈/レイアウト処理部41は、既に説明した図2に示す手順で、入力されたXHTML文書データ73を解釈し(図2、ステップ201)、そこにリンクされているJPEG画像データ75を画像バッファ45から取得し(図2、ステップ203)、また、印刷条件61又は69をデータソース10又はコントロールパネル51から入力し(図2、ステップ205)、そして、入力されたXHTML文書データ73及びJPEG画像データ75に基づき、入力された印刷条件61又は69により指定される用紙サイズ及び用紙方向に従って、印刷文書の各ページの全ての画像オブジェクト(文字や画像など)の物理ページにおけるレイアウトを決定する(図2、ステップ207)。続いて、文書解釈/レイアウト処理部41は、決定されたレイアウトで各ページのビットマップ画像データを作成し(その際、印刷条件61又は69により何らかの画像調整が要求されていれば、その画像調整も行なう)(図2、ステップ209)、そして、そのビットマップ画像データを印刷エンジン47に転送する(図2、ステップ211)。印刷エンジンは47は、そのビットマップ画像データに基づいて、各用紙上に印刷文書の各ページを印刷する。
【0031】
以上のようにして、単なる画像データを印刷する場合にも、文書解釈/レイアウト処理部41が持っているレイアウト処理の機能が流用される。そのため、これらの処理部をソフトウェアで実現する場合、必要となるメモリエリアなどのハードウェア資源は、従来技術に従う場合よりも小さくてすむ。
【0032】
次に、単なる画像データを印刷する場合において、外部出力命令81又は83がデータソース10又はコントロールパネル51からプリンタ20に入力された場合について説明する。
【0033】
入力された外部出力命令81又は83に応答して、外部出力部49が、画像受信/文書生成部43によって作成されたXHTML文書データ73(又はそのコピーを)と、それにリンクされている画像バッファ45内のJPEG画像データ75(又はそのコピーを)を、ユーザにより指定された外部装置30へ出力する。このとき、外部出力部49は、外部出力されるXHTML文書データ73内の画像リンクに含まれるJPEG画像データ75へのパスを、外部出力装置30内のJPEG画像データ75の場所を指すように書き換える。
【0034】
ユーザは、このようにして外部出力装置30へ出力されたXHTML文書データ73とそれにリンクされたJPEG画像データ75を、後の利用のために保存したり、他の人に渡したりすることができる。例えば、ユーザが過去に撮影した多数の写真の中から好みの写真を何枚か選んで、それを上述した単なる画像データの印刷の方法で印刷したとする。このとき、ユーザが外部出力命令も入力したならば、その好みの写真の画像データが組み込まれた文書データが外部出力されるから、ユーザは後に、同じ写真の印刷を行ないたいとき、その外部出力された文書データを使うだけでよいから、改めて多数の写真中から好みの写真を選び出す面倒が回避できる。また、そのユーザが、その外部出力された文書データを他人に渡せば、その他人も同様にその写真の印刷や参照ができることになる。
【0035】
以上、本発明の実施形態を説明したが、これは本発明の説明のための例示であり、この実施形態のみに本発明の範囲を限定する趣旨ではない。従って、本発明は、その要旨を逸脱することなく、他の様々な形態で実施することが可能である。
【0036】
例えば、上述の実施形態では、単なる画像データを印刷する場合、プリンタ20内の画像受信/文書生成部43は、印刷対象の画像データ71をデータソース10から取り込みプリンタ20内の画像バッファ45に格納し、そして、その画像バッファ45内の画像データ75へのリンクが埋め込まれた文書データ73を作成して文書解釈/レイアウト処理部41へ渡す。しかし、別法として、画像受信/文書生成部43は、データソース10から印刷対象の画像データ71を取り込まずに、代わりに、その画像データ71のパスを知らせてもらい、そのパスを用いた画像リンクが埋め込まれた文書データ73を作成して文書解釈/レイアウト処理部41へ渡すようにしてもよい。すると、文書解釈/レイアウト処理部41は、その文書データ73のリンクに基づいて、印刷対象の画像データ71をそのパスが指す場所(例えば、データソース10内、或るいは図示しない他の装置内など)から取り込むことができる。
【0037】
また、上記の実施形態では、印刷条件61又は69レイアウト処理を行なう文書解釈/レイアウト処理部67にのみ入力されるが、それと共に又はそれに代えて、印刷条件61又は69に含まれ得る少なくとも1つの項目の設定(例えば、背景を構成する模様や文字や図形の設定、画像と重ねたい模様や文字や図形の設定、画像の枠の修飾の設定など)を、画像受信/文書生成部43にも入力して、その項目の設定に関する情報を文書データ73に入れるようにしてもよい。そうすることで、単なる画像を印刷する場合であっても、その画像の他に各種の模様や図形や文字列が入った多彩なデザインのプリントアウトを得ることが可能になる。
【図面の簡単な説明】
【図1】本発明の一実施形態にかかる電子プリンタの構成を示す。
【図2】文書解釈/レイアウト処理部41の処理を示すフローチャート。
【図3】画像受信/文書生成部43の処理を示すフローチャート。
【図4】画像受信/文書生成部43がもつ文書テンプレートの2つの例を模式的に示す図。
【符号の説明】
10 データソース
20 プリンタ
30 外部装置
41 文書解釈/レイアウト処理部
43 画像受信/文書生成部
45 画像バッファ
47 印刷エンジン
49 外部出力部
51 コントロールパネル
61、69 印刷条件
63、73 XHTML文書データ
71、75 JPEG画像データ
81、83 外部出力命令
400、410 文書テンプレート
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image forming apparatus, and more particularly, to a process for determining a page layout.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, for example, there is a description that an application that does not depend on a document that describes a document that is based on a document that does not depend on an application such as HTML (Hyper Text Markup Language), SGML (Standard Generalized Markup Language), or XML (eXtensible Markup Language) is described. Since there is no particular concept of a page in such a structured description language, when printing document data described in this structured description language, processing for laying out a document on a physical page of a print medium is performed. It is known that a (formatting step) is required, and for that, it is necessary to determine a layout direction such as an output paper size or a portrait / landscape (for example, see Japanese Patent Application Laid-Open See Japanese Unexamined Patent Publication No. 02-219845).
[0003]
Further, in a printing system in which the Formatting step is performed on the Web server side (including servers other than the Web server), the printing apparatus determines a layout such as a paper size and a layout direction based on a print instruction and notifies the server of the determined layout. The server performs a Formatting process based on the layout to convert document data described in the structured description language into document data allocated to physical pages and transmit the document data to the printing apparatus. The configuration is known (for example, see Japanese Patent Application Laid-Open No. 2002-219845).
[0004]
On the other hand, in a printing apparatus that performs printing based on image data of a photograph from a digital camera, when image size information is received from the digital camera, an image layout on a page of a print medium is created based on the information, and the image layout is changed. By transmitting the image data to the digital camera, the image layout is displayed on the digital camera so that the user can confirm the image layout. After that, when the image data is transmitted from the digital camera according to the instruction of the user, the image layout is printed. Is known (for example, refer to JP-A-2002-33992).
[0005]
[Patent Document 1] JP-A-2002-219845, paragraphs 0002 to 0015
[Patent Document 2] JP-A-2002-33992, paragraphs 0016 to 0019
[0006]
[Problems to be solved by the invention]
When printing a document described in a language without the concept of a page such as HTML, it is necessary to perform a process of determining the layout of the document on a physical page of a print medium (hereinafter, referred to as a layout process). Also, when printing image data such as a JPEG file, it is necessary to perform processing (layout processing) for determining the layout of the image on a physical page of a print medium.
[0007]
As described above, when an image forming apparatus having both functions of printing a document that requires layout processing at the time of printing and printing image data that also needs layout processing at the time of printing is to be realized, According to the related art, since components (typically, computer programs) for performing the layout processing in the above two functions are required, a large amount of hardware resources such as a memory space are required. In addition, there is a possibility that a difference occurs in handling of a print medium (especially roll paper) and image processing such as image color tone adjustment between the above two functions, thereby impairing operability.
[0008]
Therefore, an object of the present invention is to make it possible to realize a function of printing a document requiring a layout process and a function of printing image data without requiring many hardware resources.
[0009]
[Means for Solving the Problems]
An image forming apparatus according to the present invention includes a document input unit for inputting document data described in a predetermined language from a data source, an image input unit for inputting image data from a data source, and a document incorporating the input image data. A document creation unit for creating data using the predetermined language; receiving the document data from the document input unit and the document creation unit; and determining a layout of the document data on a physical page of a print medium. Common layout processing means for generating a bitmap image for printing the document data in the determined layout, and printing for printing the document data in the determined layout using the generated bitmap image Means.
[0010]
In a preferred embodiment, the document data creating means has in advance a document template representing basic document data described in the predetermined language into which arbitrary image data can be incorporated, and By incorporating image data into the document template, the document data incorporating the input image data can be created.
[0011]
In a preferred embodiment, there is further provided external output means for externally outputting document data in which the image data created by the document creation means is incorporated.
[0012]
Further, in a preferred embodiment, the predetermined language is such a language that the arbitrary image data can be incorporated into the arbitrary document data by embedding a link to arbitrary image data in the arbitrary document data. Used. An image buffer is further provided, and the document creation means stores the input image data in the image buffer, and converts the document data in which a link to the image data stored in the image buffer is embedded in the predetermined language. Create with. When receiving the document data in which the link is embedded, the layout processing means reads the image data linked to the received document data from the image buffer, and reads the received document data and the linked image. The bitmap image is created by determining the layout using data.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0014]
FIG. 1 shows a configuration of an electronic printer according to an embodiment of the present invention.
[0015]
The printer 20 can communicate with the data source 10 that generates or holds data to be printed by wire or wirelessly. Various devices such as a host computer, a digital camera, a data storage, and a communication network can be adopted as the data source 10.
[0016]
The printer 20 can perform printing by receiving the document data 63 described in a predetermined language from the data source 10 or can perform printing by receiving the image data 71 encoded in a predetermined data format. . The data source 10 for supplying the document data 63 and the data source 10 for supplying the image data 71 may be the same device or different devices.
[0017]
As the language of the document data 63, it is possible to adopt only one specific language or a plurality of languages. However, according to the principle of the present invention, there is one language that requires layout processing at the time of printing. More than one language may be included. In the following description, XHTML (extensible HyperText Markup Language), which is one of structured languages without the concept of a page, is adopted as an example of a language that requires layout processing. However, this is merely an example, and other examples are used. Of course, a language may be adopted. As is well known, the XHTML document data 63 may incorporate (link) image data 65 encoded in a predetermined format at a desired location in the document by a link technique. When the image data 65 is embedded (linked) in the XHTML document data 63, the printer 20 also receives the image data 65 from the data source 10 when printing the XHTML document data 63.
[0018]
In addition, as the data format of the image data 65 and 71 described above, only one specific format may be employed, or a plurality of types may be employed. In the following description, the JPEG format is adopted as an example, but this is also merely an example, and it goes without saying that another data format may be adopted.
[0019]
Further, when printing the XHTML document data 63, the printer 20 uses the data source 10 or the control panel 51 of the printer 20 to print the paper size and paper orientation (portrait) Or landscape (landscape)) and the printing conditions 61 or 69 including the setting of items such as image adjustment (color tone adjustment and various image enhancements) to be performed on the printed image. it can. When printing the above-described XHTML document data 63 or JPEG image data 71, the printer 20 determines the layout of the XHTML document data 63 or JPEG image data 71 on a physical page of a sheet according to the specified printing conditions 61 or 69. Will do.
[0020]
Further, the printer 20 can receive an external output command 81 or 83 from the data source 10 or from the control panel 51. As will be described later in detail, when the printer 20 receives the external output command 81 or 83, the printer 20 converts the XHTML document data 73 created therein by the printer 20 together with the JPEG image data 75 linked thereto. It can be output to an external device 30 located outside. As the external device 30, for example, various devices such as a computer, a digital camera, a data storage, and a communication network can be adopted. When outputting the XHTML document data 73 to the outside, the printer 20 uses an image link (image embedding) embedded in the XHTML document data 73 so that the JPEG image data 75 is correctly linked to the XHTML document data 73. The description of the path of the JPEG image data 75 in () can be rewritten so as to match the path of the JPEG image data 75 after external output in the external device 30.
[0021]
The printer 20 includes a document interpretation / layout processing unit 41, an image reception / document generation unit 43, an image buffer 45, a print engine 47, an external output unit 49, and a control panel 51.
[0022]
Hereinafter, the functions and operations of each unit of the printer 20 will be described separately for the case of printing the XHTML document data 63 and the case of simply printing the JPEG image data 71 with reference to FIGS. . Here, FIG. 2 shows a processing flow of the document interpretation / layout processing unit 41, FIG. 3 shows a processing flow of the image reception / document generation unit 43, and FIG. 5 shows an example of a template representing basic XHTML document data stored in advance.
[0023]
First, the operation of the printer 20 when printing the XHTML document data 63 will be described.
[0024]
When the printer 20 receives the XHTML document data 63 as a print target from the data source 10, the document interpretation / layout processing unit 41 inputs and interprets the received XHTML document data 63 (FIG. 2, step 201). If the JPEG image data 65 (one or a plurality of images) is linked thereto, the linked JPEG image data 65 is obtained from the path described in the image link (FIG. 2, Step 203). Although the location (path) of the JPEG image data 65 exists in the data source 10 in the illustrated example, this is merely an example, and may exist in another device other than the data source 10. .
[0025]
In addition, the document interpretation / layout processing unit 41 inputs, from the data source 10 or the control panel 51, printing conditions 61 or 69 indicating settings such as a paper size, a paper direction, and image adjustment used in the printing (FIG. 2). , Step 205).
[0026]
Then, based on the input XHTML document data 63 and the JPEG image data 65, the document interpretation / layout processing unit 41 determines all the pages of the print document according to the input print conditions 61 or 69 according to the paper size and paper direction. The layout of the display object (characters, images, figures, etc. displayed on the page) on the physical page is determined (FIG. 2, step 207). Subsequently, the document interpretation / layout processing unit 41 creates bitmap image data of each page of the print document with the determined layout (step 209 in FIG. 2). At this time, if any image adjustment is specified for any image in the print document (or the entire print document) under the specified print conditions 61 or 69, the document interpretation / layout processing unit 41 After the image adjustment, bitmap image data is created. Then, the document interpretation / layout processing unit 41 transfers the bitmap image data to the print engine 47 (step 211 in FIG. 2). The print engine 47 prints each page of the print document on each sheet based on the bitmap image data.
[0027]
Next, the operation of the printer 20 when printing the simple JPEG image data 71 will be described.
[0028]
When the printer 20 receives simple JPEG image data 71 (or one or more sheets) from the data source 10 as a print target, the image receiving / document generating unit 43 inputs the received JPEG image data 71. (FIG. 3, 301), and writes the JPEG image data 71 into the image buffer 75 (FIG. 3, 303). Then, the image receiving / document generating unit 43 incorporates the XHTML document data 73 for printing the JPEG image data 71, that is, the JPEG image data 71 (that is, to the JPEG image data 71 in the image buffer 75). The XHTML document data 73 (with the image link embedded therein) is created (303 in FIG. 3). Various methods can be adopted as a method of creating the XHTML document data 73. One simple method is to add an image link to arbitrary image data at a predetermined position in the document data, for example. A document template representing basic XHTML document data is prepared in advance so that XHTML document data incorporating arbitrary image data is completed, and an image link to JPEG image data 71 is added to the document template. It is a method of doing.
[0029]
FIG. 4 schematically shows an example of such a document template. A document template 400 shown in FIG. 4A is an example for incorporating, for example, one image 401 into document data having a plain background, and a document template 410 shown in FIG. 4B is a document template having a plain background, for example. This is an example for incorporating two images 411 and 413. The image reception / document generation unit 43 reads the document template 400 of FIG. 4A if the number is one, and reads the document template 400 of FIG. 4B if the number is two, according to the number of input JPEG image data 71 to be printed. XHTML document data 73 is created by reading an appropriate document template, such as reading 410, and writing an image link to the JPEG image data 71 in the image buffer 75 at a predetermined location in the document template. be able to.
[0030]
Thereafter, the image receiving / document generating unit 43 passes the created XHTML document data 73 to the document interpreting / layout processing unit 41 (FIG. 3, step 307). Then, the document interpretation / layout processing section 41 interprets the input XHTML document data 73 (step 201 in FIG. 2) according to the procedure shown in FIG. 2 described above, and converts the JPEG image data 75 linked thereto there. The print conditions 61 or 69 are obtained from the image buffer 45 (step 203 in FIG. 2), and the printing conditions 61 or 69 are input from the data source 10 or the control panel 51 (step 205 in FIG. 2), and the input XHTML document data 73 and Based on the JPEG image data 75, the layout of all the image objects (characters, images, etc.) of each page of the print document on the physical page is determined according to the paper size and paper direction specified by the input printing conditions 61 or 69. (FIG. 2, step 207). Subsequently, the document interpretation / layout processing unit 41 creates bitmap image data of each page with the determined layout (at this time, if any image adjustment is requested by the printing conditions 61 or 69, the image adjustment is performed). (Step 209 in FIG. 2), and the bitmap image data is transferred to the print engine 47 (Step 211 in FIG. 2). The print engine 47 prints each page of the print document on each sheet based on the bitmap image data.
[0031]
As described above, even when only image data is printed, the layout processing function of the document interpretation / layout processing unit 41 is used. Therefore, when these processing units are realized by software, necessary hardware resources such as a memory area are smaller than those according to the related art.
[0032]
Next, a case in which an external output command 81 or 83 is input to the printer 20 from the data source 10 or the control panel 51 in the case of simply printing image data will be described.
[0033]
In response to the input external output command 81 or 83, the external output unit 49 outputs the XHTML document data 73 (or a copy thereof) created by the image reception / document generation unit 43 and the image buffer linked thereto. The JPEG image data 75 (or a copy thereof) in 45 is output to the external device 30 designated by the user. At this time, the external output unit 49 rewrites the path to the JPEG image data 75 included in the image link in the externally output XHTML document data 73 so as to point to the location of the JPEG image data 75 in the external output device 30. .
[0034]
The user can save the XHTML document data 73 and the JPEG image data 75 linked to the XHTML document data 73 output to the external output device 30 in this way, or pass them on to another person. . For example, it is assumed that the user selects several favorite photographs from a large number of photographs taken in the past and prints them by the above-described simple image data printing method. At this time, if the user also inputs an external output command, the document data incorporating the image data of the desired photograph is externally output. Therefore, when the user wants to print the same photo later, the external output is performed. Since it is only necessary to use the prepared document data, it is possible to avoid the trouble of selecting a desired photograph from a large number of photographs again. Further, if the user gives the document data output from the outside to another person, the other person can print and refer to the photograph similarly.
[0035]
Although the embodiment of the present invention has been described above, this is an exemplification for describing the present invention, and is not intended to limit the scope of the present invention only to this embodiment. Therefore, the present invention can be implemented in other various forms without departing from the gist thereof.
[0036]
For example, in the above-described embodiment, when mere image data is printed, the image receiving / document generating unit 43 in the printer 20 takes in the image data 71 to be printed from the data source 10 and stores it in the image buffer 45 in the printer 20. Then, the document data 73 in which the link to the image data 75 in the image buffer 45 is embedded is created and passed to the document interpretation / layout processing unit 41. However, as an alternative, the image receiving / document generating unit 43 does not fetch the image data 71 to be printed from the data source 10, but instead notifies the image data 71 of the path of the image data 71. The document data 73 in which the link is embedded may be created and passed to the document interpretation / layout processing unit 41. Then, based on the link of the document data 73, the document interpretation / layout processing unit 41 places the image data 71 to be printed at the location indicated by the path (for example, in the data source 10 or in another device (not shown)). Etc.).
[0037]
Further, in the above-described embodiment, the input is performed only to the document interpretation / layout processing unit 67 that performs the printing process 61 or 69, but at least one of the printing conditions 61 or 69 that can be included in the printing condition 61 or 69 is included. The settings of the items (for example, the settings of the patterns, characters, and graphics constituting the background, the settings of the patterns, characters, and graphics to be superimposed on the image, and the settings of the modification of the image frame) are also transmitted to the image reception / document generation unit 43. By inputting the information, information on the setting of the item may be entered in the document data 73. By doing so, even when a simple image is printed, it is possible to obtain a printout of various designs including various patterns, figures, and character strings in addition to the image.
[Brief description of the drawings]
FIG. 1 shows a configuration of an electronic printer according to an embodiment of the present invention.
FIG. 2 is a flowchart showing processing of a document interpretation / layout processing unit 41;
FIG. 3 is a flowchart showing processing of an image reception / document generation unit 43;
FIG. 4 is a diagram schematically showing two examples of a document template possessed by an image reception / document generation unit 43.
[Explanation of symbols]
Reference Signs List 10 Data source 20 Printer 30 External device 41 Document interpretation / layout processing unit 43 Image reception / document generation unit 45 Image buffer 47 Print engine 49 External output unit 51 Control panel 61, 69 Printing conditions 63, 73 XHTML document data 71, 75 JPEG Image data 81, 83 External output instructions 400, 410 Document template

Claims (5)

データソースから所定言語で記述された文書データを入力する文書入力手段と、
データソースから画像データを入力する画像入力手段と、
入力された画像データが組み込まれた文書データを、前記所定言語を用いて作成する文書作成手段と、
前記文書入力手段からも前記文書作成手段からも前記文書データを受け取り、印刷媒体の物理ページ上での前記文書データのレイアウトを決定し、決定されたレイアウトで前記文書データを印刷するためのビットマップ画像を生成する共通のレイアウト処理手段と、
生成されたビットマップ画像を用いて、前記決定されたレイアウトで前記文書データを印刷する印刷手段と、
を備えた画像形成装置。
Document input means for inputting document data described in a predetermined language from a data source;
Image input means for inputting image data from a data source,
Document creation means for creating document data incorporating the input image data using the predetermined language;
A bitmap for receiving the document data from both the document input unit and the document creation unit, determining a layout of the document data on a physical page of a print medium, and printing the document data with the determined layout Common layout processing means for generating an image,
Using the generated bitmap image, printing means for printing the document data in the determined layout,
An image forming apparatus comprising:
前記文書データ作成手段が、任意の画像データが組み込み可能である前記所定言語で記述された基本的な文書データを表した文書テンプレートを予め有しており、前記入力された画像データを前記文書テンプレートに組み込むことにより、前記入力された画像データが組み込まれた文書データを作成する請求項1記載の画像形成装置。The document data creating means has in advance a document template representing basic document data described in the predetermined language into which arbitrary image data can be incorporated, and converts the input image data into the document template. 2. The image forming apparatus according to claim 1, wherein document data in which the input image data is incorporated is created by incorporating the input image data. 作成された前記画像データが組み込まれた文書データを外部出力する外部出力手段を更に備えた請求項1記載の画像形成装置。The image forming apparatus according to claim 1, further comprising an external output unit that externally outputs the created document data in which the created image data is incorporated. 前記所定言語は、任意の画像データへのリンクを任意の文書データに埋め込むことで、前記任意の文書データに前記任意の画像データを組み込むことができるようになっており、
画像バッファを更に備え、
前記文書作成手段は、前記入力された画像データを前記画像バッファに格納し、前記画像バッファに格納された画像データへのリンクを埋め込んだ文書データを前記所定言語で作成し、
前記レイアウト処理手段は、前記リンクが埋め込まれた文書データを受け取ると、受け取った文書データにリンクされた画像データを前記画像バッファから読み込み、そして、前記受け取った文書データと前記リンクされた画像データとを用いて、前記レイアウトを決定して前記ビットマップ画像を作成するようになっている請求項1記載の画像形成装置。
The predetermined language is such that by embedding a link to any image data into any document data, the arbitrary image data can be embedded in the arbitrary document data.
Further comprising an image buffer,
The document creating means stores the input image data in the image buffer, creates document data in which the link to the image data stored in the image buffer is embedded in the predetermined language,
When receiving the document data in which the link is embedded, the layout processing unit reads the image data linked to the received document data from the image buffer, and reads the received document data and the linked image data. 2. The image forming apparatus according to claim 1, wherein the bitmap image is created by determining the layout by using the image forming apparatus.
データソースから所定言語で記述された文書データを入力するステップと、
入力された文書データを共通のレイアウト処理手段へ渡すステップと、
データソースから画像データを入力するステップと、
入力された画像データが組み込まれた文書データを、前記所定言語を用いて作成するステップと、
作成された文書データを前記共通のレイアウト処理手段へ渡すステップと、
前記共通のレイアウト処理手段にて、印刷媒体の物理ページ上での前記文書データのレイアウトを決定し、決定されたレイアウトで前記文書データを印刷するためのビットマップ画像を生成するステップと、
生成されたビットマップ画像を用いて、前記決定されたレイアウトで前記文書データを印刷するステップと、
を備えた画像形成方法。
Inputting document data described in a predetermined language from a data source;
Passing the input document data to a common layout processing means;
Inputting image data from a data source;
Creating document data incorporating the input image data using the predetermined language;
Passing the created document data to the common layout processing means;
Determining a layout of the document data on a physical page of a print medium by the common layout processing unit, and generating a bitmap image for printing the document data with the determined layout;
Using the generated bitmap image, printing the document data in the determined layout,
An image forming method comprising:
JP2002276992A 2002-09-24 2002-09-24 Image formation device and image formation method Withdrawn JP2004114326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002276992A JP2004114326A (en) 2002-09-24 2002-09-24 Image formation device and image formation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002276992A JP2004114326A (en) 2002-09-24 2002-09-24 Image formation device and image formation method

Publications (2)

Publication Number Publication Date
JP2004114326A true JP2004114326A (en) 2004-04-15
JP2004114326A5 JP2004114326A5 (en) 2005-09-29

Family

ID=32272715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002276992A Withdrawn JP2004114326A (en) 2002-09-24 2002-09-24 Image formation device and image formation method

Country Status (1)

Country Link
JP (1) JP2004114326A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8194269B2 (en) 2005-04-11 2012-06-05 Samsung Electronics Co., Ltd. Image forming method and system using XHTML-print data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8570581B2 (en) 2002-04-11 2013-10-29 Samsung Electronics Co., Ltd. Image forming method and system using XHTML-print data
US8194269B2 (en) 2005-04-11 2012-06-05 Samsung Electronics Co., Ltd. Image forming method and system using XHTML-print data

Similar Documents

Publication Publication Date Title
US7414743B2 (en) Print control apparatus, method and program using a tag of a document list for printing a plurality of documents in various formats
JP2004050722A (en) Printer
US20120002226A1 (en) Enforcing a minimum font size
US20070263240A1 (en) Image-Forming Apparatus, Image-Forming Control Method, Image-Forming Control Program Storage Medium, Image-Forming Control Data Signal, And Image-Forming Control Apparatus
JP4673200B2 (en) Print processing system and print processing method
JP4109938B2 (en) Information processing apparatus, control method therefor, and program
US9036170B2 (en) Relaying device, image processing device, and system comprising image processing device and relaying device
JP2007334791A (en) Image output controller, output image information generator, and program
JP2007148486A (en) Method for supporting document browsing, system for the same, document processor, and program
US20100002247A1 (en) Image processor, image processing method, computer readable medium, and image processing system
JP2004054802A (en) Image processing apparatus and image processing program
JP2000066867A (en) Printer device and storage medium storing program for page information printing control
JP2004114326A (en) Image formation device and image formation method
JP2009251835A (en) Information processing apparatus, output control device and program
JP2009098880A (en) Print processing system, print processing method, and computer program
US9430446B2 (en) Information processing apparatus, method and storage medium including a function for establishing exceptions applied to print settings when specified conditions are met
US20080010583A1 (en) Computer-readable medium storing markup documents, and method and apparatus of processing the markup documents
JP7395334B2 (en) Information processing device, information processing method, and program
JP3880321B2 (en) Information processing apparatus, data communication system, information processing method, program, and storage medium
JP6911403B2 (en) Information processing device
JP2007055133A (en) Image forming device and image forming system
JP2008054110A (en) Image forming apparatus
JP2009101662A (en) Printing processor
JP2004288096A (en) Printing system
JP4496798B2 (en) Print control program, print control method, and print control apparatus

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050511

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050511

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20050511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090210

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090409

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090804

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091020

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20091111

A912 Removal of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A912

Effective date: 20091204

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110422