# US 2023/0065934 A1 · Extract Data From A True PDF Page

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

- Number: US 2023/0065934 A1
- Document ID: US20230065934A1
- Status: Published application
- Kind: A1
- Application number: 17/870,225
- Filed: 2022-07-21
- Published: 2023-03-02
- Earliest claimed: 2021-08-30
- Assignees: SurePrep, LLC
- Applicants: Sureprep, LLC
- Inventors: Srinivas Lingineni; Ashish GirishKumar Agrawal
- Web page: https://patentgrep.com/patent/US20230065934A1

## CPC

- G06V 30/416: Extracting the logical structure, e.g. chapters, sections or page numbers; Identifying elements of the document, e.g. authors
- G06F 40/186: Templates
- G06F 40/258: Heading extraction; Automatic titling; Numbering
- G06V 30/153: {using recognition of characters or words}
- G06V 30/412: Layout analysis of documents structured with printed lines or input boxes, e.g. business forms or tables
- G06F 40/279: Recognition of textual entities
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The system may perform a method comprising analyzing metadata of a text layer of a page of a first pdf document to determine that the pdf document is a first true pdf document; receiving the first true pdf document, in response to the first pdf document being the first true pdf document; receiving a selection of a field including first data to be extracted from the first true pdf document; displaying the first data; creating a template including the coordinates corresponding to the selected field and the first data of the first true pdf document; and extracting from an accessible text layer of a second true pdf document, second data based on the template from the first true pdf document.

## Claims

### Claim 1

A method comprising:
analyzing, using a processor, metadata of a text layer of a page of a first pdf document to determine that the pdf document is a first true pdf document;
receiving, at the processor, the first true pdf document, in response to the first pdf document being the first true pdf document;
receiving, at the processor, a selection of a field including first data to be extracted from the first true pdf document;
displaying, by the processor, the first data;
creating, at the processor, a template including the coordinates corresponding to the selected field and the first data of the first true pdf document; and
extracting, using the processor, from an accessible text layer of a second true pdf document, second data based on the template from the first true pdf document.

### Claim 2 (depends on 1)

The method of claim 1, wherein the analyzing metadata of the text layer of the page of the first pdf document includes determining whether the text layer can be accessed for retrieval of data.

### Claim 3 (depends on 1)

The method of claim 1, wherein the analyzing metadata includes extracting properties of a pdf file.

### Claim 4 (depends on 1)

The method of claim 1, wherein the analyzing metadata includes determining that a hidden-text field of the metadata is set to false.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first data includes at least one of words, text, numbers, characters, symbols, regions, locations or empty spaces.

### Claim 6 (depends on 1)

The method of claim 1, further comprising saving, by the processor, the template into a file format.

### Claim 7 (depends on 1)

The method of claim 1, wherein the template includes at least one of coordinates, field names, reference field values, region or quadrant information.

### Claim 8 (depends on 1)

The method of claim 1, wherein the template is stored in JavaScript Object Notation (JSON) file format.

### Claim 9 (depends on 1)

The method of claim 1, wherein the receiving the selection of the field is based on at least one of a selection of text elements or receiving coordinates of a bounding box drawn around the text elements.

### Claim 10 (depends on 1)

The method of claim 1, wherein the receiving the selection of the field is based on receiving coordinates of a bounding box drawn around text elements, wherein the coordinates are obtained by analyzing a number of pixels from each border of the first true pdf document to the text elements.

### Claim 11 (depends on 1)

The method of claim 1, wherein the extracting from the accessible text layer the second data includes using logic to iterate through the accessible text layer and extracting the second data based on the coordinates.

### Claim 12 (depends on 1)

The method of claim 1, wherein the receiving the selection of the field is based on receiving coordinates of a bounding box drawn around text elements, and further comprising adjusting, by the processor, the bounding box to confirm the text elements are accurate.

### Claim 13 (depends on 1)

The method of claim 1, wherein the receiving the selection of the field is based on regex expressions extracting a field value from the field.

### Claim 14 (depends on 1)

The method of claim 1, further comprising suggesting, by the processor, a replacement value for a field value in the field.

### Claim 15 (depends on 1)

The method of claim 1, further comprising applying, by the processor, a regex to clean up a field value from the field.

### Claim 16 (depends on 1)

The method of claim 1, further comprising identifying, by the processor, a type of a page based on the template.

### Claim 17 (depends on 1)

The method of claim 1, further comprising generating, by the processor, a tabular display of the field

### Claim 18 (depends on 1)

The method of claim 1, further comprising displaying, using a display screen, a listing of the second data and the coordinates corresponding to the selected field from the first true pdf document or the second true pdf document.

### Claim 19

An article of manufacture including a non-transitory, tangible computer readable storage medium having instructions stored thereon that, in response to execution by a processor, cause the processor to perform operations comprising:
analyzing, using the processor, metadata of a text layer of a page of a first pdf document to determine that the pdf document is a first true pdf document;
receiving, at the processor, the first true pdf document, in response to the first pdf document being the first true pdf document;
receiving, at the processor, a selection of a field including first data to be extracted from the first true pdf document;
displaying, by the processor, the first data;
creating, at the processor, a template including the coordinates corresponding to the selected field and the first data of the first true pdf document; and
extracting, using the processor, from an accessible text layer of a second true pdf document, second data based on the template from the first true pdf document.

### Claim 20

A system comprising:
a processor; and
a tangible, non-transitory memory configured to communicate with the processor,
the tangible, non-transitory memory having instructions stored thereon that, in response to execution by the processor, cause the processor to perform operations comprising:
analyzing, using the processor, metadata of a text layer of a page of a first pdf document to determine that the pdf document is a first true pdf document;
receiving, at the processor, the first true pdf document, in response to the first pdf document being the first true pdf document;
receiving, at the processor, a selection of a field including first data to be extracted from the first true pdf document;
displaying, by the processor, the first data;
creating, at the processor, a template including the coordinates corresponding to the selected field and the first data of the first true pdf document; and
extracting, using the processor, from an accessible text layer of a second true pdf document, second data based on the template from the first true pdf document.
