diff --git a/types/dwt/Dynamsoft.d.ts b/types/dwt/Dynamsoft.d.ts index 57d00a67cd..4555d11cad 100644 --- a/types/dwt/Dynamsoft.d.ts +++ b/types/dwt/Dynamsoft.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */ @@ -2653,18 +2653,6 @@ interface WebTwain { */ FTPDownload(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; - /** - * Directly download a file from the FTP server to local disk without loading it into Dynamic Web TWAIN. - * @method WebTwain#FTPDownloadDirectly - * @param {string} FTPServer the name of the FTP server. - * @param {string} FTPRemoteFile the name of the file to be downloaded. It should be the relative path of the file on the FTP server. - * @param {string} localFile specify a full path to store the file. - * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. - * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. - * @return {boolean} - */ - FTPDownloadDirectly(FTPServer: string, FTPRemoteFile: string, localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; - /** * Downloads an image from the FTP server. * @method WebTwain#FTPDownloadEx @@ -2689,18 +2677,6 @@ interface WebTwain { */ FTPUpload(FTPServer: string, sImageIndex: number, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; - /** - * Directly upload a specific file to the FTP server without loading it into Dynamic Web TWAIN. - * @method WebTwain#FTPUploadDirectly - * @param {string} FTPServer the name of the FTP server. - * @param {string} localFile specify the the full path of a local file. - * @param {string} FTPRemoteFile the name of the file to be created on the FTP server. It should be a relative path on the FTP server. - * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. - * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. - * @return {boolean} - */ - FTPUploadDirectly(FTPServer: string, localFile: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; - /** * Uploads the image of a specified index in the buffer to the FTP server as a specified image format. * @method WebTwain#FTPUploadEx @@ -2765,14 +2741,6 @@ interface WebTwain { */ FeedPage(): boolean; - /** - * Check whether a certain file exists on the local disk. - * @method WebTwain#FileExists - * @param {string} localFile specifies the absolute path of the local file. - * @return {boolean} - */ - FileExists(localFile: string): boolean; - /** * Flips the image of a specified index in buffer. * @method WebTwain#Flip @@ -3821,6 +3789,12 @@ interface WebTwain { FilterImagesByTag(tagName: string): boolean; + SelectAllImages(): boolean; + + Invert(sImageIndex: number): boolean; + + ConvertToBW(sImageIndex: number): boolean; + /*ignored checkErrorString first diff --git a/types/dwt/README.md b/types/dwt/README.md index e2fce53b7b..70f0d24b35 100644 --- a/types/dwt/README.md +++ b/types/dwt/README.md @@ -8,7 +8,7 @@ This package contains type definitions for DWT and its add-ons(http://www.dynams Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dwt Additional Details - * Last updated: 28 Jun 2019 12:00:21 GMT + * Last updated: 07 Jan 2020 09:05:12 GMT * Dependencies: none * Global values: dynamsoft, Dynamsoft, EnumDWT_BorderStyle, EnumDWT_Cap, EnumDWT_CapBitOrder, EnumDWT_CapBitdepthReduction, EnumDWT_CapFeederAlignment, EnumDWT_CapFeederOrder, EnumDWT_CapFilterType, EnumDWT_CapFlash, EnumDWT_CapFlipRotation, EnumDWT_CapImageFilter, EnumDWT_CapLanguage, EnumDWT_CapLightPath, EnumDWT_CapLightSource, EnumDWT_CapNoiseFilter, EnumDWT_CapORientation, EnumDWT_CapOverscan, EnumDWT_CapPixelFlavor, EnumDWT_CapPlanarChunky, EnumDWT_CapPrinter, EnumDWT_CapPrinterMode, EnumDWT_CapSupportedSizes, EnumDWT_CapType, EnumDWT_CapValueType, EnumDWT_ConverMode, EnumDWT_ConvertMode, EnumDWT_DUPLEX, EnumDWT_DataSourceStatus, EnumDWT_Error, EnumDWT_FileFormat, EnumDWT_FitWindowType, EnumDWT_ImageType, EnumDWT_InitMsg, EnumDWT_InterpolationMethod, EnumDWT_Language, EnumDWT_MagType, EnumDWT_MessageType, EnumDWT_MouseShape, EnumDWT_PDFCompressionType, EnumDWT_PixelType, EnumDWT_PlatformType, EnumDWT_ShowMode, EnumDWT_TIFFCompressionType, EnumDWT_TransferMode, EnumDWT_UnitType, EnumDWT_UploadDataFormat, etc. diff --git a/types/dwt/addon.ocr.d.ts b/types/dwt/addon.ocr.d.ts index 24628f1508..582087fda5 100644 --- a/types/dwt/addon.ocr.d.ts +++ b/types/dwt/addon.ocr.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */ diff --git a/types/dwt/addon.ocrp.d.ts b/types/dwt/addon.ocrp.d.ts index 3623127e72..5ffc7b335c 100644 --- a/types/dwt/addon.ocrp.d.ts +++ b/types/dwt/addon.ocrp.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */ diff --git a/types/dwt/addon.pdf.d.ts b/types/dwt/addon.pdf.d.ts index f097d0ef40..1d08bd77c8 100644 --- a/types/dwt/addon.pdf.d.ts +++ b/types/dwt/addon.pdf.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */ diff --git a/types/dwt/addon.webcam.d.ts b/types/dwt/addon.webcam.d.ts index deb474f65a..94f87ba269 100644 --- a/types/dwt/addon.webcam.d.ts +++ b/types/dwt/addon.webcam.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */ diff --git a/types/dwt/dbr.d.ts b/types/dwt/dbr.d.ts index 001b7e33f0..f8ffeb36e8 100644 --- a/types/dwt/dbr.d.ts +++ b/types/dwt/dbr.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */ diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts index a959cc1699..273d14afc2 100644 --- a/types/dwt/index.d.ts +++ b/types/dwt/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for dwt 15.2 +// Type definitions for dwt 15.3 // Project: https://www.dynamsoft.com/products/webtwain_overview.aspx // Definitions by: Xiao Ling // Josh Hall @@ -21,9 +21,9 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team -* Version: 15.2 +* Version: 15.3 */ declare const Dynamsoft: DynamsoftStatic; diff --git a/types/dwt/mbc.d.ts b/types/dwt/mbc.d.ts index 62714e0340..ba91d7ec92 100644 --- a/types/dwt/mbc.d.ts +++ b/types/dwt/mbc.d.ts @@ -6,7 +6,7 @@ * Product: Dynamsoft Web Twain * Web Site: http://www.dynamsoft.com * -* Copyright 2019, Dynamsoft Corporation +* Copyright 2020, Dynamsoft Corporation * Author: Dynamsoft Support Team */