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,