I'm using the Runtime version 4.0.30319 of the Aspose.PDF dll.
Whenever I create a Aspose.Pdf.Facades.PdfFileEditor object, I get a compiler error in my project:
The
type 'System.Web.HttpResponse' is defined in an assembly that is not
referenced. You must add a reference to assembly 'System.Web, Version=4.0.0.0, v
Why would this be? When I add the System.Web assembly to my project the error goes away. Is this class doing something that has the web as a dependency?
To make sure there was no other error with my solution/project I created a complete different solution and created this object and got the same result.
I tested your issue with the latest version of Aspose.Pdf
for .NET v7.4but I was unable to reproduce your mentioned issue. Are you using some
older version of Aspose.Pdf for .NET? If yes, please download and try the
latest version of Aspose.Pdf for .NET. In case you are facing the issue in the
latest version, please share your sample application with us so we can
replicate the issue at our end.
System.Web.dll reference is required when trying to concatenate PDF files using PdfFileEditor because one of its overload can save the resultant file contents to Response object.
In case you do not want to add System.Web.dll in your application, we recommend using Document class to concatenate PDF files. For further details, please visit Concatenate PDF Files