Hi,
I've tried to convert Multi Paged PDF file to single Tiff Image, It fails to convert.
It converted only first page of PDF to Tiff.
Please find the code below.
Aspose.Pdf.License license = new Aspose.Pdf.License();
FileStream myStream = new FileStream(@"C:\Aspose\License\Aspose.Total.lic", FileMode.Open);
license.SetLicense(myStream);
Document pdfDocument = new Document(@"C:\Praveen\Tiff file Format\Input\Input.pdf");
<br>Resolution resolution = new Resolution(150);<br>
<br>TiffSettings tiffSettings = new TiffSettings();<br>
<br>tiffSettings.Compression = CompressionType.None;<br>
<br>tiffSettings.Depth = ColorDepth.Default;<br>
<br>tiffSettings.Shape = ShapeType.None;<br>
<br>tiffSettings.SkipBlankPages = false;<br>
<br>TiffDevice tiffDevice = new TiffDevice(resolution);<br>
//Convert Multi Page PDF to Single Tiff<br>tiffDevice.Process(pdfDocument, @"C:\Praveen\Tiff file Format\Output\Output.tif");</p><p><br>//Convert Particular Pages from PDF to Single Tiff<br><br>tiffDevice.Process(pdfDocument, 1,4,@"C:\Praveen\Tiff file Format\Output\Output.tif");<br></p><p>Please find attached input file.</p><p> </p><p>Regards,</p><p>Praveen<br></p><br><font size="2" face="Consolas"><font size="2" face="Consolas"></font></font>