1. A method comprising: receiving, by a processor, data representing an image of text, and data representing the text in non-image form; determining, by the processor, a valid content boundary within the image of the text, the valid content boundary dividing a portion of the image corresponding to valid text of the image from and excluding another portion of the image corresponding to one or more of stray marks, dirt, debris, and handwritten notes; for each character of a plurality of characters within the text in the non-image form, determining, by the processor, a location of the character within the image of the text; and where the location of the character within the image of the text falls outside the valid content boundary, removing the character from the data representing the text in the non-image form, by the processor.
1. A method comprising: receiving, by a processor, data representing an image of text, and data representing the text in non-image form; determining, by the processor, a valid content boundary within the image of the text, the valid content boundary dividing a portion of the image corresponding to valid text of the image from and excluding another portion of the image corresponding to one or more of stray marks, dirt, debris, and handwritten notes; for each character of a plurality of characters within the text in the non-image form, determining, by the processor, a location of the character within the image of the text; and where the location of the character within the image of the text falls outside the valid content boundary, removing the character from the data representing the text in the non-image form, by the processor. 10. The method of claim 1 , wherein determining the valid content boundary within the image of the text comprises: receiving a specification of the valid content boundary from a user.