Patent ID: 7619772

Claim:
A computer readable medium containing a control program of a document processing apparatus executing a process to print out document data stored in a storage device at an output apparatus, causing said document processing apparatus to execute the steps of: accepting input of information, extracting information related to a chapter from the document data, and causing a display unit to display a print setting screen including setting contents related to printing of document data in response to input of information designating initiation of a process to print out document data, wherein said step of displaying a print setting screen includes the step of displaying information related to each chapter extracted at said extracting step, for each chapter included in the document data, on said print setting screen; generating tentative data for a printing subject chapter identified as the chapter that is the subject of printing in the document data by modifying a layout of said printing subject chapter under a state stored in said storage device such that the beginning of said printing subject chapter is located at the beginning of a page, comparing the number of pages of said tentative data with a basic number of pages corresponding to the number of pages of said printing subject chapter in the layout under a state stored in said storage device, and causing said display unit to display information asking, when the number of pages of said tentative data is smaller than said basic number of pages, whether printing is to be conducted by a layout based on said tentative data, or by the layout of said printing subject chapter under the state stored in said storage device.