Patent ID: 8089653

Claim:
A document processing apparatus which generates electronic document data in which variable output data is put into specified areas, the apparatus comprising: a determination unit that determines, when a document file is received, whether or not an application for variable printing has issued the document file; a dividing unit that divides the document file including a plurality of pages into segments in units of record when the determination unit determines that the application for variable printing has issued the document file; a selecting unit that selects a first displaying function or a second displaying function; and a displaying control unit that, when the first displaying function is selected, displays a preview image indicating that the document file including the plurality of pages is divided into the segments in units of record by said dividing unit and, when the second displaying function is selected, displays a preview image of a plurality of pages included in a selected segment, among the segments, selected in accordance with changing a target to be displayed to the selected segment.