1. An image processing device comprising: an image area extracting part for extracting a plurality of image areas from image data; a positional information recognizing part for recognizing positional information of each extracted image area; an attribute recognizing part for recognizing at least attributes concerning whether each extracted image area is a filled closed area, wherein the closed area has an inside of which a color has different value from an outside of the closed area, common stays or an unfilled closed area, wherein the closed area has an inside of which a color has same value from an outside of the closed area; a file producing part for producing a file by synthesizing said image areas based on the positional information recognized by said positional information recognizing part; and a sequence setting part for setting up an overlaying sequence for each image area in accordance with the recognition result of said attribute recognizing part, wherein said file producing part produces the file by overlaying said image areas in accordance with the overlaying sequence set up by said sequence setting part.