Overview

The objective of PDF generation service is to bulk generate pdf as per requirement.

Pre-requisites

Before you proceed with the documentation, make sure the following pre-requisites are met -

Key Functionalities

Environment Variables

Description

MAX_NUMBER_PAGES

Maximum number of records to be written in one PDF

DATE_TIMEZONE

Date timezone which will be use to convert epoch timestamp into date (DD/MM/YYYY)

DEFAULT_LOCALISATION_LOCALE

Default value of localisation locale

DEFAULT_LOCALISATION_TENANT

Default value of localisation tenant

DATA_CONFIG_URLS

File path/URL'S of data config

FORMAT_CONFIG_URLS

File path/URL'S of format config

External Libraries used :

Interaction Diagram

Deployment Details

  1. Create data config and format config for a PDF according to product requirement.

  2. Add data config and format config files in PDF configuration

  3. Add the file path of data and format config in environment yml file

  4. Deploy latest version of pdf-service in particular environment.

Configuration Details

For Configuration details please refer to the Customizing PDF Receipts & Certificates document in Reference Docs

Integration 

Integration Scope

The PDF configuration can be used by any module which need to show particular information in PDF format that can be print/downloaded by user.

Integration Benefits

Steps to Integration

  1. To download and print the required PDF _create API has to be called with required key
    (For Integration with UI, please refer to the links in Reference Docs)

Reference Docs

Doc Links

Title 

Link

Customizing PDF Receipts & Certificates

 Customizing PDF Receipts & Certificates

 Steps for Integration of PDF in UI for download and print PDF

 Integration of PDF in UI for download and print PDF

API Swagger Documentation

Swagger Documentation

API List

Title 

Link

pdf-service/v1/_create

https://www.getpostman.com/collections/5a9bfd6fd03f9f2a6fad

 pdf-service/v1/_createnosave

 https://www.getpostman.com/collections/5a9bfd6fd03f9f2a6fad

pdf-service/v1/_search

https://www.getpostman.com/collections/5a9bfd6fd03f9f2a6fad

(Note: All the API’s are in the same postman collection therefore same link is added in each row)