Rotating TWAIN PDF documents for OCR

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
steve888
Posts: 7
Joined: Wed Oct 14, 2009 9:42 pm

Rotating TWAIN PDF documents for OCR

Post by steve888 » Wed Oct 21, 2009 5:38 pm

Hi,

I have been able to code so that when I scan my multi-page documents they are saved as OCR searchable PDF files. It works very well!

The next thing I want the program to be able to do is to check the orientation of the document being scanned. If I am scanning a document that is printed in landscape orientation the OCR feature must rotate in order to recognize the words and characters. Are there code methods available for the TWAIN object to do this?

I tried Twain1.Rotate (Rotate90FlipY) but it didn't do anything.

Thanks,
Steve

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Rotating TWAIN PDF documents for OCR

Post by Loïc » Thu Oct 22, 2009 11:48 am

Hi Steve,

To detect the orientation of the document using the OCR plugin you have just to use the OCRTesseractGetOrientation() method.
To rotate a document to 90degree, please use Rotate(Rotate90FlipNone).

With best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest