Easy to use Microsoft .NET wrapper SDK for the cloud REST API to split or merge PDF, word processing documents, spreadsheets and more supported formats.
Start Free TrialGroupDocs.Merger Cloud API provides a solution to merge and split documents of all common business formats. Supported file types include PDF, Microsoft Word documents, Excel spreadsheets, PowerPoint presentations, plain and formatted text, and a long list of supported document formats. Merger API is completely independent of your operating system, database system or development language. You can use any language and platform that supports HTTP to interact with our API. Manually writing client code can be difficult, error-prone and time-consuming, therefore, we have provided and supports SDKs in many development languages in order to make it easier to communicate with the Cloud Merger API. Using the SDK for .NET, it will hide the REST API calls and will let the developers use GroupDocs.Merger Cloud API features in a native way for your .NET application.
Using GroupDocs.Merger Cloud API, you can combine two or more documents into one, or split any document into multiple smaller documents. Following few lines of code shows how to merge two PDF documents in C# .NET.
//Get your App SID and App Key at https://dashboard.groupdocs.cloud (free registration is required).
var configuration = new Configuration(MyAppSid, MyAppKey);
var apiInstance = new DocumentApi(configuration);
var item1 = new JoinItem
{
FileInfo = new FileInfo
{
FilePath = "foldername/doc1.pdf"
}
};
var item2 = new JoinItem
{
FileInfo = new FileInfo
{
FilePath = "foldername/doc2.pdf"
}
};
var options = new JoinOptions
{
JoinItems = new List { item1, item2 },
OutputPath = "output/joinedDoc.pdf"
};
var request = new JoinRequest(options);
var response = apiInstance.Join(request);