This is an author-produced, peer-reviewed version of this article. produce an image with a cleaner background while keeping character details. The second step is applied to the cleaner image and consists of a filter based on non-local means: character edges are smoothed by searching for similar patch images in pixel neighborhoods. The document images to be enhanced are real historical printed documents from several periods which include several defects in their background and on character edges. These defects result from scanning, paper aging and bleedthrough. The proposed method enhances document images by combining the total variation and the non-local means techniques in order to improve OCR recognition.The method is shown to be more powerful than when these techniques are used alone and than other enhancement methods.