# US 2012/0240028 A1 · System, Method, and Architecture for Displaying a Document

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0240028 A1
- Document ID: US20120240028A1
- Status: Published application
- Kind: A1
- Application number: 13/207,176
- Filed: 2011-08-10
- Published: 2012-09-20
- Earliest claimed: 2011-03-18
- Assignees: Google Inc.
- Inventors: Luiz Pereira; Edgard Lindner; Lily Xia; Kevin Markman
- Web page: https://patentgrep.com/patent/US20120240028A1

## CPC

- G06F 40/117: Tagging; Marking up (details of markup languages G06F40/143); Designating a block; Setting of attributes (style sheets, e.g. eXtensible Stylesheet Language Transformation [XSLT], G06F40/154)
- G06F 16/9577: {Optimising the visualization of content, e.g. distillation of HTML documents}
- G06F 40/114: Pagination
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Data defining a document is received from an online document processing service, and a plurality of elements within the document is identified. The plurality of elements may comprise paragraphs, lines of text, images, tables, headers, footers, footnotes, footnote reference information, etc. For each of the plurality of elements, a respective object comprising a layout function and a render function is generated. An object corresponding to an element is invoked to generate layout data associated with the element, and the element is rendered based on the layout data.

## Claims

### Claim 1

A method comprising:
receiving data defining a document from an online document processing service;
identifying a plurality of elements within the document;
generating, for each of the plurality of elements, a respective object comprising a layout function and a render function;
invoking an object corresponding to an element, to generate layout data associated with the element; and
rendering the element based on the layout data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of elements comprises a paragraph.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of elements comprises at least one of a line of text, an image, a table, a header, a footnote, footnote reference information, and a footer.

### Claim 4 (depends on 1)

The method of claim 1, wherein an object corresponding to a particular element comprises a programming class comprising one or more properties that define and store the state of the particular element.

### Claim 5 (depends on 4)

The method of claim 4, wherein:
the particular element comprises a paragraph; and
the object associated with the paragraph comprises one or more properties defining a first alphanumeric character of the paragraph and a last alphanumeric character of the paragraph.

### Claim 6 (depends on 4)

The method of claim 4, wherein the object comprises a layout function that defines one or more calculations for displaying the particular element.

### Claim 7 (depends on 6)

The method of claim 6, wherein:
the particular element comprises a paragraph; and
the object associated with the paragraph comprises a layout function defining one or more calculations for determining a location of one or more lines in the paragraph and whether the paragraph can fit into an available page height.

### Claim 8 (depends on 1)

The method of claim 1, wherein the object corresponding to the element comprises a render function adapted to modify a HyperText Markup Language (“HTML”) of a webpage based on the layout data associated with the element.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
modifying a HyperText Markup Language (“HTML”) of a webpage based on the layout data associated with the element.

### Claim 10 (depends on 1)

The method of claim 1, wherein the object corresponding to an element comprises a render function adapted to define one or more vectors for displaying the element.

### Claim 11 (depends on 1)

The method of claim 1, wherein objects associated with the plurality of elements are organized in a hierarchical relationship.

### Claim 12

A non-transitory computer readable medium having program instructions stored thereon, the instructions capable of execution by a processor and defining the steps of:
receiving data defining a document from an online document processing service;
identifying a plurality of elements within the document;
generating, for each of the plurality of elements, a respective object comprising a layout function and a render function;
invoking an object corresponding to an element, to generate layout data associated with the element; and
rendering the element based on the layout data.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the plurality of elements comprises a paragraph.

### Claim 14 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the plurality of elements comprises at least one of a line of text, an image, a table, a header, a footnote, footnote reference information, and a footer.

### Claim 15 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein an object corresponding to a particular element comprises a programming class comprising one or more properties that define and store the state of the particular element.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein:
the particular element comprises a paragraph; and
the object associated with the paragraph comprises one or more properties defining a first alphanumeric character of the paragraph and a last alphanumeric character of the paragraph.

### Claim 17 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the object comprises a layout function that defines one or more calculations for displaying the particular element.

### Claim 18 (depends on 17)

The non-transitory computer readable medium of claim 17, wherein:
the particular element comprises a paragraph; and
the object associated with the paragraph comprises a layout function defining one or more calculations for determining a location of one or more lines in the paragraph and whether the paragraph can fit into an available page height.

### Claim 19 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein the object corresponding to the element comprises a render function adapted to modify a HyperText Markup Language (“HTML”) of a webpage based on the layout data associated with the element.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, further comprising instructions defining the step of:
modifying a HyperText Markup Language (“HTML”) of a webpage based on the layout data associated with the element.

### Claim 21

A system comprising:
a document stored in a memory, the document comprising a plurality of elements;
a plurality of first objects stored in the memory, each object corresponding to a respective element and comprising a layout function for laying out the respective element and a render function for rendering the respective element; and
a second object, corresponding to the document and stored in the memory, for activating at least one of the first objects to layout and render a corresponding element.

### Claim 22 (depends on 21)

The system of claim 21, wherein the second object is further adapted to:
identify a particular element located on a specified page of the document; and
activate a first object corresponding to the particular element to layout and render the particular element.

### Claim 23 (depends on 22)

The system of claim 22, wherein the first object corresponding to the particular element is further adapted to:
determine whether the particular element fits within an available page height; and
layout the particular element, if the particular element fits within an available page height.
