TwainPdfOCRStop Method

See Also     Examples     Applies To

Closes and Saves the PDF file created by the TwainPdfOCRStartEx() function.

Syntax

object.TwainPdfOCRStop ()

The TwainPdfOCRStop syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.

Returns

Long. GdPictureStatus

Category

TWAIN Functions

Visual Basic Sample

How to scan pages of a document feeder to a multipage searchable PDF file.


Object.TwainOpenDefaultSource
Object.TwainSetAutoFeed (True)
Object.TwainSetAutoScan (True)
If Object.TwainPdfOCRStartEx("MyPdf.pdf") = 0 Then
   While Object.CreateImageFromTwain(hwnd) <> 0
         Call Object.TwainAddGdPictureImageToPdfOCR(Object.GetNativeImage, TesseractDictionaryEnglish, App.Path & "\Dict")
         Object.CloseNativeImage
   Wend
   Object.TwainPdfOCRStop
End If
Object.TwainCloseSource






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.