Function Prototypes

Description

The following are all the function prototypes used in Dynamic Web TWAIN.

OnSuccess()

Parameters Type Description
None N/A N/A

OnFailure(errorCode, errorString)

Optional callback function used in the following methods

Parameters Type Description
errorCode <int> the error code
errorString <string> the error string

OnSuccess() and OnFailure() are Function prototypes for the optional callback function used in the following methods
FTPDownload
FTPDownloadDirectly
FTPDownloadEx
FTPUpload
FTPUploadAllAsMultiPageTIFF
FTPUploadAllAsPDF
FTPUploadAsMultiPagePDF
FTPUploadAsMultiPageTIFF
FTPUploadDirectly
FTPUploadEx
HTTPDownload
HTTPDownloadDirectly
HTTPDownloadEx
LoadDibFromClipboard
LoadImage
LoadImageEx
SaveAllAsMultiPageTIFF
SaveAllAsPDF
SaveSelectedImagesAsMultiPagePDF
SaveSelectedImagesAsMultiPageTIFF

OnBarcodeReadSuccess(sImageIndex, result)

Parameters Type Description
sImageIndex <short> specifies the index of the image.
result <BarcodeResult> *<BarcodeResult>, check out Addon.Barcode.Read or Addon.Barcode.ReadRect

OnBarcodeReadFailure(errorCode, errorString)

Parameters Type Description
errorCode <int> the error code
errorString <string> the error string

OnBarcodeReadSuccess() and OnBarcodeReadFailure() are Function prototypes for the optional callback function used in the following methods
Addon.Barcode.Read
Addon.Barcode.ReadRect

OnHttpUploadSuccess(sHttpResponse)

Parameters Type Description
sHttpResponse <string> the information returned from the server after the upload

OnHttpUploadFailure(errorCode, errorString, sHttpResponse)

Parameters Type Description
errorCode <int> the error code
errorString <string> the error string
sHttpResponse <string> the detailed error information returned from the server

OnHttpUploadSuccess() and OnHttpUploadFailure() are Function prototypes for the optional callback function used in the following methods
HTTPUploadAllThroughPostAsMultiPageTIFF
HTTPUploadAllThroughPostAsPDF
HTTPUploadThroughPost
HTTPUploadThroughPostAsMultiPagePDF
HTTPUploadThroughPostAsMultiPageTIFF
HTTPUploadThroughPostDirectly
HTTPUploadThroughPostEx

See Also

ErrorCode
ErrorString