Saves several images in buffer as a multi-page PDF file.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool SaveAsMultiPagePDF( string strFileName, IndexList aryIndex ) |
| Visual Basic |
|---|
Public Function SaveAsMultiPagePDF ( _ strFileName As String, _ aryIndex As IndexList _ ) As Boolean |
Parameters
- strFileName
- Type: System..::..String
String strFileName:the name of the Multi-Page PDF file to be saved. It should be a local path on the local disk.
- 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 local disk, the old PDF file will be replaced by the newly saved 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. |