Returns or sets the compression type of PDF files.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public DWTPDFCompressionType PDFCompressionType { get; set; } |
| Visual Basic |
|---|
Public Property PDFCompressionType As DWTPDFCompressionType Get Set |
Remarks
| Allowed Values | PDF compression type | Description | Supported image formats |
|---|---|---|---|
| 0 | PDF_AUTO | Auto mode | 1, 4, 8, 24 bit |
| 1 | PDF_FAX3 | CCITT Group 3 fax encoding | 1 bit |
| 2 | PDF_FAX4 | CCITT Group 4 fax encoding | 1 bit |
| 3 | PDF_LZW | Lempel-Ziv Welch | 1, 4, 8, 24 bit |
| 4 | PDF_RLE | CCITT modified Huffman RLE | 1 bit |
| 5 | PDF_JPEG | JPEG encoding | 4, 8, 24 bit |
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. |