Uploads several images in buffer as a multi-page PDF file to the FTP server.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool FTPUploadAsMultiPagePDF( string strFTPServer, string strFileName, IndexList aryIndex ) |
| Visual Basic |
|---|
Public Function FTPUploadAsMultiPagePDF ( _ strFTPServer As String, _ strFileName As String, _ aryIndex As IndexList _ ) As Boolean |
Parameters
- strFTPServer
- Type: System..::..String
String strFTPServer:the name of the FTP server.
- strFileName
- Type: System..::..String
String strFileName:the name of the image to be uploaded. It should be a relative path on the FTP server.
- aryIndex
- Type: Dynamsoft.DotNet.TWAIN..::..IndexList
IndexList aryIndex:an array. It contains the indices of images that need to be saved.
Return Value
True indicates success. False indicates failure.
Remarks
If aryIndex contains any invalid index, error message will be written into the ErrorString property and no image will be saved. But if aryIndex contains repeated valid index,
the repeated index will be filtered, only keep one index.
If there's a PDF file with the same file name on the FTP server, the old PDF file will be replaced by the newly uploaded one.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |