Too slow on PDF save when converting Tiff image to PDF

Hi,


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
Document();<o:p></o:p>

// 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

page.Paragraphs.Add(image);

// Set the image file stream

image.File = imagefile;

}

// Save resultant PDF file

doc.Save("E:/data/Image2PDF_DOM.pdf");

We are sorry for the inconvenience caused.

Best Regards,