Patent ID: 8446616

Claim:
An image-forming apparatus communicating with a peripheral device, comprising: a scanning unit configured to scan a document; a first generator configured to generate document data corresponding to the document scanned by the scanning unit; an obtaining unit configured to obtain image data held by the peripheral device; a thumbnail generating unit configured to generate one or more thumbnails of image data obtained from the peripheral device and one or more thumbnails of the document data generated by the first generator; a display unit configured to display an image selection screen for selecting the image data obtained by the obtaining unit and to display a drag-and-drop screen for associating the image data with the document data, wherein thumbnails of the image data and the document data are displayed on the drag-and-drop screen and the image data is associated with the document data by dragging the thumbnail of the document data onto the thumbnail of the associated image data; a script generating unit configured to generate a script which is associated with the thumbnail of the image data and when executed will display the associated image data and the associated document data at the same time; a document generating unit configured to insert the generated script into an XML structured document which includes programing code for displaying the one or more thumbnails of the image data, programing code to generate a display area to display the image data, and programing code to generate a display area to display the associated document data, wherein when the programing code in the document is executed and a user selects one of the thumbnails, the script associated with the thumbnail is executed and the image data associated with the thumbnail is displayed in the image data display area and the associated document data is displayed in the associated document data display area; and a sender configured to send a reference associated with the document to an external information-processing apparatus, wherein when the external information-processing apparatus processes the reference, the programing code in the document is executed.