CN105528333A - Method and device for optimally displaying document - Google Patents

Method and device for optimally displaying document Download PDF

Info

Publication number
CN105528333A
CN105528333A CN 201510937873 CN201510937873A CN105528333A CN 105528333 A CN105528333 A CN 105528333A CN 201510937873 CN201510937873 CN 201510937873 CN 201510937873 A CN201510937873 A CN 201510937873A CN 105528333 A CN105528333 A CN 105528333A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
document
edge
page
position
trimmed
Prior art date
Application number
CN 201510937873
Other languages
Chinese (zh)
Inventor
顾红清
罗尚虎
Original Assignee
网易(杭州)网络有限公司
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

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/20Handling natural language data
    • G06F17/21Text processing
    • G06F17/211Formatting, i.e. changing of presentation of document
    • G06F17/212Display of layout of document; Preview

Abstract

The embodiment of the invention provides a method and a device for optimally displaying a document. The method comprises the following steps of obtaining a document content position; determining to-be-cut parts of four edges of a document page according to the document content position; cutting the document page according to the determined to-be-cut parts; amplifying the cut document page to the original size of the document page for being displayed. In the scheme, the to-be-cut parts are determined through the document content position, and then the document page is cut; according to the method provided by the invention, the to-be-cut parts in the document page are cut, the cut document page is amplified to the original size of the document page for being displayed, a screen can be occupied by effective contents in the document page as much as possible, and the area of the screen is furthest utilized, so that the utilization rate of a screen resource is obviously increased; meanwhile, the defects of error or reading difficulty of a user during a PDF (Portable Document Format) document amplifying process can be avoided.

Description

一种文档优化显示的方法和装置 A method and apparatus for optimized display of the document

技术领域 FIELD

[0001 ]本发明的实施方式涉及文档处理领域,更具体地,本发明的实施方式涉及一种文档优化显示的方法和装置。 [0001] The embodiment of the invention relates to the field of document processing, and more particularly, embodiments of the present invention relates to a method and apparatus for optimized display of the document.

背景技术 Background technique

[0002]本部分旨在为权利要求书中陈述的本发明的实施方式提供背景或上下文。 [0002] This section is intended embodiment of the present invention as claimed in the claims set forth to provide a background or context. 此处的描述不因为包括在本部分中就承认是现有技术。 As described herein are not included in this section is admitted prior art.

[0003] PDF(PortabIe Document Format,便携式文档格式)是一种电子文件格式,这种文件格式与操作系统平台无关,也就是说,PDF文档不管是在Windows操作系统,Unix操作系统还是在其他操作系统中都是通用的,由于PDF文档具有上述优点,因此,它成为在Internet上进行电子文档发行和数字化信息传播的理想文档格式。 [0003] PDF (PortabIe Document Format, Portable Document Format) is an electronic file format, this file format has nothing to do with the operating system platform, that is, PDF documents either in the Windows operating system, Unix operating system or in other operations system are common, because the PDF document has the above advantages, therefore, it becomes the ideal document format for electronic document distribution and digital information dissemination on the Internet. 目前,越来越多的电子图书、产品说明、公司文告、网络资料、电子邮件等已经广泛使用TOF文档。 At present, more and more e-books, product descriptions, company announcements, network information, e-mail has been widely used TOF document.

[0004]目前,由于TOF文档应用越来越广泛,及智能终端的普及,越来越多的用户会在智能终端中查看I3DF文档,例如,通过智能终端中的网易云阅读来查看I3DF文档。 [0004] At present, due to the TOF documents more widely, and the popularity of intelligent terminals, more and more users will see I3DF documents in the intelligent terminal, for example, read through the document to see I3DF Netease cloud intelligent terminal.

[0005]对于扫描版的PDF文档而言,最终在智能终端的阅读应用中的呈现效果就是对实体书的移植,源于此,在目前的PDF文档显示方法中,智能终端的屏幕除了显示文档中的有效内容之外,在屏幕边缘跟文档中的有效内容之间还存在一部分空白区域,如图1A所示。 [0005] For scanning version of the PDF document, eventually rendering the reading application smart terminal is the transplantation of a physical book stems from this, in the current PDF document display method, the screen displays the document in addition to the intelligent terminal outside the valid content, between the edge of the screen with the contents of the document there is a part of the effective area of ​​the blank shown in Figure 1A. 从图1A可以看出,智能终端中的屏幕中除了显示文档的有效内容之外,在水平方向,屏幕的垂直边缘与文档的有效内容之间存在距离为X的空白区域,同理,在垂直方向,屏幕的水平边缘与文档的有效内容之间存在距离为Y的空白区域。 As can be seen from FIGS. 1A, in the intelligent terminal in addition to the display screen outside the effective content of the document, the distance X is present between the blank area in the horizontal direction valid content, with the vertical edge of the document screen. Similarly, the vertical SUMMARY exists between the active direction, a horizontal edge of the document from a blank screen area Y.

[0006]同时,现有技术是通过I3DF重排技术对I3DF文档的内容重新排版,放大I3DF文档中的内容,但是,如果PDF文档中有表格、代码等内容时,放大后的PDF文档会出现错误、排版改变,或者表格很可能被分隔在不同的页面的情况,给用户阅读造成不便,如图1B所示,假设初始I3DF文档为图1A所示,通过PDF重排技术对TOF文档的内容重新排版后,PDF文档变为图1B所示,从图1A至图1B可以看出,PDF文档的排版发生改变,给用户阅读造成不便,降低阅读效率。 [0006] Meanwhile, the prior art is the contents of the document re-publishing I3DF, amplified by the document content I3DF I3DF shuffling, however, if there is a table of contents, code, etc. PDF document, the PDF document will be amplified error, layout change, or the partition table is likely to be different in the case of pages, causing inconvenience to the user to read, 1B, assume that the initial I3DF document as shown in Figure 1A, by shuffling PDF document content TOF after reformatting, the PDF document becomes as shown in FIGS. 1B, it can be seen from FIGS. 1A-1B, a PDF document layout is changed, causing inconvenience to the user to read, reducing reading efficiency.

发明内容 SUMMARY

[0007]现有技术由于在有限的屏幕中存在一部分空白区域,因此现有技术文档显示方法存在屏幕资源浪费的缺陷,而屏幕资源对于显示面积有限的便携终端设备非常重要,同时,通过PDF重排技术来放大PDF文档的内容,存在出现错误或者造成用户阅读困难的缺陷,这是非常令人烦恼的过程。 [0007] Since the prior art section of a blank region is present in a limited screen, so the presence of the prior art document display method of a screen defect wasted resources, and the screen display is very important for the limited resources of the mobile terminal device area, while, by weight PDF row technique to amplify the content of PDF documents, user error or cause of dyslexia defects occur, it is very disturbing process.

[0008]为此,非常需要一种改进的文档优化显示方法及装置,以使得在有限的屏幕资源中避免出现空白区域,或者降低空白区域在屏幕中所占的比例,最大程度地利用屏幕的面积,进而提高屏幕资源的利用率,同时还可以避免在放大TOF文档的过程中出现错误或者造成用户阅读困难的缺陷。 [0008] For this reason, a great need to optimize the document display method and an improved apparatus, in order to avoid such limited resources blank screen area, or to reduce the proportion occupied by the blank area in the screen, maximum use of the screen area, thereby improving the utilization of the resources of the screen, while avoiding errors during the amplification TOF document or cause difficulties reading the user's defects.

[0009]在本上下文中,本发明的实施方式期望提供一种文档优化显示的方法和装置。 [0009] In this context, embodiments of the present invention desirable to provide a method and apparatus for optimized display of the document.

[0010]在本发明实施方式的第一方面中,提供了一种文档优化显示的方法,包括:获取文档内容位置;根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及将剪裁后的文档页面放大到文档页面的原始大小进行显示。 [0010] In a first aspect of the embodiment of the present invention, there is provided a method of optimizing the document display, comprising: obtaining document content location; position according to the document content, the document page is determined to be four edges trimmed portion ; it should be trimmed in accordance with the determined portion of the document page to be trimmed; and trimmed enlarged document page to the size of the original document page is displayed.

