Inverting Image Colors Before OCR

About controlling Preview via Applescript: Help: Change the Color of the Selected Object in Preview