Patent ID: 7559024

Claim:
A document processing apparatus for a layer structured document having respective layers of a book, a chapter and a page, wherein a book contains at least one chapter having a specific attribute, each of at least one chapter contains at least one page, and each of at least one page has a print attribute, said apparatus comprising: an instruction accepting unit which accepts an instruction of inserting designated data into a designated position of the layer structured document including the chapters from a user; a determining unit which determines whether a type of the designated data is image data or data other than image data; an editor which, responsive to a determination that the type of the designated data is data other than image data, edits the document so as to create a new chapter at the designated position of the document and then to insert a page formed with the designated data into the new chapter, and responsive to a determination that the type of the designated data is image data, edits the document so as to insert a page formed with the designated data into an existing chapter at the designated position of the document without creating a new chapter.