TwainPdfStart Method

See Also     Examples     Applies To

Creates an empty PDF file in order to transfer multiple page using the TwainAddGdPictureImageToPdf() until the TwainPdfStop() function is called.

Syntax

object.TwainPdfStart (sFilePath, sTitle, sCreator, sAuthor, sProducer)

The TwainPdfStart syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
sFilePath Required. String. The path of the PDF to create.
sTitle Optional. String. Default value is "". The PDF Title.
sCreator Optional. String. Default value is "GdPicture ToolKit". The PDF Creator.
sAuthor Optional. String. Default value is "GdPicture ToolKit". The PDF Author.
sProducer Optional. String. Default value is "". The PDF Producer.

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






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.