Unable to convert Multi Page PDF to single PDF file

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>

Hi Praveen,


Thanks for contacting support.

I have tested the scenario using Aspose.Pdf for .NET 9.8.0 and I am unable to notice any issue. I have used a valid license to convert PDF file to TIFF image. Can you please try using the latest release and in case the problem still persists, please share some details regarding your working environment.

[C#]

Document pdfDocument = new Document(@“C:\pdftest\Input
(1).pdf”
);<o:p></o:p>

Resolution resolution = new Resolution(150);

TiffSettings tiffSettings = new TiffSettings();

tiffSettings.Compression = CompressionType.None;

tiffSettings.Depth = Aspose.Pdf.Devices.ColorDepth.Default;

tiffSettings.Shape = ShapeType.None;

tiffSettings.SkipBlankPages = false;

TiffDevice tiffDevice = new TiffDevice(resolution);

//Convert Multi Page PDF to Single Tiff

tiffDevice.Process(pdfDocument, @"C:\pdftest\Input_Output.tif");

//Convert Particular Pages from PDF to Single Tiff

tiffDevice.Process(pdfDocument, 1, 4, @"C:\pdftest\Page_Range_Output.tif");

Hi,

In you attached I could see first page of PDF is converted into Tiff file.

Is it posible to conver entire pages in PDF in to single TIFF file?

Regards,

Praveen.

Hi Praveen,


When viewing the resultant TIFF in Windows Photo Viewer, I am able to see all 4 frames of TIFF image. Can you please share which application you are using to view resultant TIFF file.

For your reference, I have attached an image file showing preview of Windows Photo Viewer.

Hi,

Thanks for your reply, I'm able to convert multi page PDF to single TIFF file.

thanks again,

Regards,

Praveen

Hi Praveen,


We are glad to hear that your requirement is accomplished. Please continue using our API and in the event of any further query, please feel free to contact.