Free Support Forum - aspose.com

Sluggish Performance with PDFFileEditor.ConcatenateForms()

Hi,

We’re trying to concatenate numerous PDF within our application, but we’re having issue with sluggish performance when doing ConcatenateForms. When we try to contatenate 300 pages from about 80+ physical PDF files, it took 1 minutes 25 seconds to finish.

We ran a test with a trial version of ActivePDFToolKit, it took about 15 seconds to do the job.

I think the performance is pretty un-acceptable for PDF.Kit, is there something that we’re missing?

Below is the snippet of our code


for (int i=0; i <= (PDFFiles.Rows.Count-1); i++)
{
fileNames[i]=PDFFiles.Rows[i].ItemArray[1].ToString();
//PDFToolKit.MergeFile(PDFFiles.Rows[i].ItemArray[1].ToString(),0,0);
}

//PDFToolKit.CloseOutputFile();

Aspose.Pdf.Kit.PdfFileEditor pdfEditor = new PdfFileEditor();

pdfEditor.ConcatenateForms(fileNames, masterFilePath);

Hi,

Thanks for your reporting.

We will improve the methods of PdfFileEditor.ConcatenateForms in our future versions. As a workaround, please use the method PdfFileEditor.Concatenate(string[], string) instead of ConcatenateForm(...) for better programming performance.

Thanks,