Hi,
Thanks for your advise. It is helpful for us.
We have some other requirement is that we wat to convert some pdf document inside color and some in gray scale or balck & white. So is there any flag or properties to set to achieve that functionality. Please advise us
Thanks,
Saurabh Savaliya
Hi Saurabh,
var savePdfDocument = new
Aspose.Pdf.Document(myDir + “Input.pdf”);<o:p></o:p>
var resolution = new Resolution(300);
var tiffSettings = new TiffSettings
{
Compression = CompressionType.CCITT3,
//Depth = Aspose.Pdf.Devices.ColorDepth.Format8bpp,
Shape = ShapeType.None,
SkipBlankPages = true
};
var tiffDevice = new TiffDevice(resolution, tiffSettings);
var pages = savePdfDocument.Pages;
var pgCount = pages.Count;
//var saveName = myDir + "SomeLayout" + ".tif";
// tiffDevice.Process(savePdfDocument, saveName);
for (int pg = 1; pg <= pgCount; pg++)
{
var saveName = myDir + "Image" + pg + ".tif";
tiffDevice.Process(savePdfDocument, pg, pg, saveName);
}
savePdfDocument.Dispose();
Please feel free to contact us for any further assistance.
Best Regards,