[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CA2479593C - Method for paginating a document structure of a document for viewing on a mobile communication device - Google Patents

Method for paginating a document structure of a document for viewing on a mobile communication device Download PDF

Info

Publication number
CA2479593C
CA2479593C CA2479593A CA2479593A CA2479593C CA 2479593 C CA2479593 C CA 2479593C CA 2479593 A CA2479593 A CA 2479593A CA 2479593 A CA2479593 A CA 2479593A CA 2479593 C CA2479593 C CA 2479593C
Authority
CA
Canada
Prior art keywords
document
graph structure
server
page
dom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CA2479593A
Other languages
French (fr)
Other versions
CA2479593A1 (en
Inventor
Jianwei Yuan (Oliver)
Olav A. Sylthe
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.)
BlackBerry Ltd
Original Assignee
BlackBerry 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 BlackBerry Ltd filed Critical BlackBerry Ltd
Priority to CA2479593A priority Critical patent/CA2479593C/en
Publication of CA2479593A1 publication Critical patent/CA2479593A1/en
Application granted granted Critical
Publication of CA2479593C publication Critical patent/CA2479593C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2895Intermediate processing functionally located close to the data provider application, e.g. reverse proxies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/561Adding application-functional data or data for application control, e.g. adding metadata

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A process for transmitting a document from a server to a mobile device on a per page basis, comprising building a graph structure within the server representing a map of the document, transmitting a page size limit from the mobile device to the server indicative of the size of a single page of the document to be displayed by the mobile device, traversing and paginating the graph structure into successive pages based on the page size limit, caching the pages within the server, and transmitting the successive pages from the server to said the mobile device for display by said the mobile device.

Description

2 Method for Paginating a Document Structure of a Document for Viewing on a Mobile Communication Device f=ield of the Invention [0001] The following is directed in general to displaying content on mobile communication devices, and more particularly to a method for viewing a selected portion of a document on a mobile communication device without having to retrieve the full document onto the device.
Background of the Invention [0002] Mobile communication devices are becoming increasingly popular for business and personal use due to a relatively recent increase in number of services and features that the devices and mobile infrastructures support. Handheld mobile communication devices, sometimes referred to as mobile stations, are essentially portable computers having wireless capability, and come in various forms. These include Personal Digital Assistants (PDAs), cellular phones and smart phones. While their reduced size is an advantage to portability, bandwidth and processing constraints of such devices present challenges to the downloading and viewing of documents, such as word processing documents, tables and images.
[0003] Electronic documents are produced using various computer programs, such as word processors, spreadsheet programs, financial software, and presentation software. In addition to text, such documents contain structural and property information such as paragraph indentation, text color and table size, etc.
[0004] The downloading of an entire document, including structural and property information, to a mobile communication device consumes a large amount of bandwidth, especially when the document is very large. In addition, viewing even a portion of such a downloaded document on the device consumes substantial device CPUlmemory/battery resources.
[0005] For example, if a user wishes to view only a paragraph in a section in the middle of a 400-page document, the section that contains some of the default properties for the paragraph, or even the entire document, must be transmitted to the mobile communication device. Yet, the user only views a small portion of the document on the mobile communication device.
Summary of the Invention
[0006] According to an aspect of the invention, a method is provided for viewing a selected portion of a document on a mobile communication device without having to retrieve the full document onto the device. In one embodiment, a server pagination function is used for viewing selected portions of a document on a mobile communication device by retrieving the document page-by-page based on user requests at the mobile device. This allows the user to view only a small part of the document to determine if additional document content is required, and the user's document viewing experience is similar to that when using a desktop PC. More importantly, bandwidth usage and device power consumption are minimized by eliminating unnecessary document content transmission to the device.
[0007] Additional aspects and advantages will be apparent to a person of ordinary skill in the art, residing in the details of construction and operation as more fully hereinafter described and claimed, reference being had to the accompanying drawings.
Brief Descriation of the Drawincrs
[0008] A detailed description of the preferred embodiment is set forth in detail below; with reference to the following drawings, in which:
Figure 1 is a block diagram of a network environment in which the preferred embodiment may be practiced;
Figure 2 is a tree diagram showing the basic structure of a Document Object Model (DOM) used in the preferred embodiment;
Figure 3 shows the top-level of the DOM structure in Figure 2;
Figure 4 shows an exemplary DOM structure for a word processing document;
Figure 5 shows an exemplary DOM structure for a table document;
Figure 6- shows an exemplary DOM structure for a word processing document containing an image subdocument; and Figure 7 is a flowchart showing document DOM structure construction and pagination according to the preferred embodiment.
Detailed Description of the Preferred Embodiment
[0009] With reference to Figure 1, network environment 10 is shown in which the preferred embodiment may be practiced. Network environment 10 includes mobile devices 12 communicating via a wireless network 14 to a server 28 for downloading document attachments to the mobile devices 12. While only one server 28 is shown for illustration purposes, a person of skill in the art will understand that network environment 10 could have many such servers for hosting web sites or graphic download sites, providing access to picture files such as JPEG, TIFF, BMP, PNG, SGI, MP4,MOV, GIF, SVGS etc. As would be understood by one of ordinary skill in the art, wireless networks 14 include GSM/GPRS, CDPD, TDMA, iDEN Mobitex, DataTAC networks, or future networks such as EDGE or UMTS, and broadband networks like Bluetooth and variants of 802.11
[0010] A connection to a fixed service requires special considerations, and may require special permission as authorized through a Network Access Point (NAP) 16. For generic services, such as web access, a proxy-gateway or Network Address Translator (NAT) 18 may be provided so that a network operator can control and bill for the access. NATs 18 enable management of a limited supply of public Internet addresses for large populations of wireless mobile devices. Solutions offered by a proxy-gateway or NAT 18 often involve a complex infrastructure, and thus may be managed by value-added service providers (VASPs), which provide, for instance, WAP gateways, WAP proxy gateway solutions, multi-media messaging servers (MMS) and Internet Multi-Media Services (IMS).
[0011] Private Intranet services 26 may require an associated Private Intranet Proxy Gateway 24 for accessing content on server 28. Such private services include WML access to corporate mail systems, HTML access to CRM databases, or any other services that deliver information as formatted data with links and URLs embedded. As shown, it is possible that a private service 26 may be connected directly to the wireless network 14, as opposed to being connected via Internet 20.
[0012] Referred to throughout this document, for the purpose of describing the preferred embodiment, is the structure of a Document Object Model (DOM) for a document attachment to be viewed on a mobile device 12.
[0013] The attachment server 28 uses a file-parsing distiller in the preferred embodiment, for a specific document type, to build an in-memory Document Object Model (DOM) structure representing an attachment of that document type. The document DOM
structure is stored in a memory cache of server 28, and can be iterated bi-directionally.
[0014] As shown in Figure 2, the graph-based document DOM structure consists of nodes and leaves. The nodes serve as the parents of leaves and nodes, while leaves are end points of a branch in the graph. Each node and leaf can have a set of attributes to specify its own characteristics. For example, a paragraph node can contain attributes to specify its alignment, style, entry of document TOC, etc. In addition, each of the nodes and the leaves has a unique identifier, called a DOM ID, to identify itself in the document DOM

structure.
[0015] The document DOM structure is divided into three parts: top-level, component and references. The top level refers to the document root structure, while the main document is constructed in the component and the references represent document references to either internal or external sub-document parts. The following paragraphs examine each part in detail.
[0016] The root node of a document DOM structure, referred to as "Document", contains several children nodes, referred to as "Contents", which represent different aspects of the document contents. Each "Contents" node contains one or multiple "Container"
nodes used to store various document global attributes. The children of the "Container"
nodes are components, which store the document structural and navigational information.
When the attachment server 28 builds the DOM structure for an attachment file for the first time, the top-level structure is a single parent-child chain as shown in Figure 3:
[0017] Three types of components are defined by the attachment server 28: text components, table components and image components, which represent text, tables and images in a document, respectively. The text and table components are described in detail below, and the image component structure is identical.
[0018] A component consists of a hierarchy of command nodes. Each command represents a physical entity, a property, or a reference defined in a document. For the text component, the physical entity commands are page, section, paragraph, text segments, comments, footnote and endnote commands, which by name define the corresponding entity contained in a document. The property commands for the text component are font, text color, text background color, hyperlink startlend and bookmark commands. The text component has only one reference command, referred to as the text reference command, which is used to reference a subdocument defined in the main body of a document. Usually, the children of a text component are page or section command nodes that, in tum, comprise a set of paragraph command nodes. The paragraph command can contain one or multiple nodes for the remaining command types.
[0019] Using the following sample text document, the corresponding document DOM
structure is shown in Figure 4:
First paragraph.
Second paragraph with bold and red text.
[0020] As Figure 4 demonstrates, the section command, which is the child of the text component, consists of two paragraph commands. The first paragraph command contains one text segment command and the text content for that paragraph is added as an attribute to the text segment command. The second paragraph command has a relatively more complex structure, as the text properties in the paragraph are much richer.
Each time a text property (font, text color, etc) changes, a corresponding text property command is created and the change value is added to that command as an attribute. The subsequent text segment command records the text with the same text property as an attribute.
As document structure gets richer and more complex, more commands of corresponding types are created and the document properties are added as attributes to those commands.
[0021] The table component has the same three types of commands as the text component, but different command names. The document DOM structure for the sample table document below is shown in Figure 5:
Cel! One Cell Two ~ Cell Three Cell Four
[0022] As shown in the Figure 5, the table component has physical entity type commands of table, tablerow and tablecell, where the tablecell command can contain all available commands for the text component. In the example above, the first child TabIeRow command of the table command has an attribute "Indexp defined by value of 0.
This indicates that the indicated table row is the first one defined in the table. The attribute of the leftmost table cell command in Figure 5 has the same meaning.
[0023, A document sometimes contains subdocuments, for example images, tables, text boxes etc. The DOM structure set forth herein uses a reference command to point to the graph of such subdocuments. Thus, for the following sample document, the attachment server 28 generates the DOM structure shown in Figure 6:
This document has subdocument of images like this on .
Second paragraph contains the same image (0024, The structure shown in Figure 6 is identical to that discussed above in connection with Figures 4 and 5, except for the attributes of the two reference commands.
The attachment server 28 constructs the image in "Sample Three" as a separate image component, which contains all of the image data in its own DOM hierarchy. In the DOM
structure for the main document, the values of the "Ref' attributes of those two reference commands point to the image component, as indicated by the dashed lines, such that the DOM structure connects together all parts of the document.
[0025] Having described the document DOM structure used to implement an embodiment of the invention, a detailed discussion will now be provided of a pagination function or method according to the preferred embodiment.
[0026] The pagination function is a client and server side operation. Figure 7 shows the processing steps, from which it will be noted that the server 28 uses a map in memory for document DOM cache storage and the key to the map is the document ID.
Initially, when the user of a mobile communication device 12 sends a request to the server 28 to view a document, the device 12 sends two attributes and number of bytes it requires (RequireSize) as a response from the server (e.g. 3K bytes). The two attributes are whether the device is a color or monochrome device, and the screen size (width x height x color depth) of the device in pixels. Other information about the device 12 can also be transmitted to the server 28 (e.g.
memory size). After the server 28 receives a document-viewing request, it starts the pagination process (step 30), and initializes the variables Pagelndex and PageSize.
[0027] The following terms and variables are set forth in Figure 7:
[0028] The Pagelndex variable is defined in the server 28 and used by the server to record the current page index being paginated by the server. The page index is initially set to 0 indicating "Page 1".
[0029] PageSize is a variable defined in the server 28 and used by the server to record the current size for the page being paginated and is reset to 0 when paginating a new page.
[0030] Hyperlink map is a variable defined in the server 28, which is a container consisting of the element type of hyperlink node in the document DOM
structure. The key (ID) for each element in the container is the hyperlink target string.
[0031] Bookmark map is a variable defined in the server 28 which is a container consisting of the element type of current page index (Pagelndex value) for the bookmark in the document DOM structure. The key (ID) for each element in the container is the bookmark string.
[0032] The server process constructs a document ID (step 32) based on the document contents and uses the ID to check the document DOM cache (step 33) to determine whether the document DOM structure for that document has been constructed. If the document DOM
structure does not exist in the cache, the server builds the DOM structure (step 34) for the document and adds it to the cache (step 35).
[0033] To construct the document ID, the original document file is opened in read and binary mode. The server 28 creates a MD5 Context structure, hashes the MD5 context structure with raw binary data byte-by-byte from the file, and finalizes the MD5 context structure and retrieves the l6byte key for the file. The MD5 context structure has the following structure in syntax of C++ language typedef struct f unsigned long adwState(4J; l* state (ABCD) *l unsigned long adwCount(2J; l* number of bits, modulo 2~64 (Isb first) *l unsigned char abyBuffer(64J; l* input buffer *l J tMDS CTX;
[0034] Caching the document DOM structure requires considerable memory, and therefore increases the overall hardware deployment cost. On the other hand, building the DOM structure for a document is even more time and CPU intensive in contrast to the document key construction operation, especially for big documents. Since that processing time is more critical than hardware deployment cost for wireless operation, caching the document DOM is the approach adopted for the preferred embodiment, rather than building the DOM structure for the document each time the server receives a viewing request and then discarding the structure after sending the response back to the client device 12.
(0035] Once the document DOM structure has been built and stored in the cache, the server 28 determines whether a page mark has already been set in the root (step 36). If not, the server traverses through the DOM structure (steps 38, 39, 40 and 41 ) and calculates the output size (PageSize) for each node in the DOM structure based on the number of bytes (RequireSize) provided by the device 12. The server increments the Pagelndex (step 42), adds it as an attribute to each node in order to mark the start of each page, and adds each node as an attribute to the root node with the string representation of Pagelndex as the attribute name (step 43). Following this pagination function, the attachment server 28 transmits the document page-by-page to the requesting mobile device 12 based on client generated requests (step 44).
[0036] The page mark attribute name is associated with the device information and required response size (RequireSize) provided by the device 12, to enable the server to paginate through the document DOM structure and generate the response based on the device capability. For example if the device is a monochrome type, the color information contained inside the DOM structure will be ignored during the server pagination and response generation operations and therefore optimize the wireless bandwidth utilization.

[0037] Since the key to the memory map is the document ID, the algorithm used to calculate the document ID (step 32) must guarantee the uniqueness of the key.
According to the best mode; as set forth above, the algorithm used inside the server 28 is the MD5 messaging encryption algorithm invented by Professor Ronald L. Rivest of MIT
Laboratory for Computer Science and RSA Data Security, Inc. There are several other hashing options that can be used. However MD5 is the most efficient and reliable one based on the broad range of different document content required to be processed by the server 28.
[0038] A person skilled in the art, having read this description of the preferred embodiment, may conceive of variations and alternative embodiments. For example, generating multiple sets of page marks for successive pages requires considerable time and CPU usage since the server 28 has to re-traverse the DOM structure.
Accordingly, one alternative is for the server 28 to create only one set of page marks in a document DOM
structure and generate the response based on the device information. However, this approach is likely to create more page marks than necessary and will introduce extra transactions between the wireless device 12 and the server 28 if the user wants to view a large portion of a document. Based on the understanding that minimizing the wireless bandwidth usage is more critical than the processing time on the server, creating multiple sets of the page marks and caching them is the approach adopted in the preferred embodiment.
[0039] All such variations and alternative embodiments are believed to be within the ambit of the claims appended hereto.

Claims (12)

What is claimed is:
1. A process for transmitting a document from a server to a mobile device on a per page basis, comprising:
building a graph structure of nodes within said server representing a map of said document;
transmitting page size limit from said mobile device to said server indicative of the size of a single page of said document to be displayed by said mobile device;
traversing and paginating said graph structure into successive pages within said server based on said page size limit, wherein traversing and paginating said graph structure includes marking said graph structure to identify a given node as starting a new page for transmission to said mobile device and adding said given node as an attribute to a root node of said graph structure;
caching said pages within said server; and transmitting said successive pages from said server to said mobile device for display by said mobile device.
2. The process of claim 1, wherein said traversing and paginating said graph structure further comprises:
initializing a page size value;
retrieving and calculating output size of successive nodes of the graph structure;
adding the output size of said successive nodes to said page size value; and in the event said page size value exceeds said page size limit for said given node then marking said graph structure to identify said given node as starting said new page for transmission to said mobile device.
3. The process of claim 2, wherein marking said graph structure further comprises:
maintaining a page index value that is incremented with each new page;
adding said page index value as an attribute to each said given node for marking each said new page; and adding each said given node as an attribute to a root node of said graph structure with a string representation of said page index value as attribute name.
4. The process of claim 2, further comprising calculating a document ID
based on contents of said document before building said graph structure, checking a memory cache of said server using said document ID for said graph having been previously built, and in the event said graph structure exists in the memory cache then omitting the building of said graph structure.
5. The process of claim 4, wherein calculating said document ID further comprises performing a hashing function on the contents of said document and in response generating said document ID as a unique key to said map.
6. The process of claim 5, wherein said hashing function comprises the MD5 messaging encryption algorithm.
7. The process of claim 1, wherein said graph structure is a Document Object Model (DOM).
8. The process of claim 2, wherein said graph structure is a Document Object Model (DOM).
9. The process of claim 3, wherein said graph structure is a Document Object Model (DOM).
10. The process of claim 4, wherein said graph structure is a Document Object Model (DOM).
11. The process of claim 5, wherein said graph structure is a Document Object Model (DOM).
12. The process of claim 6, wherein said graph structure is a Document Object Model (DOM).
CA2479593A 2004-08-31 2004-08-31 Method for paginating a document structure of a document for viewing on a mobile communication device Expired - Lifetime CA2479593C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CA2479593A CA2479593C (en) 2004-08-31 2004-08-31 Method for paginating a document structure of a document for viewing on a mobile communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CA2479593A CA2479593C (en) 2004-08-31 2004-08-31 Method for paginating a document structure of a document for viewing on a mobile communication device

Publications (2)

Publication Number Publication Date
CA2479593A1 CA2479593A1 (en) 2006-02-28
CA2479593C true CA2479593C (en) 2014-04-22

Family

ID=35997703

Family Applications (1)

Application Number Title Priority Date Filing Date
CA2479593A Expired - Lifetime CA2479593C (en) 2004-08-31 2004-08-31 Method for paginating a document structure of a document for viewing on a mobile communication device

Country Status (1)

Country Link
CA (1) CA2479593C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10409982B2 (en) * 2012-07-18 2019-09-10 Zixcorp Systems, Inc. Secure data access for multi-purpose mobile devices

Also Published As

Publication number Publication date
CA2479593A1 (en) 2006-02-28

Similar Documents

Publication Publication Date Title
US7636891B2 (en) Method for paginating a document structure of a document for viewing on a mobile communication device
US7712027B2 (en) Method for document page delivery to a mobile communication device
US7277890B2 (en) Method of finding a search string in a document for viewing on a mobile communication device
US8583691B2 (en) Method for viewing document information on a mobile communication device
US8117238B2 (en) Method of delivering an electronic document to a remote electronic device
US8584037B2 (en) Method for requesting and viewing a zoomed area of detail from an image attachment on a mobile communication device
US20100287467A1 (en) Method for requesting and viewing a preview of a table attachment on a mobile communication device
US20130104031A1 (en) Method and apparatus for processing xml for display on a mobile device
US9355074B1 (en) Display-content alteration for user interface devices
CA2518654C (en) Method for requesting and viewing a zoomed area of detail from an image attachment on a mobile communication device
CA2539641A1 (en) Method for requesting and viewing a preview of a table attachment on a mobile communication device
CA2517288C (en) Method for viewing document information on a mobile communication device
CA2479593C (en) Method for paginating a document structure of a document for viewing on a mobile communication device
CA2527436C (en) Method of finding a search string in a document for viewing on a mobile communication device
CA2490559C (en) Method of delivering an electronic document to a remote electronic device
CA2479606C (en) Method for document page delivery to a mobile communication device
Manoharan Dynamic content management and delivery for mobile devices

Legal Events

Date Code Title Description
EEER Examination request