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

Free Support Forum - aspose.com

Concatenate Array of PDF Files Using File Paths not working

I was following the Guide on “How to concatenate array of pdf using file path” on this page But with no luck.
example i am using the code

using Aspose.Pdf.Facades;
string[] filesArray = new string[2];
filesArray[0] = @“D:\MergedPDF\Ball_007811263X\baL1263x_ch01_001-029.pdf”;
filesArray[1] = @“D:\MergedPDF\Ball_007811263X\baL1263x_ch02_030-061.pdf”;
// create PdfFileEditor object
PdfFileEditor pdfEditor = new PdfFileEditor();
// display the resultant concatenated PDF file in
pdfEditor.Concatenate(filesArray, “outputfoe.pdf”);

but it give me an error on the pdfEditor part of **pdfEditor.**Concatenate(filesArray, “outputfoe.pdf”);

The error says:

Error 1 The type ‘System.Web.HttpResponse’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’. C:\Users\rsubedi\Documents\Visual Studio 2012\Projects\MergePDFManual\MergePDFManual\Program.cs 26 13 MergePDFManual

Hi Rohit,

Thanks for using our products.

One of the overloads of Concatenate(…) method takes HttpResponse object as an argument so therefore you need to add System.Web.dll reference to your project/solution. Please take a look over following image.

We apologize for this inconvenience.