Patent ID: 8693019

Claim:
A non-transitory computer-readable recording medium storing a computer program, when executed by a computer, causes the computer to function as a control device that performs the steps of: storing a document written in a markup language in a storage, the document written in the markup language including component data which has at least text data, and configuration information indicating a configuration of components of the document written in the markup language, the configuration of components including respective sizes and positions of the components, the configuration information including size information and position information representing the sizes and the positions of components, respectively; generating display data indicating a preview image of print data which is generated based on the document written in the markup language and stored in the storage; displaying the preview image in a preview display area of a display device based on the display data; receiving a command; judging whether the received command is a command representing an instruction to change a size of a component arranged in the preview image or a command representing another instruction to change a position of a component arranged in the preview image; retrieving the configuration information stored in the storage and changing the size of the component based on the received command when the received command is judged to be the command representing the instruction to change the size of the component arranged in the preview image, the size information being updated in response to the change of the size of the component; retrieving the configuration information stored in the storage and changing the position of the component based on the received command when the received command is judged to be the command representing the instruction to change the position of the component arranged in the preview image, the position information being updated in response to the change of the position of the component; and generating post-modification display data for displaying a post-modification preview on the display device based on the updated size information, the updated position information, and the document stored in the storage, the post-modification preview image representing the preview image in which the size and the position of the component has been updated.