TiffCompression Enum
- Namespace: ceTe.DynamicPDF.Rasterizer
- Assemblies: ceTe.DynamicPDF.Rasterizer.dll
Represents TIFF compression formats.
public enum TiffCompression
Public Enum TiffCompression
Inheritance: Object → ValueType → Enum → TiffCompression
Fields
| TiffCompression.CcitGroup3 | 0 | Compression of type CCIT Group3. |
|---|---|---|
| TiffCompression.CcitGroup4 | 1 | Compression of type CCIT Group4. |
| TiffCompression.Lzw | 2 | Compression of type LZW. |
Licensing
This class is a DynamicPDF Rasterizer feature. The following license is required for non-evaluation usage:
- DynamicPDF Rasterizer for .NET
Examples
This example demonstrates how to rasterize a PDF document to TIFF image with LZW Compression.
Imports System
Imports ceTe.DynamicPDF.Rasterizer
Module MyModule
Sub Main()
' Create a PdfRasterizer object.
Dim rasterizer As New PdfRasterizer("InputPdfFile.pdf")
' Create a FixedImageSize object with required width and height.
Dim fixedImageSize As New FixedImageSize(595, 841)
'Create a TiffImageFormat object.
Dim oTiffImageFormat As New TiffImageFormat(TiffColorFormat.Rgb)
' Set the compression to LZW.
oTiffImageFormat.Compression = TiffCompression.Lzw
' Save the image.
rasterizer.Draw("Output.tif", oTiffImageFormat, fixedImageSize)
End Sub
End Module
using System;
using ceTe.DynamicPDF.Rasterizer;
class MyClass
{
static void Main(string[] args)
{
// Create a PdfRasterizer object.
PdfRasterizer rasterizer = new PdfRasterizer("InputPdfFile.pdf");
// Create a FixedImageSize object with required width and height.
FixedImageSize fixedImageSize = new FixedImageSize(595, 841);
//Create a TiffImageFormat object.
TiffImageFormat oTiffImageFormat = new TiffImageFormat(TiffColorFormat.Rgb);
// Set the compression to LZW.
oTiffImageFormat.Compression = TiffCompression.Lzw;
// Save the image.
rasterizer.Draw("Output.tif", oTiffImageFormat, fixedImageSize);
}
}