We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert PDF to tiff image

We have looking for pdf to image conversion library. We have tried Aspose.pdf for .net to convert pdf to tiff image but it convert mulipage pdf in single tiff file. We want to convert to it in sigle individual pdf pages into single tiff. (e.g. pdf of 10 pages generate 10 physical tif files for each page) Can you advise us? so we can come on decision to purchse it or not. Thanks, Saurabh

Hi,


Thanks for contacting support.

As per your requirement, you may consider first converting multiple page PDF document to individual page PDF files and then try converting each PDF file to TIFF image. For more information, please visit Split PDF File to Individual Pages

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,


Thanks for your inquiry. You can use compression property to save PDF to TIFF with different colors, LZW for color and CCITT3/CCITT4 for black & white. If there is any difference in your requirements and my understanding then please share some more details. So we will look into it and will guide you accordingly.


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,