Saves the images of the specified indices in buffer to a MultiPage PDF byte array.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)

Syntax

C#
public byte[] SaveAsMultiPagePDFToBytes(
	IndexList aryIndex
)
Visual Basic
Public Function SaveAsMultiPagePDFToBytes ( _
	aryIndex As IndexList _
) As Byte()

Parameters

aryIndex
Type: Dynamsoft.DotNet.TWAIN..::..IndexList
Specifies a list of index of image in buffer. The index is 0-based.

Return Value

A byte array where the image will be saved.

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.

Exceptions

ExceptionCondition
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.

See Also