JP2006244037A - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP2006244037A
JP2006244037A JP2005057514A JP2005057514A JP2006244037A JP 2006244037 A JP2006244037 A JP 2006244037A JP 2005057514 A JP2005057514 A JP 2005057514A JP 2005057514 A JP2005057514 A JP 2005057514A JP 2006244037 A JP2006244037 A JP 2006244037A
Authority
JP
Japan
Prior art keywords
font size
document
printed
printing
print
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2005057514A
Other languages
Japanese (ja)
Inventor
Satoru Suzuki
覚 鈴木
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 JP2005057514A priority Critical patent/JP2006244037A/en
Publication of JP2006244037A publication Critical patent/JP2006244037A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer, a printing system and a program, allowing anyone to easily print a WEB site including the whole information inside a form. <P>SOLUTION: This printer has: a form detection means detecting a drawing element constituting the form; and a form print mode setting part setting a normal print mode for printing only a document of a portion displayed in the form about the drawing element constituting the form in HTML data of a printing target, a reduced print mode for reducing a font size of a document inside the form and printing it about the drawing element constituting the form in the HTML data of the printing target, and an other page print mode for printing the document page among the drawing elements constituting the form in the HTML data of the printing target, on another. When the form is detected by the form detection means, the HTML data of the printing target are printed according to a mode setting state of the form print mode setting part. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、フォームが存在するWEBサイトをフォーム内の文書の全部を含めて誰でも簡単に印刷できる印刷装置、印刷システムおよびプログラムに関する。   The present invention relates to a printing apparatus, a printing system, and a program that enable anyone to easily print a WEB site where a form exists, including all documents in the form.

近年、インターネットのWEBサイトでは、さまざまな表示方法が利用されている。WEBサイトの表示画面をいくつかのブロックに分割して表示させるフレームや、長い文書の一部分のみを表示させ、その他はスクロールバーの移動により必要な部分を表示させるフォームは、WEBサイトの効率的なレイアウト手段として多用されている。   In recent years, various display methods have been used on WEB sites on the Internet. A website that divides the display screen of the WEB site into several blocks and a form that displays only a part of a long document and displays the other necessary parts by moving the scroll bar. Often used as a layout means.

特に、後者のフォームは、WEBサイトの更新情報の表示方法として、図2(a)に示すような利用方法がある。図2(a)は、WEBサイトの表示画面、201はフォームをあらわしている。スクロールバー203の移動により、文書202の必要な情報を表示させることができる。直近の更新情報をデフォルト表示しているのでWEBサイト閲覧者は表示されている情報が最新のものなのか否かなどを確認しやすく、また、スクロールバーを移動させることにより過去の更新履歴も簡単に確認することが可能となっている。   In particular, the latter form has a utilization method as shown in FIG. 2A as a method of displaying update information on the WEB site. FIG. 2A shows a display screen of a WEB site, and 201 shows a form. By moving the scroll bar 203, necessary information of the document 202 can be displayed. Since the latest update information is displayed by default, it is easy for WEB site visitors to check whether the displayed information is the latest information, and the past update history is also easy by moving the scroll bar. It is possible to confirm.

一方、図2(a)に示すようなフォームが存在するWEBサイトを印刷する場合、従来では、図2(b)に示すようにフォームにデフォルト表示されている情報のみが印刷され、スクロールバーの移動により表示する情報までは印刷することができなかった。   On the other hand, when printing a WEB site having a form as shown in FIG. 2A, conventionally, only the information displayed on the form as default is printed as shown in FIG. The information displayed by movement could not be printed.

又、従来例としては、例えば特許文献1をあげることが出来る。
特開2000−215017号公報
As a conventional example, for example, Patent Document 1 can be cited.
JP 2000-2105017 A

しかしながら、上記従来技術においては次のような問題があった。   However, the above prior art has the following problems.

すなわち、従来方法では、フォーム内の情報も印刷したい場合、WEBサイト閲覧者はフォームを選択、またはフォームの情報をコピーして、ワープロ等の他のソフトウェアにペーストしてから印刷する等、別の手順によって印刷する必要があり、時間と非常に煩わしい作業が必要であった。   In other words, in the conventional method, when it is desired to print the information in the form, the WEB site viewer selects the form, or copies the form information, pastes it in other software such as a word processor, and then prints it. It was necessary to print according to the procedure, which required time and very troublesome work.

また、従来方法では、WEBサイト閲覧者がインターネット、PCに関して初心者である場合は、フォーム内の情報も印刷したい場合でも、フォームを選択、またはフォームの情報をコピー&ペーストする等の手順を知らない場合には、結果的にフォーム内の情報を印刷することを断念せざるを得なかった。   Further, in the conventional method, if the WEB site viewer is a beginner on the Internet or a PC, even if he / she wants to print information in the form, he / she does not know the procedure for selecting the form or copying and pasting the form information. In some cases, the result was to give up printing the information in the form.

本発明は、上述した点に鑑みなされたものであり、特にフォームが存在するWEBサイトをフォーム内の情報の全部を含めて誰でも簡単に印刷できる印刷装置、印刷システムおよびプログラムを提供することを目的としている。   The present invention has been made in view of the above points, and in particular, provides a printing apparatus, a printing system, and a program capable of easily printing a WEB site where a form exists, including all of the information in the form. It is aimed.

上記目的を達成するため、本発明は、ネットワークに接続しHTMLデータの格納先からHTMLデータを読み込むためのHTMLデータ読み込み手段と、前記HTMLデータ読み込み手段で読み込まれたHTMLデータから表示すべき文字列、画像等を抽出して各々描画要素に分割するHTMLデータ解析手段と、前記HTMLデータ解析手段で抽出された描画要素を表示領域の大きさに応じて各要素を配置し、表示レイアウトを構築するためのレイアウト解析手段と、前記HTMLデータの中から、フォームを構成する描画要素を検出するフォーム検出手段と、印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォームに表示されている部分の文書のみを印刷する通常印刷モードと、印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォーム内の文書のフォントサイズを小さくして印刷する縮小印刷モードと、印刷対象のHTMLデータにおいて、フォームを構成する描画要素のうち、文書は別のページに印刷する別ページ印刷モードを設定するフォーム印刷モード設定部とを備え、前記フォーム検出手段で、フォームが検出されると、前記フォーム印刷モード設定部のモード設定状態に応じて、前記印刷対象のHTMLデータを印刷することを特徴とする。   In order to achieve the above object, the present invention provides an HTML data reading means for reading HTML data from a HTML data storage destination connected to a network, and a character string to be displayed from the HTML data read by the HTML data reading means. An HTML data analyzing unit that extracts an image or the like and divides the drawing element into drawing elements, and the drawing elements extracted by the HTML data analyzing unit are arranged according to the size of the display area to construct a display layout. Layout analyzing means, form detecting means for detecting drawing elements constituting the form from the HTML data, and drawing elements constituting the form in the HTML data to be printed Normal print mode for printing only documents and HTML data to be printed The drawing elements composing the form print in a reduced print mode in which the font size of the document in the form is reduced, and the HTML data to be printed, among the drawing elements composing the form, the document is printed on another page. A form print mode setting unit for setting another page print mode, and when the form is detected by the form detection unit, the HTML data to be printed is changed according to the mode setting state of the form print mode setting unit. It is characterized by printing.

また、前記印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォーム内の文書のフォントサイズを小さくして印刷する縮小印刷モードの時、フォーム内に文書の全部が印刷されるか否かを判定するフォーム表示判定手段と、前記フォームを構成する描画要素の文書のフォントサイズを検出するフォントサイズ検出手段と、前記フォーム表示判定手段でフォーム内に文書の全部が印刷されないと判定された場合、前記文書のフォントサイズを1サイズ小さくするフォントサイズ変更手段と、前記フォントサイズに対して最小フォントサイズを規定し、前記フォントサイズ検出手段で検出されたフォントサイズと、前記最小フォントサイズを比較するフォントサイズ比較手段とを備え、前記フォーム表示判定手段で、フォーム内に文書の全部が印刷されると判定されると、前記フォントサイズで前記フォーム内に文書の全部を印刷することが望ましい。   Further, in the HTML data to be printed, whether or not the entire document is printed in the form when the drawing element constituting the form is in the reduced print mode in which the font size of the document in the form is reduced is printed. When the form display determination means for determining, the font size detection means for detecting the font size of the document of the drawing element constituting the form, and the form display determination means determine that the entire document is not printed in the form, A font size changing means for reducing the font size of the document by one; a font that defines a minimum font size with respect to the font size, and compares the font size detected by the font size detecting means with the minimum font size; Size comparison means, and the form display determination means When all the documents is determined to be printed on, it is desirable to print the entire document in said form with the font size.

また、前記印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォーム内の文書のフォントサイズを小さくして印刷する縮小印刷モードの時、フォーム内に文書の全部が印刷されるか否かを判定するフォーム表示判定手段と、前記フォームを構成する描画要素の文書のフォントサイズを検出するフォントサイズ検出手段と、前記フォーム表示判定手段でフォーム内に文書の全部が印刷されないと判定された場合、前記文書のフォントサイズを1サイズ小さくするフォントサイズ変更手段と、前記フォントサイズに対して最小フォントサイズを規定し、前記フォントサイズ検出手段で検出されたフォントサイズと、前記最小フォントサイズを比較するフォントサイズ比較手段とを備え、前記フォントサイズ比較手段で、前記フォントサイズ検出手段で検出されたフォントサイズが、前記最小フォントサイズ以下と判定されると、前記フォーム印刷モード設定部のモードを前記別ページ印刷モードに切り替えることが望ましい。   Further, in the HTML data to be printed, whether or not the entire document is printed in the form when the drawing element constituting the form is in the reduced print mode in which the font size of the document in the form is reduced is printed. When the form display determination means for determining, the font size detection means for detecting the font size of the document of the drawing element constituting the form, and the form display determination means determine that the entire document is not printed in the form, A font size changing means for reducing the font size of the document by one; a font that defines a minimum font size with respect to the font size, and compares the font size detected by the font size detecting means with the minimum font size; Size comparison means, and the font size comparison means includes the font size comparison means. Detection font size cement size detecting means, when it is determined that less than the minimum font size, it is desirable to switch the mode of the form printing mode setting unit to the another page printing mode.

また、前記印刷対象のHTMLデータにおいて、フォームを構成する描画要素のうち、文書は別のページに印刷する別ページ印刷モードのとき、前記印刷対象のHTMLデータの印刷ページを検出する印刷ページ検出手段と、前記印刷ページ検出手段で検出された印刷ページに応じて、前記フォームを構成する描画要素のうち、文書を印刷するページを決定し、フォーム内にフォーム内の文書を印刷したページを印刷し、フォーム内の文書は前記文書を印刷するページに印刷することが望ましい。   Further, in the HTML data to be printed, a print page detecting means for detecting a print page of the HTML data to be printed in a different page print mode in which a document is printed on another page among drawing elements constituting a form. And determining the page on which the document is printed out of the drawing elements constituting the form according to the print page detected by the print page detecting means, and printing the page in which the document in the form is printed. The document in the form is preferably printed on a page on which the document is printed.

以上説明したように、本発明によれば、印刷対象のWEBサイトにフォームが存在し、フォーム内の情報も全部印刷したい場合、WEBサイト閲覧者はフォームを選択、またはフォームの情報をコピーして、ワープロ等の他のソフトウェアにペーストしてから印刷する等、別の手順によって印刷する必要がなくなり、簡単かつ短時間にフォーム内の情報の全部を含めてWEBサイトを印刷できる。   As described above, according to the present invention, when a form exists on the WEB site to be printed and all information in the form is to be printed, the WEB site viewer selects the form or copies the form information. There is no need to print by another procedure such as pasting to other software such as a word processor and printing, and the WEB site including all of the information in the form can be printed easily and in a short time.

また、WEBサイト閲覧者がインターネット、PCに関して初心者であり、フォームを選択、またはフォームの情報をコピー&ペーストする等の手順を知らなくても、誰でも簡単に、フォーム内の情報の全部を含めてWEBサイトを印刷できる。   Also, WEB site visitors are beginners on the Internet and PC, and anyone can easily include all of the information in the form without knowing the procedure such as selecting the form or copying and pasting the form information. You can print a WEB site.

また、フォーム内の文書を縮小して全部を印刷する場合、最小フォントサイズを規定することにより、印刷した結果、文字が小さくて読みにくくなるといった不具合をなくすことができる。   Further, when the entire document is reduced and the entire document is printed, by defining the minimum font size, it is possible to eliminate the problem that, as a result of printing, characters are small and difficult to read.

また、フォーム内の文書を印刷したページ番号をフォーム内に印刷することで、ユーザは簡単に印刷されたフォーム内の文書を確認することができる。   Further, by printing the page number on which the document in the form is printed in the form, the user can easily check the document in the printed form.

以下、本発明をパソコン(以後PCと呼ぶ)を介さずにインターネットに接続してWEBサイトを表示、印刷できるWEBプリント機能付き印刷装置に適用した場合の実施形態を図面に基づいて詳細に説明する。   Hereinafter, an embodiment in which the present invention is applied to a printing apparatus with a WEB print function capable of displaying and printing a WEB site by connecting to the Internet without using a personal computer (hereinafter referred to as a PC) will be described in detail with reference to the drawings. .

図1は本発明におけるWEBプリント機能付き印刷装置の概観図である。
図1に示すように本実施例におけるWEBプリント機能付き印刷装置100は、インターネットに接続するためのインターネット接続口106、WEBサイトや印刷ステータス等を表示する表示部101、マウスの代替としての機能をもちクリックやスクロール等の操作を行うためのタッチパッド102、文字や数字を入力できる入力手段103、印刷実行や停止を行うための印刷実行ボタン104、インクカートリッジを装着、交換するためのインクカートリッジ装着部105、印刷済み用紙を排出するための排紙口107および排紙トレイ108等を備えている。
FIG. 1 is an overview of a printing apparatus with a WEB print function according to the present invention.
As shown in FIG. 1, a printing apparatus 100 with a WEB print function in this embodiment has an Internet connection port 106 for connecting to the Internet, a display unit 101 for displaying a WEB site, print status, and the like, and functions as an alternative to a mouse. A touch pad 102 for performing operations such as clicking and scrolling, an input means 103 for inputting characters and numbers, a print execution button 104 for executing and stopping printing, and an ink cartridge for mounting and replacing an ink cartridge A unit 105, a paper discharge port 107 for discharging printed paper, a paper discharge tray 108, and the like.

図4に本発明におけるWEBプリント機能付き印刷装置100の内部構成を示す。本WEBプリント機能付き印刷装置100は、入力手段401、作業用メモリ402、プログラム格納メモリ403、HTML処理部404、ネットワークI/F部405、表示部407、画像処理部408、コントローラ409、プリンタユニット410、電源415、および各ブロックを制御するためのCPU406で構成されている。また、プリンタユニット410は、各種モータ413と各種モータ駆動部411、印字ヘッド414と印字ヘッド駆動部412で構成されている。   FIG. 4 shows an internal configuration of the printing apparatus 100 with a WEB print function according to the present invention. The printing apparatus 100 with a WEB print function includes an input unit 401, a work memory 402, a program storage memory 403, an HTML processing unit 404, a network I / F unit 405, a display unit 407, an image processing unit 408, a controller 409, and a printer unit. 410, a power source 415, and a CPU 406 for controlling each block. The printer unit 410 includes various motors 413, various motor driving units 411, a print head 414, and a print head driving unit 412.

