Document Generation using cURL

Build highly‑customized reports, contracts, invoices and more directly from the command line with GroupDocs.Assembly Cloud.

  • GroupDocs.Assembly Cloud SDK for .NET
  • GroupDocs.Assembly Cloud SDK for Java
  • GroupDocs.Assembly Cloud SDK for PHP
  • GroupDocs.Assembly Cloud SDK for Python
  • GroupDocs.Assembly Cloud SDK for Ruby
  • GroupDocs.Assembly Cloud SDK for Node.js
  • GroupDocs.Assembly Cloud SDK for Go
  • GroupDocs.Assembly Cloud SDK for C++
  • GroupDocs.Assembly Cloud SDK for Swift
Start Free Trial

GroupDocs.Assembly Cloud API lets you generate documents of any complexity from templates and data sources. Using cURL you can upload a template, bind XML/JSON data, and retrieve the assembled file in the format you need – DOCX, PDF, HTML, PNG, SVG and many more.

GroupDocs.Assembly Cloud API Features

Generate documents from templates with dynamic data

Conditional content blocks using LINQ‑style expressions

Create tables and lists from array data

Embed images, charts and barcodes

Insert hyperlinks and bookmarks

Apply formulas and calculations during assembly

Mail‑merge for batch personalized documents

Secure API with SSL/TLS and access keys

Document Assembly – cURL Example

The following snippet uploads a DOCX template and assembles a report in DOCX format.

curl -v "https://api.groupdocs.cloud/v1.0/assembly/storage/file/Input1.docx" \
     -X PUT \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -F FileContent="@Input1.docx"

curl -v "https://api.groupdocs.cloud/v1.0/assembly/assemble" \
     -X POST \
     -H "Content-Type: multipart/form-data" \
     -H "Authorization: Bearer ####################" \
     -d '{ 
            "TemplateFileInfo": { "FilePath": "@Input1.docx" },
            "SaveFormat": "docx",
            "ReportData": "@Input2.docx"
          }'

Support and Learning Resources

GroupDocs.Assembly Cloud also offers SDKs for the following platforms:

  English
5e71ed5