Posted by a ceTe Software moderator
Hello,
You can create color or monochrome (black and white) multipage tiff images using DynamicPDF Rasterizer. Below are code samples:
// Code to create a color multipage TIFF image
PdfRasterizer rastObj = new PdfRasterizer(@"Input PDF file path");
string output = @"Output Tiff file path";
// Set the images DPI
DpiImageSize imageSizeObj = new DpiImageSize(100, 100);
TiffImageFormat oTiffImageFormat = new TiffImageFormat(TiffColorFormat.Rgb);
rastObj.DrawToMultiPageTiff(output, oTiffImageFormat, imageSizeObj);
//Code to create a black and white multipage TIFF image
PdfRasterizer rastObj = new PdfRasterizer(@"Input PDF file path");
string output = @"Output Tiff image file path";
// Set the images DPI
DpiImageSize imageSizeObj = new DpiImageSize(200, 200);
TiffMonochromeColorFormat tiffColorFormat = new TiffMonochromeColorFormat(TiffMonochromeCompressionType.CcitGroup4);
TiffImageFormat oTiffImageFormat = new TiffImageFormat(tiffColorFormat);
rastObj.DrawToMultiPageTiff(output, oTiffImageFormat, imageSizeObj);
Thanks,
ceTe Software Support Team