[0011]在本发明实施方式的第二方面中,提供了一种文档优化显示的装置,包括:文档内容位置获取模块,被配置为获取文档内容位置;剪裁部分确定模块,被配置为根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;剪裁模块,被配置为根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及放大显示模块,被配置为将剪裁后的文档页面放大到文档页面的原始大小进行显示。 [0011] In a second aspect of the embodiment of the present invention, there is provided an apparatus for optimized display of the document, comprising: obtaining document content location module configured to acquire location document content; clipped portion determining module, configured in accordance with the the position of said document content, the document page is determined to be four edges of the trimmed portions; clipping module configured to be trimmed in accordance with the determined portion of the document page to be trimmed; and enlarged display module, configured to cut after the document page enlarged to the size of the original document page is displayed.

[0012]根据本发明实施方式提供的文档优化显示的方法和装置,可以先获取文档内容位置;根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及将剪裁后的文档页面放大到文档页面的原始大小进行显示,在该方案中,将文档页面内容进行剪裁,最终在有限的屏幕资源中显示的是剪裁后的文档页面,而无需将文档页面中的空白区域还在屏幕中显示,减少了空白区域对屏幕资源的占用,最大程度地利用了屏幕的面积,从而显著地避免了对屏幕资源的浪费,同时,本发明是将剪裁后的文档页面放大到文档页面的原始大小进行显示,不是通过TOF重排技术来放大TOF文档,因此,还可以避免在放大PDF文档的过程中出现错误或者造成用户阅读困难的缺陷。 [0012] The method and apparatus of the present invention, the preferred mode of the document display provided according to the content of the document can be acquired first position; position according to the document content, the document page is determined to be four edges of the trimmed portions; shall be determined in accordance with the trimmed part, to the document page is cut; and trimmed document page magnification to the document page original size is displayed, in this embodiment, the document page content cropping, finally displayed on the limited screen real estate is trimmed document pages without having to display a blank area of ​​a document page is still screens, reducing the occupied an empty area on the screen of resources, maximize the use of the area of ​​the screen, thereby significantly avoid the waste of screen resource Meanwhile, the present invention is an enlarged document page after trimming to the original size of the document page for display, the document is not to enlarge by TOF TOF shuffling, thus also avoided in the process of amplification PDF document or an error caused by the user read defects difficult.

附图说明 BRIEF DESCRIPTION

[0013]通过参考附图阅读下文的详细描述,本发明示例性实施方式的上述以及其他目的、特征和优点将变得易于理解。 [0013] By reading the following detailed description with reference to the accompanying drawings, the above and other objects, features and advantages of exemplary embodiments of the present invention will become readily understood. 在附图中,以示例性而非限制性的方式示出了本发明的若干实施方式,其中: In the drawings, an exemplary and not limitative manner, illustrate several embodiments of the invention, wherein:

[0014]图1A示意性地示出了根据现有技术的文档显示的方法的示意图; [0014] FIG. 1A schematically shows a schematic diagram of a method according to the prior art document displayed;

[0015]图1B示意性地示出了根据现有技术的文档放大显示的方法的示意图; [0015] FIG. 1B schematically shows a schematic view of a prior art method of amplifying the document displayed;

[0016]图2A示意性地示出了根据本发明实施方式的流程示意图; [0016] Figure 2A schematically shows a flow schematic according to an embodiment of the present invention;

[0017]图2B示意性地示出了根据本发明实施方式的最靠近相应边缘的位置的示意图; [0017] Figure 2B schematically shows a schematic view corresponding position of the edge closest to the embodiment according to the present embodiment of the invention;

[0018]图2C示意性地示出了根据本发明实施方式的应剪裁掉的部分的一种示意图; [0018] Figure 2C schematically shows a schematic view of a portion to be trimmed in accordance with an embodiment of the present invention;

[0019]图2D示意性地示出了根据本发明实施方式的应剪裁掉的部分的另一种示意图; [0019] Figure 2D schematically shows a schematic view of another part to be trimmed to an embodiment of the present invention;

[0020]图3示意性地示出了根据本发明另一实施例的文档优化显示的装置的示意图; [0020] FIG. 3 schematically shows a schematic view of a display device of another embodiment of a document optimized embodiment according to the present invention;

[0021 ]图4示意性地示出了根据本发明又一实施例的文档优化显示的装置的示意图; [0021] FIG 4 schematically shows a schematic view of a document optimization apparatus according to still another embodiment of the present invention, a display of the embodiment;

[0022]图5示意性地示出了根据本发明再一实施例的文档优化显示的装置的示意图; [0022] FIG. 5 schematically shows a schematic example of a document optimized display device according to another embodiment of the present invention;

[0023]在附图中,相同或对应的标号表不相同或对应的部分。 [0023] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts are not.

具体实施方式 detailed description

[0024]下面将参考若干示例性实施方式来描述本发明的原理和精神。 [0024] below with reference to several exemplary embodiments the principles and spirit of the described embodiment of the present invention. 应当理解,给出这些实施方式仅仅是为了使本领域技术人员能够更好地理解进而实现本发明,而并非以任何方式限制本发明的范围。 It should be understood that these embodiments are merely given to enable those skilled in the art to better understand and further implement the present invention and are not in any way limit the scope of the present invention. 相反,提供这些实施方式是为了使本公开更加透彻和完整,并且能够将本公开的范围完整地传达给本领域的技术人员。 Rather, these embodiments are provided so that this disclosure will be thorough and complete, and the scope of the present disclosure will fully convey to those skilled in the art.