入力手段401は、図2に示す従来例で説明したように印刷対象のWEBサイト200にフォーム201が存在する場合、フォーム201に表示されている部分の文書202のみを印刷する通常印刷モード、フォーム201に表示されている文書を別ページに独立して印刷する別ページ印刷モード、フォーム201に表示されている文書をフォーム201内に収まるように縮小して印刷する縮小印刷モード、を切り替えるためのモード設定ボタンの他、印刷実行ボタン、印刷中止ボタン、プラスボタンやマイナスボタン及び十字キー等と、マウスの代替としての機能をもちクリックやスクロール等の操作を行うためのタッチパッド102が配置され、ユーザからの指示を入力しデジタル信号に変換してCPU406に伝える。   As described in the conventional example shown in FIG. 2, when the form 201 exists on the WEB site 200 to be printed, the input unit 401 prints only the portion of the document 202 displayed on the form 201. For switching between a separate page print mode for printing the document displayed on the page 201 on a separate page independently, and a reduced print mode for printing the document displayed on the form 201 while reducing the document to fit within the form 201 In addition to the mode setting button, a print execution button, a print cancel button, a plus button, a minus button, a cross key, and the like, and a touch pad 102 having a function as an alternative to a mouse and performing operations such as click and scroll, are arranged. An instruction from the user is input, converted into a digital signal, and transmitted to the CPU 406.

表示部407は、液晶表示素子等の画面を有する表示装置として構成されており、本実施例において、HTML処理部404で処理されたHTMLデータの表示、各種設定状態、印刷ステータス、エラー/警告メッセージ等を表示する。また、画像データ再生時には、フレームメモリ900に記憶されているY、U、Vデータを、R、G、B(赤、緑、青の三原色成分)データに変換して再生し表示する。   The display unit 407 is configured as a display device having a screen such as a liquid crystal display element. In this embodiment, the display unit 407 displays HTML data processed by the HTML processing unit 404, various setting states, print status, and error / warning messages. Etc. are displayed. Further, when reproducing image data, Y, U, and V data stored in the frame memory 900 are converted into R, G, and B (three primary color components of red, green, and blue) data, reproduced, and displayed.

画像処理部408は、入力されたデータを読み込み画像の回転およびバンドバッファメモリへの格納、印刷用紙の大きさに適した画像サイズに変更、RGBデータを印刷用YMCデータに変換、印刷データに変換するための2値化処理等を行う。   The image processing unit 408 reads the input data, rotates the image and stores it in the band buffer memory, changes the image size to an appropriate size for the printing paper, converts the RGB data to YMC data for printing, and converts it to print data For example, a binarization process is performed.

プログラム格納メモリ403は、図8に示すように、制御プログラム800、各種アプリケーションプログラム801、印刷用画像データ作成手段803、ユーティリティプログラム804の他に、フォーム処理部602のソフトウェア処理を行うフォーム処理用プログラム802を格納している。なお、印刷用画像データ作成手段803は、画像処理部408のソフトウェア処理としてパーソナルコンピュータ等での印刷画像データ作成処理用のプログラムと同じ構成の、ラスタライザ、色補正モジュール及びハーフトーンモジュールからなる3つを、描画に必要な2値データを得るための基本的手段として備えており、YUVデータをK(ブラック)、C(シアン)、M(マゼンタ)、及びY(イエロー)の印刷用のCMYK階調ビットイメージデータに変換する。   As shown in FIG. 8, the program storage memory 403 includes a control program 800, various application programs 801, print image data creation means 803, a utility program 804, and a form processing program for performing software processing of the form processing unit 602. 802 is stored. Note that the print image data creation means 803 includes three components including a rasterizer, a color correction module, and a halftone module, which have the same configuration as a program for print image data creation processing in a personal computer or the like as software processing of the image processing unit 408. Are provided as basic means for obtaining binary data necessary for drawing, and YUV data is printed on CMYK floors for printing K (black), C (cyan), M (magenta), and Y (yellow). Convert to key image data.

作業用メモリ402は、図9に示すように、フレームメモリ900、印刷用データバッファ901、予備エリア902、プログラム用エリア903等が設定されている。図9においてフレームメモリ900は、表示部407の画像表示用メモリとして用いられ、画像データはビットマップイメージで展開される。また、フレームメモリ900は、表示部407のメニュー表示用メモリとして用いられる。印刷用データバッファ901は、印刷時に印刷用データを一時的に記憶するために用いられる。予備エリア902は、空き領域であり、実行されているプログラムのサイズにより領域の大きさが変動する。プログラム用エリア903は、プログラム格納メモリ403から読み出された制御プログラム800及びその時点で起動されているプログラムが記憶され、CPU406の制御により実行される。   As shown in FIG. 9, the work memory 402 includes a frame memory 900, a print data buffer 901, a spare area 902, a program area 903, and the like. In FIG. 9, a frame memory 900 is used as an image display memory of the display unit 407, and image data is developed as a bitmap image. The frame memory 900 is used as a menu display memory for the display unit 407. The print data buffer 901 is used for temporarily storing print data during printing. The spare area 902 is an empty area, and the size of the area varies depending on the size of the program being executed. The program area 903 stores the control program 800 read from the program storage memory 403 and the program activated at that time, and is executed under the control of the CPU 406.

ネットワークI/F部405は、図1に示すようにLANケーブル109を接続し、HTMLデータ、コマンド信号等を通信するためのインターフェースである。   The network I / F unit 405 is an interface for connecting a LAN cable 109 as shown in FIG. 1 and communicating HTML data, command signals, and the like.

HTML処理部404は、本発明において重要な機能を持ち詳細は後述するがネットワークI/F部405で受信したHTMLデータを処理する一般的なブラウザーとしての機能等を備えている。   The HTML processing unit 404 has an important function in the present invention and has a function as a general browser for processing HTML data received by the network I / F unit 405, which will be described in detail later.

コントローラ409は、プリンタユニット410全体の動作制御を行う。コントローラ409は、印刷用データ(及び制御データ)を受け取るとプリンタユニットに制御信号を送って印字ヘッド駆動部412及びモータ駆動部411を制御し、描画及び紙送りを行わせることで、印刷画像(カラー印刷画像)を得る。   A controller 409 controls the operation of the entire printer unit 410. When the controller 409 receives the print data (and control data), it sends a control signal to the printer unit to control the print head drive unit 412 and the motor drive unit 411 to perform drawing and paper feed so that a print image ( Color print image).

CPU406は、上述の各回路等にバスラインを介して接続し、プログラム格納メモリ403に格納されている制御プログラム800により本WEBプリント機能付き印刷装置100全体の制御を行うと共に、本実施例において入力手段401からの指示信号に対応して本WEBプリント機能付き印刷装置100の各機能の実行制御を行う。   The CPU 406 is connected to the above-described circuits and the like via a bus line, controls the entire printing apparatus 100 with the WEB print function by the control program 800 stored in the program storage memory 403, and inputs in this embodiment. In response to the instruction signal from the means 401, execution control of each function of the printing apparatus 100 with the WEB print function is performed.

次に図5、図6、図7を用いて本発明において重要な機能をもつHTML処理部について詳細に説明する。   Next, an HTML processing unit having an important function in the present invention will be described in detail with reference to FIGS.

図5は本発明において重要な機能を持つHTML処理部の内部構成である。
図5に示すように、HTML処理部404は、HTMLデータ読み込み手段500、HTMLデータ解析部501、レイアウト解析手段で構成され各々CPU406にバスを介して接続されている。
FIG. 5 shows the internal configuration of an HTML processing unit having an important function in the present invention.
As shown in FIG. 5, the HTML processing unit 404 includes an HTML data reading unit 500, an HTML data analysis unit 501, and a layout analysis unit, which are each connected to the CPU 406 via a bus.

HTMLデータ読み込み手段500は、HTMLデータが格納されている場所(本実施例においては、LANケーブル109を介してインターネットに接続した任意のWEBサイト)からHTMLデータを読み込み本印刷装置内に取り込む。   The HTML data reading means 500 reads the HTML data from the place where the HTML data is stored (in this embodiment, an arbitrary WEB site connected to the Internet via the LAN cable 109) and loads it into the printing apparatus.

HTMLデータ解析部501は、詳細は図6を用いて後述するが、HTMLデータ読み込み手段500で取り込まれたHTMLデータを解析するとともに、表示すべき文字列・画像等を抽出して各々描画要素に分割する。文字列はフォントサイズ、種類が変わるごとに分割して各々を一要素とする。また、HTMLデータ解析手段501は、HTMLの場合には画像はそのURL(Uniform Resource Locator)が示されているだけなので、そのURLに基づいてHTMLデータ読み込み手段500に画像データの読み込みを指示し、読み込んだ画像を一要素とする。各々の描画要素はその大きさと描画位置を保持する。   Although details will be described later with reference to FIG. 6, the HTML data analysis unit 501 analyzes the HTML data fetched by the HTML data reading unit 500 and extracts a character string, an image, and the like to be displayed to each drawing element. To divide. The character string is divided every time the font size and type are changed, and each is made into one element. In addition, since the HTML data analyzing unit 501 only indicates the URL (Uniform Resource Locator) in the case of HTML, the HTML data analyzing unit 501 instructs the HTML data reading unit 500 to read the image data based on the URL. The read image is taken as one element. Each drawing element holds its size and drawing position.

レイアウト解析手段502は、HTMLデータ解析部501で得られた描画要素を表示領域の大きさと要素の大きさに応じて各要素を配置し、文字列等は行を分割しWEBサイトの表示レイアウトを構築する。   The layout analysis unit 502 arranges the drawing elements obtained by the HTML data analysis unit 501 in accordance with the size of the display area and the size of the elements, and the character string or the like is divided into lines to display the display layout of the WEB site. To construct.

図6は図5に示すHTMLデータ解析部501の内部構成である。   FIG. 6 shows an internal configuration of the HTML data analysis unit 501 shown in FIG.

図6に示すように、HTMLデータ解析部501は、描画要素検出部600、フォーム検出部601、フォーム処理部602、フォーム印刷モード設定部603で構成され各々ローカルバスで接続されている。   As shown in FIG. 6, the HTML data analysis unit 501 includes a drawing element detection unit 600, a form detection unit 601, a form processing unit 602, and a form print mode setting unit 603, which are connected by a local bus.

描画要素検出部600は、HTMLデータ読み込み手段500で取り込まれたHTMLデータを解析し、文字列、画像等を各々描画要素として検出する。文字列は、フォントサイズ、種類が変わるごとに分割して各々を一要素とする。また、先述したようにHTMLの場合には画像はそのURLが示されているだけなので、そのURLに基づいてHTML読み込み手段500に画像データの読み込みを指示し、読み込んだ画像データを一要素とする。   The drawing element detection unit 600 analyzes the HTML data captured by the HTML data reading unit 500 and detects a character string, an image, and the like as drawing elements. The character string is divided every time the font size and type are changed, and each is made into one element. Further, as described above, in the case of HTML, the URL of the image is only indicated, so that the HTML reading means 500 is instructed to read the image data based on the URL, and the read image data is taken as one element. .

フォーム検出部601は、HTMLデータ読み込み手段500で取り込まれたHTMLデータを解析し、フォームの構成を描画要素として検出する。   The form detection unit 601 analyzes the HTML data captured by the HTML data reading unit 500 and detects the configuration of the form as a drawing element.

フォーム処理部602は、詳細は図7を用いて後述するが、フォーム印刷モード設定部603の設定状態に応じてフォーム検出部601で検出されたフォームの構成要素を各々処理する。   Although the details will be described later with reference to FIG. 7, the form processing unit 602 processes each component of the form detected by the form detection unit 601 according to the setting state of the form print mode setting unit 603.

フォーム印刷モード設定部603は、図2に示す従来例で説明したように印刷対象のWEBサイト200にフォーム201が存在する場合、フォーム201に表示されている部分の文書202のみを印刷する通常印刷モード、フォーム201に表示されている文書を別ページに独立して印刷する別ページ印刷モード、フォーム201に表示されている文書をフォーム201内に収まるように縮小して印刷する縮小印刷モードを設定する。   As described in the conventional example shown in FIG. 2, the form print mode setting unit 603 prints only the portion of the document 202 displayed on the form 201 when the form 201 exists on the WEB site 200 to be printed. Mode, a separate page print mode for printing the document displayed on the form 201 on a separate page independently, and a reduced print mode for reducing the document displayed on the form 201 to fit within the form 201 and printing To do.

図7は図6に示すフォーム処理部602の内部構成である。   FIG. 7 shows the internal configuration of the form processing unit 602 shown in FIG.

図7に示すように、フォーム処理部602は、フォームサイズ検出部700、文書処理部701、最小フォントサイズ設定部702、フォーム表示判定部703、フォントサイズ変換テーブル704で構成され各々ローカルバスで接続されている。   As shown in FIG. 7, the form processing unit 602 includes a form size detection unit 700, a document processing unit 701, a minimum font size setting unit 702, a form display determination unit 703, and a font size conversion table 704, each connected by a local bus. Has been.

フォームサイズ検出部700は、フォーム検出部601で検出されたフォーム201の描画要素からフォーム201の枠となる描画要素を解析し、フォーム201の枠サイズを検出する。   The form size detection unit 700 analyzes a drawing element that becomes a frame of the form 201 from the drawing elements of the form 201 detected by the form detection unit 601, and detects the frame size of the form 201.

文書処理部701は、フォーム検出部601で検出されたフォーム201の描画要素からフォーム201に表示される文書データを解析し、フォーム印刷モード設定部603のモード設定状態と、フォーム201の枠サイズに応じて文字列の改行、文字列のフォントサイズの検出、変更等をおこなう。   The document processing unit 701 analyzes document data displayed on the form 201 from the drawing elements of the form 201 detected by the form detection unit 601, and determines the mode setting state of the form print mode setting unit 603 and the frame size of the form 201. In response, line breaks in character strings, font size of character strings are detected and changed.

最小フォントサイズ設定部702は、文書処理部701で変更される文字列の最小フォントサイズを設定する。   The minimum font size setting unit 702 sets the minimum font size of the character string changed by the document processing unit 701.

フォントサイズ変換テーブル704は、図15に示すように、フォントサイズから一文字あたりの大きさに変換するための変換テーブルであり、例えば、9ポイントのフォントサイズでは、一文字あたりの大きさ(図14参照)、すなわち高さYは18ドット、幅Xは16ドット分という具合に変換する。   As shown in FIG. 15, the font size conversion table 704 is a conversion table for converting the font size into a size per character. For example, in a 9-point font size, the size per character (see FIG. 14). ), That is, the height Y is converted to 18 dots and the width X is converted to 16 dots.

フォーム表示判定部703は、文書処理部701で処理された文書がフォームサイズ検出部700で検出されたフォーム201の枠内にすべての文書が表示されるか否かを判定する。   The form display determination unit 703 determines whether all documents are displayed within the frame of the form 201 in which the document processed by the document processing unit 701 is detected by the form size detection unit 700.

次に、本実施例におけるフォーム表示判定部703の判定方法を、図13、図14、図15を用いて説明する。   Next, a determination method of the form display determination unit 703 in the present embodiment will be described with reference to FIGS.

図13は、本実施例におけるフォーム201の部分を説明する図である。
まず、フォームサイズ検出部700でフォーム201の高さH1303および幅W1302を検出し記憶する。次に文書処理部701において検出された文書データのフォントサイズを検出し、図15に示すようなあらかじめ記憶されているフォントサイズ変換テーブル1505(ただし図は一部のフォントサイズのみ図示)の参照により一文字当たりの大きさ(図14参照)、すなわち高さY1402、幅X1403に変換する。次に、フォームの幅W1302を一文字あたりの幅X1403で除することによりフォーム201内の一行すなわち幅W1302に表示することが可能な文字数Cを算出し、文字数Cで改行(ただし図13は改行処理が無い例である)する。
FIG. 13 is a diagram for explaining a part of the form 201 in the present embodiment.
First, the form size detection unit 700 detects and stores the height H1303 and width W1302 of the form 201. Next, the font size of the document data detected by the document processing unit 701 is detected, and referring to a font size conversion table 1505 stored in advance as shown in FIG. 15 (however, only some font sizes are shown in the figure). The size per character (see FIG. 14), that is, the height Y1402 and the width X1403 are converted. Next, by dividing the width W1302 of the form by the width X1403 per character, the number of characters C that can be displayed on one line in the form 201, that is, the width W1302, is calculated. There is no example).

