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

Free Support Forum - aspose.com

Which method should use to concatenate two pdf files

I saw there are two different way:
1. use Aspose.Pdf.Facades.PdfFileEditor
pdfEditor.Concatenate(inputFiles, outputFile);

2. use Aspose.Pdf.Document
document1.Pages.Add(document2.Pages);
document.Save(outputFile);

Could you tell what’s the different
And please also tell me which one is recommended and why?

Thanks


Wei

Hi Wei,


Thanks for your inquiry. Please note both approaches will work for PDF document concatenation. PdfFileEditor is old approach and Document class is new DOM approach. DOM approach is recommend as it is more improved and efficient.

Please feel free to contact us for any further assistance.

Best Regards,