Patent ID: 8269791

Claim:
An image processing apparatus comprising: a displaying unit configured to display a vector image in a display region based on a structured document which comprises a first drawing description for a plurality of objects, the first drawing description defining a first shape type and a first coordinate position of the plurality of objects; a setting unit configured to set an area in the display region displayed by the displaying unit; a first determining unit configured to determine whether entire or part of the vector image is included in the set area based on the set area, and the first shape type and the first coordinate position of the first drawing description; a second determining unit configured to determine an intersection coordinate position at which a circumference of the set area and the vector image whose part is determined to be included in the set area intersect, based on the first shape type and the first coordinate position of the first drawing description; a third determining unit configured to determine a second drawing description from the first drawing description for the vector image whose entirety is determined to be included in the set area; a first generating unit configured to generate a third drawing description from the first drawing description for the vector image whose part is determined to be included in the set area based on the intersection coordinate position determined by the second determining unit, the third drawing description comprising a second shape type and a second coordinate position; and an output unit configured to output a compact structured document in the format of the structured document, the compact structured document comprising the second drawing description and the third drawing description.