See Also Examples Applies To
Closes and Saves the PDF file created by the TwainPdfStart() 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.TwainPdfStart("MyPdf.pdf", "My PDF Title", "My PDF Creator", "My PDF Author", "My PDF Producer") = 0 Then
While Object.CreateImageFromTwain(hwnd) <> 0
Object.TwainAddGdPictureImageToPdf(Object.GetNativeImage)
Object.CloseNativeImage
Wend
Object.TwainPdfStop
End If
Object.TwainCloseSource