次に文字列を描画する要素各々について、文字数C以上の場合は改行処理を行い、改行数Rをカウントし、文字列を描画する要素数と改行数Rの合計により文書全体の行数Lを算出する。   Next, for each element that draws a character string, if the number of characters is greater than or equal to C, line break processing is performed, the number of line breaks R is counted, and the total number of lines L of the entire document is calculated by summing the number of elements that draw the string and the number of line breaks R calculate.

以上、フォーム201の高さH1303と、行数Lに一文字あたりの高さY1402を乗じた値LYの比較によりフォーム201内に文書全体が表示されているか否かを判定する。   As described above, it is determined whether the entire document is displayed in the form 201 by comparing the height H1303 of the form 201 with the value LY obtained by multiplying the number of lines L by the height Y1402 per character.

すなわち、フォーム201の高さH1303よりLYが小さい場合、フォーム201内に文書全体が表示され、フォーム201の高さH1303よりLYのほうが大きい場合は、文書の一部(例えば文末)がフォーム201内に非表示であると判定する。   That is, if LY is smaller than the height H1303 of the form 201, the entire document is displayed in the form 201. If LY is larger than the height H1303 of the form 201, a part of the document (for example, the end of the sentence) is in the form 201. Is determined to be hidden.

なお、本判定方法は、本実施例における一例でありさまざまな方法により実現可能であることはいうまでもない。   Needless to say, this determination method is an example in the present embodiment and can be realized by various methods.

次に、上記の如く構成された本WEBプリント機能付き印刷装置100の印刷時の動作について図10〜図12および図16を参照しながら詳細に説明する。   Next, the printing operation of the printing apparatus 100 with the WEB print function configured as described above will be described in detail with reference to FIGS. 10 to 12 and FIG.

図10は、本WEBプリント機能付き印刷装置のフォーム印刷モードが、図2に示す従来例で説明したように印刷対象のWEBサイト200にフォーム201が存在する場合、フォーム201に表示されている部分の文書202のみを印刷する通常印刷モード時の動作である。   FIG. 10 shows a part displayed on the form 201 when the form printing mode of the printing apparatus with the WEB print function is present on the WEB site 200 to be printed as described in the conventional example shown in FIG. This is an operation in the normal print mode in which only the document 202 is printed.

なお、本WEBプリント機能付き印刷装置100のフォーム印刷モードの設定方法は、印刷時にユーザが表示部101のメニュー一覧の選択により簡単に設定できるようになっており、図2に示す従来例で説明したように印刷対象のWEBサイト200にフォーム201が存在する場合、フォーム201に表示されている部分の文書202のみを印刷する通常印刷モード、フォーム201に表示されている文書を別ページに独立して印刷する別ページ印刷モード、フォーム201に表示されている文書をフォーム201内に収まるように縮小して印刷する縮小印刷モードの設定手順については省略する。   The form printing mode setting method of the printing apparatus 100 with the WEB print function can be easily set by the user by selecting a menu list on the display unit 101 during printing, and will be described with reference to the conventional example shown in FIG. As described above, when the form 201 exists in the WEB site 200 to be printed, the normal print mode in which only the portion of the document 202 displayed on the form 201 is printed, and the document displayed on the form 201 is independent on another page. The setting procedure of the separate page print mode for printing and the reduced print mode for printing the document displayed on the form 201 while reducing the document to fit in the form 201 will be omitted.

本WEBプリント機能付き印刷装置100は、図2に示す従来例で説明したように印刷対象のWEBサイト200にフォーム201が存在する場合、フォーム201に表示されている部分の文書202のみを印刷する通常印刷モードに設定し、印刷実行ボタンを押す(S1001)と、本印刷装置100は、表示されているWEBサイトのHTMLデータを解析し、印刷データを生成する(S1002)。生成された印刷データは、ただちにプリンタユニット410に送られ、プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1003)、終了する(S1004)。本印刷装置100は、フォーム201に表示されている文書のみを印刷する通常印刷モードに設定されていると、フォームの検出の有無によらず表示部101に表示されているHTMLデータに対応した印刷データを生成する。すなわち、図2(a)に示すように印刷対象にフォーム201が存在する場合の印刷結果は、図2(b)に示すようにフォーム201に表示されている文書206のみが印刷されることになる。   As described in the conventional example shown in FIG. 2, the printing apparatus 100 with the WEB print function prints only the part of the document 202 displayed on the form 201 when the form 201 exists on the WEB site 200 to be printed. When the normal print mode is set and the print execution button is pressed (S1001), the printing apparatus 100 analyzes the HTML data of the displayed WEB site and generates print data (S1002). The generated print data is immediately sent to the printer unit 410, and the printer unit 410 performs printing by driving the various motors 413 and the print head 414 according to the sent print data (S1003), and the process ends ( S1004). When the printing apparatus 100 is set to a normal printing mode in which only the document displayed on the form 201 is printed, printing corresponding to the HTML data displayed on the display unit 101 regardless of whether or not the form is detected. Generate data. That is, as shown in FIG. 2A, when the form 201 exists as a print target, only the document 206 displayed on the form 201 is printed as shown in FIG. Become.

次に本WEBプリント機能付き印刷装置100のフォーム印刷モードが、フォーム201に表示されている文書を別ページに独立して印刷する別ページ印刷モードに設定されている場合の動作について図11および図16を用いて説明する。   Next, FIG. 11 and FIG. 11 illustrate operations when the form printing mode of the printing apparatus 100 with the WEB print function is set to another page printing mode in which the document displayed on the form 201 is printed on another page independently. 16 will be described.

図11は、本WEBプリント機能付き印刷装置100のフォーム印刷モードをユーザがフォーム201に表示されている文書202を別ページに独立して印刷する別ページ印刷モードに設定した場合の動作である。   FIG. 11 shows the operation when the user sets the form print mode of the printing apparatus 100 with the WEB print function to the separate page print mode in which the document 202 displayed on the form 201 is printed independently on another page.

本WEBプリント機能付き印刷装置100は、印刷実行ボタンを押すと(S1101)、表示されているHTMLデータを解析し、フォーム検出部601において印刷対象のHTMLデータの中にフォーム201を構成する描画要素が存在するか否かを検出する(S1102)。   When the print execution button 100 with the WEB print function presses the print execution button (S1101), the displayed HTML data is analyzed, and the form detection unit 601 renders the drawing elements constituting the form 201 in the HTML data to be printed. Is detected (S1102).

ステップS1102で印刷対象のHTMLデータの中にフォーム201を構成する描画要素が検出されない場合、ただちに印刷データを生成し(S1103)、印刷データをプリンタユニット410に送る。プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1104)印刷動作を終了する(S1105)。   If the drawing element constituting the form 201 is not detected in the HTML data to be printed in step S1102, print data is immediately generated (S1103), and the print data is sent to the printer unit 410. The printer unit 410 performs printing by driving the various motors 413 and the print head 414 in accordance with the received print data (S1104), and ends the printing operation (S1105).

ステップS1102で、印刷対象のHTMLデータの中にフォーム201を構成する描画要素が検出された場合、印刷最終ページP(S1106)を検出する。(ただし、印刷最終ページPとは、図16に示すようにWEBサイトの印刷プレビュー全3ページ中2ページ目1602にフォーム201が存在する場合、印刷プレビュー上の最終ページ1603を指す。)
次に、印刷プレビュー表示のフォームの枠内に「P+1枚目に印刷」等のフォーム201の文書202を印刷するページ(図16の印刷例では4ページ目)を表示および印刷設定する(S1107)。次に表示されている印刷対象のHTMLデータ(フォーム201には「P+1枚目に印刷」等のメッセージを印刷設定)の印刷データと、フォーム201の文書202の印刷データを各々生成し(S1108)、1ページからP+1ページ分の印刷データをプリンタユニット410に送る。プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1109およびS1110)、終了する(S1105)。以上ステップS1106〜S1110までのフローを別ページ印刷処理フローとする。
In step S1102, if a drawing element constituting the form 201 is detected in the HTML data to be printed, the last printed page P (S1106) is detected. (However, the final print page P indicates the final page 1603 on the print preview when the form 201 exists on the second page 1602 of all three print preview pages on the WEB site as shown in FIG. 16).
Next, a page for printing the document 202 of the form 201 such as “print on the (P + 1) th sheet” (the fourth page in the print example of FIG. 16) is displayed and set in the form frame of the print preview display (S1107). . Next, print data of the HTML data to be printed (print setting of a message such as “print on P + 1” in the form 201) and print data of the document 202 of the form 201 are generated (S1108). Print data for one page to P + 1 pages is sent to the printer unit 410. The printer unit 410 performs printing by driving the various motors 413 and the print head 414 in accordance with the sent print data (S1109 and S1110), and ends (S1105). The flow from step S1106 to S1110 is referred to as another page printing process flow.

なお、図16の印刷例は、WEBサイトの印刷プレビュー全3ページ中2ページ目1602にフォーム201が存在する場合であり、2ページ目1602のフォーム201には「4ページ目に印刷」と印刷し、4ページ目1604にフォーム201の文書202を印刷する例である。   Note that the print example in FIG. 16 is a case where the form 201 exists on the second page 1602 of all three print preview pages on the WEB site, and “print on the fourth page” is printed on the form 201 on the second page 1602. In this example, the document 202 of the form 201 is printed on the fourth page 1604.

次に本WEBプリント機能付き印刷装置100のフォーム印刷モードが、フォーム201に表示されている文書をフォーム201内に収まるように縮小して印刷する縮小印刷モードに設定されている場合の動作について図12を用いて説明する。   Next, the operation when the form print mode of the printing apparatus 100 with the WEB print function is set to the reduced print mode in which the document displayed on the form 201 is reduced and printed so as to fit in the form 201 is illustrated. 12 will be described.

図12は、本WEBプリント機能付き印刷装置100のフォーム印刷モードをユーザが、フォーム201に表示されている文書をフォーム201内に収まるように縮小して印刷する縮小印刷モードに設定されている場合の動作である。   FIG. 12 shows a case where the form print mode of the printing apparatus 100 with the WEB print function is set to a reduced print mode in which the user reduces the document displayed on the form 201 so as to fit in the form 201 and prints it. Is the operation.

本WEBプリント機能付き印刷装置100は、フォーム201に表示されている文書をフォーム201内に収まるように縮小して印刷する縮小印刷モードに設定した場合、印刷実行ボタンを押すと(S1201)、表示されているHTMLデータを解析し、フォーム検出部601において印刷対象のHTMLデータの中にフォーム201を構成する描画要素が存在するか否かを検出する(S1202)。   When the printing apparatus 100 with the WEB print function is set to a reduced print mode in which a document displayed on the form 201 is reduced and printed so as to fit in the form 201, the print execution button is pressed (S1201). The generated HTML data is analyzed, and the form detection unit 601 detects whether or not the drawing elements constituting the form 201 exist in the HTML data to be printed (S1202).

ステップS1202で印刷対象のHTMLデータの中にフォーム201が検出されない場合、ただちに印刷データを生成し(S1203)、印刷データをプリンタユニット410に送る。プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1204)、印刷動作を終了する(S1205)。   If the form 201 is not detected in the HTML data to be printed in step S1202, print data is immediately generated (S1203), and the print data is sent to the printer unit 410. The printer unit 410 performs printing by driving the various motors 413 and the print head 414 according to the received print data (S1204), and ends the printing operation (S1205).

一方、ステップS1202で、印刷対象のHTMLデータの中にフォームが検出された場合、フォームサイズ検出部700において、フォーム検出部601で検出されたフォーム201の描画要素からフォーム201の枠となる描画要素を解析し、フォーム201の枠サイズを検出する(S1206)。   On the other hand, when a form is detected in the HTML data to be printed in step S1202, the form size detection unit 700 causes the drawing element to be a frame of the form 201 from the drawing element of the form 201 detected by the form detection unit 601. And the frame size of the form 201 is detected (S1206).

次に、文書処理部701で、フォーム検出部601で検出されたフォーム201の描画要素からフォーム201に表示する文書データを解析する(S1207)。なお、先述したように本実施例では文書データの文字列のフォントサイズを検出し、フォーム201の枠サイズに応じて文字列の改行を行う。   Next, the document processing unit 701 analyzes document data displayed on the form 201 from the drawing elements of the form 201 detected by the form detection unit 601 (S1207). As described above, in this embodiment, the font size of the character string of the document data is detected, and line feed of the character string is performed according to the frame size of the form 201.

次に、フォームサイズ検出部700で検出されたフォーム201の枠サイズと、文書処理部701において処理された文書の行数との比較により、フォーム201にすべての文書が表示されるか否かを判定する(S1208)。   Next, whether or not all documents are displayed on the form 201 by comparing the frame size of the form 201 detected by the form size detection unit 700 with the number of lines of the document processed by the document processing unit 701 is determined. Determination is made (S1208).

ステップS1208で、フォーム201内にすべての文書が表示されると判定されると、ただちに印刷データを生成し(S1203)、印刷データをプリンタユニット410に送る。プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1204)印刷動作を終了する(S1205)。   If it is determined in step S1208 that all documents are displayed in the form 201, print data is generated immediately (S1203), and the print data is sent to the printer unit 410. The printer unit 410 performs printing by driving the various motors 413 and the print head 414 in accordance with the received print data (S1204), and ends the printing operation (S1205).

一方、ステップS1208でフォーム201内にすべての文書が表示されないと判定されると、フォーム処理部602は、ステップS1206で検出したフォントサイズを1サイズ小さくし(S1209)、1サイズ小さくしたフォントサイズがあらかじめ設定されている最小フォントサイズ以下であるか判定する(S1210)。   On the other hand, if it is determined in step S1208 that all documents are not displayed in the form 201, the form processing unit 602 reduces the font size detected in step S1206 by one size (S1209), and the font size reduced by one size is displayed. It is determined whether the font size is equal to or smaller than a preset minimum font size (S1210).

ステップS1210で最小フォントサイズ以上であれば、再度フォーム201内に文書が表示されるか否かを判定する(S1211)。   If it is at least the minimum font size in step S1210, it is determined again whether the document is displayed in the form 201 (S1211).

ステップS1211でフォーム201に文書全体が表示できないと判定されると、ステップS1209に進む。   If it is determined in step S1211 that the entire document cannot be displayed on the form 201, the process advances to step S1209.

ステップS1211でフォーム201に文書全体を表示できると判定されると、変更後のフォントサイズで、ただちに印刷データを生成し(S1203)、印刷データをプリンタユニット410に送る。プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1204)印刷動作を終了する(S1205)。   If it is determined in step S1211 that the entire document can be displayed on the form 201, print data is immediately generated with the changed font size (S1203), and the print data is sent to the printer unit 410. The printer unit 410 performs printing by driving the various motors 413 and the print head 414 in accordance with the received print data (S1204), and ends the printing operation (S1205).

すなわち、フォーム201内の文書202のフォントサイズを文書がすべて表示されるまで1サイズづつ小さくし、文書全体が表示できるフォントサイズまで小さく変更してフォーム201部分の印刷を実行する。なお、あらかじめ変更するフォントサイズの最小値を設定しておくことで、印刷結果の文字が小さすぎて読みにくくなるといった不具合をなくすことができる。   That is, the font size of the document 202 in the form 201 is reduced by one size until the entire document is displayed, and is changed to a font size that can display the entire document, and printing of the form 201 portion is executed. In addition, by setting the minimum font size to be changed in advance, it is possible to eliminate the problem that the characters in the print result are too small and difficult to read.

一方、ステップS1210でフォントサイズ変更後のフォントサイズがあらかじめ設定してある最小値以下であると判定されると、本印刷装置100は、フォーム印刷モードをフォーム201内の文書を別ページに印刷する別ページ印刷モードに切り替えて印刷するか否かをユーザに選択を促す(S1212)。   On the other hand, if it is determined in step S1210 that the font size after the font size change is equal to or smaller than the preset minimum value, the printing apparatus 100 prints the document in the form 201 on another page in the form print mode. The user is prompted to select whether or not to switch to another page print mode (S1212).

