JP5068717B2 - Document display device, document display method, and document display program - Google Patents
Document display device, document display method, and document display program Download PDFInfo
- Publication number
- JP5068717B2 JP5068717B2 JP2008238709A JP2008238709A JP5068717B2 JP 5068717 B2 JP5068717 B2 JP 5068717B2 JP 2008238709 A JP2008238709 A JP 2008238709A JP 2008238709 A JP2008238709 A JP 2008238709A JP 5068717 B2 JP5068717 B2 JP 5068717B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- document
- page
- scroll
- page break
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Description
本発明は、文書画像のページ位置を検出する文書表示装置、文書表示方法および文書表示プログラムに関する。 The present invention relates to a document display device, a document display method, and a document display program for detecting a page position of a document image.
文書編集作業は、汎用OS(Operation System)上で動作するアプリケーションプログラムにより行われるのが一般的となっている。文書画像を編集する際に、文書画像の全領域が表示ウィンドウよりも大きい場合には、API(Application Interface)を介してスクロールバーIDを取得し、このスクロールバーIDのスクロールバーを移動する指示をアプリケーションに送って、スクロールバーIDを垂直または水平に移動して該当領域の編集処理を行っている。しかし、APIによりスクロールバーを表示する機能を備えた文書編集アプリケーションであっても、ページ番号表示機能を備えていない場合がある。ページ番号表示機能を備えていない文書編集アプリケーションで文書画像を作成すると、特に文書画像が大きい場合には、表示したい領域を毎回スクロールして検索しなければならず、手間と時間がかかることとなる。 The document editing work is generally performed by an application program that operates on a general-purpose OS (Operation System). When editing the document image, if the entire area of the document image is larger than the display window, the scroll bar ID is obtained via an API (Application Interface), and an instruction to move the scroll bar of the scroll bar ID is issued. The data is sent to the application, and the scroll bar ID is moved vertically or horizontally to edit the corresponding area. However, even a document editing application having a function of displaying a scroll bar by API may not have a page number display function. If a document image is created by a document editing application that does not have a page number display function, especially when the document image is large, the area to be displayed must be scrolled and searched each time, which takes time and effort. .
上記の問題を解決するため、種々の技術が提案されており、例えば、スクロールバーにインデックスを付け、インデックスを選択することによりページを識別する技術が提案されている(特許文献1)。また、スクロール領域長に基づいてタグを付け、タグを選択することによりページを識別する技術も提案されている(特許文献2)。さらに、アプリケーションが提供する機能によりページを認識する技術も開発されている。 In order to solve the above problems, various techniques have been proposed. For example, a technique for identifying a page by attaching an index to a scroll bar and selecting an index has been proposed (Patent Document 1). In addition, a technology for identifying a page by attaching a tag based on the scroll region length and selecting the tag has been proposed (Patent Document 2). Furthermore, a technology for recognizing a page by a function provided by an application has been developed.
しかしながら、特許文献1および特許文献2の技術では、表示される文書のページ番号は、文書画像を作成したプログラム(以下、作成プログラムという。)と文書画像を読み込んだプログラム(以下、読込プログラムという。)が異なる場合、互換性を有さない事態が生じ得る。作成プログラムと読込プログラムが、ページ位置表示機能の互換性を有さない場合には、読込時に表示した文書表示領域のページ番号が、作成時のページ番号と異なるという不具合が生じることとなる。また、ページを認識する技術については、作成プログラムが、表示する文書のページ番号を読込プログラムに通知する機能を備えたアプリケーションプログラムを使用する必要がある。しかし、この機能を有するプログラムは僅かであり、また、ページ番号を通知する方法がプログラムにより異なっているため、個々のプログラムに応じた調整が必要となる。さらに、ページ番号を表示する領域の画像を取得する方法、数字を認識する方法、ページ番号を知る方法についてもそれぞれ表示領域が異なりそれぞれの対応が必要となる。
However, in the techniques of Patent Document 1 and
本発明は、上記に鑑みてなされたものであって、文書画像を表示する際の利便性を簡便な操作により向上させることが可能な文書表示装置、文書表示方法および文書表示プログラムを提供することを目的とする。 The present invention has been made in view of the above, and provides a document display device, a document display method, and a document display program capable of improving convenience when displaying a document image by a simple operation. With the goal.
上述した課題を解決し、目的を達成するために、本発明は、複数ページからなる文書画像のページ区切りの位置を示すページ情報を記憶可能な記憶部と、文書表示領域上に、透過画像を表示する表示制御部と、文書画像を前記文書表示領域上に表示するアプリケーションに対して、文書画像をスクロール移動させるためのスクロール指示シンボルを移動する指示を行うことにより、前記透過画像上で前記文書画像を移動させるスクロール制御部と、前記スクロール制御部による指示に基づいてアプリケーションにより前記文書画像を移動させながら、前記文書画像のページ区切りを示すページ区切り画像を検出するページ区切り画像検出部と、検出された前記ページ区切り画像の位置に基づいて前記文書画像の前記ページ情報を前記記憶部に保存するページ情報特定部と、を備えることを特徴とする。 In order to solve the above-described problems and achieve the object, the present invention provides a storage unit capable of storing page information indicating a page break position of a document image composed of a plurality of pages, and a transparent image on the document display area. An instruction to move a scroll instruction symbol for scrolling the document image is given to the display control unit to display and an application for displaying the document image on the document display area, so that the document is displayed on the transparent image. A scroll control unit that moves an image, a page break image detection unit that detects a page break image indicating a page break of the document image while moving the document image by an application based on an instruction from the scroll control unit, and a detection The page information of the document image is stored in the storage unit based on the position of the page-separated image. A page information specifying unit exists, characterized in that it comprises a.
また、本発明は、上記装置で実行される方法、コンピュータを上記装置の各部として機能させるためのプログラムである。 The present invention is also a method executed by the apparatus and a program for causing a computer to function as each unit of the apparatus.
本発明によれば、アプリケーションに文書画像を移動させながら、文書画像からページの区切り位置に表示される画像であるページ区切り画像を検出して、検出したページ区切り画像の位置を記憶部に保存することにより、作成プログラムと読込プログラムの種別を問わず、簡便な操作により文書ページ位置を容易に検出することができるという効果を奏する。 According to the present invention, while moving a document image to an application, a page break image that is an image displayed at a page break position is detected from the document image, and the position of the detected page break image is stored in the storage unit. Thus, there is an effect that the document page position can be easily detected by a simple operation regardless of the type of the creation program and the reading program.
以下に添付図面を参照して、この発明にかかる文書表示装置の最良な実施の形態を詳細に説明する。 Exemplary embodiments of a document display device according to the present invention will be explained below in detail with reference to the accompanying drawings.
図1は、本実施の形態にかかる文書表示装置100の構成を示すブロック図である。本図に示すように文書表示装置100は、アプリケーション120と、ページ区切り検出部130と、HDD(Hard Disk Drive)106と、入力部110と、表示部111とを主に備えている。
FIG. 1 is a block diagram showing a configuration of a document display apparatus 100 according to the present embodiment. As shown in the figure, the document display device 100 mainly includes an application 120, a page
アプリケーション120は、文書を表示部111に表示したり、文書を表示部111に表示しながら作成したりするアプリケーションであり、例えば、Microsoft社(R)のWord(R)や、Adobe(R)社のAcrobat Reader(R)等が該当する。このアプリケーションは、文書画像を読み込む。ここで、文書画像とは、文字等も画像として表された文書画像や文書作成アプリケーションで作成された電子文書などの文書データも含むものとする。また、文書画像は、複数ページからなるものであり、各ページはページ区切り画像で区切られている。また、この文書画像が表示部111に表示される領域を、文書表示領域という。 The application 120 is an application that displays a document on the display unit 111 or creates a document while displaying the document on the display unit 111. For example, Word (R) of Microsoft (R) or Adobe (R) Acrobat Reader (R) and the like. This application reads document images. Here, the document image includes document data such as a document image in which characters and the like are represented as an image and an electronic document created by a document creation application. The document image is composed of a plurality of pages, and each page is separated by a page separation image. An area where the document image is displayed on the display unit 111 is referred to as a document display area.
ページ区切り検出部130は、アプリケーション120によって文書表示領域に表示された文書画像のページ区切りを検出するものであり、図1に示すように、ページ区切り画像検出部105と、スクロール制御部104と、ページ情報特定部106とを備えている。
The page
表示制御部103は、アプリケーション120によって文書画像の上に透過画像としての透明ウィンドウを表示するものである。従って、この透明ウィンドウを介して文書画像が表示されることになる。また、表示制御部103は、この透明ウィンドウの略中央領域の垂直方向のラインを、検出ラインとして表示する。この検出ライン上で文書画像がスクロール移動してページ区切りが検出される。
The
スクロール制御部104は、アプリケーション120に対して、オペレーションシステムが提供するAPIを介して、スクロールバーのIDを取得し、このスクロールバーIDのスクロールバーを移動させる指示を送信するものである。この指示を受信したアプリケーション120は、スクロールバーを表示して、スクロールバーを移動することにより、文書画像を文書表示領域上で移動する。ここで、スクロールバーには、文書画像を垂直方向にスクロールする垂直スクロールバーと、水平方向にスクロールする水平スクロールバーとがある。
The
ページ区切り画像検出部105は、スクロール制御部104の指示を受けたアプリケーション120により文書表示領域上で文書画像を移動させながら、ページ区切り画像を検出する。文書画像が表示部111に垂直に表示される場合には、ページ区切り画像の検出には垂直スクロールバーが使用される。
The page break
ページ情報特定部106は、ページ区切り画像検出部105により検出されたページ区切り画像の位置の座標を特定し、文書画像のページ区切り位置を示す情報であるページ情報をHDD106に保存する。
The page information specifying unit 106 specifies the coordinates of the position of the page break image detected by the page break
HDD107は、ページ情報である文書ページ位置情報テーブル108と、制御テーブル109とを記憶する。図2は、文書ページ位置情報テーブル108および、制御テーブル109の具体例である。文書ページ位置情報テーブル108は、ページ総数、ページ番号、ページ上端座標、ページ下端座標、ページ垂直長、垂直スクロールボックスY座標を保持する。また、制御テーブル109は、文書表示領域左上端座標、文書表示領域幅、文書表示領域高、水平スクロールバーID、垂直スクロールボックスY座標、ページ区切り画像、ページ位置検出ライン上端座標を保持する。
The
次に以上のように構成された本実施の形態の文書表示装置によるページ位置検出処理について説明する。図3、4、6、7は、ページ位置検出の処理の手順を示すフローチャートである。まず、アプリケーション120が文書をHDD等から読み出して、表示部111の文書表示領域に文書画像を表示している状態とする。そして、表示制御部103は、透明ウィンドウを文書表示領域上に重ねて表示する(ステップS304)。なお、透明ウィンドウは、透明ウィンドウの下の画面を透過するので、文書表示領域に表示された文書画像の上に表示しても、画面は文書画像も表示された状態である。
Next, page position detection processing by the document display device of the present embodiment configured as described above will be described. 3, 4, 6, and 7 are flowcharts showing the procedure of page position detection processing. First, the application 120 reads a document from the HDD or the like and displays a document image in the document display area of the display unit 111. Then, the
図8は、表示部111に文書表示領域を表示した図である。ページ情報特定部106は、文書表示領域左上端の画面座標(WX,WY)、幅(WW)、高さ(WH)を取得し、HDD106に保存する(ステップS305)。次に、スクロール制御部104は、垂直スクロールバーIDをAPIを介して取得し、その垂直スクロールバーIDの垂直スクロールバー701の表示指示をアプリケーション120に送信する(ステップS306)。これにより、アプリケーション120は、垂直スクロールバーを図7に示すように、文書表示領域の右側に表示する。ページ情報特定部106は、垂直スクロールバー701のIDである垂直スクロールバーIDを制御テーブル109に保存する(ステップS308)。
FIG. 8 is a diagram in which a document display area is displayed on the display unit 111. The page information specifying unit 106 acquires the screen coordinates (WX, WY), width (WW), and height (WH) of the upper left corner of the document display area, and stores them in the HDD 106 (step S305). Next, the
次に、スクロール制御部104は、取得部102は、水平スクロールバーIDをAPIを介して取得し、この水平スクロールバーIDの水平スクロールバー702の表示指示をアプリケーション120に送信する(ステップS309)。これにより、アプリケーション120は、図8に示すように、水平スクロールバー702を、文書表示領域の底部側に表示する。そして、ページ情報特定部106は、水平スクロールバー702のIDである水平スクロールバーIDを制御テーブル109に保存する(ステップS311)。
Next, the
続いて、スクロール制御部104は、水平スクロールバーIDの水平スクロールボックスX座標を0へ移動するようにアプリケーション120に指示を行う(ステップS312)。次に、スクロール制御部104は、垂直スクロールバーIDの垂直スクロールボックスY座標を0へ移動するようにアプリケーション120に指示を行う。スクロール移動後の表示画面の画像および座標の種類は、図9に示すとおりとなる。
Subsequently, the
ページ区切り画像検出部105は、文書表示領域左上端の1ピクセル画像801をページ区切り画像として取得する(ステップS316)。そして、ページ情報特定部106は、このページ区切り画像を制御テーブル109に保存する(ステップS317)。
The page break
図9は、文書画像の先頭ページ上端803から長さDXをスクロールして表示した状態である。アプリケーション120によるスクロール移動は、垂直スクロールバーを上から下に移動して行うので、各座標について上から順に説明する。804は、現在表示されている画面の上端を示す画面上端座標である。805は、ページ区切り領域の次に表われる次ページの上端を示す表示上端座標であって、画面座標を原点として数えた座標である。806は、現在表示されている画面の下端を示す画面下端座標である。Pは、画面上端座標804から表示上端座標805までの長さである。802は、先頭ページ上端803を原点として算出した座標であり、「DX+P」となる。
FIG. 9 shows a state in which the length DX is scrolled and displayed from the
ここで、文書画像は、ページ位置検出ライン上で移動するだけで、ページ位置検出ラインの右側、左側の領域では移動せず固定表示される。ステップS323の段階で、表示部111には、文書表示領域、透明ウィンドウ、文書画像が表示されている。図5は、表示される画像の順番を示す図である。1701が、透明ウィンドウを最前面に表示した状態である。透明ウィンドウは、最前面に表示されているが、下に置かれている画像を透過するため、このような表示状態となる。次に、取得部102は、文書表示領域に表示されている文書画像と同一の画像を新たに取得する。1702は、文書画像と同一の画像である。表示制御部103は、新たに取得した文書画像を、ページ位置検出ライン上を除いた文書表示領域に表示されている文書画像の上に重ねて表示する。1703は、文書画像と同一の画像をページ位置検出ラインを除いた文書画像であるAとBの領域に表示した図である。最終的に、画面全体には、1704の状態で表示される。
Here, the document image is fixedly displayed without moving in the areas on the right and left sides of the page position detection line only by moving on the page position detection line. In step S323, a document display area, a transparent window, and a document image are displayed on the display unit 111. FIG. 5 is a diagram illustrating the order of displayed images.
ページ情報特定部106は、ページ区切り画像を検出するラインであるページ位置検出ライン901の座標を算出し(ステップS320)、算出した座標を制御テーブル109に保存する(ステップS321)。そして、ページ情報特定部106は、文書表示領域上端の文書画像上の座標である文書座標を0に設定し(ステップS322)、ページ番号を1に設定する(ステップS323)。図10は、ページ位置検出ライン901を透明ウィンドウに表示した図である。ページ位置検出ライン上端は、画面上端座標に、ページ位置検出ライン下端は、画面下端座標の上に重ねて表示されている。
The page information specifying unit 106 calculates the coordinates of the page
このように、ページ位置検出ラインを除く文書画像上に別個に取得した文書画像を重ねて表示すると、スクロール操作により移動するのは、ページ位置検出ラインだけとなる。このため、スクロール操作で文書画像全体が移動することにより生じる、流れ酔い等の不快感を防止することができる。 As described above, when the document image obtained separately on the document image excluding the page position detection line is displayed in an overlapping manner, only the page position detection line is moved by the scroll operation. For this reason, it is possible to prevent uncomfortable feelings such as sickness caused by the movement of the entire document image by the scroll operation.
次に、ページ上端下端検出処理に移る(ステップS330)。図11は、ページ上端下端検出処理における文書表示領域の表示状態を示す図である。各表示画面は、文書表示領域の垂直長WHからページ上端座標(P)、ページ下端座標(E)のいずれか又は両方が表示された場合、若しくは、いずれも表示されない状態を示している。ページ上端が検出される場合の画像およびページ下端が表示される場合の画像を示す図である。1001および1004は、ページ上端座標(P)が表示された場合の文書表示領域を示した図である。1003および1004は、ページ下端座標(E)が表示された場合の文書表示領域を示した図である。1002は、ページ上端座標も下端座標も表示されない場合の文書表示領域を示した図である。
Next, the process proceeds to page upper and lower edge detection processing (step S330). FIG. 11 is a diagram showing a display state of the document display area in the page upper and lower edge detection processing. Each display screen shows a state in which either or both of the page upper end coordinates (P) and the page lower end coordinates (E) are displayed from the vertical length WH of the document display area, or neither of them is displayed. It is a figure which shows the image when a page upper end is detected, and the image when a page lower end is displayed.
図12は、ページ上端下端検出処理の手順を示すフローチャートである。この処理は、図11の4つの各表示状態に対応して、ページ上端、下端の検出を行っている。まず、取得部102は、図10に示す画面上端902から画面下端903までの垂直高画像を取得する(ステップS1101)。そして、スクロール制御部104は、ページ位置検出ライン901のY座標を0に設定する(ステップS1102)。ページ区切り画像検出部105は、スクロール制御部104によるスクロール操作により、ページ位置検出ライン901に1ピクセル画像を取得する(ステップS1103)。ページ区切り画像検出部105は、取得した1ピクセル画像がページ区切り画像であるか否かを判定する(ステップS1104)。判定した結果、ページ区切り画像でない場合には(ステップS1104:No)、Y座標を1増加する(ステップS1105)。続いて、「Y座標<垂直高」を満たすか否かを判定する(ステップS1106)。「Y座標<垂直高」を満たす場合には(ステップS1106:Yes)、まだ、全ての画像を検出していないので、ステップS1102に戻り、処理を繰り返す。一方、「Y座標<垂直高」を満たさない場合には(ステップS1106:No)、現在表示されている画像からページ上端座標は検出されなかったのであるから、ページ下端座標を「−1」に設定し(ステップS1107)、ページ上端座標を「−1」に設定する(ステップS1108)。これが、図11の1002の場合である。
FIG. 12 is a flowchart illustrating a procedure of page upper and lower edge detection processing. In this process, the upper and lower ends of the page are detected in correspondence with the four display states shown in FIG. First, the acquisition unit 102 acquires a vertical high image from the screen
ページ情報特定部106は、ページ上端座標、ページ下端座標を文書ページ位置情報テーブル108に保存する(ステップS1116)。ステップS1104に戻り、ページ区切り画像検出部105が、ページ区切り画像を検出した場合には(ステップS1104:Yes)、ページ下端座標を「Y座標−1」に設定する(ステップS1109)。図11の1003または1004の場合である。ここで検出されたページ区切り画像は、最初に検出されたページ区切り画像であるので、検出されたページ区切り画像の1つ上の座標がページ下端となる。「Y座標−1」に設定すると、次の1ピクセル画像を取得する(ステップS1110)。そして、この1ピクセル画像がページ区切り画像であるか否かを判定し(ステップS1111)、ページ区切り画像であれば(ステップS1111:Yes)、Y座標を1増加する(ステップS1112)。
The page information specifying unit 106 saves the page upper end coordinates and page lower end coordinates in the document page position information table 108 (step S1116). Returning to step S1104, when the page break
次に、「Y座標<文書領域高」を満たすか否かを判定し(ステップS1113)、満たす場合には(ステップS1113:Yes)、ステップS1110に戻り、処理を繰り返す。一方、「Y座標<文書領域高」を満たさない場合には(ステップS1113:No)、ページ上端が検出されなかったと判断して、ページ上端座標に「−1」を設定する(ステップS1114)。ページ情報特定部106は、ページ上端座標、下端座標を文書ページ位置情報テーブル108に保存する(ステップS1116)。 Next, it is determined whether or not “Y coordinate <document area height” is satisfied (step S1113). If it is satisfied (step S1113: Yes), the process returns to step S1110 and the process is repeated. On the other hand, if “Y coordinate <document area height” is not satisfied (step S1113: No), it is determined that the top edge of the page has not been detected, and “−1” is set as the top edge coordinate of the page (step S1114). The page information specifying unit 106 stores the upper and lower page coordinates in the document page position information table 108 (step S1116).
ステップS1111に戻り、ページ区切り画像検出部105が、ページ区切り画像を検出した場合には(ステップS1111:No)、ページ上端座標をY座標に設定する(ステップS1115)。図11の1001または1004の場合である。ここで検出されたページ区切り画像は、ステップS1104で検出されたページ区切り画像の次に検出されたページ区切り画像であるので、上端座標となる。ページ情報特定部106は、ステップS1104で検出されたページ上端座標、および、ステップS1111で検出された下端座標を文書ページ位置情報テーブル108に保存する(ステップS1116)。全ての文書画像のページ上端下端検出処理が終了するまで、以上の一連の処理を繰り返す。そして、このページ上端下端検出処理のリターン値として、検出されたページ上端座標、ページ下端座標を設定して呼出し元に戻る。なお、ページ上端下端が検出されない場合には、ステップS1109、ステップS1114、ステップS1104、ステップS1107で「−1」が設定されるので、リターン値として「−1」が返ることになる。
Returning to step S1111, when the page break
なお、図11は、文書画像全体にページ上端下端検出処理を実行して検出した各座標を示す図である。図12に示す文書画像は、P1、P2、P3の3ページからなり、Y1はP1のページ上端を、Y2はP2のページ上端を示す。H1は、P1のページ垂直長、H2は、P2のページ垂直長である。また、E1はP1のページ下端を、E2はP2のページ下端を示す。P3のページ下端は、文書画像全体の文書領域高を示す。 FIG. 11 is a diagram illustrating coordinates detected by executing the page upper and lower edge detection processing on the entire document image. The document image shown in FIG. 12 includes three pages P1, P2, and P3. Y1 indicates the upper end of the page of P1, and Y2 indicates the upper end of the page of P2. H1 is the page vertical length of P1, and H2 is the page vertical length of P2. E1 indicates the lower end of the page of P1, and E2 indicates the lower end of the page of P2. The page lower end of P3 indicates the document area height of the entire document image.
図6のページ位置検出処理のステップS331に戻る。ページ区切り画像検出部105は、ページ上端座標が検出されたか否かを判定する(ステップS331)。図12に示したページ上端下端検出処理で説明したように、ページ上端座標またはページ下端座標が検出されない場合には、ページ上端座標またはページ下端座標に「−1」に設定した。そこで、ページ上端座標が検出された(ページ上端座標に「−1」が設定されている)場合には(ステップS331:Yes)、「L(スクロール長)=ページ上端座標」と設定する(ステップS333)。ページ上端座標が検出されなかった場合には(ステップS331:No)、ページ下端座標が検出されたか否かを判定する(ステップS332)。検出された場合には(ステップS332:Yes)、「L=ページ下端座標+1」と設定する(ステップS334)。一方、ページ下端座標が検出されなかった(ページ下端座標に「−1」が設定されている)場合には(ステップS332:No)、「L=文書領域高」と設定する(ステップS335)。図13の1202は、ページ上端座標も下端座標も検出されなかった場合の文書表示領域を示した図である。
The process returns to step S331 of the page position detection process in FIG. The page break
次に、スクロール制御の処理に移る(ステップS331)。図14は、スクロール制御処理の手順を示すフローチャートである。図15は、スクロール制御処理に使用する垂直線を示す図である。スクロール制御部104は、「L=スクロール長」として入力値を設定する(ステップS1301)。次に、取得部102は、垂直線をAPIを介して取得する(ステップS1302)。表示制御部103は、垂直線を透明ウィンドウ上端から図15の1401に示すL0の位置に描画する(ステップS1303)。垂直線が描画されると、スクロール制御部104は、垂直スクロールボックスY座標を1ライン下に移動する旨をアプリケーション120に指示する(ステップS1304)。これにより、アプリケーション120は、垂直スクロールボックスY座標を1ライン下に移動する。このとき、透明ウィンドウ上の垂直線も、図15の1402の位置に移動する。スクロール制御部104は、移動後の垂直線の位置(L1)を検出し、移動量(L1−L0)を算出する(ステップS1305)。
Next, the process proceeds to scroll control processing (step S331). FIG. 14 is a flowchart showing the procedure of the scroll control process. FIG. 15 is a diagram illustrating vertical lines used for the scroll control process. The
そして、表示制御部103は、垂直線を消去する(ステップS1306)。スクロール制御部104は、残りのスクロール量を、「L=L−移動量」より算出する(ステップS1307)。スクロール制御部104は、算出したスクロール量が、「L>0」であるか否かを判定する(ステップS1308)。「L>0」であれば(ステップS1308:Yes)、ステップS1302に戻り、処理を繰り返す。一方、「L>0」でない場合には(ステップS1308:No)、「L<0」であるか否かを判定する(ステップS1309)。「L<0」を満たさない場合には(ステップS1309:No)、「実長=スクロール長−L」とする(ステップS1313)。一方、「L<0」を満たす場合には(ステップS1309:Yes)、残りのスクロール量を、「L=L+移動量」より算出する(ステップS1311)。次に、スクロール制御部104は、垂直スクロールボックスY座標を1ライン上に移動する(ステップS1312)。そして、「実長=スクロール長−L」と設定する(ステップS1313)。最終ページまで、以上の一連の処理を繰り返す。
Then, the
ステップS1309で、L<0である場合には(ステップS1309:Yes)、スクロール制御部104は、アプリケーション120に対し上スクロール実行の指示を送信する(ステップS1310)。この指示を受信したアプリケーション120は、文書画像を上スクロールする。そして、スクロール制御部104は、残りのスクロール量を、「L=L+移動量」より算出する(ステップS1311)。そして、スクロール制御部104は、垂直スクロールボックスY座標を1ライン上に移動する旨をアプリケーション120に指示する(ステップS1312)。これにより、アプリケーション120は、垂直スクロールボックスY座標を1ライン上に移動する。そして、「実長=スクロール長−L」と設定する(ステップS1313)。
In step S1309, if L <0 (step S1309: Yes), the
図7のページ位置検出処理のステップS341に戻る。ページ区切り画像検出部105は、ページ上端座標が検出されたか否かを判定する(Sステップ341)。ページ上端座標が検出された場合には(ステップS341:Yes)、「ページ上端座標=画面座標+表示上端座標」と設定する(ステップS342)。次に、垂直スクロールボックス位置のY座標を文書ページ位置情報テーブルに保存する(ステップS343)。そして、ページ番号を文書ページ位置情報テーブルの保存し(ステップS344)、ページ番号を1増加する(ステップS345)。続いて、「L(スクロール長)=0」を満たすか否かを判定する(ステップS346)。「L(スクロール長)=0」であれば(ステップS346:Yes)、ページ総数はページ番号から1引いた数に設定する(ステップS347)。ページ情報特定部106は、ページ垂直長(次ページ上端座標−ページ上端座標)を算出する(ステップS348)。ページ位置情報を文書ページ位置情報テーブルに保存する(ステップS349)。表示制御部104は、透明ウィンドウを消去し(ステップS350)、すべての処理を終了する。
The process returns to step S341 of the page position detection process in FIG. The page break
このように、本実施の形態によれば、APIにより取得したスクロールバーで文書画像を移動して、文書画像からページの区切り位置に表示される画像であるページ区切り画像を検出する。検出したページ区切り画像の位置を記憶部に保存することにより、作成プログラムと読込プログラムの種別を問わず、簡便な操作により文書ページ位置を容易に検出することができるという効果を奏する。 As described above, according to the present embodiment, the document image is moved by the scroll bar acquired by the API, and the page break image that is an image displayed at the page break position is detected from the document image. By storing the detected position of the page break image in the storage unit, the document page position can be easily detected by a simple operation regardless of the type of the creation program and the reading program.
なお、本実施の形態は、CPUなどの制御装置と、ROM(Read Only Memory)やRAMなどの記憶装置と、HDD、CDドライブ装置などの外部記憶装置と、ディスプレイ装置などの表示装置と、キーボードやマウスなどの入力装置を備えており、通常のコンピュータを利用したハードウェア構成となっている。 The present embodiment includes a control device such as a CPU, a storage device such as a ROM (Read Only Memory) and a RAM, an external storage device such as an HDD and a CD drive device, a display device such as a display device, and a keyboard. And a hardware configuration using a normal computer.
本実施の形態の文書表示装置100で実行されるページ位置検出プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記憶媒体に記録されて提供される。 The page position detection program executed by the document display apparatus 100 according to the present embodiment is a file in an installable format or an executable format, and is a CD-ROM, flexible disk (FD), CD-R, DVD (Digital Versatile Disk). And the like recorded on a computer-readable storage medium.
また、本実施形態の文書表示装置で実行されるページ位置検出プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施形態の文書表示装置で実行されるページ位置検出プログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。また、本実施の形態のプログラムを、ROM等に予め組み込んで提供するように構成してもよい。 Further, the page position detection program executed by the document display device of the present embodiment may be provided by being stored on a computer connected to a network such as the Internet and downloaded via the network. Further, the page position detection program executed by the document display device of the present embodiment may be provided or distributed via a network such as the Internet. Further, the program of the present embodiment may be configured to be provided by being incorporated in advance in a ROM or the like.
本実施の形態の文書表示装置で実行されるページ位置検出プログラムは、上述した各部(文書画像読込部101、取得部102、表示制御部103、スクロール制御部104、ページ区切り画像検出部105、ページ情報特定部106)を含むモジュール構成となっており、実際のハードウェアとしてはCPU(プロセッサ)が上記記憶媒体からページ位置検出プログラムを読み出して実行することにより上記各部が主記憶装置上にロードされ、文書画像読込部101、取得部102、表示制御部103、スクロール制御部104、ページ区切り画像検出部105、ページ情報特定部106が主記憶装置上に生成されるようになっている。
The page position detection program executed by the document display apparatus according to the present embodiment includes the above-described units (document image reading unit 101, acquisition unit 102,
100、2000 文書表示装置
201 制御テーブル
202 位置情報テーブル
701 垂直スクロールバー
702 水平スクロールバー
801 ページ区切り画像
802 ページ上端
803 先頭ページ上端
804、902 画面上端
805 表示上端
806、903 画面下端
901 ページ位置検出ライン
1201〜1204、1701〜1704 表示画面
1401、1402 垂直線
100, 2000
Claims (8)
文書表示領域上に、透過画像を表示する表示制御部と、
文書画像を前記文書表示領域上に表示するアプリケーションに対して、文書画像をスクロール移動させるためのスクロール指示シンボルを移動する指示を行うことにより、前記透過画像上で前記文書画像を移動させるスクロール制御部と、
前記スクロール制御部による指示に基づいてアプリケーションにより前記文書画像を移動させながら、前記文書画像のページ区切りを示すページ区切り画像を検出するページ区切り画像検出部と、
検出された前記ページ区切り画像の位置に基づいて前記文書画像の前記ページ情報を前記記憶部に保存するページ情報特定部と、
を備えることを特徴とする文書表示装置。 A storage unit capable of storing page information indicating a page break position of a document image composed of a plurality of pages;
A display control unit for displaying a transparent image on the document display area;
A scroll control unit that moves the document image on the transparent image by instructing an application that displays the document image on the document display area to move a scroll instruction symbol for scrolling the document image. When,
A page break image detection unit that detects a page break image indicating a page break of the document image while moving the document image by an application based on an instruction from the scroll control unit;
A page information specifying unit that stores the page information of the document image in the storage unit based on the detected position of the page break image;
A document display device comprising:
前記スクロール制御部は、前記アプリケーションに対して、前記スクロール指示シンボルを移動する指示を行うことにより、前記検出ライン画像上で前記文書画像を移動させ、
前記ページ区切り画像検出部は、前記検出ライン画像の上端から前記スクロール制御部により前記スクロール指示シンボルを移動して、前記ページ区切り画像を検出し、
前記ページ情報特定部は、前記ページ情報として、前記ページ区切り画像検出部により検出されたページ区切り画像の位置をページ後端位置と、前記ページ後端位置から最初に検出された文書画像の座標をページ前端位置として記憶すること、
を特徴とする請求項1に記載の文書表示装置。 The display control unit displays a detection line image for detecting the position of the page break image on the transparent image,
The scroll control unit moves the document image on the detection line image by instructing the application to move the scroll instruction symbol,
The page break image detection unit detects the page break image by moving the scroll instruction symbol from the upper end of the detection line image by the scroll control unit,
The page information specifying unit includes, as the page information, the position of the page break image detected by the page break image detection unit, the page rear end position, and the coordinates of the document image first detected from the page rear end position. Memorize it as the front edge position of the page,
The document display device according to claim 1.
前記ページ区切り画像検出部は、前記ページ区切り画像として、前記水平スクロール指示シンボルの前記文書表示領域における左端位置、かつ前記垂直スクロール指示シンボルの前記文書表示領域における上端位置のピクセル画像を取得すること、
を特徴とする請求項1または2に記載の文書表示装置。 The scroll control unit instructs the application to move a horizontal scroll instruction symbol that is the scroll instruction symbol in the horizontal direction and to move the vertical scroll instruction symbol that is the scroll instruction symbol in the vertical direction. ,
The page break image detection unit obtains, as the page break image, a pixel image at a left end position of the horizontal scroll instruction symbol in the document display area and an upper end position of the vertical scroll instruction symbol in the document display area;
The document display device according to claim 1, wherein:
を特徴とする請求項2に記載の文書表示装置。 The display control unit displays the detection line image in a vertical direction at a substantially central position of the transmission image;
The document display device according to claim 2.
前記ページ区切り画像検出部は、前記スクロール制御部による移動した後に前記透過画像に表示された文書画像から、前記ページ区切り画像を検出すること、
を特徴とする請求項1〜4のいずれか一つに記載の文書表示装置。 The scroll control unit draws a predetermined vertical line on the transparent image, instructs the application to move the vertical scroll symbol for each unit scroll operation, and moves the vertical line according to the movement of the unit scroll operation. The scroll width, which is a unit scroll amount of the scroll instruction symbol, is obtained based on the amount of movement, and the document image is moved for each scroll width.
The page break image detection unit detects the page break image from a document image displayed on the transparent image after being moved by the scroll control unit;
The document display device according to claim 1, wherein:
前記ページ区切り画像検出部は、前記検出ライン画像上の文書画像から前記ページ区切り画像を検出すること、
を特徴とする請求項2〜5のいずれか一つに記載の文書表示装置。 The scroll control unit moves the scroll instruction symbol, moves only the document image on the detection line image among the transparent images,
The page break image detection unit detects the page break image from a document image on the detection line image;
The document display device according to any one of claims 2 to 5.
前記文書表示装置は、複数ページからなる文書画像のページ区切りの位置を示すページ情報を記憶可能な記憶部を備え、
文書表示領域上に、透過画像を表示する表示制御ステップと、
文書画像を前記文書表示領域上に表示するアプリケーションに対して、文書画像をスクロール移動させるためのスクロール指示シンボルを移動する指示を行うことにより、前記透過画像上で前記文書画像を移動させるスクロール制御ステップと、
前記スクロール制御部による指示に基づいてアプリケーションにより前記文書画像を移動させながら、前記文書画像のページ区切りを示すページ区切り画像を検出するページ区切り画像検出ステップと、
検出された前記ページ区切り画像の位置に基づいて前記文書画像の前記ページ情報を前記記憶部に保存するページ情報特定ステップと、
を含むことを特徴とする文書表示方法。 A page position detection method executed in a document display device,
The document display device includes a storage unit capable of storing page information indicating a page break position of a document image including a plurality of pages.
A display control step for displaying a transparent image on the document display area;
A scroll control step for moving the document image on the transparent image by instructing an application for displaying the document image on the document display area to move a scroll instruction symbol for scrolling the document image. When,
A page break image detection step of detecting a page break image indicating a page break of the document image while moving the document image by an application based on an instruction from the scroll control unit;
A page information specifying step for storing the page information of the document image in the storage unit based on the detected position of the page break image;
A document display method comprising:
複数ページからなる文書画像のページ区切りの位置を示すページ情報を記憶可能な記憶部と、
文書表示領域上に、透過画像を表示する表示制御部と、
文書画像を前記文書表示領域上に表示するアプリケーションに対して、文書画像をスクロール移動させるためのスクロール指示シンボルを移動する指示を行うことにより、前記透過画像上で前記文書画像を移動させるスクロール制御部と、
前記スクロール制御部による指示に基づいてアプリケーションにより前記文書画像を移動させながら、前記文書画像のページ区切りを示すページ区切り画像を検出するページ区切り画像検出部と、
検出された前記ページ区切り画像の位置に基づいて前記文書画像の前記ページ情報を前記記憶部に保存するページ情報特定部と、
して実行させる文書表示プログラム。 Computer
A storage unit capable of storing page information indicating a page break position of a document image composed of a plurality of pages;
A display control unit for displaying a transparent image on the document display area;
A scroll control unit that moves the document image on the transparent image by instructing an application that displays the document image on the document display area to move a scroll instruction symbol for scrolling the document image. When,
A page break image detection unit that detects a page break image indicating a page break of the document image while moving the document image by an application based on an instruction from the scroll control unit;
A page information specifying unit that stores the page information of the document image in the storage unit based on the detected position of the page break image;
A document display program to be executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008238709A JP5068717B2 (en) | 2008-09-17 | 2008-09-17 | Document display device, document display method, and document display program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008238709A JP5068717B2 (en) | 2008-09-17 | 2008-09-17 | Document display device, document display method, and document display program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010072884A JP2010072884A (en) | 2010-04-02 |
JP5068717B2 true JP5068717B2 (en) | 2012-11-07 |
Family
ID=42204612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008238709A Expired - Fee Related JP5068717B2 (en) | 2008-09-17 | 2008-09-17 | Document display device, document display method, and document display program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5068717B2 (en) |
-
2008
- 2008-09-17 JP JP2008238709A patent/JP5068717B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2010072884A (en) | 2010-04-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111008520B (en) | Annotating method and device, terminal equipment and storage medium | |
US10691385B2 (en) | Image processing apparatus, image processing method, and storage medium in which a text element and an image element are arranged based on layouts in a webpage | |
JP4468404B2 (en) | Information processing apparatus control method, information processing apparatus, and program | |
EP2819388A1 (en) | Method and apparatus for generating image file | |
JP5818172B2 (en) | Information display device, display control program, and display control method | |
KR101272867B1 (en) | Apparatus and method for displaying grid in mobile terminal | |
EP2966578A1 (en) | Information processing apparatus, information processing method, program, and storage medium | |
US20130209069A1 (en) | Moving image recording device, control method therefor, and non-transitory computer readable storage medium | |
US8259133B2 (en) | Image display apparatus and image display method | |
JP2006079220A (en) | Image retrieval device and method | |
US20130031471A1 (en) | Electronic document rasterizing method and electronic document rasterizing device | |
US9213507B2 (en) | Apparatus, control method, and storage medium | |
US10684772B2 (en) | Document viewing apparatus and program | |
JP2008234147A (en) | Document image display device, document image display method, and document image display program | |
EP3185137A1 (en) | Method, apparatus and arrangement for summarizing and browsing video content | |
JP5962278B2 (en) | Image processing program, image processing apparatus, and image processing method | |
JP4655831B2 (en) | Waveform measuring device | |
JP5068717B2 (en) | Document display device, document display method, and document display program | |
EP1692605A2 (en) | Method of visualizing a pointer during interaction | |
JP6736348B2 (en) | Image processing apparatus, image processing method and program | |
US9710736B2 (en) | Rendering apparatus and rendering method | |
JP4741916B2 (en) | Image processing apparatus, image processing method, and computer-readable recording medium storing image processing program for executing the method | |
JP2005092567A (en) | Scroll controller, scroll control method, scroll control program, and recording medium | |
JP2001005911A (en) | Character input device and display controlling method | |
JP2005084088A (en) | Image comparison display method and its device, and image comparison display program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110701 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120712 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120724 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120815 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150824 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5068717 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |