Patent ID: 7203739

Claim:
A terminal device, comprising: a document information storage unit operable to store a document information table including pieces of element data of a document and sizes of the pieces of the element data; a transmission document information creation unit operable to read a piece of the element data and the size of the piece of the element data from the document information table, and to write the piece of the element data and the size of the piece of the element data into a transmission document information table; and a transmission unit operable to transmit the piece of the element data written in the transmission document information table to another device, wherein the transmission document information creation unit obtains a maximum size of data that is receivable by said another device, judges whether a sum of the size of the piece of the element data that is written in the transmission document information table and a size of one of the other pieces of the element data that are not written in the transmission document information table is more than the maximum size, and if judging in the affirmative, divides the document into smaller documents each having a size that is receivable by said another device, the transmission document information creation unit writes, if judging in the negative, said one of the other pieces of the element data into the transmission document information table, and repeats the judgment as to all the other pieces of the element data that are included in the document information table and not written in the transmission document information table, and after writing all the pieces of the element data included in the document information table into the transmission document information table, instructs the transmission unit to transmit the pieces of the element data written in the transmission document information table, the transmission document information creation unit creates, if judging in the affirmative, another transmission document information table, and repeats the judgment as to all the other pieces of the element data that are included in the document information table and not written in said another transmission document information table, and after writing all the pieces of the element data included in the document information table into said another transmission document information table, instructs the transmission unit to transmit the pieces of the element data written in said another transmission document information table, and the transmission unit transmits the pieces of the element data included in each smaller document.