Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Product Docs Swagger Examples Blog Support Dashboard

Installation

The package is available at nuget.org and it can be installed via the Package Manager Console by executing the following command:

NuGet\Install-Package GroupDocs.Assembly-Cloud

Version NuGet NuGet-GroupDocsCloud


Requirements

  • .NET Framework 2.0 or .NET Standard 2.0
  • NuGet
  • System.Web when targeting .NET Framework 2.0
  • GroupDocs Cloud credentials — Client ID and Client Secret from the Dashboard

Quick Start

Get your API credentials

To use GroupDocs.Assembly Cloud, sign up at GroupDocs.Cloud Dashboard and get your Client ID and Client Secret.

Initialize the API

Use the following code to start using the GroupDocs.Assembly Cloud SDK for .NET.

using GroupDocs.Assembly.Cloud.Sdk;
using GroupDocs.Assembly.Cloud.Sdk.Model;
using GroupDocs.Assembly.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    ApiBaseUrl = "https://api.groupdocs.cloud",
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};

var assemblyApi = new AssemblyApi(configuration);

See BaseTestContext.cs for more details.

Assemble a template to PDF

This example fills a template with JSON report data and returns the PDF.

using System.IO;
using GroupDocs.Assembly.Cloud.Sdk;
using GroupDocs.Assembly.Cloud.Sdk.Model;
using GroupDocs.Assembly.Cloud.Sdk.Model.Requests;

var configuration = new Configuration
{
    ApiBaseUrl = "https://api.groupdocs.cloud",
    AppSid = "YourClientId",
    AppKey = "YourClientSecret"
};
var assemblyApi = new AssemblyApi(configuration);

var data = File.ReadAllText("TableData.json");
var saveOptions = new AssembleOptions
{
    SaveFormat = "pdf",
    ReportData = data,
    TemplateFileInfo = new TemplateFileInfo { FilePath = "GroupDocs.Assembly/TableFeatures.odt" }
};

var result = assemblyApi.AssembleDocument(new AssembleDocumentRequest(saveOptions));
Console.WriteLine("Assembled document: " + result.Length);

See AssemblyApiTests.cs for more details.

Examples on GitHub

The GroupDocs.Assembly Cloud .NET SDK repository contains the SDK and its tests. There is no separate examples repository.

How to run the examples

  1. Clone or download the SDK repository
  2. Edit Settings/servercreds.json and set AppSid, AppKey, and BaseUrl
  3. Open the solution in Visual Studio
  4. Run the tests in GroupDocs.Assembly.Cloud.Sdk.Test

For more details, visit Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Automation | .NET Cloud API | REST API | Document Generation | Template-Driven | Dynamic Data Merging | Rich Formatting | Conditional Content Control | List Automation | Table Automation | Barcode Generation | Hyperlink Insertion | Bookmark Creation | Checkbox Manipulation | Mail Merge | Formula Calculations | Data Filtering | Data Sorting | Data Grouping | Data Formatting | Dynamic List Generation | Dynamic Table Generation | Chart Generation | Chart Customization | Cross-Platform SDKs | Comprehensive Documentation | Cloud-Based Flexibility | JWT Authentication | Microsoft Word | Microsoft Excel | Microsoft PowerPoint | OpenOffice | Email Formats | Web Document Formats | Barcode Types | QR Codes | DataMatrix | EAN Barcodes | UPCA | ISBN Barcodes | REST API


 English