ステップS1212でユーザがフォーム印刷モードをフォーム201内の文書を別ページに印刷する別ページ印刷モードに切り替えると、本印刷装置100は図11の別ページ印刷処理(S1111)を行い(S1213)、印刷動作を終了する(S1205)。   When the user switches the form print mode to another page print mode in which the document in the form 201 is printed on another page in step S1212, the printing apparatus 100 performs another page print processing (S1111) in FIG. 11 (S1213) and prints. The operation is terminated (S1205).

ステップS1212でユーザがフォーム印刷モードをフォーム内の文書を別ページに印刷する別ページ印刷モードの切り替えを行わない場合は、本印刷装置100は、現状の設定において、ただちに印刷データを生成し(S1203)、印刷データをプリンタユニット410に送る。プリンタユニット410は送られてきた印刷データに応じて各種モータ413および印字ヘッド414を駆動することで印字を行い(S1204)印刷動作を終了する(S1205)。   If the user does not switch the form print mode to another page print mode in which the document in the form is printed on another page in step S1212, the printing apparatus 100 immediately generates print data in the current settings (S1203). ) And send the print data to the printer unit 410. The printer unit 410 performs printing by driving the various motors 413 and the print head 414 in accordance with the received print data (S1204), and ends the printing operation (S1205).

(他の実施の形態)
上記実施形態では、本発明の一実施形態について説明したが、本発明は上記実施形態に限定されるものではなく、種々の変形実施形態が可能であることは言うまでもない。
(Other embodiments)
In the above embodiment, one embodiment of the present invention has been described. However, the present invention is not limited to the above embodiment, and it goes without saying that various modified embodiments are possible.

尚、本発明は、複数の機器から構成されるシステムに適用しても、1つの機器からなる装置に適用してもよい。上述した実施形態の機能を実現するソフトウェアのプログラムコードを記憶した記憶媒体等の媒体をシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU)が記憶媒体等の媒体に格納されたプログラムコードを読み出し実行することによっても、本発明が達成されることは言うまでもない。   The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. A medium such as a storage medium storing software program codes for realizing the functions of the above-described embodiments is supplied to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus is stored in a medium such as a storage medium. It goes without saying that the present invention can also be achieved by reading and executing the program code.

この場合、記憶媒体等の媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体等の媒体は本発明を構成することになる。プログラムコードを供給するための記憶媒体等の媒体としては、例えば、フレキシブルディスク、ハードディスク、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM、或いはネットワークを介したダウンロードなどを用いることができる。   In this case, the program code itself read from the medium such as a storage medium realizes the functions of the above-described embodiments, and the medium such as the storage medium storing the program code constitutes the present invention. . As a medium such as a storage medium for supplying the program code, for example, a flexible disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or network is used. Downloads can be used.

また、コンピュータが読み出したプログラムコードを実行することにより、上述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼動しているOSなどが実際の処理の一部または全部を行い、その処理によって上述した実施形態の機能が実現される場合も、本発明に含まれることは言うまでもない。   Further, by executing the program code read out by the computer, not only the functions of the above-described embodiments are realized, but also the OS running on the computer based on the instruction of the program code performs the actual processing. Needless to say, the present invention includes a case where the function of the above-described embodiment is realized by performing part or all of the processing.

更に、記憶媒体等の媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって上述した実施形態の機能が実現される場合も、本発明に含まれることは言うまでもない。   Furthermore, after the program code read from a medium such as a storage medium is written in a memory provided in a function expansion board inserted in the computer or a function expansion unit connected to the computer, based on the instruction of the program code, Needless to say, the present invention includes a case where the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

なお、図3に本発明の実施の形態に係るWEBプリント機能付き印刷装置のフォーム別ページ印刷方法の説明図を示す。   FIG. 3 is an explanatory diagram of the form-specific page printing method of the printing apparatus with a WEB print function according to the embodiment of the present invention.

本発明の実施の形態に係るWEBプリント機能付き印刷装置の外観を示す模式図である。1 is a schematic diagram illustrating an appearance of a printing apparatus with a WEB print function according to an embodiment of the present invention. 従来のフォームの印刷方法を説明するための図である。It is a figure for demonstrating the printing method of the conventional form. 本発明の実施の形態に係るWEBプリント機能付き印刷装置のフォーム別ページ印刷方法の説明図である。It is explanatory drawing of the page printing method according to form of the printing apparatus with a WEB print function which concerns on embodiment of this invention. 本発明の実施の形態に係るWEBプリント機能付き印刷装置のブロック図である。1 is a block diagram of a printing apparatus with a WEB print function according to an embodiment of the present invention. 本発明の実施の形態に係るHTML処理部の内部ブロック図である。It is an internal block diagram of the HTML process part which concerns on embodiment of this invention. 本発明の実施の形態に係るHTML解析部の内部ブロック図である。It is an internal block diagram of the HTML analysis part which concerns on embodiment of this invention. 本発明の実施の形態に係るフォーム処理部の内部ブロック図である。It is an internal block diagram of the form process part which concerns on embodiment of this invention. 本発明の実施の形態に係るプログラム格納メモリのメモリマップの一例を示す図である。It is a figure which shows an example of the memory map of the program storage memory which concerns on embodiment of this invention. 本発明の実施の形態に係る作業用メモリのメモリマップの一例を示す図である。It is a figure which shows an example of the memory map of the working memory which concerns on embodiment of this invention. 本発明の実施の形態に係るWEBプリント機能付き印刷装置の通常印刷モード時の動作を示すフローチャートである。6 is a flowchart showing an operation in a normal print mode of the printing apparatus with a WEB print function according to the embodiment of the present invention. 本発明の実施の形態に係るWEBプリント機能付き印刷装置の別ページ印刷モード時の動作を示すフローチャートである。6 is a flowchart showing an operation in a different page print mode of the printing apparatus with a WEB print function according to the embodiment of the present invention. 本発明の実施の形態に係るWEBプリント機能付き印刷装置の縮小印刷モード時の動作を示すフローチャートである。6 is a flowchart showing an operation in a reduced print mode of the printing apparatus with a WEB print function according to the embodiment of the present invention. 本発明の実施の形態に係るフォームのサイズの説明図である。It is explanatory drawing of the size of the foam which concerns on embodiment of this invention. 本発明の実施の形態に係る文字の大きさの説明図である。It is explanatory drawing of the magnitude | size of the character which concerns on embodiment of this invention. 本発明の実施の形態に係るフォントサイズ変換テーブルの一例を示す図である。It is a figure which shows an example of the font size conversion table which concerns on embodiment of this invention. 本発明の実施の形態に係るWEBプリント機能付き印刷装置の別ページ印刷モードでの印刷例である。It is an example of printing in another page printing mode of the printing apparatus with a WEB print function according to the embodiment of the present invention.

符号の説明Explanation of symbols

100 WEBプリント機能付き印刷装置
101 表示部
102 タッチパッド
103 入力ボタン
104 印刷実行、停止ボタン
105 インクカートリッジ装着部
106 LANケーブル接続口
107 排紙口
108 排紙トレイ
109 LANケーブル
201 フォーム
202 フォーム内の文書
203 スクロールバー
204 従来の印刷結果
208,303 ページ番号
209 WEBサイト(表示)
DESCRIPTION OF SYMBOLS 100 Printing apparatus with WEB print function 101 Display unit 102 Touch pad 103 Input button 104 Print execution / stop button 105 Ink cartridge mounting unit 106 LAN cable connection port 107 Paper discharge port 108 Paper discharge tray 109 LAN cable 201 Form 202 Document in form 203 Scroll bar 204 Conventional print result 208,303 Page number 209 WEB site (display)

Claims (4)

