See Also Examples Applies To
Closes and Saves the PDF file created by the TwainPdfStartEx() function.
Syntax
object.TwainPdfStop ()
The TwainPdfStop 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 PDF file.
Object.TwainOpenDefaultSource
Object.TwainSetAutoFeed (True)
Object.TwainSetAutoScan (True)
If Object.TwainPdfStartEx("MyPdf.pdf") = 0 Then
While Object.TwainAcquireToGdPictureImage(hwnd) <> 0
Object.TwainAddGdPictureImageToPdf(Object.GetNativeImage)
Object.CloseNativeImage
Wend
Object.TwainPdfStop
End If
Object.TwainCloseSource