# US 2025/0232145 A1 · Print data generation device and print data generation method

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

- Number: US 2025/0232145 A1
- Document ID: US20250232145A1
- Status: Published application
- Kind: A1
- Application number: 18/986,175
- Filed: 2024-12-18
- Published: 2025-07-17
- Earliest claimed: 2023-12-27
- Assignees: Star Micronics Co., Ltd.
- Applicants: Star Micronics Co., Ltd.
- Inventors: TEPPEI ONO; KEISUKE IGARASHI; YUSUKE HARA; YUICHI MATSUSHITA
- Web page: https://patentgrep.com/patent/US20250232145A1

## CPC

- G06F 3/1243: {Variable data printing, e.g. document forms, templates, labels, coupons, advertisements, logos, watermarks, transactional printing, fixed content versioning}
- G06K 15/1805: {Receiving printer configuration commands}
- G06F 3/1206: {resulting in increased flexibility in input data format or job format or job type}
- G06F 3/1245: {by conversion to intermediate or common format}
- G06F 3/1247: {by conversion to printer ready format}
- G06Q 20/20: Point-of-sale [POS] network systems
- G07G 5/00: Receipt-giving machines
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06K: GRAPHICAL DATA READING (image or video recognition or understanding G06V); PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G07G: REGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS

## Abstract

Print data are generated using a template constituted by commands of the smallest unit not including repetitions, the number of which corresponds to a variable number of print elements, and field data including data of print elements to be inserted into merge fields of API call commands included in the template. A repeat range is specified from the template, a print data generation API is generated by replacing the merge fields, including repeat substitutions within the specified range, with the data of the print elements, and by executing the generated print data generation API, print data including print-related commands into which the data of the print elements have been inserted is generated.

## Claims

### Claim 1

A print data generation device that generates print data including a plurality of print-related commands using a template and field data including data of print elements to be inserted into merge fields of the template,
the template including one or more API call commands for generating the print-related commands, and
the one or more API call commands being constituted by commands of the smallest unit not including repetitions, the number of which corresponds to the number of print elements, which is variable,
the print data generation device comprising:
a print API generation unit which, on the basis of the content of both the template and the field data or the content of the template, specifies, from the template, a range of API call commands for repeatedly executing processing a number of times corresponding to the variable number of print elements, and generates a print data generation API including a plurality of API call commands by replacing the merge fields included in the API call commands, including repeat substitutions within the specified range, with the data of the print elements; and
a print data generation unit which, by executing the print data generation API generated by the print API generation unit, generates the print data including print-related commands into which the data of the print elements have been inserted.

### Claim 2 (depends on 1)

The print data generation device according to claim 1, wherein the template includes a plurality of API call commands, has a hierarchical structure of the plurality of API call commands, and includes a repeat start flag on one layer of the hierarchy, and the print API generation unit specifies the range of the API call commands for executing the repeat substitutions on the basis of the repeat start flag and the hierarchical structure.

### Claim 3 (depends on 2)

The print data generation device according to claim 2, wherein the print API generation unit specifies the API call commands included on a layer that includes the repeat start flag and layers therebelow as the range of the API call commands for executing the repeat substitutions.

### Claim 4 (depends on 2)

The print data generation device according to claim 2, wherein the print API generation unit specifies a styling instruction API call command and a print instruction API call command including a substitution rule for repeated array elements, among the API call commands included on the layer that includes the repeat start flag and the layers therebelow, as the range of the API call commands for executing the repeat substitutions.

### Claim 5 (depends on 1)

The print data generation device according to claim 1, wherein the print API generation unit specifies the range of the API call commands for executing the repeat substitutions on the basis of both the types of the API call commands and the field data or the types of the API call commands.

### Claim 6 (depends on 5)

The print data generation device according to claim 5, wherein the print API generation unit specifies all the API call commands from a print instruction API call command including a substitution rule for repeated array elements among the plurality of print elements included in the filed data through the API call command immediately before a print instruction API call command not including the substitution rule, and a styling instruction API call command existing before the print instruction API call command including the substitution rule, as the range of the API call commands for executing the repeat substitutions.

### Claim 7 (depends on 1)

The print data generation device according to claim 1, wherein the template includes a plurality of API call commands and has a hierarchical structure of the plurality of API call commands, and the print API generation unit specifies the range of the API call commands for executing the repeat substitutions on the basis of both the types of the API call commands and the field data or the types of the API call commands, and the hierarchical structure.

### Claim 8 (depends on 7)

The print data generation device according to claim 7, wherein the print API generation unit specifies, from among the API call commands included on an uppermost layer and layers therebelow of the hierarchical structure that includes a print instruction API call command including a substitution rule for repeated array elements among the plurality of print elements included in the filed data, a styling instruction API call command and the print instruction API call command including the substitution rule, as the range of the API call commands for executing the repeat substitutions.

### Claim 9

A print data generation method for generating print data including a plurality of print-related commands using a template and field data including data of print elements to be inserted into merge fields of the template,
the template including one or more API call commands for generating the print-related commands, and
the one or more API call commands being constituted by commands of the smallest unit not including repetitions, the number of which corresponds to the number of print elements, which is variable,
the print data generation method comprising:
a first step in which a print API generation unit of a print data generation device specifies, from the template on the basis of the content of both the template and the field data or the content of the template, a range of API call commands for repeatedly executing processing a number of times corresponding to the variable number of print elements, and generates a print data generation API including a plurality of API call commands by replacing the merge fields included in the API call commands, including repeat substitutions within the specified range, with the data of the print elements; and
a second step in which a print data generation unit of the print data generation device executes the print data generation API generated by the print API generation unit in order to generate the print data including print-related commands into which the data of the print elements have been inserted.