ネットワークに接続しHTMLデータの格納先からHTMLデータを読み込むためのHTMLデータ読み込み手段と、前記HTMLデータ読み込み手段で読み込まれたHTMLデータから表示すべき文字列、画像等を抽出して各々描画要素に分割するHTMLデータ解析手段と、前記HTMLデータ解析手段で抽出された描画要素を表示領域の大きさに応じて各要素を配置し、表示レイアウトを構築するためのレイアウト解析手段と、前記HTMLデータの中から、フォームを構成する描画要素を検出するフォーム検出手段と、印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォームに表示されている部分の文書のみを印刷する通常印刷モードと、印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォーム内の文書のフォントサイズを小さくして印刷する縮小印刷モードと、印刷対象のHTMLデータにおいて、フォームを構成する描画要素のうち、文書は別のページに印刷する別ページ印刷モードを設定するフォーム印刷モード設定部とを備え、前記フォーム検出手段で、フォームが検出されると、前記フォーム印刷モード設定部のモード設定状態に応じて、前記印刷対象のHTMLデータを印刷することを特徴とする印刷装置。   HTML data reading means for connecting to a network and reading HTML data from the HTML data storage destination, and character strings, images, etc. to be displayed are extracted from the HTML data read by the HTML data reading means, and each drawing element is extracted. HTML data analysis means for dividing, layout analysis means for arranging the drawing elements extracted by the HTML data analysis means according to the size of the display area, and constructing a display layout; Among them, form detection means for detecting drawing elements constituting the form, normal printing mode for printing only the portion of the document displayed on the form as the drawing elements constituting the form in the HTML data to be printed, and printing In the target HTML data, the drawing elements that make up the form are A reduced print mode for printing with a reduced font size of the document in the document and another page print mode for printing the document on another page among the drawing elements constituting the form in the HTML data to be printed. A form printing mode setting unit, and when the form is detected by the form detection unit, the HTML data to be printed is printed according to a mode setting state of the form printing mode setting unit. Printing device. 前記印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォーム内の文書のフォントサイズを小さくして印刷する縮小印刷モードの時、フォーム内に文書の全部が印刷されるか否かを判定するフォーム表示判定手段と、前記フォームを構成する描画要素の文書のフォントサイズを検出するフォントサイズ検出手段と、前記フォーム表示判定手段でフォーム内に文書の全部が印刷されないと判定された場合、前記文書のフォントサイズを1サイズ小さくするフォントサイズ変更手段と、前記フォントサイズに対して最小フォントサイズを規定し、前記フォントサイズ検出手段で検出されたフォントサイズと、前記最小フォントサイズを比較するフォントサイズ比較手段とを備え、前記フォーム表示判定手段で、フォーム内に文書の全部が印刷されると判定されると、前記フォントサイズで前記フォーム内に文書の全部を印刷することを特徴とする請求項1記載の印刷装置。   In the HTML data to be printed, the drawing element constituting the form determines whether or not the entire document is printed in the reduced print mode in which the font size of the document in the form is reduced and printed. If the form display determination means, the font size detection means for detecting the font size of the document of the drawing elements constituting the form, and the form display determination means determine that the entire document is not printed in the form, the document A font size changing means for reducing the font size by one size, a font size comparison for defining a minimum font size for the font size and comparing the font size detected by the font size detecting means with the minimum font size Means for determining whether the form display determination means includes a sentence in the form. When all is determined to be printed in the printing apparatus according to claim 1, wherein the printing the entire document in said form with the font size. 前記印刷対象のHTMLデータにおいて、フォームを構成する描画要素はフォーム内の文書のフォントサイズを小さくして印刷する縮小印刷モードの時、フォーム内に文書の全部が印刷されるか否かを判定するフォーム表示判定手段と、前記フォームを構成する描画要素の文書のフォントサイズを検出するフォントサイズ検出手段と、前記フォーム表示判定手段でフォーム内に文書の全部が印刷されないと判定された場合、前記文書のフォントサイズを1サイズ小さくするフォントサイズ変更手段と、前記フォントサイズに対して最小フォントサイズを規定し、前記フォントサイズ検出手段で検出されたフォントサイズと、前記最小フォントサイズを比較するフォントサイズ比較手段とを備え、前記フォントサイズ比較手段で、前記フォントサイズ検出手段で検出されたフォントサイズが、前記最小フォントサイズ以下と判定されると、前記フォーム印刷モード設定部のモードを前記別ページ印刷モードに切り替えることを特徴とする請求項1記載の印刷装置。   In the HTML data to be printed, the drawing element constituting the form determines whether or not the entire document is printed in the reduced print mode in which the font size of the document in the form is reduced and printed. If the form display determination means, the font size detection means for detecting the font size of the document of the drawing elements constituting the form, and the form display determination means determine that the entire document is not printed in the form, the document A font size changing means for reducing the font size by one size, a font size comparison for defining a minimum font size for the font size and comparing the font size detected by the font size detecting means with the minimum font size And the font size comparing means includes the font 2. The printing apparatus according to claim 1, wherein when the font size detected by the noise detection means is determined to be equal to or smaller than the minimum font size, the mode of the form print mode setting unit is switched to the separate page print mode. . 前記印刷対象のHTMLデータにおいて、フォームを構成する描画要素のうち、文書は別のページに印刷する別ページ印刷モードのとき、前記印刷対象のHTMLデータの印刷ページを検出する印刷ページ検出手段と、前記印刷ページ検出手段で検出された印刷ページに応じて、前記フォームを構成する描画要素のうち、文書を印刷するページを決定し、フォーム内にフォーム内の文書を印刷したページを印刷し、フォーム内の文書は前記文書を印刷するページに印刷することを特徴とする請求項1記載の印刷装置。   Print page detection means for detecting a print page of the HTML data to be printed in the separate page print mode in which the document is printed on another page among the drawing elements constituting the form in the HTML data to be printed; In accordance with the print page detected by the print page detecting means, a page on which a document is printed is determined from among the drawing elements constituting the form, and the page on which the document in the form is printed is printed in the form. The printing apparatus according to claim 1, wherein the document is printed on a page on which the document is printed.
JP2005057514A 2005-03-02 2005-03-02 Printer Withdrawn JP2006244037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005057514A JP2006244037A (en) 2005-03-02 2005-03-02 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005057514A JP2006244037A (en) 2005-03-02 2005-03-02 Printer

Publications (1)

Publication Number Publication Date
JP2006244037A true JP2006244037A (en) 2006-09-14

Family

ID=37050406

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005057514A Withdrawn JP2006244037A (en) 2005-03-02 2005-03-02 Printer

Country Status (1)

Country Link
JP (1) JP2006244037A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260077A (en) * 2005-03-16 2006-09-28 Fuji Xerox Co Ltd Electronic form printer
JP2011013771A (en) * 2009-06-30 2011-01-20 Canon Inc Device, method, and program for controlling print

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006260077A (en) * 2005-03-16 2006-09-28 Fuji Xerox Co Ltd Electronic form printer
JP4539386B2 (en) * 2005-03-16 2010-09-08 富士ゼロックス株式会社 Electronic form printing device
JP2011013771A (en) * 2009-06-30 2011-01-20 Canon Inc Device, method, and program for controlling print

Similar Documents

Publication Publication Date Title
JP3711435B2 (en) Print data preview method and apparatus, and recording medium
JP2005227865A (en) Print control device, method, and program
JP4109920B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2007331390A (en) Image forming device and its control method
JP4396632B2 (en) Print control apparatus, image forming apparatus, print control method, and control program
JP2006244037A (en) Printer
KR20090126836A (en) Image forming apparatus, image forming system and enlargement print processing method of printing data
KR20070043263A (en) Printing control method and apparatus for preventing data&#39;s loss
US8705077B2 (en) Printing system and printing method
JP2007144712A (en) Imaging device and document distribution method
JP4334399B2 (en) Printing control apparatus and printing control method
JP4144574B2 (en) Print data preview method and apparatus, and recording medium
JP2006254199A (en) Image processing apparatus
JP2020009292A (en) Display device and program
JP2008080592A (en) Image data generating apparatus, image forming apparatus, image forming system, and image data generating program
KR100530227B1 (en) Printing Method for saving paper
JP4405453B2 (en) Image forming apparatus and control program
JP2006109177A (en) Image encoder and image encoding method
JP2008134817A (en) Printing system, printing control device and program
JP2006192712A (en) Recorder, method of recording, program, and memory medium
JP2005275671A (en) Printing controller, printing control method and printing control program-recorded medium
JP2007081886A (en) Drawing processing apparatus
JP4402681B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP2006146836A (en) Image processor, and image forming system
JP4298579B2 (en) Image processing method and print control apparatus

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080513