Free Support Forum - aspose.com

Aspose SharePoint plugin API

Is there any API exposed by aspose.pdf which can do the operations mentioned in below site in C#.

https://docs.aspose.com/display/pdfsharepoint/Merge+PDF+files

Thanks!

Hi there,


Thanks for your inquriy. Please note the mentioned article uses Aspose.Pdf for SharePoint solution to merge PDF documents. The solution uses Aspose.Pdf for .NET DLL at back end. Aspose.Pdf for .NET is a class library and it does not provide any GUI control. You may merged PDF document using Aspose.Pdf for .NET as well, please check following documentation link for details. However, if there is any difference in your requirements and my understanding then please share some more details.


Best Regards,

Hi,


Actually we want to use ASPOSE.PDF to merge files stored in SharePoint server, willl the concatenation API in C# work if we give 2 sharepoint file URL instead of local hard disk file. If yes can you please share a sample.

Hi there,


Thanks for your inquriy. You may read file from SharePoint file URL into stream as following and then proceed for concatenation. Hopefully it will help you to accomplish the task.

String url = http://www.urartuuniversity.com/content_images/pdf-sample.pdf;<o:p></o:p>

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

HttpWebResponse response = (HttpWebResponse)request.GetResponse();

MemoryStream ms = new MemoryStream();

var stream = response.GetResponseStream();

stream.CopyTo(ms);

ms.Position = 0;

Aspose.Pdf.Document doc = new Aspose.Pdf.Document(ms);


Please feel free to contact us for any further assistance.

Best Regards,