Our PDF payslips are produced by a converting a HTML document to a PDF file.
The PayslipCustomisation
model give you the ability to customise the payslips.
As well as changing paper size, margins and orientation you can also add your own CSS to change the appearance of the PDF.
The customisation is best done via the web application:
If you want to use the API for your customisation then there are a few API operations that will help.
As you'd expect, there are the GET
and POST actions to retrieve and save your PayslipCustomisation
To test your settings without saving them you can post the PayslipCustomisation
to the Example Payslip end point and retrieve either a PDf or HTML document depending on the accept header.
The documents are populated with dummy data but use whatever settings you submit to determine the design.