1. A method of classifying electronic documents, comprising: converting a candidate electronic document comprising character data to a candidate image; obtaining a representation of a degree of visual similarity of the candidate image to a reference image, the reference image having been obtained by identifying a reference electronic document containing character data representative of a specified classification; and converting the reference electronic document to a reference image.