CN102637159B - Document display method and device - Google Patents

Document display method and device Download PDF

Info

Publication number
CN102637159B
CN102637159B CN201110036246.0A CN201110036246A CN102637159B CN 102637159 B CN102637159 B CN 102637159B CN 201110036246 A CN201110036246 A CN 201110036246A CN 102637159 B CN102637159 B CN 102637159B
Authority
CN
China
Prior art keywords
document
read
image
parameter
picture image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110036246.0A
Other languages
Chinese (zh)
Other versions
CN102637159A (en
Inventor
闫江震
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hanwang Technology Co Ltd
Original Assignee
Hanwang Technology Co Ltd
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 Hanwang Technology Co Ltd filed Critical Hanwang Technology Co Ltd
Priority to CN201110036246.0A priority Critical patent/CN102637159B/en
Publication of CN102637159A publication Critical patent/CN102637159A/en
Application granted granted Critical
Publication of CN102637159B publication Critical patent/CN102637159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a document display method and device, which relate to the technical field of information display, and are used for shortening the waiting time of users when a document is opened in an electronic reading device. The document display method disclosed in the embodiment of the invention comprises the following steps: when a certain document is opened, obtaining a pre-stored document image and pre-stored document parameters corresponding to the document according to the attributes of the document; and displaying the pre-stored document image, and carrying out background analysis on the document according to the pre-stored document parameters. The scheme in the embodiment of the invention is applicable to any electronic readers.

Description

Document display method and device
Technical field
The present invention relates to information display technology field, relate in particular to a kind of document display method and device.
Background technology
Electronic reader is to be specifically designed to portable, the low energy consumption showing from the digital version of the written material in books, magazine, newspaper and other printed matters source, high-resolution equipment.Current electronic reader is more and more tending towards personalization and networking, and the processing power that the document format that its read function can be supported and operating function need requires also more and more higher.
For the document of different-format, different sizes, its time spending when opening is different.For example, the content recording in a document is more, and the document is just larger, and namely its shared storage space is just larger, and the opening time of the document correspondingly also can be longer so.And the longer document unlatching stand-by period can directly have influence on user's experience.When therefore, user wishes to read electronic document certainly, can improve document and open the speed showing; When reading the document of arbitrary format, user can be in very short time opening document display document content.
In this case, how, under the hardware cost of electronic reader and the restriction of technique, do not changing under the prerequisite of hardware configuration in other words, the problem that reduces the stand-by period of user when document is opened and improve reading comfort level just seems particularly important.
In prior art, when system is carried out above-mentioned backstage resolving, user can only wait for; And in the present embodiment, system can first be shown to the document image that prestores corresponding to described document user, on backstage, carry out document parsing simultaneously.Can reduce like this user's waiting system and survey the time of document coding, parse documents; The image data information of direct load store, user is the document data information of resolving or the image information prestoring from what visually can not distinguish loading.
303,, when user need to operate present displayed content, the document data that backstage is parsed repaints in viewing area and shows.
When user to the content of current demonstration carry out page turning, revolve screen, while amplifying, getting the operation such as word, annotations and comments, extracts, the document data that system can parse backstage in step 302, for example, according to current operation (page turning), in viewing area, re-start drafting, the document content that needs are shown is plotted to specifies viewing area to show, the respective operations of carrying out with completing user.
304,, when user exits the document of reading, system reads and preserves described document shown picture image and current document parameter when read finishing, the document image prestoring and document parameter while usining as document unlatching next time.
In the present embodiment, step 304 can realize by following process, specifically as shown in Figure 4:
S1, at described document, read while finishing, read the displaying contents of described document in current display area, as shown in Figure 5;
S2, because described displaying contents has comprised part system information, but not be all the content images in described document, the information such as the handle icon showing such as lower position in Fig. 5 and time, the page number, therefore also need to from described content, extract the picture image part that described document is corresponding, as shown in Figure 6.
S3, after the picture image extracting section corresponding to described document completes, also need described picture image conversion to make it meet memory requirement, to guarantee that the storage space in current system can be utilized effectively.
Particularly, can be the information according to display system, such as information, viewing area sizes etc. such as the resolution of display device and color ranges, described picture image is changed; Described conversion include but not limited to expansion or the pixel number reduce showing, to color range process (such as by 24 very coloured silk be converted to 16 rank gray scales) etc. mode.
S4, according to the document properties of document, determine the document image prestoring that the document is corresponding and the store path of document parameter.
In the present embodiment, can calculate and generate unique store path corresponding to the document according to document properties information such as file name, modification time, creation-time, document size information, file layout titles and by hash algorithm.
If determine the document image that prestores and the store path of document parameter by hash algorithm in preservation process, in the process of opening at upper once document so, system also needs to calculate according to the document properties of document and by hash algorithm document image and the document parameter that described store path prestores described in just can correctly reading.
S5, described document shown picture image and current document parameter when read finishing are saved in the storage area that described store path is corresponding.
When described picture image and document parameter are preserved, it can be recorded in respectively in two data files, also can be incorporated in a data file.
If two data files are respectively used to document image and document parameter that record prestores; System can directly be accessed different data files when the different information content of needs.If a data file, system need first analytic record in file header, described in the document image that prestores and document parameter corresponding positional information (side-play amount of file) respectively, according to described positional information, read the corresponding information content afterwards.
The storage mode of the described document image that prestores can adopt compress bitmap mode or non-compress bitmap mode; Specifically can design according to system environments, if storage space is less, adopt compress bitmap mode, but the loading velocity that the loading velocity of compress bitmap can more non-compress bitmap on the equipment of same treatment ability is slow; If storage space is larger, can adopt non-compress bitmap mode.
Utilize the scheme in the embodiment of the present invention, when document is opened, can directly call the document image prestoring shows, and the document format that does not need differentiation to resolve and show, simultaneously also without the size of considering described document self, on identical hardware, can improve the opening speed of document, shorten document and be opened to the time interval between content demonstration; If the former document opening time is longer, utilize the effect that improves opening speed after the scheme in the embodiment of the present invention, shortens period of reservation of number more obvious.Therefore, utilize the scheme in the embodiment of the present invention can increase the comfort level that user reads, colony can further extend one's service.
Summary of the invention
Embodiments of the invention provide a kind of document display method and device, the period of reservation of number while opening in order to shorten document in electronic reading device.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A document display method, comprising:
When a certain document is opened, according to the document properties of the document, obtain the document image prestoring and the document parameter that described document is corresponding;
The document image that prestores described in demonstration, and according to the described document parameter that prestores, described document is carried out to backstage parsing.
A document display device, comprising:
Acquiring unit, for obtaining according to the document properties of the document the document image prestoring and the document parameter that described document is corresponding when a certain document is opened;
Display unit, for the document image that prestores described in showing;
Resolution unit, for prestoring described in basis, document parameter is carried out backstage parsing to described document.
The document display method that the embodiment of the present invention provides and device, when opening, can directly call by document and demonstration document image corresponding with the document, that prestore, because this process is without processes such as process document parsings, the document file page that therefore can soon user be needed shows user; Meanwhile, due to user from visually can not distinguish current shown be image file or document files, therefore for user, its stand-by period of opening document when using electronic reading device will shorten greatly.Utilize the scheme in the embodiment of the present invention, the period of reservation of number in the time of can shortening document in electronic reading device and open, improves user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of the document display method in the embodiment of the present invention one;
Fig. 2 is the structural representation of the document display device in the embodiment of the present invention one;
Fig. 3 is the process flow diagram of the document display method in the embodiment of the present invention two;
Fig. 4 is the schematic flow sheet of the preservation process implementation mode in the embodiment of the present invention two;
Fig. 5 is the displaying contents schematic diagram in the electronic reader viewing area in the embodiment of the present invention two;
Fig. 6 is for carrying out the schematic diagram of the picture image after contents extraction to the image in Fig. 5;
Fig. 7 is the structural representation of the document display device in the embodiment of the present invention three.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
embodiment mono-:
As shown in Figure 1, the document display method that the embodiment of the present invention provides, comprises the following steps:
101, when a certain document is opened, according to the document properties of the document, obtain the document image prestoring and the document parameter that described document is corresponding.
Described document properties can be in the file name, creation-time, modification time, document size information, file layout title of described document and the relative path of document storage or complete trails one or multinomial.
102, the document image that prestores described in showing, and according to the described document parameter that prestores, described document is carried out to backstage parsing.
When user opens a certain document, first the document image that prestores corresponding to the document showed to user, shorten user's stand-by period; Meanwhile, system is carried out backstage parsing according to the document parameter that prestores corresponding to the document to the document file, so that user can get in time the content information of other parts in described document after the content prestoring described in reading in document image.
Corresponding to above-mentioned document display method, the embodiment of the present invention also provides a kind of document display device that can be used for realizing said method.
As shown in Figure 2, the document display device in the embodiment of the present invention comprises:
Acquiring unit 21, for obtaining according to the document properties of the document the document image prestoring and the document parameter that described document is corresponding when a certain document is opened;
Display unit 22, for the document image that prestores described in showing;
Resolution unit 23, for prestoring described in basis, document parameter is carried out backstage parsing to described document.
Above-mentioned document display device can be but be not limited to be the electronic readers such as electric paper book.
Utilize such scheme, can directly call and demonstration document image corresponding with the document, that prestore when document is opened, because this process is without processes such as process document parsings, the document file page that therefore can soon user be needed shows user; Meanwhile, due to user from visually can not distinguish current shown be image file or document files, therefore for user, its stand-by period of opening document when using electronic reading device will shorten greatly.
embodiment bis-:
The document display method providing in the embodiment of the present invention will be further illustrated with a specific embodiment below.
As shown in Figure 3, the document display method in the embodiment of the present invention, specifically comprises the following steps:
301, when a certain document is opened, according to the document properties of the document, obtain the document image prestoring and the document parameter that the document is corresponding.
Can to be described document once read picture image and document parameter shown while finishing upper for the above-mentioned document image prestoring and document parameter.The document parameter here comprises: viewing area, format streaming attribute, font size, line space etc.
Described document properties refers in the file name, creation-time, modification time, document size information, file layout title of described document and the relative path of document storage or complete trails one or multinomial (if relative path reference point should be fixing file or file).System is after learning the filename of document or the document properties information such as store path of the document, can calculate to obtain according to above-mentioned information the store path of the above-mentioned document image prestoring and document parameter, and then get described document in upper picture image and corresponding document parameter shown while once read finishing.
If described in the document image and the document parameter that prestore do not exist, illustrate that the document is on current electronic reader, to open first, now need, according to user's acquiescence or default document parameter, the document of needs reading is carried out to document parsing, the information in display document on backstage.
302, the document image that prestores described in showing, and according to the described document parameter that prestores, described document is carried out to backstage parsing.
System is after the document image prestoring described in getting and document parameter, the information such as resolution of reading page number information, horizontal/vertical screen, origin coordinates and viewing area according to file layout, file size, file arrange display parameter, and determine viewing area according to described display parameter, according to the data streaming file obtaining, directly in described viewing area, load corresponding image data information afterwards, show and read viewing area content, namely, to the described document image that prestores, when last reading finishes, shown picture image shows; Like this, user just can see the partial content of reading when read last time in the short period of time.
Meanwhile, the document of needs being read according to the document parameter that prestores getting carries out document parsing on backstage, prepare document content information.Particularly, in the resolving of backstage, the information such as resolution that system is read page number information, horizontal/vertical screen, origin coordinates and viewing area according to file layout corresponding to described document, file size, file arrange display parameter, and determine viewing area according to described display parameter.(wide is width as rectangle to take the indication range of current display area, height is height) be example, if the configuration information that described document is corresponding is: line space is that the height of n1, font size information is that the reserved distance in n2, left and right is m, just can to calculate the word line number that can show in current display area be n3=height/(n1+n2) to system so.After having determined the bebinning character of described document in the upper page corresponding while once read finishing, system starts character stream to carry out horizontal typesetting (row typesetting) from described bebinning character; In the accumulated width of the character of same a line, exceed while allowing viewing area (its width is width-m), current character exits and records the document misregistration amount of a character.Afterwards, carry out recursive call until reach corresponding maximum number of lines n3.The data message of current page completes after typesetting, proceeds the typesetting of lower one page.
embodiment tri-:
Corresponding to said method embodiment, in the present embodiment, will introduce a kind of document display device.
As shown in Figure 7, the document display device in the embodiment of the present invention comprises: acquiring unit 71, display unit 72 and resolution unit 73; Wherein,
Acquiring unit 71, for obtaining according to the document properties of the document the document image prestoring and the document parameter that described document is corresponding when a certain document is opened; To be described document once read picture image and document parameter shown while finishing upper for the described document image prestoring and document parameter;
Display unit 72, for the document image that prestores described in showing;
Resolution unit 73, for prestoring described in basis, document parameter is carried out backstage parsing to described document.
In addition, above-mentioned document display device also comprises: reading unit 74, storage unit 75 and drawing unit 78; Wherein,
Drawing unit 78, repaints in viewing area and shows for the document data in the time need to operating present displayed content, resolution unit being parsed;
Reading unit 74, for reading described document shown picture image and current document parameter when read finishing;
Storage unit 75, the described picture image and the described document parameter that for preserving described reading unit, get.
Further, the document display device in the present embodiment can also comprise: extraction unit 76; Now,
Described reading unit 74, reads the displaying contents in current display area while finishing specifically for reading at described document;
Described extraction unit 76, extracts for the displaying contents getting from described reading unit 74 the picture image part that described document is corresponding;
Described storage unit 75, preserves specifically for picture image corresponding to document that described extraction unit 76 is got.
Further, the document display device in the present embodiment can also comprise: converting unit 77;
Described converting unit 77, makes it meet memory requirement for the picture image conversion that described reading unit 74 is read;
Described storage unit 75 is specifically for preserving the picture image after converting unit 77 is changed.
In the present embodiment, described storage unit 75 can comprise following structure:
Determination module, for determining the document image prestoring that the document is corresponding and the store path of document parameter according to the document properties of described document;
Preserve module, for described picture image and the described document parameter that described reading unit is read, be saved in storage area corresponding to the definite store path of described determination module.
Utilize document display device in the present embodiment to complete the process that document is opened and shown, the description in can reference method embodiment bis-repeats no more herein.
Document display device in the embodiment of the present invention, when document is opened, can directly call the document image prestoring shows, and the document format that does not need differentiation to resolve and show, simultaneously also without the size of considering described document self, on identical hardware, can improve the opening speed of document, shorten document and be opened to the time interval between content demonstration; If the former document opening time is longer, utilize the effect that improves opening speed after the scheme in the embodiment of the present invention, shortens period of reservation of number more obvious.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (11)

1. a document display method, is characterized in that, comprising:
When a certain document is opened, according to the document properties of the document, obtain document image and the document parameter that described document prestores;
The document image prestoring described in demonstration, and according to the described document parameter prestoring, described document is carried out to backstage parsing; To be described document once read picture image shown while finishing upper to the described document image prestoring;
When needs operate present displayed content, the document data that backstage is parsed repaints in viewing area and shows.
2. document display method according to claim 1, is characterized in that, described in the document image that prestores and document parameter to be described document once read picture image and document parameter shown while finishing upper;
Described document display method also comprises:
Read and preserve described document shown picture image and current document parameter when read finishing.
3. document display method according to claim 2, is characterized in that, described in read and preserve described document shown picture image when read finishing, comprising:
When described document is read end, read the displaying contents in current display area;
From described displaying contents, extract the picture image that described document is corresponding;
The picture image that described document is corresponding is preserved.
4. document display method according to claim 3, is characterized in that, described in read and preserve described document shown picture image when read finishing, comprising:
Read described document shown picture image when read finishing;
To the picture image conversion reading, make it meet memory requirement;
Picture image after conversion is preserved.
5. document display method according to claim 2, is characterized in that, described in read and preserve described document shown picture image and current document parameter when read finishing, comprising:
According to the document properties of described document, determine the document image prestoring that the document is corresponding and the store path of document parameter;
The described document reading shown picture image and current document parameter when read finishing are saved in to the storage area that described store path is corresponding.
6. document display method according to claim 1 or 5, it is characterized in that, described document properties comprises in file name, creation-time, modification time, document size information, file layout title and relative path or the complete trails of described document one or multinomial.
7. a document display device, is characterized in that, comprising:
Acquiring unit, for obtaining according to the document properties of the document the document image prestoring and the document parameter that described document is corresponding when a certain document is opened;
Display unit, for the document image that prestores described in showing; To be described document once read picture image shown while finishing upper to the described document image prestoring;
Resolution unit, for prestoring described in basis, document parameter is carried out backstage parsing to described document;
Drawing unit, repaints in viewing area and shows for the document data in the time need to operating present displayed content, resolution unit being parsed.
8. document display device according to claim 7, is characterized in that, described in the document image that prestores and document parameter to be described document once read picture image and document parameter shown while finishing upper;
Described document display device also comprises:
Reading unit, for reading described document shown picture image and current document parameter when read finishing;
Storage unit, the described picture image and the described document parameter that for preserving described reading unit, get.
9. document display device according to claim 8, is characterized in that, also comprises extraction unit;
Described reading unit, for reading the displaying contents of current display area when described document is read end;
Described extraction unit, extracts for the displaying contents getting from described reading unit the picture image that described document is corresponding;
Described storage unit, preserves for picture image corresponding to document that described extraction unit is got.
10. document display device according to claim 8, is characterized in that, also comprises converting unit;
Described converting unit, makes it meet memory requirement for the picture image conversion that described reading unit is read;
Described storage unit, for preserving the picture image after conversion.
11. document display device according to claim 8, is characterized in that, described storage unit comprises:
Determination module, for determining the document image prestoring that the document is corresponding and the store path of document parameter according to the document properties of described document;
Preserve module, for described picture image and the described document parameter that described reading unit is read, be saved in storage area corresponding to the definite store path of described determination module.
CN201110036246.0A 2011-02-11 2011-02-11 Document display method and device Active CN102637159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110036246.0A CN102637159B (en) 2011-02-11 2011-02-11 Document display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110036246.0A CN102637159B (en) 2011-02-11 2011-02-11 Document display method and device

Publications (2)

Publication Number Publication Date
CN102637159A CN102637159A (en) 2012-08-15
CN102637159B true CN102637159B (en) 2014-12-10

Family

ID=46621556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110036246.0A Active CN102637159B (en) 2011-02-11 2011-02-11 Document display method and device

Country Status (1)

Country Link
CN (1) CN102637159B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968405A (en) * 2012-11-23 2013-03-13 广东威创视讯科技股份有限公司 Demonstration method and system of demonstration manuscripts
CN107678636A (en) * 2016-08-01 2018-02-09 广州市动景计算机科技有限公司 The webpage representation method and apparatus of electronic equipment
CN107678635A (en) * 2016-08-01 2018-02-09 广州市动景计算机科技有限公司 The webpage representation method and apparatus of electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1612154A (en) * 2003-10-29 2005-05-04 株式会社日立制作所 File searching and reading method and apparatus
CN1959669A (en) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 System and method for displaying documents

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001250077A (en) * 2000-03-03 2001-09-14 Casio Comput Co Ltd Document processor and storage medium
CN1199419C (en) * 2001-08-24 2005-04-27 英华达(上海)电子有限公司 Method and device for implementing electronic book download reading on radio application communication protocol
CN101127870A (en) * 2007-09-13 2008-02-20 深圳市融合视讯科技有限公司 A creation and use method for video stream media bookmark

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1612154A (en) * 2003-10-29 2005-05-04 株式会社日立制作所 File searching and reading method and apparatus
CN1959669A (en) * 2005-11-04 2007-05-09 鸿富锦精密工业(深圳)有限公司 System and method for displaying documents

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2001-250077A 2001.09.14 *

Also Published As

Publication number Publication date
CN102637159A (en) 2012-08-15

Similar Documents

Publication Publication Date Title
US9007405B1 (en) Column zoom
US20100172590A1 (en) Combined Image and Text Document
CN101923723B (en) Method for realizing display of electronic document
CN101558425B (en) Image processing apparatus, image processing method
US20160299888A1 (en) Method for processing and loading web pages supporting multiple languages and system thereof
US20130283157A1 (en) Digital comic viewer device, digital comic viewing system, non-transitory recording medium having viewer program recorded thereon, and digital comic display method
US20090123071A1 (en) Document processing apparatus, document processing method, and computer program product
CN102331982B (en) Method and system for displaying PDF (Portable Document Format) document adaptively to window size and mobile terminal
US20120011429A1 (en) Image processing apparatus and image processing method
US8515176B1 (en) Identification of text-block frames
US20110131482A1 (en) System and method for multi-channel publishing
US11003680B2 (en) Method for providing e-book service and computer program therefor
US20140325348A1 (en) Conversion of a document of captured images into a format for optimized display on a mobile device
CN105631393A (en) Information recognition method and device
CN104156207A (en) File display method and device
JP2014197341A (en) Electronic book production device, electronic book system, electronic book production method and program
CN102637159B (en) Document display method and device
CN101777336B (en) Double-screen electronic reader-based display method and device
CN115757272A (en) Method and system for converting HTML file into OFD file
CN103493042A (en) Browsing system, terminal, image server, program, computer-readable recording medium recording said program, and method
CN114330245A (en) OFD document processing method and device
CN101599263B (en) Mobile terminal and display method of screen display (OSD) interface thereof
JP2013020477A (en) Image processing apparatus and program
CN102736819A (en) A method and a device for displaying an electronic document
CN111199136B (en) Document content display method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant