iText DITO API icon
Mulesoft certified badge

iText DITO API

(0 reviews)
iText DITO SDK Container API

home

About the Connector

The iText DITO API Connector for MuleSoft allows developers to generate PDFs by passing JSON data to a REST API to combine with your templates designed in the iText DITO Editor.

resources/revised-dito-diagram-mulesoft-sml-5dd1b37f-68f2-4c36-854f-853bb78fad72.png

About iText DITO

iText DITO is a data-driven, template-based PDF generator that simplifies the process of creating PDFs. It offers an intuitive visual template designer, a powerful REST API for processing and production, and with the release of iText DITO 2.0, we've introduced the new iText DITO Manager to handle user, template, and resource management.

Designed to both save time for developers and empower business users to take ownership of all their PDF templates and resources, it consists of an intuitive browser-based design and management experience, coupled with a REST API for PDF generation. What would otherwise take two weeks to do in code using other PDF libraries can now be accomplished in under an hour.

It is your ideal solution if you are looking to:

  • Leverage data, wherever it resides,
  • Mass-generate compliant PDF documents,
  • Reduce time and cost of document automation projects,
  • Empower business users to create and manage their own document templates.

Prerequisites

To use this connector, you should be familiar with:

  • iText DITO
  • Mule runtime engine
  • Anypoint PlatformTM Connectors and Anypoint PlatformTM Studio
  • Mule runtime engine concepts
  • Elements in a Mule flow and Global Elements

The connector supports the REST API introduced in iText DITO 2.0. Earlier versions are not supported.

Users should also know the available parameters of PDF documents defined by the PDF specification.

API configuration

Since iText DITO does not provide an authentication flow by default, all you need to configure is the Host of your iText DITO instance as the baseUri parameter of the connector.

Expected Flow

The connector currently allows users to create PDF documents from templates (must be created beforehand using the iText DITO template designer) and a JSON payload.

To connect the connector to all other services via MuleSoft you can use the following API:

Create a PDF file [POST] /api/pdf-producer

With the following simple request body:

{
templateName: <templateName_on_iText DITO_server>,
data: <JsonString containing data for production>
}

The request-response contains a relative path to the produced PDF, which is stored in the mapped Volume of the iText DITO container.

Use cases

iText DITO is an enterprise-grade solution, capable of generating PDF documents in high volume. It is ideal for generating invoices, bank statements, reports, or indeed any document that requires data injection from elsewhere. With iText DITO templates you can use features such as dynamic data binding, conditional logic, filtered loops, and more, with a minimum of fuss.

For some use case examples, you can refer to the following case studies on our website:

Additional resources

About iText Software

iText is a global leader in innovative award-winning PDF software, offering open-source and enterprise solutions that streamline the generation and consumption of documents and data. Our solutions are used by millions of users, both open source and commercial, to create a wide variety of digital documents, such as invoices, credit card statements, mobile boarding passes, legal archiving, digital signing, and more.

In addition to iText DITO, we also develop the highly versatile iText 7 Core open-source PDF library and its suite of add-ons which enable extra functionality. iText 7 Core is freely available under the AGPL license, while iText also offers the full iText 7 Suite under commercial licensing for customers that wish to keep their source code private.


Reviews

View codeView code in API Designer
TypeREST API
OrganizationMuleSoft
Published by
MuleSoft Partner
Published onMay 27, 2021
Asset overview

Asset versions for 1.0.x

Asset versions
VersionInstancesActions
1.0.0
Public instanceMocking Service

Tags