Products Technologies Demo Docs Blog Support Company

New ReportingCloud Endpoint: Appending Documents

The ReportingCloud Web API adds a document/append endpoint that combines multiple documents into one output file. Documents are submitted as Base64-encoded strings with configurable dividers (section, paragraph, or none) and the result can be returned in PDF, DOCX, RTF, or HTML format.

New ReportingCloud Endpoint: Appending Documents

We released a new endpoint to the ReportingCloud Web API to append documents.

https://api.reporting.cloud/v1/document/append

This new endpoint combines documents by appending them divided by a new section, paragraph or nothing. This endpoint can be used to assemble documents in various formats to one resulting document. Typically, single, separate templates are merged and then appended to create a document that contains all documents in one.

In the payload of the POST request, the documents are posted as an array of Base64 encoded strings and document divider options that define how the documents are separated.

Request Parameters

Query parameter Value Type Value
returnFormat String A string that specifies the format of the created document. Possible values are: PDF, PDFA, RTF, DOC, DOCX, HTML and TX.

POST Payload

The payload of the request contains the AppendBody object.

Request body data Value Type Value
ReportingCloud AppendBody object The AppendBody object contains the templates encoded as a Base64 strings and a ReportingCloud DocumentSettings object.

AppendBody Object

The AppendBody object consists of an array of AppendDocument objects and a DocumentSettings object .

Key Value Type Value
documents ReportingCloud AppendDocument object The documents that are appended including divider options.
documentSettings ReportingCloud DocumentSettings object Optional document settings to specify document properties such as title and author.

DocumentSettings Object

This object contains adjustable settings that will be applied to the created document.

Key Value Type Value
author String Optional. Sets the document's author.
creationDate DateTime (String) Optional. Sets the document's creation date which will be saved in the document.
lastModificationDate DateTime (String) Optional. Sets the date the document is last modified.
creatorApplication String Optional. Sets the application, which has created the document.
documentSubject String Optional. Sets the document's subject string which will be saved in the document.
documentTitle String Optional. Sets the document's title that will be saved in the document.
userPassword String Optional. Specifies the password for the user to open the document.

AppendDocument Object

This object contains the document itself as an Base64 encoded string and the document divider.

Key Value Type Value
document String The document as a Base64 encoded string.
documentDivider Integer The document divider option. Possible values: 1 (None), 2 (NewParagraph), 3 (NewSection).

Learn more about this endpoint in the ReportingCloud reference.

Happy coding!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Reporting

The Text Control Reporting Framework combines powerful reporting features with an easy-to-use, MS Word compatible word processor. Users can create documents and templates using ordinary Microsoft Word skills. The Reporting Framework is included in all .NET based TX Text Control products including ASP.NET, Windows Forms and WPF.

See Reporting products

Related Posts

ReportingBASTAConference

Impressions from BASTA! Spring 2019

Text Control exhibited at BASTA! Spring 2019 in Frankfurt, presenting TX Text Control X16 and the ReportingCloud document generation Web API. Cloud-based document creation and collaboration drew…


ReportingConferenceNDC London

Impressions from NDC London 2019

Text Control sponsored NDC London 2019 at the QEII Centre in Westminster, demonstrating TX Text Control X16 with document collaboration and Excel-compatible formulas to 850+ attendees. The booth…


ReportingAzureExcel

ReportingCloud: Backend Updated to TX Text Control X16

ReportingCloud updated its backend to TX Text Control X16, introducing support for 100+ Excel-compatible formulas, merge block sorting and filtering for data shaping, and upcoming PDF AcroForm…


CloudReportingRelease

ReportingCloud Monthly Payment Available

ReportingCloud now supports monthly subscription plans that auto-renew each billing cycle until cancelled. Subscribers manage active plans and view payment invoices through the online store…


ReportingReleaseReportingCloud

ReportingCloud Upgraded to TX Text Control X15 - New Features

ReportingCloud upgraded its API endpoints and portal to TX Text Control X15, adding watermark support in headers and footers, table pagination controls such as keep-with-next and…

Share on this blog post on: