Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

How to merge two PDFs

$
0
0
I am going to merge two PDFs, but the return value is false

Following in my code 

            List<string> inputFiles = new List<string>();
            inputFiles.Add("pdf1.pdf");
            inputFiles.Add("pdf2.pdf");
            string outputFile = "pdf3.pdf";

            Aspose.Pdf.Kit.PdfFileEditor pdfEd = new Aspose.Pdf.Kit.PdfFileEditor();
            bool result = pdfEd.Concatenate(inputFiles.ToArray(), outputFile);

The result is false. and the merged pdf is 0kb. Could you give me some suggestion? My .net framework in 4.0.

using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using Aspose.Pdf.Kit;


The version of Aspose.PdfKit is 6.0.0.0. I also refer to help document http://www.aspose.com/docs/display/pdfnet/Concatenate+Array+of+PDF+Files+Using+File+Paths+%28Facades%29
It also does not work. 

Viewing all articles
Browse latest Browse all 3131

Trending Articles