# US 2025/0148196 A1 · Ai enhanced pdf conversion into human readable and machine parsable html

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

- Number: US 2025/0148196 A1
- Document ID: US20250148196A1
- Status: Published application
- Kind: A1
- Application number: 18/726,905
- Filed: 2023-01-09
- Published: 2025-05-08
- Earliest claimed: 2022-01-10
- Applicants: Morningstar Inc.
- Inventors: Hu CHEN; Xin WEN; Wenliang HE; Ming LU; Shariq AHMAD
- Web page: https://patentgrep.com/patent/US20250148196A1

## CPC

- G06F 40/16: Automatic learning of transformation rules, e.g. from examples
- G06F 40/169: Annotation, e.g. comment data or footnotes
- G06F 40/151: Transformation
- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Computer implemented method for converting PDF documents into human readable and machine parsable HTML code. The method includes the use of a machine learning algorithm in order to automatically annotate the HTML code, said algorithm being trained with a set of manually annotated HTML code examples.

## Claims

### Claim 1

A computer-implemented method for converting PDF documents into human readable and machine parsable HTML code comprising the steps of:
extracting texts;
extracting formatting styles;
extracting background graphs;
extracting positional info;
extracting font family information;
annotating of html code;
organizing reading order; and
including metadata;
characterized in that, a machine learning algorithm is used to automatically annotate HTML code, which machine learning algorithm is trained with a set of manually annotated HTML code examples, the extracted font family information is True Type Fonts compatible, organizing of the reading order is determined based on a combination of:
innate reading order;
region delineation by a segmentation algorithm; and
paragraph sequencing;
text within a paragraph is annotated with <span></span> tags.

### Claim 2 (depends on 1)

The method according to claim 1, characterized in that, each paragraph is annotated such that it is contained between <div></div> tags.

### Claim 3 (depends on 1)

The method according to claim 1, characterized in that, tables are annotated with <tr></tr> only for rows and <td></td> only for table cells.

### Claim 4 (depends on 1)

The method according to claim 1, the segmentation algorithm is a U-Net algorithm.

### Claim 5 (depends on 1)

The method according to claim 1, characterized in that, the paragraph sequencing comprises the steps of:
selecting a number of candidate paragraphs, the number of candidate paragraphs being adjacent to a target paragraph or at a top of a subsequent text column;
pairing each candidate paragraph with the target paragraph;
assessing each pair for fit; and
choosing a pair with a best fit.

### Claim 6 (depends on 5)

The method according to claim 5, characterized in that, the fit of each pair of target paragraph and candidate paragraph is assessed using language models.

### Claim 7 (depends on 1)

The method according to claim 1, characterized in that, the metadata included in a converted file includes tables, graphs, headings, page headers and footers.

### Claim 8 (depends on 1)

The method according to claim 1, characterized in that, tables and graphs are detected by means of an object recognition algorithm.

### Claim 9 (depends on 1)

The method according to claim 1, characterized in that, headings are identified based of differences in font styles between headings and regular text.

### Claim 10 (depends on 1)

The method according to claim 1, characterized in that, page headers and footers are identified based on text and text location similarity.

### Claim 11 (depends on 1)

A computer system for improved PDF to human readable and machine parsable HTML conversion, the computer system configured for performing the computer-implemented method according to claim 1.

### Claim 12 (depends on 1)

Use of the computer-implemented method according to claim 1, for converting PDF into human readable and machine parsable HTML.

### Claim at position 13

-15. (canceled)
