Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • key: The key for the pdf, it is used as a path parameter in URL to identify for which PDF has to  generate.

  • Content: In this section, the view of pdf is set. What has to be appear on pdf is declared here, it  just like creating a static html page. The variable which are defined in data config are declared here and place in position as per the requirement. We can also create table here and set the variable as per requirement. 

  • Style: This section is used to style the component, set the alignment and many more. Basically it's like a CSS to style the html page.

API Call :

_create :

This API request to PDF generation service is made to generate pdf and return the filestore the filestore id and job id.

  • Endpoint:

/pdf/v1/_create?key={configFileName}&tenantId={tenantId}

...

https://egov-micro-dev.egovernments.org/pdf-service/v1/_create?key=tlcertificate&tenantId=pb

_createnosave :

This API request to PDF generation service, generate pdf and return the downloadable pdf file as response.

  • Endpoint:

/pdf/v1/_createnosave?key={configFileName}&tenantId={tenantId}

...

https://egov-micro-dev.egovernments.org/pdf-service/v1/_createnosave?key=tlcertificate&tenantId=pb

_search :

This API request to PDF generation service, search the already created pdf (based on job Id or entity id) for particular application number. This API can be called before the creation of PDF, and search if the particular pdf is created for that application number or not. If the PDF is created then its filestore id is fetched from DB and based on that filestore id, PDF Is shown. 

  • Endpoint:

/pdf-service/v1/_search?jobid={jobid}

...