Skip to content
forked from mosip/print

reference project to use mosip credential service and print a digital card

Notifications You must be signed in to change notification settings

ICTASL/udi-poc-print

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Print

A reference project to use mosip credential service over websub and print a digital card.

Get started

The print project is a spring boot service. The project has sample card printed as a PDF.

Set the following properties to setup the service in your environment.

mosip.event.hubURL = //Websub url
mosip.partner.id = //your partner id from partner portal
mosip.event.callBackUrl = //call back url for websub so upon a credential issued event the websub will call this url. eg: https://dev.mosip.net/v1/print/print/callback/notifyPrint

Once done you are set to go.

Customizing.

As its a reference project you may need to customize this quite often.

The v1/print/callback is the api that consumes the credential json. So in case you need to change

Template

The template used for printing is present in the master data. You can alter that for any look and feel change. Key name in master data for template.

RPR_UIN_CARD_TEMPLATE

To understand the PDF implementation better you can look at the PrintServiceImpl.java file.

About

reference project to use mosip credential service and print a digital card

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 98.7%
  • Dockerfile 1.1%
  • Shell 0.2%