Loading...

Rotating TWAIN PDF documents for OCR

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

Rotating TWAIN PDF documents for OCR

Postby 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
steve888
 
Posts: 7
Joined: Wed Oct 14, 2009 9:42 pm

Re: Rotating TWAIN PDF documents for OCR

Postby 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
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4441
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: Google [Bot] and 1 guest