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

Free Support Forum - aspose.com

Too slow on PDF save when converting Tiff image to PDF


I am using aspose.pdf component to convert from Tiff to PDF. I tried with 31 page tiff file and it took almost 1 minute for conversion and save functionality. For save alone its taking 55 sec to complete. I need to reduce this time. Please help me to solve this. I am attaching Tiff file with this.

Hi Blesy,

Thanks for your inquiry. Please note Aspose.Pdf process files in memory so performance depends upon the file size and system resources.I have converted your shared 31 image files to PDF as following and it is taking almost 50 seconds to create a 71MB PDF file. Please try this code and share the results.

Document doc = new

// Add a page to pages collection of document

Aspose.Pdf.Page page = doc.Pages.Add();

// Create an image object

Aspose.Pdf.Image image =null;

string[] inputFiles = Directory.GetFiles(@"C:\Users\Home\Downloads\962015110900001");

foreach (var imagefile in inputFiles)


image = new Aspose.Pdf.Image();

// Add the image into paragraphs collection of the section


// Set the image file stream

image.File = imagefile;


// Save resultant PDF file


We are sorry for the inconvenience caused.

Best Regards,