# US 2024/0037689 A1 · Watermarks for text documents

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

- Number: US 2024/0037689 A1
- Document ID: US20240037689A1
- Status: Published application
- Kind: A1
- Application number: 18/021,375
- Filed: 2021-04-26
- Published: 2024-02-01
- Earliest claimed: 2020-08-31
- Assignees: Hewlett-Packard Development Company, L.P.
- Applicants: Hewlett-Packard Development Company, L.P.
- Inventors: Bharani Nunna
- Web page: https://patentgrep.com/patent/US20240037689A1

## CPC

- G06T 1/005: {Robust watermarking, e.g. average attack or collusion attack resistant}
- G06F 21/16: Program or content traceability, e.g. by watermarking
- G06T 2201/0051: Embedding of the watermark in the spatial domain
- G06T 2201/0062: Embedding of the watermark in text images, e.g. watermarking text documents using letter skew, letter distance or row distance
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to examples, an apparatus may include a processor and a memory on which are stored machine-readable instructions that when executed by the processor, may cause the processor to extract text from a document. The processor may retrieve images associated with characters in the extracted text and generate a stitched image using the retrieved images. The processor may watermark the stitched image and replace the characters in the document with the images associated with the characters from the watermarked and stitched image.

## Claims

### Claim 1

An apparatus comprising:
a processor; and
a memory on which are stored machine-readable instructions that when executed by the processor, cause the processor to:
extract text from a document;
retrieve images associated with characters in the extracted text;
generate a stitched image using the retrieved images;
watermark the stitched image; and
replace the characters in the document with the images associated with the characters from the watermarked and stitched image.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the instructions cause the processor to:
parse objects in the document, the parsed objects in the document including the text and a graphical illustration;
determine, based on the parsed objects, that an amount of the text in the document exceeds a predetermined threshold; and
based on the determination that the amount of the text in the document exceeds the predetermined threshold, extract the text from the document while ignoring the graphical illustration in the document.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the instructions cause the processor to:
retrieve properties of the characters in the extracted text;
store the retrieved properties of the characters in a temporary file; and
replace the characters in the document with the images based on the properties of the characters stored in the temporary file.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the properties of the characters include a font, a size, a location, a line number associated with each of the characters in the document, a page number associated with each of the characters in the document, and/or a region of interest (ROI) associated with each of the images for the characters.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the instructions cause the processor to:
identify a plurality of characters from the text and identify spaces between the plurality of characters from the text;
remove the spaces and position the plurality of characters adjacent to each other in a predetermined order;
retrieve glyph information for the plurality of characters, the glyph information including bitmap images; and
generate the stitched image using the bitmap images for the plurality of characters, the bitmap images in the stitched image being positioned adjacent to each other in the predetermined order.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the instructions cause the processor to:
separate the images associated with the characters from the watermarked and stitched image, the images having a region of interest (ROI) associated with each of the images, the ROI defining an area that each of the images associated with the characters occupies; and
replace the characters in the text of the document with the images associated with the characters, the images being placed in the document based on the respective ROI.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the instructions cause the processor to:
scan the document having the watermark;
identify the image associated with the characters in the scanned document;
construct a second stitched image based on the identified images in the scanned document; and
extract the watermark from the second stitched image.

### Claim 8

A method comprising:
extracting, by a processor, text from a document, the extracted text including a plurality of characters;
retrieving, by the processor, images corresponding to the plurality of characters;
combining, by the processor, the images to form a stitched image of the extracted text;
embedding, by the processor, a watermark in the stitched image;
separating, by the processor, the watermarked and stitched image into a plurality of watermarked images corresponding to the plurality of characters; and
replacing, by the processor, the plurality of characters in the document with the plurality of watermarked images.

### Claim 9 (depends on 8)

The method of claim 8, further comprising:
identifying the plurality of characters in the text and a plurality of spaces between the plurality of characters; and
removing the plurality of spaces from between the plurality of characters to position the plurality of characters adjacent to each other without the plurality of spaces.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
retrieving the images corresponding to the plurality of characters by retrieving bitmap images from a font file; and
generating the stitched image using the bitmap images, the bitmap images for the plurality of characters being positioned adjacent to each other.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
retrieving properties of the plurality of characters;
storing the properties of the plurality of characters in a temporary file; and
replacing the plurality of characters in the document with the plurality of watermarked images based on the properties of the plurality of characters stored in the temporary file.

### Claim 12 (depends on 11)

The method of claim 11, wherein the properties of the plurality of characters include a font, a size, a location, a line number associated with the plurality of characters in the document, a page number associated with the plurality of characters in the document, and/or a region of interest (ROI) associated with the plurality of watermarked images corresponding to the plurality of characters.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
separating the watermarked and stitched image into the plurality of watermarked images based on a region of interest (ROI) associated with the plurality of characters, the ROI defining an area of a watermarked image for each of the plurality of characters; and
replacing the plurality of characters in the text of the document with the plurality of watermarked images such that each of the plurality of watermarked images occupies an area in the document corresponding to the ROI.

### Claim 14

A non-transitory computer-readable medium on which is stored machine readable instructions that, when executed by a processor, cause the processor to:
identify text in a document;
identify a plurality of characters and a plurality of spaces in the text;
remove the plurality of spaces and position the plurality of characters adjacent to each other;
retrieve images associated with the plurality of characters;
generate a stitched image using the retrieved images;
add a watermark to the stitched image;
separate the stitched image into the images, the separated images having the watermark; and
replace the plurality of characters in the document with the separated images having the watermark.

### Claim 15 (depends on 14)

The non-transitory computer-readable medium of claim 14, wherein the instructions cause the processor to:
retrieve properties of the plurality of characters from the document and/or a font file;
store the properties of the plurality of characters in a temporary file; and
access the properties in the temporary file to replace the plurality of characters in the document with the separated images having the watermark,
wherein the properties of the plurality of characters include a font, a size, a location, a line number associated with the plurality of characters in the document, a page number associated with the plurality of characters in the document, and/or a region of interest (ROI) associated with the images associated with the plurality of characters.
