Patent Document ID: 8982406
Application ID: 13051989
Patent Status: 1

Claim One:
1. A file-generating device provided in a network comprising: a network interface; and a processor configured to: acquire image data indicating an original image; acquire destination data including a destination where a document file, which is to be generated based on the image data, is to be stored; acquire, via the network interface, a prescribed size of a sheet to be used by a target printer, which is a default printer set in a terminal device, and a first margin, which corresponds to the prescribed size of the sheet, from the terminal device, which is different from a printer, when the acquired destination data indicates the terminal device; determine, based on the prescribed size of the sheet and the first margin, a printable region within which the target printer is configured to print an image on the sheet; and generate the document file having a plurality of cells arranging in one or more columns and one or more rows; determine a printing region that is within the printable region, the printing region having at least two cells from among the plurality of cells; align a border of a cell to a border of the printing region; save the image data, drawing size data, and drawing position data in the document file after the processor aligns the border of cell to the border of the printing region, the drawing size data specifying a size of an image to be drawn based on the image data, the drawing position data indicating the at least two cells included in the printing region; and store the document file in the terminal device indicated by the destination data, wherein the size of the image is determined such that the size of the image is equal to or smaller than a size of the printing region, wherein the image is to be drawn based on the image data, drawing size data, and the position data such that the image based on the image data is drawn on the at least two cells.