TwainAddGdPictureImageToPdf Method

See Also     Examples     Applies To

Appends a GdPicture Image into the multipage PDF file created by the TwainPdfStartEx() function.

Syntax

object.TwainAddGdPictureImageToPdf (nImageID)

The TwainAddGdPictureImageToPdf syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nImageID Required. Long. The GdPicture Image to add to the multipage PDF.

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






© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.