[0025]本领域技术技术人员知道,本发明的实施方式可以实现为一种系统、装置、设备、方法或计算机程序产品。 [0025] Those skilled in the art will appreciate that embodiments of the present invention may be implemented as a system, apparatus, device, method or computer program product. 因此,本公开可以具体实现为以下形式,即:完全的硬件、完全的软件(包括固件、驻留软件、微代码等),或者硬件和软件结合的形式。 Accordingly, the present disclosure may be embodied in the following forms, namely: an entirely hardware, entirely software (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware.

[0026]根据本发明的实施方式,提出了一种文档优化显示的方法和装置。 [0026] According to embodiments of the present invention, a method and apparatus for optimized display of the document.

[0027]在本文中,需要理解的是,附图中的任何元素数量均用于示例而非限制,以及任何命名都仅用于区分,而不具有任何限制含义。 [0027] Herein, it is understood that any number of elements in the drawings are for illustration and not limitation, and any names are only used to distinguish, without any limiting sense.

[0028]下面参考本发明的若干代表性实施方式,详细阐释本发明的原理和精神。 [0028] Next, with reference to several representative embodiments of the present invention, in detail to explain the principles and spirit of the invention.

[0029] 发明概述 [0029] Summary of the Invention

[0030]本发明人发现,在文档显示的过程中,可以获取文档内容位置;并根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;然后,根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及将剪裁后的文档页面放大到文档页面的原始大小进行显示,在该方案中,由于将文档页面中的空白区域剪裁,使得文档页面中的有效内容可以尽可能多的占用屏幕,最大程度地利用了屏幕的面积,因此,可以显著提高屏幕资源的利用率,同时,本发明是将剪裁后的文档页面放大到文档页面的原始大小进行显示,不是通过TOF重排技术来放大TOF文档,因此,还可以避免在放大PDF文档的过程中出现错误或者造成用户阅读困难的缺陷。 [0030] The present inventors have found that, in the process shown in the document, the document content can be acquired positions; and position according to the document content, the document page is determined to be four edges of the trimmed portions; then, should be cut according to the determined out part, to the document page is cut; and trimmed document page magnification to the document page original size is displayed, in this embodiment, since the blank area clipping the document page, so that the effective content of the document pages can be occupy the screen as much as possible, to maximize the use of the screen area, therefore, can significantly improve the utilization of the resources of the screen, at the same time, the present invention is to enlarge the trimmed page document to its original size document pages are displayed, not by TOF technology to amplify the rearranged TOF document, therefore, also avoid errors occurred during the amplification PDF document or reading difficulties caused by the user's defects.

[0031]在介绍了本发明的基本原理之后,下面具体介绍本发明的各种非限制性实施方式。 [0031] The following describes the principle of the present invention, the following detailed description of various non-limiting embodiments of the present invention.

[0032] 应用场景总览 [0032] scenarios Overview

[0033]本发明实施例中,可以采用多种应用打开I3DF文档,例如,采用网易云阅读、多看阅读、Adobe Reader、掌阅iReader等等。 [0033] The embodiments of the present invention may be employed a variety of applications to open a document I3DF, e.g., using Netease cloud reading, look read, Adobe Reader, palm reading iReader like. 本发明实施例提供的方法可以用于安装有网易云阅读、多看阅读、Adobe Reader、掌阅iReader等应用的终端。 The method provided in the embodiment of the present invention can be used to read the cloud mounted YORK, look read, the terminal application Adobe Reader, palm reading iReader like. 此处的终端可以是任何现有的、正在研发的或将来研发的智能手机、非智能手机、平板电脑、个人计算机等,本发明不做具体限定。 The terminal here can be any conventional, being developed or developed in the future smart phone, non-smart phone, a tablet computer, a personal computer or the like, the present invention is not particularly limited.

[0034]应用本发明实施例提供的方法的终端在在打开文档时,可以将文档页面中应剪裁掉的部位剪裁掉,并将剪裁后的文档页面放大到文档页面的原始大小进行显示,也就是说将文档页面中的无效部分去掉,保留有效部分。 A terminal provided in the embodiments of the method [0034] Application of the present invention when the document is opened, the pages of the document can be trimmed portions trimmed and the trimmed enlarged document page to the size of the original document page for display, but also That will not work to remove the portion of the document page, retained effective part.

[0035]本领域技术人员可以理解,上面所说的可以打开PDF文档的应用仅是本发明的实施方式可以在其中得以实现的一个示例。 [0035] The skilled artisan will be appreciated, the above-mentioned application can open a PDF document is merely an example embodiment in which the present invention may be implemented. 本发明实施方式的适用范围不受任何限制。 The scope of embodiments of the present invention without any restriction.

[0036] 示例性方法 [0036] An exemplary method

[0037]下面结合上述应用场景,参考图2A来描述根据本发明示例性实施方式的用于文档优化显示的方法。 [0037] The following combination of the above scenarios, the display method will be described with reference to FIG 2A according to an optimized document exemplary embodiment of the present invention. 需要注意的是,上述应用场景仅是为了便于理解本发明的精神和原理而示出,本发明的实施方式在此方面不受任何限制。 It should be noted that the above scenario is to facilitate understanding of the spirit and principles of the invention and shown only, embodiments of the present invention is not subject to any restrictions in this respect. 相反,本发明的实施方式可以应用于适用的任何场景。 In contrast, embodiments of the present invention can be applied to any scenario applicable.

[0038]图2A示意性地示出了根据本发明实施方式的用于文档优化显示的方法20的流程示意图。 [0038] Figure 2A schematically illustrates a schematic flow diagram of a method for a document 20 according to embodiments of the present invention to optimize the display. 如图2A所示,该方法可以包括步骤200、210、220以及230。 2A, the method may comprise the steps 200, 210 and 230.

[0039]该方法始于步骤200,其中获取文档内容位置。 [0039] The method begins at step 200, wherein the position obtaining document content.

[0040]在实际应用中,空白区域跟有文字或者图片的区域的色值是不同的,并计算边缘和色值开始不同的位置之间的距离,如果文档内容不对齐的话,可能有多个不同的距离值,将多个距离值中的最小距离值作为对应边缘可以剪裁掉的部分。 [0040] In practice, there is a blank area with the color of the text or picture area is different from the value, and calculates the distance between the edge and the color values ​​in different start positions, if the content is not aligned with the document, it may have a plurality of different distance values ​​the minimum distance value as a plurality of distance values ​​corresponding to the edge portion can be trimmed.

[0041]因此,在一些可能的实施方式中,步骤200在获取文档内容位置时,可以根据不同区域之间的色值来确定出文档内容位置,例如,可以采用如下方式: [0041] Thus, in some possible embodiments, step 200 when acquiring the document content location may be determined according to the color values ​​between different regions of the document content location, for example, the following manner may be employed:

[0042]分别从文档页面四个边缘向对应页面中心线的方向检测页面上的色值变化情况;以及 [0042] respectively, from the edge of the document page four color variation value on the page corresponding to a page where the center line direction detection; and

[0043]将文档页面每个边缘处检测到的大于预先定义的阈值的色值变化的位置中最靠近相应边缘的位置确定为相应边缘处的文档内容位置。 [0043] greater than a predefined threshold value of the color change of the position of the detected edge of each document page in the position closest to the corresponding edge of the respective determined position of the edge of the document content.

[0044]需要说明的是,最靠近相应边缘的位置可以指与相应边缘之间的距离最小的位置,也就是说,可以根据色差变化的位置和相应边缘之间的距离参数来确定出最靠近相应边缘的位置,当然,也可以根据其他参数来确定出最靠近相应边缘的位置。 [0044] Incidentally, the edge closest to the corresponding position may refer to the distance between the edges corresponding to the minimum position, i.e., may be determined according to the distance parameter is closest to the color difference between the change in position and the corresponding edge the corresponding location of the edges, of course, may be determined according to the position closest to the corresponding edge of the other parameters.

[0045]例如,参与图2B所示,针对第一边缘,在第一边缘处检测到大于预先定义的阈值的色差变化的位置有第一位置、第二位置、第三位置、第四位置和第五位置,第一位置与第一边缘之间的距离为第一距离,第二位置与第一边缘之间的距离为第二距离,第三位置与第一边缘之间的距离为第三距离,第四位置与第一边缘之间的距离为第四距离,第五位置与第一边缘之间的距离为第五距离,第一距离、第二距离、第三距离、第四距离和第五距离中第一距离、第二距离和第五距离为最小值,则第一位置、第四位置和第五位置中的任意一位置作为为最靠近第一边缘的位置,并将第一位置、第四位置和第五位置中的任意一位置确定为第一边缘处的文档内容位置。 [0045] For example, participation 2B, the edge for a first detecting position at a first edge to the color change of greater than a predetermined threshold value defined in a first position, second position, third position, fourth position and the fifth position, the distance between the first position and the first edge by a first distance, the distance between the second position the first edge of the second distance, the distance between the third position and the first edge of the third distances between the fourth location of the first edge of a fourth distance, the distance between the fifth position from the fifth to the first edge, a first distance, second distance, third distance, and fourth distance fifth distance of the first distance, the second distance and the fifth distance is the minimum value, a first position, the fourth position and a fifth position at any position as for the location closest to the first edge, and a first an arbitrary position, fourth position and fifth position is determined as the content of the document at the position of the first edge.

[0046]需要说明的是,本发明不对文档内容做具体限定,例如,例如文档内容可以包含文字,也可以包含图片,或者也可以包含表格等等。 [0046] Incidentally, the document does not specifically define the present invention is made, e.g., such as document content may include text, images may also comprise, or may comprise a table and the like.

[0047] 在上述步骤200之后,还可以执行步骤210,其中根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分。 [0047] After the above step 200, step 210 may also be performed, wherein the position according to the document content, determining a document page four edges should be cut off portion.

[0048]在一些可能的实施方式中,步骤210在所述根据所述文档内容位置确定文档页面四个边缘处应剪裁掉的部分时,可选地,可以采用如下方式:沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线;以及将每个边缘处的第一直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 [0048] In some possible embodiments, the step 210 determines that the document page when the four edges of the part to be trimmed in a position according to the document content, alternatively, may be employed in the following manner: in each document page content of the document at the position of the edge is made parallel to the first edge of the respective straight; and determined to be trimmed at the respective edge of the first linear portion between each edge and the corresponding edge.

[0049]例如:参阅图2C所示,针对第一边缘,文档内容位置为第一位置、第二位置和/或第五位置中的任意一位置,以文档内容位置为第一位置为例说明,沿第一位置做出平行于第一边缘的第一直线,第一直线和第一边缘之间的部分为应剪裁掉的部分。 [0049] For example: Referring to FIG. 2C, for a first edge, a first position of the document content location, a second position and / or a fifth position in any position, the position of the document content to the first position as an example to make a first position in a first direction parallel to the straight first edge, between a first straight line and the first edge portion is a portion to be trimmed. 此处是以第一边缘为例进行说明针对第一边缘应剪裁掉的部分,确定第二边缘、第三边缘和第四边缘相对应的应剪裁掉的部分,与确定第一边缘相对应的应剪裁掉的部分类似,在此不再进行详述。 Here is an example will be described for a first edge of a first edge portion to be trimmed, determining a second edge, a third edge and a fourth edge corresponding to the portion to be trimmed, and determining a first edge corresponding to the It should cut off part of the similar, which is not described in detail.

[0050]上述描述的是直接将第一直线与相应的边缘之间的部分剪裁掉,在实际应用中,进一步的,为了实现更好的视觉效果,可以将第一直线向相应边缘移动,将移动后的位置得到的直线和相应的边缘之间的部分剪裁掉,这样,文档内容位置和相应边缘之间有留白边距,可以实现更好的视觉效果。 [0050] The above description is directly between the first linear portion and the corresponding edge trimmed, in practical applications, further, in order to achieve a better visual effect, the first linear movement to the respective edges , the portion between the position and movement of a straight line obtained corresponding edge trimmed, so that there is between the blank margin, the content of the document and the corresponding edge position, allows for better visual effect.

[0051]因此,在一些可能的实施方式中,步骤210所述根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分时,可选地,可以采用如下方式:沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线;将每个边缘处的第一直线向相应边缘平移预先定义的留白边距,以得到相应边缘处的第二直线;以及,将每个边缘处的第二直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 When [0051] Thus, in some possible embodiments, the step 210 according to the document content location, determining a document page four edges to be cut off portion, alternatively, may be employed in the following manner: in the document page content of the document at the position of each edge made parallel to the first edge of the respective straight; blank margin at each edge of the first straight edges to the respective predefined translation, to give the corresponding edge of the second straight line; and a second straight portion between the edge of each of the respective edges of the respective determined to be trimmed at the edge portion.

[0052]仍以图2C所示的例子为例进行说明,将第一边缘处的第一直线向第一边缘平移预先定义的留白边距,以得到相应边缘处的第二直线;以及,将第二直线与第一边缘之间的部分确定为相应边缘处应剪裁掉的部分,参阅图2D所示。 [0052] The example of FIG. 2C still as an example, a first edge of the first linear translation of the pre-defined margin blank first edge, to give the corresponding edge of the second straight line; and , the second straight portion between the first edge is determined to be trimmed at the respective edge portion, as shown in FIG refer to 2D.

[0053]在上述步骤210之后,还可以执行步骤220,其中根据所确定的应剪裁掉的部分,对于文档页面进行剪裁。 [0053] After the above step 210, step 220 may also be performed, which should be trimmed in accordance with the determined portion of the document page to be trimmed.

[0054]接下来,可以执行步骤230,其中将剪裁后的文档页面放大到文档页面的原始大小进行显示。 [0054] Next, the step 230 may be performed, in which the enlarged document page after trimming to the original size of the document page for display.

[0055]在一些可能的实施方式中,为了在有限的屏幕中,最大限度的展现文档内容,提高屏幕资源的利用率,及提升用户体验,步骤230在将剪裁后的文档页面放大到文档页面的原始大小进行显示时,可选地,可以采用如下方式:根据剪裁后的文档页面的宽度或高度相对于文档页面的原始大小的宽度或高度的比值,将剪裁后的文档页面等比例地进行放大显示。 [0055] In some possible embodiments, for a limited screen, maximize the display of the document content, improve the utilization of resources of the screen, and enhance the user experience, in step 230 the trimmed enlarged document page to a document page when the original size display, alternatively, may be employed in the following manner: the ratio of the width or height of the original document page size of the document page after trimming proportionately according to the document page width or height of the trimmed enlarged display. 这样,屏幕中初始显示剪裁掉部分的区域也显示文档内容,最大程度地利用了屏幕的面积,因此,提高了屏幕资源的利用率,同时,将剪裁后的文档页面等比例地进行放大显示的话,还可以避免在放大TOF文档的过程中出现错误或者造成用户阅读困难的缺陷。 Thus, the screen is initially displayed area portion trimmed also displaying document content, maximum utilization of the area of ​​the screen, thus, improve the utilization of screen resources while the trimmed document page proportionately enlarged display, then also avoid the error occurred during the amplification TOF document or reading difficulties caused by the user's defects.

[0056]本发明实施例中,可以先获取文档内容位置;根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及将剪裁后的文档页面放大到文档页面的原始大小进行显示,在该方案中,将文档页面内容进行剪裁,最终在有限的屏幕资源中显示的是剪裁后的文档页面,而无需将文档页面中的应剪裁掉的部分还在屏幕中显示,减少了应剪裁掉的部分对屏幕资源的占用,最大程度地利用了屏幕的面积,从而显著地避免了对屏幕资源的浪费,同时,本发明是将剪裁后的文档页面放大到文档页面的原始大小进行显示,不是通过TOF重排技术来放大TOF文档,因此,还可以避免在放大TOF文档的过程中出现错误或者造成用户阅读困难的缺陷。 [0056] The embodiments of the present invention, the content of the document may first acquire position; position according to the document content, the document page is determined to be four edges of the trimmed portions; be trimmed according to the determined portion for the document pages cut; and the trimmed document page magnification to document pages original size is displayed, in this scenario, the document page content cut, the final show of the limited screen real estate is the document page after trimming, without the need to document pages to be cut off part of the screen is still displayed reduced should cut off part of the occupation of the screen resources, maximize the use of the area of ​​the screen, thereby significantly avoid the waste of screen real estate, and at the same time, the present invention is an enlarged document pages trimmed to the size of the original document page is displayed, the rearrangement is not to enlarge TOF TOF technique documents, thus also avoid an error occurs during document TOF amplification or cause a user difficulty reading defect.

[0057] 示例性设备 [0057] The exemplary apparatus

[0058]在介绍了本发明示例性实施方式的方法之后,接下来,参考图3对本发明示例性实施方式的用于文档优化显示的装置进行说明。 [0058] Following the introduction of the method of the present invention exemplary embodiments, the following, with reference to FIG. 3 for optimizing the document display apparatus of the present invention will be described exemplary embodiments.

[0059]图3示意性地示出了根据本发明实施方式的用于文档优化显示的装置30的示意图。 [0059] FIG. 3 schematically shows a schematic view of a display apparatus 30 according to an embodiment of the document optimized embodiment of the present invention. 如图3所示,该装置30可以包括: 3, the apparatus 30 may comprise:

[0060]文档内容位置获取模块300,用于获取文档内容位置; [0060] The document content location acquisition module 300, configured to obtain the position of the document content;

[0061]剪裁部分确定模块310,用于根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分; [0061] The trimming section determination module 310, a position according to the document content, the document page is determined to be four edges of the trimmed portions;

[0062]剪裁模块320,用于根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及 [0062] The cropping module 320, should be trimmed according to the determined portion for tailoring document page; and

[0063]放大显示模块330,用于将剪裁后的文档页面放大到文档页面的原始大小进行显不O [0063] The enlarged display module 330, configured to cut the enlarged document page to the size of the original document page is not the sensible O

[0064]在实际应用中,空白区域跟有文字或者图片的区域的色值是不同的,并计算边缘和色值开始不同的位置之间的距离,如果文档内容不对齐的话,可能有多个不同的距离值,将多个距离值中的最小距离值作为对应边缘可以剪裁掉的部分。 [0064] In practice, there is a blank area with the color of the text or picture area is different from the value, and calculates the distance between the edge and the color values ​​in different start positions, if the content is not aligned with the document, it may have a plurality of different distance values ​​the minimum distance value as a plurality of distance values ​​corresponding to the edge portion can be trimmed.

[0065]因此,在一些可能的实施方式中,文档内容位置获取模块300包括色值检测模块300A和文档内容位置确定模块300B,色值检测模块300A被配置为:分别从文档页面四个边缘向对应页面中心线的方向检测页面上的色值变化情况;文档内容位置确定模块300B被配置为:将文档页面每个边缘处检测到的大于预先定义的阈值的色值变化的位置中最靠近相应边缘的位置确定为相应边缘处的文档内容位置。 [0065] Thus, in some possible embodiments, the document content acquisition module 300 includes a position detection module 300A and the color value document content location determination module 300B, 300A color value detection module is configured to: respectively from four edges of the document page the change in color values ​​corresponding to the center line of the page where the page direction detection; 300B document content location determining module is configured to: a position change in color values ​​is greater than a pre-defined threshold is detected at the edge of each page of a document to a respective nearest determining a corresponding position of the edge position at the edge of the document content.

[0066]需要说明的是,最靠近相应边缘的位置可以指与相应边缘之间的距离最小的位置,也就是说,可以根据色差变化的位置和相应边缘之间的距离参数来确定出最靠近相应边缘的位置,当然,也可以根据其他参数来确定出最靠近相应边缘的位置。 [0066] Incidentally, the edge closest to the corresponding position may refer to the distance between the edges corresponding to the minimum position, i.e., may be determined according to the distance parameter is closest to the color difference between the change in position and the corresponding edge the corresponding location of the edges, of course, may be determined according to the position closest to the corresponding edge of the other parameters.

[0067]例如,参与图2B所示,针对第一边缘,在第一边缘处检测到大于预先定义的阈值的色差变化的位置有第一位置、第二位置、第三位置、第四位置和第五位置,第一位置与第一边缘之间的距离为第一距离,第二位置与第一边缘之间的距离为第二距离,第三位置与第一边缘之间的距离为第三距离,第四位置与第一边缘之间的距离为第四距离,第五位置与第一边缘之间的距离为第五距离,第一距离、第二距离、第三距离、第四距离和第五距离中第一距离、第二距离和第五距离为最小值,则第一位置、第四位置和第五位置中的任意一位置作为为最靠近第一边缘的位置,并将第一位置、第四位置和第五位置中的任意一位置确定为第一边缘处的文档内容位置。 [0067] For example, participation 2B, the edge for a first detecting position at a first edge to the color change of greater than a predetermined threshold value defined in a first position, second position, third position, fourth position and the fifth position, the distance between the first position and the first edge by a first distance, the distance between the second position the first edge of the second distance, the distance between the third position and the first edge of the third distances between the fourth location of the first edge of a fourth distance, the distance between the fifth position from the fifth to the first edge, a first distance, second distance, third distance, and fourth distance fifth distance of the first distance, the second distance and the fifth distance is the minimum value, a first position, the fourth position and a fifth position at any position as for the location closest to the first edge, and a first an arbitrary position, fourth position and fifth position is determined as the content of the document at the position of the first edge.

[0068]需要说明的是,本发明不对文档内容做具体限定,例如,例如文档内容可以包含文字,也可以包含图片,或者也可以包含表格等等。 [0068] Incidentally, the document does not specifically define the present invention is made, e.g., such as document content may include text, images may also comprise, or may comprise a table and the like.

[0069]在一些可能的实施方式中,剪裁部分确定模块310包括直线确定模块310A和应剪裁掉部分确定模块310B,直线确定模块310A被配置为:沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线;应剪裁掉部分确定模块310B被配置为:将每个边缘处的第一直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 [0069] In some possible embodiments, the section determination module 310 includes a cut line determination module should be trimmed portions 310A and 310B determination module, the line determination module 310A is configured to: make the position along each edge of the document content of the document page the first straight line parallel to a respective edge; should be trimmed portion 310B determination module is configured to: first straight line at each edge and the corresponding edge of the portion to be trimmed between a respective portion of edge determination.

[0070]例如:参阅图2C所示,针对第一边缘,文档内容位置为第一位置、第二位置和/或第五位置中的任意一位置,以文档内容位置为第一位置为例说明,沿第一位置做出平行于第一边缘的第一直线,第一直线和第一边缘之间的部分为应剪裁掉的部分。 [0070] For example: Referring to FIG. 2C, for a first edge, a first position of the document content location, a second position and / or a fifth position in any position, the position of the document content to the first position as an example to make a first position in a first direction parallel to the straight first edge, between a first straight line and the first edge portion is a portion to be trimmed. 此处是以第一边缘为例进行说明针对第一边缘应剪裁掉的部分,确定第二边缘、第三边缘和第四边缘相对应的应剪裁掉的部分,与确定第一边缘相对应的应剪裁掉的部分类似,在此不再进行详述。 Here is an example will be described for a first edge of a first edge portion to be trimmed, determining a second edge, a third edge and a fourth edge corresponding to the portion to be trimmed, and determining a first edge corresponding to the It should cut off part of the similar, which is not described in detail.

[0071]上述描述的是直接将第一直线与相应的边缘之间的部分剪裁掉,在实际应用中,进一步的,为了实现更好的视觉效果,可以将第一直线向相应边缘移动,将移动后的位置得到的直线和相应的边缘之间的部分剪裁掉,这样,文档内容位置和相应边缘之间有留白边距,可以实现更好的视觉效果。 [0071] The above description is directly between the first linear portion and the corresponding edge trimmed, in practical applications, further, in order to achieve a better visual effect, the first linear movement to the respective edges , the portion between the position and movement of a straight line obtained corresponding edge trimmed, so that there is between the blank margin, the content of the document and the corresponding edge position, allows for better visual effect.

[0072]因此,在一些可能的实施方式中,直线确定模块310A被配置为:沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线;剪裁部分确定模块310还包括直线平移模块31OC,被配置为:将每个边缘处的第一直线向相应边缘平移预先定义的留白边距,以得到相应边缘处的第二直线;应剪裁掉部分确定模块310B被配置为:将每个边缘处的第二直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 [0072] Thus, in some possible embodiments, the line determination module 310A is configured to: make a first straight line parallel to the respective edge of each document page in the document at the position of the edge content; determining module 310 further cut portion includes a linear translation module 31ºC, configured to: blank margin at each edge of the first straight edges to the respective predefined translation, to obtain the corresponding edge of the second straight line; trimmed portion determines that the module should be 310B configured to: determine the corresponding trimmed edges should be between the second straight portion at each edge of the respective edge.

[0073]仍以图2C所示的例子为例进行说明,将第一边缘处的第一直线向第一边缘平移预先定义的留白边距,以得到相应边缘处的第二直线;以及,将第二直线与第一边缘之间的部分确定为相应边缘处应剪裁掉的部分,参阅图2D所示。 [0073] The example of FIG. 2C still as an example, a first edge of the first linear translation of the pre-defined margin blank first edge, to give the corresponding edge of the second straight line; and , the second straight portion between the first edge is determined to be trimmed at the respective edge portion, as shown in FIG refer to 2D.

[0074]在一些可能的实施方式中,为了在有限的屏幕中,最大限度的展现文档内容,提高屏幕资源的利用率,及提升用户体验,放大显示模块330被配置为:根据剪裁后的文档页面的宽度或高度相对于文档页面的原始大小的宽度或高度的比值,将剪裁后的文档页面等比例地进行放大显示。 [0074] In some possible embodiments, for a limited screen, maximize the display of the document content, improve the utilization of resources of the screen, and enhance the user experience, enlarged display module 330 is configured to: cut according to the document page width or height with respect to the ratio of the width or height of the document page original size, after trimming the document pages displayed enlarged proportionately. 这样,屏幕中初始显示剪裁掉部分的区域也显示文档内容,最大程度地利用了屏幕的面积,因此,提高了屏幕资源的利用率,同时,将剪裁后的文档页面等比例地进行放大显示的话,还可以避免在放大PDF文档的过程中出现错误或者造成用户阅读困难的缺陷。 Thus, the screen is initially displayed area portion trimmed also displaying document content, maximum utilization of the area of ​​the screen, thus, improve the utilization of screen resources while the trimmed document page proportionately enlarged display, then also avoid the error occurred during the amplification PDF document or reading difficulties caused by the user's defects.

[0075]本发明实施例中,可以先获取文档内容位置;根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及将剪裁后的文档页面放大到文档页面的原始大小进行显示,在该方案中,将文档页面内容进行剪裁,最终在有限的屏幕资源中显示的是剪裁后的文档页面,而无需将文档页面中的应剪裁掉的部分还在屏幕中显示,减少了应剪裁掉的部分对屏幕资源的占用,最大程度地利用了屏幕的面积,从而显著地避免了对屏幕资源的浪费,同时,本发明是将剪裁后的文档页面放大到文档页面的原始大小进行显示,不是通过TOF重排技术来放大TOF文档,因此,还可以避免在放大TOF文档的过程中出现错误或者造成用户阅读困难的缺陷。 [0075] The embodiments of the present invention, the content of the document may first acquire position; position according to the document content, the document page is determined to be four edges of the trimmed portions; be trimmed according to the determined portion for the document pages cut; and the trimmed document page magnification to document pages original size is displayed, in this scenario, the document page content cut, the final show of the limited screen real estate is the document page after trimming, without the need to document pages to be cut off part of the screen is still displayed reduced should cut off part of the occupation of the screen resources, maximize the use of the area of ​​the screen, thereby significantly avoid the waste of screen real estate, and at the same time, the present invention is an enlarged document pages trimmed to the size of the original document page is displayed, the rearrangement is not to enlarge TOF TOF technique documents, thus also avoid an error occurs during document TOF amplification or cause a user difficulty reading defect.

[0076] 示例性设备 [0076] The exemplary apparatus

[0077]在介绍了本发明示例性实施方式的方法和装置之后,接下来,介绍根据本发明的另一示例性实施方式的用于文档优化显示的装置。 [0077] Following the introduction of the method and apparatus of the exemplary embodiment of the present invention, next, the document describes a device for optimized display according to another exemplary embodiment of the present invention.

[0078]所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。 [0078] Those skilled in the art will appreciate that various aspects of the present invention may be embodied as a system, method or program product. 因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。 Accordingly, aspects of the present invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment of hardware and software in combination, herein collectively referred to as "circuit", "module" or "system."

[0079]在一些可能的实施方式中,根据本发明的用于即时通信应用的装置可以至少包括至少一个处理单元、以及至少一个存储单元。 [0079] In some possible embodiments, the apparatus according to the present invention, instant messaging application may comprise at least at least one unit, and at least one memory cell processing. 其中,所述存储单元存储有程序代码,当所述程序代码被所述处理单元执行时,使得所述处理单元执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的用于文档优化显示方法中的步骤。 Wherein said storage unit stores a program code, when the program code by the processing unit, cause the processing unit to execute the above-described present specification "exemplary" section described according to various exemplary embodiments of the present invention the steps of a method for optimizing the document display mode. 例如,所述处理单元可以执行如图2A中所示的步骤200:获取文档内容位置;步骤210:根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;步骤220:根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及步骤230:将剪裁后的文档页面放大到文档页面的原始大小进行显示。 For example, the processing unit may perform the step 200 shown in Fig. 2A: obtaining document content location; Step 210: The position of the document content, the document page is determined to be four edges of the trimmed portions; Step 220: The a portion to be trimmed determined for tailoring document page; and step 230: trimming the enlarged document page to the size of the original document page for display.

[0080]下面参照图4来描述根据本发明的这种实施方式的用于文档优化显示的装置10。 [0080] Referring to Figure 4 apparatus 10 will be described according to the document for the optimization of this embodiment of the present invention shown. 图4显示的用于文档优化显示的装置10仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。 Optimization means 4 for the document shown in FIG. 10 is only an example, and the scope of use or functionality without any limitation embodiment embodiment of the present invention.

[0081]如图4所示,用于文档优化显示的装置10以通用计算设备的形式表现。 [0081] As shown in Fig 4, means for displaying the document 10 to optimize the performance of general-purpose computing device in the form. 用于文档优化显示的装置10的组件可以包括但不限于:上述至少一个处理单元16、上述至少一个存储单元28、连接不同系统组件(包括存储单元28和处理单元16)的总线18。 Assembly for optimizing the document display apparatus 10 may include but are not limited to: the at least one processing unit 16, the at least one storage unit 28, a bus that couples various system components (including the storage unit 28 and processing unit 16) is 18.

[0082]总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器、外围总线、图形加速端口、处理器或者使用多种总线结构中的任意总线结构的局域总线。 [0082] The bus 18 several types of bus structures represented by one or more, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or local bus using any of a variety of bus architectures bus structures .

[0083]存储单元28可以包括易失性存储器形式的可读介质,例如随机存取存储器(RAM)23和/或高速缓存存储器32,还可以进一步只读存储器(R0M)34。 [0083] The storage unit 28 may include volatile memory in the form of readable media, such as random access memory (RAM) 23 and / or cache memory 32, may further read-only memory (R0M) 34.

[0084]存储单元28还可以包括具有一组(至少一个)程序模块42的程序/实用工具40,这样的程序模块42包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。 [0084] The storage unit 28 may further include a set (at least one) of program modules 42 / utility 40, other program modules 42 include, but are not limited to: operating system, one or more application programs, other program modules, and program data, or some combination of each of these examples may include network environment.

[0085]用于文档优化显示的装置10也可以与一个或多个外部设备14(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该用于文档优化显示的装置10交互的设备通信,和/或与使得该用于文档优化显示的装置10能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。 [0085] Optimization for the document display means 10 can also be optimized with one or more external devices 14 (e.g. a keyboard, pointing device, Bluetooth device, etc.) communicate with one or more further enable a user to the document communication device 10 interacting with the display device, and / or the document such that the device 10 for optimizing the display can be any device (e.g. a router, modem, etc.) a communication with the one or more other computing devices. 这种通信可以通过输入/输出(I/O)接口22进行。 Such communication may be 22 through input / output (I / O) interfaces. 并且,用于文档优化显示的装置10还可以通过网络适配器21与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。 And means for optimizing the document 10 may also be displayed through a network adapter 21 and one or more networks (e.g. a local area network (LAN), a wide area network (WAN) and / or a public network such as the Internet) communication. 如图所示,网络适配器21通过总线18与用于文档优化显示的装置10的其它模块通信。 As shown, the apparatus 21 communicates with the other document used to optimize the display of the network adapter 18 via the bus 10. 应当明白,尽管图中未示出,可以结合用于文档优化显示的装置10使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。 It should be understood, although not shown, the document may incorporate means for optimizing display 10 using other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and other data backup storage systems.

[0086] 示例性程序产品 [0086] Exemplary program product

[0087]在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的用于文档优化显示的方法中的步骤,例如,所述终端设备可以执行如图2A中所示的步骤200:获取文档内容位置;步骤210:根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分;步骤220:根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及步骤230:将剪裁后的文档页面放大到文档页面的原始大小进行显示。 [0087] In some possible embodiments, the various aspects of the present invention may take the form of a program product, comprising program code which, when said program product is run on a terminal device, the program code for causing the terminal device to perform steps of a method for optimizing various documents exemplary embodiment of the present invention is shown in the present specification, the above-described "exemplary" section described in, e.g., the terminal device may perform FIG 2A shown in step 200: obtaining the document content location; step 210: according to the document content location, determining a document page four edges should be cut off portion; step 220: the trimmed portion should be determined for the document clipping pages; and step 230: trimming the enlarged document page to the size of the original document page for display.

[0088]所述程序产品可以采用一个或多个可读介质的任意组合。 [0088] The program product may employ any combination of one or more readable media. 可读介质可以是可读信号介质或者可读存储介质。 Readable medium may be readable signal medium or a readable storage medium. 可读存储介质例如可以是一一但不限于一一电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。 Readable storage medium may be but is not limited to eleven eleven electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. 可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(R0M)、可擦式可编程只读存储器(EPR0M或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。 Readable storage medium More specific examples (a non-exhaustive list) comprising: an electrical connection having one or more wires, a portable disk, a hard disk, a random access memory (RAM), read-only memory (R0M), erasable programmable Read Only memory (EPR0M or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, magnetic storage device, or any suitable combination of the foregoing.

[0089]如图5所示,描述了根据本发明的实施方式的用于文档优化显示的程序产品50,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。 [0089] As shown in FIG. 5, described according to the document program product for optimizing an embodiment of the present invention display 50, which may employ a portable compact disc read-only memory (CD-ROM), and comprises a program code, and may be a terminal device, such as running on a personal computer. 然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。 However, program product of the present invention is not limited thereto, in this document, the readable storage medium may be any tangible medium that can contain or store a program, the program may be an instruction execution system, apparatus, or device for use by or in connection with.

[0090]可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。 [0090] readable signal medium may include, in baseband or as part of a data signal propagated carrier, wherein the carrier-readable program code. 这种传播的数据信号可以采用多种形式,包括一一但不限于一一电磁信号、光信号或上述的任意合适的组合。 Such a propagated data signal may take many forms, including-but not limited to eleven suitable combination of electromagnetic, optical, or any of the above. 可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。 Readable signal medium may be any computer readable medium readable storage medium other than the readable medium that can communicate, propagate, or transport to an instruction execution system, apparatus, or device for use by or in connection with the use of the program.

[0091]可读介质上包含的程序代码可以用任何适当的介质传输,包括一一但不限于一一无线、有线、光缆、RF等等,或者上述的任意合适的组合。 [0091] Program code readable medium may be transmitted using any appropriate medium, including but not limited to eleven eleven to wireless, wireline, optical fiber cable, the RF and the like, or any suitable combination of the above.

[0092]可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言一诸如Java、C++等,还包括常规的过程式程序设计语言一诸如“C”语言或类似的程序设计语言。 [0092] may be any combination of one or more programming languages ​​to write program code for performing the operations of the present invention, the programming language, including an object oriented programming language such as a Java, C ++, etc., and conventional the process of programming languages ​​such as a "C" language or similar programming languages. 程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。 The program code may execute entirely on the user computing device, partly on the user equipment performs, as a stand-alone software package, partly on a remote computing device on a user computing device or entirely on the remote computing device or server on execution. 在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络一一包括局域网(LAN)或广域网(WAN) —连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。 In the latter scenario, the remote computing device, the remote computing device may-including through any type of network, a local area network (LAN) or a wide area network (WAN) - connected to the user computing device, or may be connected to an external computing device (e.g., using an Internet Service provider to connect to the Internet).

[0093]应当注意,尽管在上文详细描述中提及了用于文档优化显示的设备的若干装置或子装置,但是这种划分仅仅并非强制性的。 [0093] It should be noted that although a number of device or sub-device means for optimizing the document displayed in the detailed description above, but this division is not only mandatory. 实际上,根据本发明的实施方式,上文描述的两个或更多装置的特征和功能可以在一个装置中具体化。 In fact, according to the embodiment of the present invention, two or more features and functions of the devices described above may be embodied in one device. 反之,上文描述的一个装置的特征和功能可以进一步划分为由多个装置来具体化。 Conversely, the features and functions of a device described above may be further divided by the plurality of apparatus embodied.

[0094]此外,尽管在附图中以特定顺序描述了本发明方法的操作,但是,这并非要求或者暗示必须按照该特定顺序来执行这些操作,或是必须执行全部所示的操作才能实现期望的结果。 [0094] In addition, although the method of operation depicted in the drawings in a particular order to the present invention, however, it does not require or imply that these operations must be performed in accordance with the predetermined order, or all illustrated operations be performed must achieve the desired the result of. 附加地或备选地,可以省略某些步骤,将多个步骤合并为一个步骤执行,和/或将一个步骤分解为多个步骤执行。 Additionally or alternatively, some steps may be omitted, combined into a plurality of step steps, and / or a step of decomposing into a plurality of steps.

[0095]虽然已经参考若干具体实施方式描述了本发明的精神和原理,但是应该理解,本发明并不限于所公开的具体实施方式,对各方面的划分也不意味着这些方面中的特征不能组合以进行受益,这种划分仅是为了表述的方便。 [0095] While there has been described with reference to several embodiments and spirit of the principles of the invention, it is to be understood that the present invention is not limited to the specific embodiments disclosed, the division does not mean that aspects of the various aspects of these features can not be combined for the benefit, this division is expressed only for the convenience. 本发明旨在涵盖所附权利要求的精神和范围内所包括的各种修改和等同布置。 Various modifications of the present invention is intended to cover in the appended claims the spirit and scope and equivalent arrangements included.

Claims (10)

  1. 1.一种文档优化显示的方法,包括: 获取文档内容位置; 根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分; 根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及将剪裁后的文档页面放大到文档页面的原始大小进行显示。 1. A method of optimizing the document display, comprising: obtaining document content location; position according to the document content, the document page is determined to be four edges of the trimmed portions; be trimmed according to the determined portion for the document page tailoring; and trimmed enlarged document page to the size of the original document page is displayed.
  2. 2.如权利要求1所述的方法,其中所述获取文档内容位置的步骤包括: 分别从文档页面四个边缘向对应页面中心线的方向检测页面上的色值变化情况;以及将文档页面每个边缘处检测到的大于预先定义的阈值的色值变化的位置中最靠近相应边缘的位置确定为相应边缘处的文档内容位置。 And each of the document pages; respectively from the four edges of the document page is changed to the color value of the corresponding page on the page where the center line direction detection: 2. The method according to claim 1, wherein the step of obtaining the document content location comprises detected at the position of edges is greater than a pre-defined threshold value change of color in the edge closest to the corresponding position of the respective determined position of the edge of the document content.
  3. 3.如权利要求1所述的方法,其中所述根据所述文档内容位置确定文档页面四个边缘处应剪裁掉的部分的步骤包括: 沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线;以及将每个边缘处的第一直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 3. The method according to claim 1, wherein the determining four document pages to be trimmed at the edges of the step portion according to the document content location comprises: making parallel to each document in the document page content at the position of the edge the corresponding edge of the first straight line; and the portion between the first straight line at each edge corresponding to the edge determined to be trimmed at the respective edge portion.
  4. 4.如权利要求1所述的方法,其中所述根据所述文档内容位置确定文档页面四个边缘处应剪裁掉的部分的步骤包括: 沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线; 将每个边缘处的第一直线向相应边缘平移预先定义的留白边距,以得到相应边缘处的第二直线;以及将每个边缘处的第二直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 4. The method according to claim 1, wherein the determining four document pages to be trimmed at the edges of the step portion according to the document content location comprises: making parallel to each document in the document page content at the position of the edge corresponding to the first straight edge; a first straight blank margin at each edge to a corresponding edge of the pre-defined translation, to obtain the corresponding edge of the second straight line; and a second edge of each and an edge portion between the respective determined straight line at the respective edge portions to be trimmed.
  5. 5.如权利要求1至4中的任一项所述的方法,其中所述将剪裁后的文档页面放大到文档页面的原始大小进行显示的步骤包括: 根据剪裁后的文档页面的宽度或高度相对于文档页面的原始大小的宽度或高度的比值,将剪裁后的文档页面等比例地进行放大显示。 5. The method according to any one of claims 1 to 4, wherein after trimming the enlarged document page to the size of the original document page for display comprising: the document page width or height of the trimmed with respect to the ratio of the width or height of a page of the original document size, the document page after trimming proportionately enlarged display.
  6. 6.一种文档优化显示的装置,包括: 文档内容位置获取模块,被配置为获取文档内容位置; 剪裁部分确定模块,被配置为根据所述文档内容位置,确定文档页面四个边缘处应剪裁掉的部分; 剪裁模块,被配置为根据所确定的应剪裁掉的部分,对于文档页面进行剪裁;以及放大显示模块,被配置为将剪裁后的文档页面放大到文档页面的原始大小进行显示。 A device for displaying document optimization, comprising: obtaining document content location module configured to acquire location document content; clipped portion determination module configured to position according to the document content, the document page is determined to be four cut edges off portion; clipping module configured to partially be trimmed in accordance with the determined, is clipped to the document page; and enlarged display module configured to be trimmed document page magnification to the document page original size display.
  7. 7.如权利要求6所述的装置,其中所述文档内容位置获取模块包括: 色值检测模块,被配置为分别从文档页面四个边缘向对应页面中心线的方向检测页面上的色值变化情况; 文档内容位置确定模块,被配置为将文档页面每个边缘处检测到的大于预先定义的阈值的色值变化的位置中最靠近相应边缘的位置确定为相应边缘处的文档内容位置。 7. The apparatus according to claim 6, wherein the position of the document content acquisition module comprises: a color value detection module configured to change respectively from four edges of the document page corresponding to the color value of the center line direction detecting page page situation; document content location determination module configured to position the color value variation is greater than a pre-defined threshold is detected at the edge of each document page to determine the respective edges closest to the corresponding position at the edge of the document content.
  8. 8.如权利要求6所述的装置,其中所述剪裁部分确定模块包括: 直线确定模块,被配置为沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线; 应剪裁掉部分确定模块,被配置为将每个边缘处的第一直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 8. The apparatus according to claim 6, wherein said cut portion determination module comprises: determining linear module configured along the content of the document pages of each document at the position of the edge is made parallel to the first straight edge of the respective; It should be clipped portion determination module configured to determine the corresponding trimmed edges should be between the first linear portion of each edge of the respective edge.
  9. 9.如权利要求6所述的装置,其中所述剪裁部分确定模块包括: 直线确定模块,被配置为沿文档页面每个边缘处的文档内容位置做出平行于相应边缘的第一直线; 直线平移模块,被配置为将每个边缘处的第一直线向相应边缘平移预先定义的留白边距,以得到相应边缘处的第二直线;以及应剪裁掉部分确定模块,被配置为将每个边缘处的第二直线与相应边缘之间的部分确定为相应边缘处应剪裁掉的部分。 9. The apparatus according to claim 6, wherein said cut portion determination module comprises: determining linear module configured to position at the edge of the document content of each page in the document to make the first straight line parallel to the respective edge; linear translation module configured to blank margin at each edge of the first straight edges to the respective predefined translation, to obtain the corresponding edge of the second straight line; and a portion to be trimmed determination module configured to the second straight portion between each of the respective edges of the edge determined to be trimmed at the respective edge portion.
  10. 10.如权利要求6至9中的任一项所述的装置,其中所述放大显示模块被配置为: 根据剪裁后的文档页面的宽度或高度相对于文档页面的原始大小的宽度或高度的比值,将剪裁后的文档页面等比例地进行放大显示。 10. The device according to any one of claims 6-9, wherein said enlarged display module is configured to: according to the document page width or height trimmed to the width or height of the original size of the document page ratio after trimming the document pages displayed enlarged proportionately.
CN 201510937873 2015-12-15 2015-12-15 Method and device for optimally displaying document CN105528333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510937873 CN105528333A (en) 2015-12-15 2015-12-15 Method and device for optimally displaying document

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510937873 CN105528333A (en) 2015-12-15 2015-12-15 Method and device for optimally displaying document

Publications (1)

Publication Number Publication Date
CN105528333A true true CN105528333A (en) 2016-04-27

Family

ID=55770570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510937873 CN105528333A (en) 2015-12-15 2015-12-15 Method and device for optimally displaying document

Country Status (1)

Country Link
CN (1) CN105528333A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059459A1 (en) * 2000-08-31 2002-05-16 Janakiram Koka System and method of sending chunks of data over wireless devices
US20060271847A1 (en) * 2005-05-26 2006-11-30 Xerox Corporation Method and apparatus for determining logical document structure
CN101128816A (en) * 2005-03-04 2008-02-20 微软公司 Method and system for displaying and interacting with paginated content
CN101609661A (en) * 2008-06-19 2009-12-23 富士施乐株式会社 Information display apparatus, information displaying method, and computer readable medium
CN101820489A (en) * 2009-02-27 2010-09-01 佳能株式会社 Image processing apparatus and image processing method
CN101911006A (en) * 2007-10-24 2010-12-08 造型逻辑有限公司 Electronic document reader
CN103150291A (en) * 2013-01-31 2013-06-12 北京小米科技有限责任公司 File trimming method, terminal and server
CN103970723A (en) * 2014-05-16 2014-08-06 山西大学 Electronic document screen display method based on image detecting and cutting
CN104094586A (en) * 2012-01-31 2014-10-08 夏普株式会社 Image processing device, image formation device, image processing method, program, and memory medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020059459A1 (en) * 2000-08-31 2002-05-16 Janakiram Koka System and method of sending chunks of data over wireless devices
CN101128816A (en) * 2005-03-04 2008-02-20 微软公司 Method and system for displaying and interacting with paginated content
US20060271847A1 (en) * 2005-05-26 2006-11-30 Xerox Corporation Method and apparatus for determining logical document structure
CN101911006A (en) * 2007-10-24 2010-12-08 造型逻辑有限公司 Electronic document reader
CN101609661A (en) * 2008-06-19 2009-12-23 富士施乐株式会社 Information display apparatus, information displaying method, and computer readable medium
CN101820489A (en) * 2009-02-27 2010-09-01 佳能株式会社 Image processing apparatus and image processing method
CN104094586A (en) * 2012-01-31 2014-10-08 夏普株式会社 Image processing device, image formation device, image processing method, program, and memory medium
CN103150291A (en) * 2013-01-31 2013-06-12 北京小米科技有限责任公司 File trimming method, terminal and server
CN103970723A (en) * 2014-05-16 2014-08-06 山西大学 Electronic document screen display method based on image detecting and cutting

Similar Documents

Publication Publication Date Title
US20130339830A1 (en) Optimized document views for mobile device interfaces
US20060197782A1 (en) Method and system for zooming in and out of paginated content
US20140258849A1 (en) Automatic Alignment of a Multi-Dimensional Layout
US20120320073A1 (en) Multiple Spatial Partitioning Algorithm Rendering Engine
US20120096344A1 (en) Rendering or resizing of text and images for display on mobile / small screen devices
US20130263047A1 (en) Methods and apparatus for providing graphical view of digital content
US20130185633A1 (en) Low resolution placeholder content for document navigation
US20130191715A1 (en) Borderless Table Detection Engine
US20130080884A1 (en) Semantic zoom of a document
US20120235933A1 (en) Mobile terminal and recording medium
US20130167078A1 (en) Screen management system
US20140100923A1 (en) Natural language metric condition alerts orchestration
US20120246573A1 (en) Systems and methods of copying data
US20090313574A1 (en) Mobile document viewer
US20130152010A1 (en) Multiple tab stack user interface
US20140100901A1 (en) Natural language metric condition alerts user interfaces
US20070192686A1 (en) Figure sizing and positioning on dynamic pages
US20130124952A1 (en) Techniques for the automatic animation of document content
US20130332475A1 (en) Transforming data into consumable content
US20080098319A1 (en) Method and apparatus for interacvtive multimedia author tool and dynamic toolbar
US20130339889A1 (en) Enhanced copy and paste between applications
US20130205200A1 (en) Formula Detection Engine
US20130086461A1 (en) Techniques for selection and manipulation of table boarders
US20130061124A1 (en) Managing forms in electronic documents
US20100182321A1 (en) Methods and Systems for Displaying Graphical Markers in a Mixed Box Chart

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
COR Change of bibliographic data